@layers-app/editor 0.7.91 → 0.7.92
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/README.md +831 -831
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +65 -5
- package/dist/index.js +14 -12
- package/dist/{layers.BxJNNCy-.js → layers.-cNYa8FH.js} +1 -1
- package/dist/layers.-go0yqrB.js +346 -0
- package/dist/{layers.CzZEhYA6.js → layers.-mDZECmb.js} +1 -1
- package/dist/{layers.L1TtWkmC.js → layers.2HPpqSIH.js} +1 -1
- package/dist/{layers.DmU5Anc4.js → layers.8fnCtugI.js} +1 -1
- package/dist/{layers.CGShHrLT.js → layers.8jZXu6Rm.js} +1 -1
- package/dist/{layers.CBdEFdre.js → layers.9mcMwZEW.js} +4 -4
- package/dist/{layers.Bmn-T0aX.js → layers.9mdVpQdh.js} +1 -1
- package/dist/{layers.C31JBznY.js → layers.B1ARxIqB.js} +1 -1
- package/dist/{layers.CY8jpw3v.js → layers.B1oYEFZP.js} +1 -1
- package/dist/{layers.DvGS-SSz.js → layers.B3UEoC3V.js} +1 -1
- package/dist/{layers.BNymP4r3.js → layers.B3mTVCFZ.js} +1 -1
- package/dist/{layers.Dzk6fJM5.js → layers.B5DNqRLR.js} +1 -1
- package/dist/{layers.DQTLb9d2.js → layers.B67YEwi2.js} +1 -1
- package/dist/{layers.DNhCU6s5.js → layers.B6iDa8RT.js} +1 -1
- package/dist/{layers.9m-q7HMz.js → layers.B8MrCT1B.js} +1 -1
- package/dist/{layers.yxXv8-qx.js → layers.B8Y8jR5X.js} +1 -1
- package/dist/{layers.DfTfRyZ2.js → layers.B9Jm8gWZ.js} +8 -8
- package/dist/{layers.DvIGamVW.js → layers.BA-Hn-8i.js} +1 -1
- package/dist/{layers.D6LPAQ3H.js → layers.BAJ2-bXH.js} +1 -1
- package/dist/{layers.CSBT0zCi.js → layers.BBvJZ2gd.js} +2 -2
- package/dist/{layers.a9shJm0-.js → layers.BFBYRXUj.js} +1 -1
- package/dist/layers.BFiBXBMU.js +1 -0
- package/dist/{layers.Cx9vuthZ.js → layers.BHIb7oOU.js} +1 -1
- package/dist/{layers.jj3JxHzF.js → layers.BJ9hFtJT.js} +1 -1
- package/dist/{layers.CnipcMUo.js → layers.BNQ1MOkD.js} +1 -1
- package/dist/{layers.BBPVs8ke.js → layers.BNi48siA.js} +1 -1
- package/dist/{layers.C_BuSOXV.js → layers.BOh-DK5k.js} +1 -1
- package/dist/{layers.xYDGOBJ7.js → layers.BQ-H3YLY.js} +4 -4
- package/dist/{layers.DVxOlwho.js → layers.BR01ua_4.js} +1 -1
- package/dist/{layers.cbsF3ABe.js → layers.BUGORd_C.js} +4 -4
- package/dist/{layers.CbOy6iuh.js → layers.BV5O3Yjr.js} +1 -1
- package/dist/{layers.DpPj0eFu.js → layers.BX4qFBHZ.js} +2 -2
- package/dist/layers.BYU-0xYT.js +6 -0
- package/dist/{layers.Dq14e8um.js → layers.BYtl3t4o.js} +1 -1
- package/dist/{layers.DjtdjeMN.js → layers.Ba0lsCQC.js} +1 -1
- package/dist/{layers.C82DUOIJ.js → layers.BcpQT2YY.js} +1 -1
- package/dist/{layers.C1-KIcV0.js → layers.BcsRLUTx.js} +1 -1
- package/dist/{layers.DXhEw3Uf.js → layers.BeWDYex5.js} +1 -1
- package/dist/{layers.BRXB2ojy.js → layers.BexTNd-c.js} +1 -1
- package/dist/{layers.BQ9IFWJb.js → layers.BfpJiswu.js} +65 -65
- package/dist/{layers.BhkVL0ec.js → layers.BgVF9Tny.js} +1 -1
- package/dist/{layers.EsSJyH4p.js → layers.BhE4ByBZ.js} +1 -1
- package/dist/{layers.B99-M2Pq.js → layers.BhIZgvhm.js} +1 -1
- package/dist/{layers.QFXdXzNC.js → layers.BhjR9hmy.js} +1 -1
- package/dist/{layers.ptSKSnsM.js → layers.BjSFrA4f.js} +2 -2
- package/dist/{layers.DZffch6Z.js → layers.BltC4xgl.js} +1 -1
- package/dist/{layers.CF0Pm8JW.js → layers.Bmk77Nl5.js} +1 -1
- package/dist/{layers.DwW9jbSa.js → layers.Bn8tW8p5.js} +1 -1
- package/dist/{layers.iq2p8hfe.js → layers.BoPR0wQt.js} +3 -3
- package/dist/{layers.VNpx-j2F.js → layers.BoX_Wqae.js} +1 -1
- package/dist/{layers.DKl4VJpC.js → layers.BqCSz12w.js} +1 -1
- package/dist/{layers.A_9hYuUz.js → layers.Bqqt2WZE.js} +1 -1
- package/dist/{layers.D9t5OjhB.js → layers.BrsKNoq-.js} +1 -1
- package/dist/{layers.DKEvxn4N.js → layers.BvhzLRzG.js} +1 -1
- package/dist/{layers.BsqLCh4g.js → layers.Bvv96FkK.js} +7 -7
- package/dist/layers.Bvxpmu-2.js +1 -0
- package/dist/{layers.B4bx8nL1.js → layers.BvzEdEXm.js} +1 -1
- package/dist/{layers.DE6n2lbB.js → layers.Bx8how39.js} +1 -1
- package/dist/{layers.GHHvJWs7.js → layers.BxFztpj5.js} +1 -1
- package/dist/{layers.CvjBGGpq.js → layers.BxH_KvZM.js} +1 -1
- package/dist/{layers.D8oafJyy.js → layers.BxY27rS7.js} +1 -1
- package/dist/{layers.BuXkQfJs.js → layers.By_kFoy7.js} +1 -1
- package/dist/{layers.lyzv8Tdh.js → layers.BzC8fzb9.js} +1 -1
- package/dist/{layers.CDLqv7ym.js → layers.BzRIellV.js} +1 -1
- package/dist/{layers.CBNU_L8B.js → layers.BzZqZM22.js} +1 -1
- package/dist/layers.C-hhGDUy.js +8 -0
- package/dist/{layers.DnF_P606.js → layers.C3l4W4QY.js} +1 -1
- package/dist/{layers.CrxxaDR8.js → layers.C4ZTYVln.js} +3 -3
- package/dist/{layers.BPq549HI.js → layers.C5LXz2Dt.js} +1 -1
- package/dist/{layers.Bok_R4HJ.js → layers.C5Oq8KLD.js} +1 -1
- package/dist/{layers.K82Ix00Q.js → layers.C68ajHa1.js} +1 -1
- package/dist/{layers.BqGhYWCx.js → layers.C6i05MYQ.js} +1 -1
- package/dist/{layers.DelKapFT.js → layers.C9OSt3-B.js} +1 -1
- package/dist/{layers.Di_ebgPq.js → layers.CA75s71W.js} +1 -1
- package/dist/{layers.C-Lpwe6Y.js → layers.CARdVtYx.js} +1 -1
- package/dist/{layers.Bjl1_R6Z.js → layers.CAoP3DTW.js} +1 -1
- package/dist/{layers.BAvL9Vgi.js → layers.CCCrplmS.js} +1 -1
- package/dist/{layers.BF7lqemv.js → layers.CCeryKPD.js} +1 -1
- package/dist/{layers.Bq29Ll-w.js → layers.CCyI84zh.js} +1 -1
- package/dist/{layers.Cwv-pH3r.js → layers.CD8wS95C.js} +1 -1
- package/dist/{layers.Btx_w26T.js → layers.CE94zD9l.js} +1 -1
- package/dist/{layers.C0yjCiag.js → layers.CEResW_R.js} +1 -1
- package/dist/{layers.B51O0bab.js → layers.CEoeaJQD.js} +1 -1
- package/dist/{layers.D_cWd6Ci.js → layers.CFzM74P5.js} +1 -1
- package/dist/{layers.DmrZirR9.js → layers.CHC4RiFK.js} +1 -1
- package/dist/{layers.B7QYOT88.js → layers.CI16GYp5.js} +1 -1
- package/dist/layers.CIg6bGPB.js +1 -0
- package/dist/{layers.COnQtCRG.js → layers.CJ6TVAfM.js} +1 -1
- package/dist/{layers.DWTB01CF.js → layers.CJfAmCMO.js} +1 -1
- package/dist/{layers.C9Uu962e.js → layers.CKZ6gFse.js} +1 -1
- package/dist/{layers.BkOUTv0-.js → layers.CMnu34_U.js} +1 -1
- package/dist/{layers.BG_57mAh.js → layers.CNUeObBK.js} +1 -1
- package/dist/{layers.BXY3dau8.js → layers.CPaiSNny.js} +1 -1
- package/dist/{layers.BMyYO1L4.js → layers.CRW9Fwvq.js} +1 -1
- package/dist/{layers.B8ydiUV_.js → layers.CTpPpYwM.js} +1 -1
- package/dist/{layers.B2E3vOjo.js → layers.CTsI8G5d.js} +1 -1
- package/dist/layers.CVCmClj2.js +1 -0
- package/dist/{layers.BesXTWr4.js → layers.CVFxZSWW.js} +1 -1
- package/dist/{layers.asoCYFXt.js → layers.CVH7bHbB.js} +1 -1
- package/dist/{layers.DruYzHRH.js → layers.CcvQrhZG.js} +4 -4
- package/dist/{layers.C7bBkyxI.js → layers.CdTCz5Y3.js} +1 -1
- package/dist/{layers.CDWdO4TY.js → layers.CeayngSI.js} +1 -1
- package/dist/{layers.VASPkGuF.js → layers.Cfdr-h4O.js} +1 -1
- package/dist/{layers.0MCDA6GD.js → layers.CgkVp4lC.js} +1 -1
- package/dist/{layers.DU_eOKX_.js → layers.ChzgxWon.js} +1 -1
- package/dist/{layers.BbTVs0hb.js → layers.Cj01jo54.js} +1 -1
- package/dist/{layers.BhKW4lnv.js → layers.ClQJRYXj.js} +1 -1
- package/dist/layers.CmmYt3Ou.js +1 -0
- package/dist/{layers.CCbAhdPE.js → layers.CmyRYGoE.js} +3 -3
- package/dist/{layers.CS6GZ0E2.js → layers.CpZ9aPMO.js} +3 -3
- package/dist/{layers.xoXACb1H.js → layers.Cpw6B803.js} +1 -1
- package/dist/{layers.te3QRbJL.js → layers.CqyzxURh.js} +1 -1
- package/dist/{layers.CfKCx5re.js → layers.Cs7GlunF.js} +1 -1
- package/dist/{layers.B7VSWicC.js → layers.CsEfNhVM.js} +1 -1
- package/dist/{layers.Cp-q47r3.js → layers.CsMhgQ1t.js} +1 -1
- package/dist/{layers.DbHjUv0g.js → layers.CsWdKhEu.js} +1 -1
- package/dist/{layers.DL_w_37d.js → layers.CsvDJIZ7.js} +1 -1
- package/dist/{layers.BoqksHF8.js → layers.CuPX21JA.js} +1 -1
- package/dist/{layers.DGhDlf0S.js → layers.CwB1NQbd.js} +1 -1
- package/dist/{layers.C-5u25tX.js → layers.Cx-9Emh6.js} +1 -1
- package/dist/{layers.Ci-ifSxX.js → layers.D1bCzAYq.js} +1 -1
- package/dist/{layers.D4-FlYEh.js → layers.D1dsXFS0.js} +1 -1
- package/dist/{layers.1FQfuwxk.js → layers.D24Anxjv.js} +1 -1
- package/dist/layers.D3uB-jsE.js +1 -0
- package/dist/{layers.BpAsaaWJ.js → layers.D4MDjmxL.js} +1 -1
- package/dist/{layers.BZ1tehAT.js → layers.D5hpoy9h.js} +2 -2
- package/dist/{layers.B9i3jaXy.js → layers.D6oKUbDE.js} +1 -1
- package/dist/{layers.jtSThhXP.js → layers.D8An70uL.js} +1 -1
- package/dist/{layers.D5Bmkzi7.js → layers.D8yufb88.js} +1 -1
- package/dist/{layers.Dwx_G-uM.js → layers.D9FgdobB.js} +1 -1
- package/dist/{layers.B7EDfju3.js → layers.D9OpTLfE.js} +1 -1
- package/dist/{layers.BfLRCTr_.js → layers.D9VTCVI3.js} +1 -1
- package/dist/{layers.DIpIP-Vy.js → layers.DCMj-1Uf.js} +1 -1
- package/dist/{layers.Bi62ky0O.js → layers.DCv5ETXp.js} +1 -1
- package/dist/{layers.oIWwbEC6.js → layers.DEKzHuSi.js} +1 -1
- package/dist/layers.DF05j1M2.js +17 -0
- package/dist/{layers.CB0yKett.js → layers.DFYEVVfs.js} +1 -1
- package/dist/{layers.Ci06Jg5Q.js → layers.DFfOmmco.js} +1 -1
- package/dist/{layers.DpEgNhvJ.js → layers.DFjAixjy.js} +6 -6
- package/dist/{layers.BfatF7Hh.js → layers.DHa8WGDC.js} +1 -1
- package/dist/{layers.CyzIJ83u.js → layers.DN0u5Yg6.js} +1 -1
- package/dist/{layers.DJEz0fJY.js → layers.DOrY9DYv.js} +24 -24
- package/dist/{layers.Dk4MxNnO.js → layers.DPgn17B0.js} +1 -1
- package/dist/{layers.DrEFOohr.js → layers.DVpWFLjR.js} +1 -1
- package/dist/{layers.7M4dPalp.js → layers.DZT2dQyG.js} +1 -1
- package/dist/{layers.DIHJym5q.js → layers.D_H6PF0v.js} +1 -1
- package/dist/{layers.CqUy9knK.js → layers.D_YdTiFW.js} +1 -1
- package/dist/{layers.BJW0cUVW.js → layers.DbF4xVBE.js} +3 -3
- package/dist/{layers.DkBfU7g-.js → layers.Ddribg71.js} +1 -1
- package/dist/{layers.znb6JaWQ.js → layers.Dfq7GSQ2.js} +3 -3
- package/dist/{layers.DhS8fXO1.js → layers.DhHQZIJN.js} +1 -1
- package/dist/layers.DilA0qnM.js +54 -0
- package/dist/layers.DjVLYoWg.js +1 -0
- package/dist/{layers.CsZAMBb_.js → layers.DkaXOqLh.js} +1 -1
- package/dist/{layers.PnPB2nn8.js → layers.DnVwZ2Cw.js} +1 -1
- package/dist/{layers.CneI2StO.js → layers.Do_EHOq8.js} +1 -1
- package/dist/{layers.CIBowC3x.js → layers.DowbTgQm.js} +1 -1
- package/dist/{layers.Dh4wDGq5.js → layers.DpBgVacc.js} +1 -1
- package/dist/{layers.BvXPsusn.js → layers.DpQ_bWul.js} +1 -1
- package/dist/{layers.hF5ho8rn.js → layers.DqC47xCC.js} +3 -3
- package/dist/layers.Drh9XlcG.js +309 -0
- package/dist/{layers.BvtO_PCS.js → layers.Du1TNcZd.js} +1 -1
- package/dist/{layers.21eP602X.js → layers.DuAvgcNM.js} +1 -1
- package/dist/{layers.BiQGJYlX.js → layers.DuE9Eexi.js} +3 -3
- package/dist/{layers.BY2JPIgs.js → layers.DvHXCGpY.js} +1 -1
- package/dist/{layers.4lM2vICA.js → layers.DvSpirXT.js} +1 -1
- package/dist/{layers.CIZONehB.js → layers.Dvto57We.js} +1 -1
- package/dist/layers.DxydmUP3.js +533 -0
- package/dist/{layers.BJdjhfwW.js → layers.DyTr0iC-.js} +3 -3
- package/dist/{layers.B3-3ASbV.js → layers.EDqAD98V.js} +1 -1
- package/dist/{layers.DZVHqfks.js → layers.Fdk6MvMH.js} +1 -1
- package/dist/{layers.CeWOvOd5.js → layers.Kal-YH7y.js} +1 -1
- package/dist/{layers.Dga6kbUR.js → layers.L5G2E32S.js} +5 -5
- package/dist/{layers.D0lUHuZS.js → layers.PxPuzt12.js} +1 -1
- package/dist/{layers.4nL2QJu6.js → layers.QABnXFIR.js} +1 -1
- package/dist/{layers.rQCzuZCk.js → layers.QXq1glLQ.js} +3 -3
- package/dist/{layers.sKwo4Pse.js → layers.Rd4Aez_o.js} +1 -1
- package/dist/layers.UCGv1oR7.js +46553 -0
- package/dist/{layers.FYZb1Qxa.js → layers.UNs4NPL2.js} +1 -1
- package/dist/{layers.DSu3h3GW.js → layers.VteHR-nD.js} +2 -2
- package/dist/{layers.C7KfPjce.js → layers.WS0tOiF9.js} +1 -1
- package/dist/layers.Wc4s15q8.js +500 -0
- package/dist/{layers.Drht2cx0.js → layers.YmVu7Jyc.js} +1 -1
- package/dist/{layers.BH8Of-0h.js → layers.c1g3UUys.js} +4 -4
- package/dist/{layers.CmPS8wik.js → layers.cHiyhRv0.js} +1 -1
- package/dist/{layers.BNuDloNS.js → layers.e4WMAP8p.js} +4 -4
- package/dist/{layers.NUGtVi9X.js → layers.gkJkfBXX.js} +1 -1
- package/dist/{layers.B9zBXz3c.js → layers.iUn6qHX-.js} +1 -1
- package/dist/{layers.CoWmapX6.js → layers.jJYSd22J.js} +1 -1
- package/dist/{layers.CT9Hxk6p.js → layers.jNpPtSYq.js} +1 -1
- package/dist/{layers.CviNHuzh.js → layers.nh-jugfR.js} +1 -1
- package/dist/{layers.BcRyWi7P.js → layers.noEAcBug.js} +1 -1
- package/dist/{layers.BWCOE2r1.js → layers.o8IUzzuA.js} +4 -4
- package/dist/{layers.DH4ld0eM.js → layers.poSPbB9X.js} +4 -4
- package/dist/{layers.4c98ipgw.js → layers.qH1Kvygt.js} +3 -3
- package/dist/{layers.DWKg8Tij.js → layers.qfL_NxUA.js} +1 -1
- package/dist/{layers.BmcaRPr9.js → layers.sxqdU83h.js} +1 -1
- package/dist/{layers.BRy_5-TU.js → layers.t-FrNIBD.js} +1 -1
- package/dist/{layers.dCqlJwEm.js → layers.uLbLjX8b.js} +1 -1
- package/dist/{layers.BYen0VP_.js → layers.wZ8wbCG9.js} +1 -1
- package/dist/{layers.CMBnoQyb.js → layers.xI63-j2d.js} +1 -1
- package/dist/{layers.Ca70aMup.js → layers.yAPrlce6.js} +1 -1
- package/dist/{layers.BwN7ktiY.js → layers.zbHQRaAA.js} +5 -5
- package/package.json +192 -166
- package/dist/layers.3wlp4P9d.js +0 -215
- package/dist/layers.B7J5CFj0.js +0 -1
- package/dist/layers.BOHsW04t.js +0 -304
- package/dist/layers.Bb4irhn2.js +0 -1
- package/dist/layers.BdLFy1LQ.js +0 -32095
- package/dist/layers.BwrHLbyv.js +0 -1
- package/dist/layers.C6_k8TfY.js +0 -1
- package/dist/layers.CnXsot8z.js +0 -1
- package/dist/layers.CuAZuCaF.js +0 -6
- package/dist/layers.D8ExizU5.js +0 -1
- package/dist/layers.DNXYPucT.js +0 -8
- package/dist/layers.DR5BxOug.js +0 -295
- package/dist/layers.DXn4_Q99.js +0 -276
- package/dist/layers.DZEfCyxo.js +0 -76
- package/dist/layers.DlSzD9N_.js +0 -271
- package/dist/layers.EQZJkcCG.js +0 -1
- package/dist/layers.gHJCNsHM.js +0 -300
- package/dist/layers.jrsVz6PC.js +0 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use strict";var e9=Object.defineProperty;var t9=(e,n,t)=>n in e?e9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Ne=(e,n,t)=>t9(e,typeof n!="symbol"?n+"":n,t);const Rg=require("@mantine/dropzone"),p=require("lexical"),i=require("react/jsx-runtime"),m=require("react"),Ke=require("react-i18next"),n9=require("@lexical/react/LexicalCollaborationContext"),r9=require("@lexical/react/LexicalCollaborationPlugin"),o9=require("@lexical/react/LexicalComposer"),Hh=require("@lexical/react/LexicalHistoryPlugin"),v=require("@mantine/core"),EC=require("yjs"),s9=require("i18next"),At=require("@layers-app/shared"),it=require("@lexical/react/LexicalComposerContext"),ve=require("@lexical/utils"),eo=require("@lexical/react/LexicalDecoratorBlockNode"),Ft=require("@mantine/hooks"),Gt=require("@lexical/code"),dn=require("@lexical/selection"),Xo=require("@lexical/react/LexicalBlockWithAlignableContents"),Br=require("react-dom"),Ee=require("@tabler/icons-react"),i9=require("@lexical/hashtag"),cn=require("@lexical/link"),bi=require("@lexical/mark"),TC=require("@lexical/overflow"),Ds=require("@lexical/react/LexicalHorizontalRuleNode"),fn=require("@lexical/rich-text"),a9=require("react-dom/server"),l9=require("@lexical/react/useLexicalNodeSelection"),c9=require("@lexical/react/LexicalClearEditorPlugin"),u9=require("@lexical/react/LexicalClickableLinkPlugin"),d9=require("@lexical/react/LexicalErrorBoundary"),f9=require("@lexical/react/LexicalHashtagPlugin"),h9=require("@lexical/react/LexicalHorizontalRulePlugin"),p9=require("@lexical/react/LexicalOnChangePlugin"),m9=require("@lexical/react/LexicalRichTextPlugin"),g9=require("@lexical/react/LexicalLinkPlugin"),C9=require("@lexical/react/LexicalMarkdownShortcutPlugin"),ao=require("@lexical/markdown"),jn=require("@lexical/table"),Ba=require("@lexical/html"),A9=require("@mantine/notifications"),b9=require("shaka-player-react"),df=require("@mantine/carousel"),_a=require("@lexical/clipboard"),xu=require("lodash-es"),MC=require("@lexical/react/useLexicalEditable"),y9=require("@lexical/react/LexicalTableOfContentsPlugin"),ac=require("@lexical/file"),x9=require("@lexical/yjs"),Fa=require("@lexical/react/LexicalTypeaheadMenuPlugin"),v9=require("@lexical/react/LexicalTreeView"),w9=require("@lexical/react/LexicalContentEditable");function LC(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const k9=LC(m),Yh=LC(EC),yi=()=>new Map,NC=(e,n,t)=>{let r=e.get(n);return r===void 0&&e.set(n,r=t()),r},jC=()=>new Set,S9=Array.from,E9=String.fromCharCode,T9=e=>e.toLowerCase(),M9=/^\s*/g,L9=e=>e.replace(M9,""),N9=/([A-Z])/g,Ig=(e,n)=>L9(e.replace(N9,t=>`${n}${T9(t)}`)),j9=e=>{const n=unescape(encodeURIComponent(e)),t=n.length,r=new Uint8Array(t);for(let o=0;o<t;o++)r[o]=n.codePointAt(o);return r},Wa=typeof TextEncoder<"u"?new TextEncoder:null,R9=e=>Wa.encode(e),I9=Wa?R9:j9;let ka=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});ka&&ka.decode(new Uint8Array).length===1&&(ka=null);const Dg=e=>e===void 0?null:e;class D9{constructor(){this.map=new Map}setItem(n,t){this.map.set(n,t)}getItem(n){return this.map.get(n)}}let RC=new D9,Zh=!0;try{typeof localStorage<"u"&&localStorage&&(RC=localStorage,Zh=!1)}catch{}const IC=RC,O9=e=>Zh||addEventListener("storage",e),P9=e=>Zh||removeEventListener("storage",e),Og=Symbol("Equality"),B9=Object.keys,_9=(e,n)=>{const t=[];for(const r in e)t.push(n(e[r],r));return t},Pg=e=>B9(e).length,F9=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Sa=(e,n)=>{if(e===n)return!0;if(e==null||n==null||e.constructor!==n.constructor&&(e.constructor||Object)!==(n.constructor||Object))return!1;if(e[Og]!=null)return e[Og](n);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),n=new Uint8Array(n);case Uint8Array:{if(e.byteLength!==n.byteLength)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;break}case Set:{if(e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;break}case Map:{if(e.size!==n.size)return!1;for(const t of e.keys())if(!n.has(t)||!Sa(e.get(t),n.get(t)))return!1;break}case void 0:case Object:if(Pg(e)!==Pg(n))return!1;for(const t in e)if(!F9(e,t)||!Sa(e[t],n[t]))return!1;break;case Array:if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!Sa(e[t],n[t]))return!1;break;default:return!1}return!0},W9=(e,n)=>n.includes(e),os=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",DC=typeof window<"u"&&typeof document<"u"&&!os;let so;const z9=()=>{if(so===void 0)if(os){so=yi();const e=process.argv;let n=null;for(let t=0;t<e.length;t++){const r=e[t];r[0]==="-"?(n!==null&&so.set(n,""),n=r):n!==null&&(so.set(n,r),n=null)}n!==null&&so.set(n,"")}else typeof location=="object"?(so=yi(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[n,t]=e.split("=");so.set(`--${Ig(n,"-")}`,t),so.set(`-${Ig(n,"-")}`,t)}})):so=yi();return so},Hf=e=>z9().has(e),Yf=e=>Dg(os?process.env[e.toUpperCase().replaceAll("-","_")]:IC.getItem(e)),OC=e=>Hf("--"+e)||Yf(e)!==null;OC("production");const U9=os&&W9(process.env.FORCE_COLOR,["true","1","2"]);U9||!Hf("--no-colors")&&!OC("no-color")&&(!os||process.stdout.isTTY)&&(!os||Hf("--color")||Yf("COLORTERM")!==null||(Yf("TERM")||"").includes("color"));const PC=Math.floor,BC=(e,n)=>e<n?e:n,K9=(e,n)=>e>n?e:n,H9=Math.pow,_C=128,Oc=127,Y9=Number.MAX_SAFE_INTEGER;class Z9{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Nr=()=>new Z9,Gh=e=>{let n=e.cpos;for(let t=0;t<e.bufs.length;t++)n+=e.bufs[t].length;return n},pr=e=>{const n=new Uint8Array(Gh(e));let t=0;for(let r=0;r<e.bufs.length;r++){const o=e.bufs[r];n.set(o,t),t+=o.length}return n.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),t),n},Gc=(e,n)=>{const t=e.cbuf.length;e.cpos===t&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(t*2),e.cpos=0),e.cbuf[e.cpos++]=n},An=(e,n)=>{for(;n>Oc;)Gc(e,_C|Oc&n),n=PC(n/128);Gc(e,Oc&n)},Zf=new Uint8Array(3e4),G9=Zf.length/3,V9=(e,n)=>{if(n.length<G9){const t=Wa.encodeInto(n,Zf).written||0;An(e,t);for(let r=0;r<t;r++)Gc(e,Zf[r])}else Mo(e,I9(n))},q9=(e,n)=>{const t=unescape(encodeURIComponent(n)),r=t.length;An(e,r);for(let o=0;o<r;o++)Gc(e,t.codePointAt(o))},Q9=Wa&&Wa.encodeInto?V9:q9,J9=(e,n)=>{const t=e.cbuf.length,r=e.cpos,o=BC(t-r,n.length),s=n.length-o;e.cbuf.set(n.subarray(0,o),r),e.cpos+=o,s>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(K9(t*2,s)),e.cbuf.set(n.subarray(o)),e.cpos=s)},Mo=(e,n)=>{An(e,n.byteLength),J9(e,n)},FC=e=>new Error(e),X9=FC("Unexpected end of array"),$9=FC("Integer out of Range");class e8{constructor(n){this.arr=n,this.pos=0}}const WC=e=>new e8(e),t8=(e,n)=>{const t=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,n);return e.pos+=n,t},vu=e=>t8(e,ts(e)),Bg=e=>e.arr[e.pos++],ts=e=>{let n=0,t=1;const r=e.arr.length;for(;e.pos<r;){const o=e.arr[e.pos++];if(n=n+(o&Oc)*t,t*=128,o<_C)return n;if(n>Y9)throw $9}throw X9},n8=e=>{let n=ts(e);if(n===0)return"";{let t=String.fromCodePoint(Bg(e));if(--n<100)for(;n--;)t+=String.fromCodePoint(Bg(e));else for(;n>0;){const r=n<1e4?n:1e4,o=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,t+=String.fromCodePoint.apply(null,o),n-=r}return decodeURIComponent(escape(t))}},r8=e=>ka.decode(vu(e)),zC=ka?r8:n8,o8=e=>new Uint8Array(e),s8=(e,n,t)=>new Uint8Array(e,n,t),i8=e=>new Uint8Array(e),a8=e=>{let n="";for(let t=0;t<e.byteLength;t++)n+=E9(e[t]);return btoa(n)},l8=e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),c8=e=>{const n=atob(e),t=o8(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},u8=e=>{const n=Buffer.from(e,"base64");return s8(n.buffer,n.byteOffset,n.byteLength)},d8=DC?a8:l8,f8=DC?c8:u8,UC=new Map;class h8{constructor(n){this.room=n,this.onmessage=null,this._onChange=t=>t.key===n&&this.onmessage!==null&&this.onmessage({data:f8(t.newValue||"")}),O9(this._onChange)}postMessage(n){IC.setItem(this.room,d8(i8(n)))}close(){P9(this._onChange)}}const p8=typeof BroadcastChannel>"u"?h8:BroadcastChannel,Vh=e=>NC(UC,e,()=>{const n=jC(),t=new p8(e);return t.onmessage=r=>n.forEach(o=>o(r.data,"broadcastchannel")),{bc:t,subs:n}}),m8=(e,n)=>(Vh(e).subs.add(n),n),g8=(e,n)=>{const t=Vh(e),r=t.subs.delete(n);return r&&t.subs.size===0&&(t.bc.close(),UC.delete(e)),r},pi=(e,n,t=null)=>{const r=Vh(e);r.bc.postMessage(n),r.subs.forEach(o=>o(n,t))},Ps=Date.now,KC=0,qh=1,HC=2,Gf=(e,n)=>{An(e,KC);const t=Yh.encodeStateVector(n);Mo(e,t)},YC=(e,n,t)=>{An(e,qh),Mo(e,Yh.encodeStateAsUpdate(n,t))},C8=(e,n,t)=>YC(n,t,vu(e)),ZC=(e,n,t,r)=>{try{Yh.applyUpdate(n,vu(e),t)}catch(o){r!=null&&r(o),console.error("Caught error while handling a Yjs update",o)}},A8=(e,n)=>{An(e,HC),Mo(e,n)},b8=ZC,y8=(e,n,t,r,o)=>{const s=ts(e);switch(s){case KC:C8(e,n,t);break;case qh:ZC(e,t,r,o);break;case HC:b8(e,t,r,o);break;default:throw new Error("Unknown message type")}return s},x8=0,v8=(e,n,t)=>{switch(ts(e)){case x8:t(n,zC(e))}};class GC{constructor(){this._observers=yi()}on(n,t){NC(this._observers,n,jC).add(t)}once(n,t){const r=(...o)=>{this.off(n,r),t(...o)};this.on(n,r)}off(n,t){const r=this._observers.get(n);r!==void 0&&(r.delete(t),r.size===0&&this._observers.delete(n))}emit(n,t){return S9((this._observers.get(n)||yi()).values()).forEach(r=>r(...t))}destroy(){this._observers=yi()}}const ff=3e4;class w8 extends GC{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const t=Ps();this.getLocalState()!==null&&ff/2<=t-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((o,s)=>{s!==this.clientID&&ff<=t-o.lastUpdated&&this.states.has(s)&&r.push(s)}),r.length>0&&Qh(this,r,"timeout")},PC(ff/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const t=this.clientID,r=this.meta.get(t),o=r===void 0?0:r.clock+1,s=this.states.get(t);n===null?this.states.delete(t):this.states.set(t,n),this.meta.set(t,{clock:o,lastUpdated:Ps()});const l=[],c=[],d=[],f=[];n===null?f.push(t):s==null?n!=null&&l.push(t):(c.push(t),Sa(s,n)||d.push(t)),(l.length>0||d.length>0||f.length>0)&&this.emit("change",[{added:l,updated:d,removed:f},"local"]),this.emit("update",[{added:l,updated:c,removed:f},"local"])}setLocalStateField(n,t){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[n]:t})}getStates(){return this.states}}const Qh=(e,n,t)=>{const r=[];for(let o=0;o<n.length;o++){const s=n[o];if(e.states.has(s)){if(e.states.delete(s),s===e.clientID){const l=e.meta.get(s);e.meta.set(s,{clock:l.clock+1,lastUpdated:Ps()})}r.push(s)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},t]),e.emit("update",[{added:[],updated:[],removed:r},t]))},Ea=(e,n,t=e.states)=>{const r=n.length,o=Nr();An(o,r);for(let s=0;s<r;s++){const l=n[s],c=t.get(l)||null,d=e.meta.get(l).clock;An(o,l),An(o,d),Q9(o,JSON.stringify(c))}return pr(o)},k8=(e,n,t)=>{const r=WC(n),o=Ps(),s=[],l=[],c=[],d=[],f=ts(r);for(let h=0;h<f;h++){const g=ts(r);let A=ts(r);const b=JSON.parse(zC(r)),y=e.meta.get(g),x=e.states.get(g),w=y===void 0?0:y.clock;(w<A||w===A&&b===null&&e.states.has(g))&&(b===null?g===e.clientID&&e.getLocalState()!=null?A++:e.states.delete(g):e.states.set(g,b),e.meta.set(g,{clock:A,lastUpdated:o}),y===void 0&&b!==null?s.push(g):y!==void 0&&b===null?d.push(g):b!==null&&(Sa(b,x)||c.push(g),l.push(g)))}(s.length>0||c.length>0||d.length>0)&&e.emit("change",[{added:s,updated:c,removed:d},t]),(s.length>0||l.length>0||d.length>0)&&e.emit("update",[{added:s,updated:l,removed:d},t])},S8=e=>_9(e,(n,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&"),Rs=0,VC=3,xi=1,E8=2,tl=[];tl[Rs]=(e,n,t,r,o)=>{An(e,Rs);const s=y8(n,e,t.doc,t);r&&s===qh&&!t.synced&&(t.synced=!0)};tl[VC]=(e,n,t,r,o)=>{An(e,xi),Mo(e,Ea(t.awareness,Array.from(t.awareness.getStates().keys())))};tl[xi]=(e,n,t,r,o)=>{k8(t.awareness,vu(n),t)};tl[E8]=(e,n,t,r,o)=>{v8(n,t.doc,(s,l)=>T8(t,l))};const _g=3e4,T8=(e,n)=>console.warn(`Permission denied to access ${e.url}.
|
|
2
|
+
${n}`),qC=(e,n,t)=>{const r=WC(n),o=Nr(),s=ts(r),l=e.messageHandlers[s];return l?l(o,r,e,t,s):console.error("Unable to compute message"),o},QC=e=>{if(e.shouldConnect&&e.ws===null){const n=new e._WS(e.url);n.binaryType="arraybuffer",e.ws=n,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,n.onmessage=t=>{e.wsLastMessageReceived=Ps();const r=qC(e,new Uint8Array(t.data),!0);Gh(r)>1&&n.send(pr(r))},n.onerror=t=>{e.emit("connection-error",[t,e])},n.onclose=t=>{e.emit("connection-close",[t,e]),e.ws=null,e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,Qh(e.awareness,Array.from(e.awareness.getStates().keys()).filter(r=>r!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(QC,BC(H9(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime),e)},n.onopen=()=>{e.wsLastMessageReceived=Ps(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const t=Nr();if(An(t,Rs),Gf(t,e.doc),n.send(pr(t)),e.awareness.getLocalState()!==null){const r=Nr();An(r,xi),Mo(r,Ea(e.awareness,[e.doc.clientID])),n.send(pr(r))}},e.emit("status",[{status:"connecting"}])}},hf=(e,n)=>{const t=e.ws;e.wsconnected&&t&&t.readyState===t.OPEN&&t.send(n),e.bcconnected&&pi(e.bcChannel,n,e)};class JC extends GC{constructor(n,t,r,{connect:o=!0,awareness:s=new w8(r),params:l={},WebSocketPolyfill:c=WebSocket,resyncInterval:d=-1,maxBackoffTime:f=2500,disableBc:h=!1}={}){for(super();n[n.length-1]==="/";)n=n.slice(0,n.length-1);const g=S8(l);this.maxBackoffTime=f,this.bcChannel=n+"/"+t,this.url=n+"/"+t+(g.length===0?"":"?"+g),this.roomname=t,this.doc=r,this._WS=c,this.awareness=s,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=h,this.wsUnsuccessfulReconnects=0,this.messageHandlers=tl.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=o,this._resyncInterval=0,d>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const A=Nr();An(A,Rs),Gf(A,r),this.ws.send(pr(A))}},d)),this._bcSubscriber=(A,b)=>{if(b!==this){const y=qC(this,new Uint8Array(A),!1);Gh(y)>1&&pi(this.bcChannel,pr(y),this)}},this._updateHandler=(A,b)=>{if(b!==this){const y=Nr();An(y,Rs),A8(y,A),hf(this,pr(y))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:A,updated:b,removed:y},x)=>{const w=A.concat(b).concat(y),k=Nr();An(k,xi),Mo(k,Ea(s,w)),hf(this,pr(k))},this._exitHandler=()=>{Qh(this.awareness,[r.clientID],"app closed")},os&&typeof process<"u"&&process.on("exit",this._exitHandler),s.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&_g<Ps()-this.wsLastMessageReceived&&this.ws.close()},_g/10),o&&this.connect()}get synced(){return this._synced}set synced(n){this._synced!==n&&(this._synced=n,this.emit("synced",[n]),this.emit("sync",[n]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),os&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(m8(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const n=Nr();An(n,Rs),Gf(n,this.doc),pi(this.bcChannel,pr(n),this);const t=Nr();An(t,Rs),YC(t,this.doc),pi(this.bcChannel,pr(t),this);const r=Nr();An(r,VC),pi(this.bcChannel,pr(r),this);const o=Nr();An(o,xi),Mo(o,Ea(this.awareness,[this.doc.clientID])),pi(this.bcChannel,pr(o),this)}disconnectBc(){const n=Nr();An(n,xi),Mo(n,Ea(this.awareness,[this.doc.clientID],new Map)),hf(this,pr(n)),this.bcconnected&&(g8(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&this.ws.close()}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(QC(this),this.connectBc())}}const M8="0.7.92",L8={version:M8},N8=JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","placeholders":{"list":"List","todo":"To-do","quote":"Quote","toggle":"Toggle","collapsibleContent":"Empty. Click or drop blocks inside","layoutAddContent":"Add content"},"heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","upload":"Upload","unsavedChanges":{"title":"Unsaved changes","message":"Are you sure you want to close the page? All unsaved data will be lost.","cancel":"Cancel","closeWithoutSaving":"Close without saving"},"menu":{"text":{"title":"Text"},"advanced":{"title":"Advanced blocks"},"inline":{"title":"Inline"},"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Check List","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Toggle list","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","exitCommandText":"Shift + Enter to exit code block","languageSearchPlaceholder":"Search for a language...","mobileActions":"Actions","languageDrawerTitle":"Language","languageDrawerDone":"Done","languageSearchNoResults":"Nothing found","drawer":{"collapse":"Collapse","expand":"Expand"},"collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video"},"file":{"name":"File","hint":{"description":"Upload any files up to 500 MB in size, and they will be available for download to anyone you share the link to this page with."},"subtitle":"Add a file"},"audio":{"name":"Audio","hint":{"description":"Upload any audio files up to 5 MB in size, and they will be available for download and listening to anyone you share the link to this page with."},"subtitle":"Add a audio"},"excalidraw":{"name":"Paint","hint":{"description":"Draw any scheme or kind landscape. Free creativity where everything is in your hands."},"keywords":{"video":"draw"},"subtitle":"Work with vector graphics","tools":{"frameTool":"Frame tool","webEmbed":"Web Embed","generate":"Generate"}}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","loading":"Loading documents...","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"pageLink":{"name":"Link to page","subtitle":"Insert a link to another page","modalTitle":"Choose a page","selectPage":"Select a page","searchPlaceholder":"Search for a page...","empty":"No pages available","placeholder":"Link page","drawerTitle":"Add content"},"inlinePageLink":{"name":"Inline page link","subtitle":"Insert a page link inside text"},"emoji":{"name":"Emoji","subtitle":"Add emoji"},"equation":{"name":"Equation","subtitle":"Add a block equation","copy":"Copy equation","overlayTitle":"TeX equation","mobileTitle":"Add a TeX equation","mobileActions":"Actions","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","block":"block","expression":"expression","tex":"tex"}},"embed":{"name":"Embed","subtitle":"Embed anything (PDFs, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Inline Equation","subtitle":"Add an inline equation","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","inline":"inline","expression":"expression","tex":"tex"}}},"equation":{"placeholder":{"block":"Add a TeX equation","inline":"New equation"}},"integrations":{"title":"Embeds"},"formatting":{"title":"Formatting","inlineCode":"Inline code"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Align Justified","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment","more":"More","colorPicker":{"recentlyUsed":"Recently used","textColors":"Text colors","textHighlights":"Text highlights","background":"Background","tooltipText":"{{name}} text","tooltipHighlight":"{{name}} highlight","names":{"default":"Default","violet":"Violet","indigo":"Indigo","blue":"Blue","teal":"Teal","green":"Green","yellow":"Yellow","orange":"Orange","red":"Red","brown":"Brown","gray":"Gray"}}},"link":{"linkName":"Link name","link":"Link","name":"Name","message":"Message","enterMessage":"Enter message","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy","copied":"Link copied to clipboard","addLink":"Add link","editLink":"Edit link","type":{"web":"Web link","phone":"Phone number","email":"Email address","sms":"SMS message"}},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","violet":"Violet color","indigo":"Indigo color","blue":"Blue color","teal":"Teal color","green":"Green color","yellow":"Yellow color","orange":"Orange color","red":"Red highlights","brown":"Brown color","gray":"Gray color","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","apply":"Apply","worksWith":"Works with","add_video":"Add Video","source":{"embedLink":"Embed link","uploadVideo":"Upload video","drawerTitle":"Source"},"link":{"placeholder":"Paste the video link...","save":"Save","invalid":"Enter a valid video link."},"upload":{"title":"Upload video","processed":"Video uploaded. {{percent}}% processed.","dragDrop":"Drag & drop a video or","chooseFile":"choose a file","toUpload":"to upload","maxSize":"Maximum file size: {{size}}. Supported formats: MP4, WebM, OGG.","otherFormats":"(Other formats will be converted automatically)","uploading":"Uploading File","remaining":"Remaining:","progress":"Uploading:"},"actions":{"pause":"Pause","resume":"Resume","cancel":"Cancel","retry":"Retry","selectAnotherFile":"Select another file"},"errors":{"uploadFailed":"Upload failed","sizeLimit":"Your file surpasses the size limit of {{size}}","format":"This video format isn't supported and can't be converted.","formatHint":"Please upload a video in MP4, WebM, or OGG format.","interrupted":"Upload interrupted. Check your connection.","offsetMismatch":"Upload synchronization error. The upload will be retried automatically.","stall":"Upload appears to be stalled. Please check your connection and try again.","unknown":"An error occurred during upload."},"transcoding":{"title":"Transcoding video","analysis":"Analysis","conversion":"Conversion"},"player":{"play":"Play","pause":"Pause","mute":"Mute","unmute":"Unmute","volume":"Volume","settings":"Settings","pictureInPicture":"Picture in picture","enterFullscreen":"Enter fullscreen","exitFullscreen":"Exit fullscreen","playbackError":"Playback error: code {{code}}. Try refreshing the page."},"settings":{"title":"Settings","subtitlesCc":"Subtitles/CC","speed":"Speed","quality":"Quality","normal":"Normal","auto":"Auto","off":"Off"},"settingsModal":{"title":"Video settings","cover":"Cover","uploadFile":"Upload file","cropCoverImage":"Crop cover image","subtitles":"Subtitles","enableAutoSubtitles":"Enable auto-generated subtitles","hideAutoSubtitles":"Hide automatically generated subtitles","uploadSubtitlesManually":"Upload subtitles manually","subtitlesFormatHint":"Upload subtitles in .SRT or .VTT format.","successfullyLoaded":"Successfully loaded","autoGenerated":"Auto-generated","addSubtitleTrack":"Add a subtitle track","selectLanguage":"Select language","defaultLabel":"Default","setDefaultSubtitle":"Set as default","downloadVtt":"Download VTT","deleteSubtitle":"Delete track","uploadError":"Upload failed","chapters":"Transcript","chaptersCustom":"Custom transcript","chaptersDontShow":"Don't show transcript","chaptersPlaceholder":"00:00 Intro\\n01:23 Demo\\n05:10 Summary","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Chapter name","chaptersInvalidTimeRange":"Invalid chapter time range","addChapter":"Add a transcript","deleteChapter":"Delete transcript","saveChapters":"Save chapters","suggestChapters":"Suggest auto","refreshChapters":"Refresh","emptyChapters":"No chapters yet","chaptersError":"Failed to load chapters","transcript":"Transcript","enableAutoTranscript":"Enable auto-generated transcript","uploadTranscriptManually":"Upload transcript manually","addTranscriptManually":"Add a transcript manually","setCover":"Set as cover","emptyCovers":"No cover previews yet","loadError":"Failed to load cover previews","retry":"Retry","cancel":"Cancel","save":"Save"},"delete":"Delete","mobile":{"actions":"Actions"}},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview","previewFullScreen":"Preview full screen","mobileActions":"Actions","tabsDrawerTitle":"Source"},"file":{"add_file":"Add File","mobileActions":"Actions","tabsDrawerTitle":"Source"},"audio":{"add_audio":"Add Audio","mobileActions":"Actions","player":{"waveformSeek":"Seek along the track","playbackSpeed":"Playback speed","volume":"Volume","openVolume":"Open volume control"}},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link","shouldNotExceed":"File size should not exceed {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Please upload no more than one file.","swaggerUnavailable":"Swagger documentation is unavailable. Please make sure the URL is correct and the server is responding."},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns","color":"Color","headerColumn":"Header column","headerRow":"Header row","insertAbove":"Insert above","insertBelow":"Insert below","insertLeft":"Insert left","insertRight":"Insert right","duplicate":"Duplicate","clearContent":"Clear content","delete":"Delete","increaseIndent":"Increase indent","decreaseIndent":"Decrease indent","addRowAndCol":"Add row and column"},"colorPicker":{"cellBackground":"Cell background"},"mobile":{"rowActions":"Row actions","columnActions":"Column actions"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addRightMaxReached":"Maximum of 4 columns — remove a column to add another","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Color","moveRight":"Move a column to the right","duplicate":"Duplicate","clearContent":"Clear content","deleteColumn":"Delete a column","mobile":{"columnActions":"Actions"}},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Type or paste URL","insert":"Embed","addEmbed":"Add a embed anything (PDFs, Google Docs, Google maps...)","addPrefix":"Add a","save":"Save","hidePreview":"Hide preview","showPreview":"Show preview","viewOriginal":"View original","copyLink":"Copy link","delete":"Delete","openPreview":"Open preview","alignment":"Alignment","moreAction":"More action","linkCopied":"Link copied to clipboard","linkCopyFailed":"Failed to copy link"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","template":"Create from Template","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"},"composer":{"discardCommentTitle":"Close without saving?","discardCommentDescription":"Your entered content will be lost.","discardConfirm":"Close","cancel":"Continue","replaceComment":{"title":"Comment already exists","description":"You have selected text that already contains a comment.\\nThe previous comment will be removed.","confirm":"Replace","cancel":"Cancel"},"uploadErrors":{"fileTooLarge":"The file is too large — the maximum size is 5 MB.","tooManyFiles":"You cannot upload more than 10 files."},"placeholder":"Add comment"},"ai":{"placeholder":"Custom prompt","copied":"copied","copy":"copy","back":"Back","menu":{"style":{"professional":"Professional","straightforward":"Straightforward","passiveAggressive":"Passive-aggressive","friendly":"Friendly","poetic":"Poetic","passive_aggressive":"Passive aggressive","pirate":"Pirate"},"main":{"modifySelection":"Modify selection","improveWriting":"Improve writing","fixMistakes":"Fix mistakes","simplify":"Simplify","addMoreDetail":"Add more detail","generate":"Generate","summarise":"Summarise","translate":"Translate into...","changeStyle":"Change style to...","explain":"Explain"},"answer":{"replaceSelection":"Replace selection","addTextInline":"Add text inline","addBelowParagraph":"Add below paragraph","modifyFurther":"Modify further","continueWriting":"Continue writing","regenerate":"Regenerate","otherOptions":"Other options","discard":"Discard"},"languages":{"arabic":"Arabic","bengali":"Bengali","chinese":"Chinese","dutch":"Dutch","english":"English","french":"French","german":"German","hindi":"Hindi","japanese":"Japanese","korean":"Korean","nepali":"Nepali","portuguese":"Portuguese","spanish":"Spanish"}}},"actions":{"delete":"Delete","align":"Alignment"},"cancel":"Cancel","smartPaste":{"aiButton":"Improve writing","rulesButton":"Split via Rules (Safe)","plainButton":"Paste","dontShowAgain":"Don't show again","processing":"Processing...","fallback":"Processing failed, pasting as-is","textTooLong":"The text is too long for AI to process (max {{max}}). Please remove {{excess}} characters to continue.","accept":"Accept","discard":"Discard","freeLimitReached":"Free Smart Paste limit reached. Upgrade your plan for unlimited use.","feedbackTitle":"How satisfied are you with AI text editing?"}}`),j8={editor:N8},R8=JSON.parse(`{"placeholder":"Escribe algo o pulsa '/' para comandos...","placeholders":{"list":"Lista","todo":"Tarea","quote":"Cita","toggle":"Desplegable","collapsibleContent":"Vacío. Haz clic o suelta bloques aquí","layoutAddContent":"Añadir contenido"},"heading":{"h1":"Encabezado 1","h2":"Encabezado 2","h3":"Encabezado 3","name":"Encabezado"},"close":"Cerrar","upload":"Subir","unsavedChanges":{"title":"Cambios no guardados","message":"¿Está seguro de que desea cerrar la página? Todos los datos no guardados se perderán.","cancel":"Cancelar","closeWithoutSaving":"Cerrar sin guardar"},"menu":{"text":{"title":"Texto"},"advanced":{"title":"Bloques avanzados"},"inline":{"title":"En línea"},"heading":{"title":"Encabezados","hintShowCase":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","h1":{"subtitle":"Encabezado grande","hintDescription":"H1 se utiliza para crear el encabezado principal de una página o sección, estableciendo el tema general. También se utiliza para generar automáticamente el índice de contenidos del documento.","keywords":{"header1":"encabezado1","headerOne":"encabezadouno","h1":"h1"}},"h2":{"subtitle":"Encabezado mediano","hintDescription":"H2 se utiliza para crear un encabezado secundario de una página o sección, estableciendo un tema general. También se utiliza para generar automáticamente el índice de contenidos.","keywords":{"header2":"encabezado2","headerTwo":"encabezadodos","h2":"h2"}},"h3":{"subtitle":"Encabezado pequeño","hintDescription":"H3 se utiliza para crear un subencabezado de una página o sección. También genera automáticamente el índice de contenidos.","keywords":{"header3":"encabezado3","headerThree":"encabezadotres","h3":"h3"}}},"lists":{"title":"Listas","numberList":{"name":"Lista numerada","subtitle":"Una lista numerada simple","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Esta herramienta crea una lista con elementos que se numeran automáticamente al agregar nuevas filas."}},"bulletList":{"name":"Lista con viñetas","subtitle":"Lista con marcadores automáticos","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Crea una lista cuyos elementos están marcados automáticamente con viñetas."}},"checkList":{"name":"Lista de tareas","subtitle":"Gestión de tareas fácil","hint":{"indeterminate":"Indeterminado","unchecked":"No marcado","checked":"Marcado","description":"Crea una lista de tareas con opción de marcar como completadas."}}},"main":{"title":"Elementos básicos","paragraph":{"name":"Párrafo","subtitle":"Comienza a escribir texto normal","hint":{"text":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Un bloque de texto alineado a la izquierda."}},"quote":{"name":"Cita","subtitle":"Escribe una cita","hint":{"text":"/quote Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Inserta citas o destaca bloques de texto importantes."}},"collapse":{"name":"Lista expandible","subtitle":"Oculta contenido del bloque","hint":{"firstItemEmpty":"Primer elemento vacío","secondItem":"Segundo elemento","firstSubItemEmpty":"Primer subelemento vacío","secondSubItem":"Segundo subelemento","firstSubSubItemEmpty":"Primer sub-subelemento vacío","secondSubSubItem":"Segundo sub-subelemento","description":"Crea bloques cuyo contenido se puede ocultar o mostrar al hacer clic."}},"horizontal-rule":{"name":"Divisor","subtitle":"Visualiza divisores de bloques","hint":{"topText":"Presionó la barra diagonal. Luego ingresó algo...","bottomText":"Al día siguiente, todo quedó más claro. Lo que ayer era desconocido, hoy es familiar. Por ejemplo...","description":"Separa visualmente secciones o bloques de texto."}},"table":{"name":"Tabla","subtitle":"Agrega una tabla simple a la página","hint":{"firstRow":"Primera celda con texto","secondRow":"Otra celda con texto","description":"Crea tablas con múltiples filas y columnas para organizar datos."}},"grid":{"name":"Cuadrícula","subtitle":"Hasta 4 columnas de bloques","hint":{"firstColumn":"Al día siguiente todo fue más claro...","secondColumn":"Tus ideas, documentos y planes. Unidos...","description":"Divide el documento en múltiples columnas que pueden contener bloques."}},"code":{"name":"Código","subtitle":"Escribe un fragmento de código","copy":"Copiar código","exitCommandText":"Shift + Enter para salir del bloque","languageSearchPlaceholder":"Buscar un idioma...","mobileActions":"Acciones","languageDrawerTitle":"Idioma","languageDrawerDone":"Listo","languageSearchNoResults":"Sin resultados","drawer":{"collapse":"Colapsar","expand":"Expandir"},"collapsible":{"hidden":"Colapsar código","expand":"Expandir código"},"hint":{"description":"Inserta fragmentos de código con resaltado de sintaxis."}},"callout":{"name":"Llamado","subtitle":"Destaca un bloque de texto","hint":{"description":"-."}}},"callout":{"title":"Llamado","default":{"name":"Por defecto","hint":{"description":"Bloque de texto alineado a la izquierda.","body":"/callout Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}..."},"keywords":{"callout":"llamado","type":"default"},"subtitle":"Llamado por defecto"},"success":{"name":"Éxito","subtitle":"Notificación de éxito","keywords":{"callout":"llamado","type":"success"}},"warning":{"name":"Advertencia","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"warning"},"subtitle":"Notificación importante"},"alert":{"name":"Alerta","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"alert"},"subtitle":"Notificación crítica"}},"media":{"title":"Multimedia","photo":{"name":"Imagen","hint":{"description":"Agrega una imagen a la página."},"subtitle":"Sube o enlaza una imagen"},"form":{"name":"Formulario","subtitle":"Agrega un formulario"},"video":{"name":"Video","hint":{"description":"Incrusta un video en la página."},"subtitle":"Agrega un video"},"file":{"name":"Archivo","hint":{"description":"Sube archivos de hasta 500 MB para que puedan ser descargados por quienes tengan el enlace."},"subtitle":"Agrega un archivo"},"audio":{"name":"Audio","hint":{"description":"Sube archivos de audio de hasta 5 MB para compartir y escuchar."},"subtitle":"Agrega un audio"},"excalidraw":{"name":"Dibujo","hint":{"description":"Dibuja cualquier esquema o paisaje. Creatividad sin límites."},"keywords":{"video":"dibujo"},"subtitle":"Trabaja con gráficos vectoriales","tools":{"frameTool":"Herramienta de marco","webEmbed":"Incrustación web","generate":"Generar"}}},"other":{"title":"Otros","documents":{"empty":"No tienes documentos anidados","loading":"Cargando documentos...","name":"Documentos Anidados","subtitle":"Muestra una lista de documentos anidados"},"pageLink":{"name":"Enlace a página","subtitle":"Insertar enlace a otra página","modalTitle":"Elige una página","selectPage":"Selecciona una página","searchPlaceholder":"Buscar página...","empty":"No hay páginas disponibles","placeholder":"Enlazar página","drawerTitle":"Agregar contenido"},"inlinePageLink":{"name":"Enlace de página en línea","subtitle":"Insertar un enlace a página dentro del texto"},"emoji":{"name":"Emoji","subtitle":"Agrega emoji"},"equation":{"name":"Ecuacion","subtitle":"Agrega una ecuacion en bloque","copy":"Copiar ecuación","overlayTitle":"Ecuación TeX","mobileTitle":"Agregar ecuación TeX","mobileActions":"Acciones","keywords":{"equation":"ecuacion","formula":"formula","math":"matematica","latex":"latex","block":"bloque","expression":"expresion","tex":"tex"}},"embed":{"name":"Embed","subtitle":"Incrustar cualquier cosa (PDF, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Ecuacion en linea","subtitle":"Agrega una ecuacion en linea","keywords":{"equation":"ecuacion","formula":"formula","math":"matematica","latex":"latex","inline":"linea","expression":"expresion","tex":"tex"}}},"equation":{"placeholder":{"block":"Agrega una ecuación TeX","inline":"Nueva ecuación"}},"integrations":{"title":"Incrustaciones"},"formatting":{"title":"Formato","inlineCode":"Código en línea"}},"toolbar":{"turnInto":"Convertir en","bold":"Negrita","italic":"Cursiva","underline":"Subrayado","strike":"Tachado","superscript":"Superíndice","subscript":"Subíndice","align":"Alineación","left":"Alinear a la izquierda","center":"Alinear al centro","right":"Alinear a la derecha","justify":"Alinear justificado","indent":"Aumentar sangría","outdent":"Disminuir sangría","color":"Color","code":"Código","link":"Agregar enlace","clear":"Quitar formato","comment":"Comentario","more":"Más","colorPicker":{"recentlyUsed":"Usados recientemente","textColors":"Colores de texto","textHighlights":"Resaltados de texto","background":"Fondo","tooltipText":"{{name}} — texto","tooltipHighlight":"{{name}} — resaltado","names":{"default":"Predeterminado","violet":"Violeta","indigo":"Índigo","blue":"Azul","teal":"Verde azulado","green":"Verde","yellow":"Amarillo","orange":"Naranja","red":"Rojo","brown":"Marrón","gray":"Gris"}}},"link":{"linkName":"Nombre del enlace","link":"Enlace","name":"Nombre","message":"Mensaje","enterMessage":"Escribe un mensaje","save":"Guardar","remove":"Eliminar","edit":"Editar","copy":"Copiar","copied":"Enlace copiado al portapapeles","addLink":"Añadir enlace","editLink":"Editar enlace","type":{"web":"Enlace web","phone":"Número de teléfono","email":"Dirección de correo electrónico","sms":"Mensaje SMS"}},"contextMenu":{"copy":"Copiar","cut":"Cortar","paste":"Pegar","delete":"Eliminar","add":"Agregar","selectAll":"Seleccionar todo","duplicate":"Duplicar","appearance":"Apariencia"},"colors":{"lastTimeUsed":"Último uso","color":"Color","background":"Fondo","theme":"Tema","violet":"Color violeta","indigo":"Color índigo","blue":"Color azul","teal":"Color turquesa","green":"Color verde","yellow":"Color amarillo","orange":"Color naranja","red":"Resaltado rojo","brown":"Color marrón","gray":"Color gris","colors":{"standard":"Estándar","gray":"Gris","brown":"Marrón","orange":"Naranja","yellow":"Amarillo","green":"Verde","blue":"Azul","purple":"Púrpura","pink":"Rosa","red":"Rojo"},"callout":{"success":"Éxito","alert":"Alerta","warning":"Advertencia"}},"video":{"insert":"Insertar","apply":"Aplicar","worksWith":"Funciona con","add_video":"Agregar video","source":{"embedLink":"Insertar enlace","uploadVideo":"Subir video","drawerTitle":"Origen"},"link":{"placeholder":"Pega el enlace del video...","save":"Guardar","invalid":"Introduce un enlace de video válido."},"upload":{"title":"Subir video","processed":"Video subido. {{percent}}% procesado.","dragDrop":"Arrastra un video o","chooseFile":"elige un archivo","toUpload":"para subir","maxSize":"Tamaño máximo: {{size}}. Formatos: MP4, WebM, OGG.","otherFormats":"(Otros formatos se convertirán automáticamente)","uploading":"Subiendo archivo","remaining":"Restante:","progress":"Subiendo:"},"actions":{"pause":"Pausar","resume":"Reanudar","cancel":"Cancelar","retry":"Reintentar","selectAnotherFile":"Seleccionar otro archivo"},"errors":{"uploadFailed":"Error al subir","sizeLimit":"El archivo supera el límite de {{size}}","format":"Este formato de video no es compatible y no se puede convertir.","formatHint":"Sube un video en formato MP4, WebM u OGG.","interrupted":"Subida interrumpida. Comprueba tu conexión.","offsetMismatch":"Error de sincronización. Se reintentará automáticamente.","stall":"La subida se ha detenido. Comprueba tu conexión e inténtalo de nuevo.","unknown":"Ocurrió un error durante la subida."},"transcoding":{"title":"Transcodificando video","analysis":"Análisis","conversion":"Conversión"},"player":{"play":"Reproducir","pause":"Pausar","mute":"Silenciar","unmute":"Activar sonido","volume":"Volumen","settings":"Ajustes","pictureInPicture":"Picture in picture","enterFullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","playbackError":"Error de reproducción: código {{code}}. Intenta actualizar la página."},"settings":{"title":"Ajustes","subtitlesCc":"Subtítulos/CC","speed":"Velocidad","quality":"Calidad","normal":"Normal","auto":"Auto","off":"Apagado"},"settingsModal":{"title":"Configuración del video","cover":"Portada","uploadFile":"Subir archivo","cropCoverImage":"Recortar portada","subtitles":"Subtítulos","enableAutoSubtitles":"Activar subtítulos generados automáticamente","hideAutoSubtitles":"Ocultar subtítulos generados automáticamente","uploadSubtitlesManually":"Subir subtítulos manualmente","subtitlesFormatHint":"Sube subtítulos en formato .SRT o .VTT.","successfullyLoaded":"Cargado correctamente","autoGenerated":"Automático","addSubtitleTrack":"Añadir pista de subtítulos","selectLanguage":"Seleccionar idioma","defaultLabel":"Predeterminado","setDefaultSubtitle":"Establecer como predeterminado","downloadVtt":"Descargar VTT","deleteSubtitle":"Eliminar pista","uploadError":"Error al subir","chapters":"Transcripción","chaptersCustom":"Transcripción personalizada","chaptersDontShow":"No mostrar transcripción","chaptersPlaceholder":"00:00 Introducción\\n01:23 Demo\\n05:10 Resumen","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Nombre del capítulo","chaptersInvalidTimeRange":"Rango de tiempo de capítulo inválido","addChapter":"Añadir transcripción","deleteChapter":"Eliminar transcripción","saveChapters":"Guardar capítulos","suggestChapters":"Sugerir auto","refreshChapters":"Actualizar","emptyChapters":"Aún no hay capítulos","chaptersError":"Error al cargar capítulos","transcript":"Transcripción","enableAutoTranscript":"Activar transcripción generada automáticamente","uploadTranscriptManually":"Subir transcripción manualmente","addTranscriptManually":"Añadir una transcripción manualmente","setCover":"Establecer como portada","emptyCovers":"Aún no hay vistas previas de portada","loadError":"Error al cargar vistas previas de portada","retry":"Reintentar","cancel":"Cancelar","save":"Guardar"},"delete":"Eliminar","mobile":{"actions":"Acciones"}},"swagger":{"insert":"Swagger","worksWith":"Funciona con","add":"Agregar Swagger"},"image":{"add_photo":"Agregar imagen","preview":"Vista previa","previewFullScreen":"Vista previa pantalla completa","mobileActions":"Acciones","tabsDrawerTitle":"Origen"},"file":{"add_file":"Agregar archivo","mobileActions":"Acciones","tabsDrawerTitle":"Origen"},"audio":{"add_audio":"Agregar audio","mobileActions":"Acciones","player":{"waveformSeek":"Buscar en la pista","playbackSpeed":"Velocidad de reproducción","volume":"Volumen","openVolume":"Abrir control de volumen"}},"mention":{"mark":"Mencionar a alguien"},"validation":{"link":"Enlace inválido","shouldNotExceed":"El tamaño del archivo no debe exceder {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Por favor, no subas más de un archivo.","swaggerUnavailable":"La documentación de Swagger no está disponible. Asegúrese de que la URL sea correcta y que el servidor esté respondiendo."},"table":{"background_one":"Color de fondo de celda","background_other":"Color de fondo de las celdas","settings":"Configuraciones","menu":{"addColAfter":"Agregar columna a la derecha","addColBefore":"Agregar columna a la izquierda","addRowAbove":"Agregar fila arriba","addRowBelow":"Agregar fila abajo","deleteCol":"Eliminar columna","deleteRow":"Eliminar fila","mergeCells":"Combinar celdas","disconnectCells":"Desconectar celdas","splitCell":"Dividir celda","deleteTable":"Eliminar tabla","insertRow_one":"Insertar fila","insertRow_other":"Insertar {{count}} filas","deleteRow_one":"Eliminar fila","deleteRow_other":"Eliminar {{count}} filas","insertCol_one":"Insertar columna","insertCol_other":"Insertar {{count}} columnas","deleteCol_one":"Eliminar columna","deleteCol_other":"Eliminar {{count}} columnas","headTable_col":"Columna de fila {{value}}","headTable_row":"Encabezado de fila {{value}}","below":"Debajo","above":"Arriba","left":"Izquierda","right":"Derecha","row":"Fila","rows":"Filas","column":"Columna","columns":"Columnas","color":"Color","headerColumn":"Columna de encabezado","headerRow":"Fila de encabezado","insertAbove":"Insertar arriba","insertBelow":"Insertar abajo","insertLeft":"Insertar a la izquierda","insertRight":"Insertar a la derecha","duplicate":"Duplicar","clearContent":"Limpiar contenido","delete":"Eliminar","increaseIndent":"Aumentar sangría","decreaseIndent":"Disminuir sangría","addRowAndCol":"Agregar fila y columna"},"colorPicker":{"cellBackground":"Fondo de celda"},"mobile":{"rowActions":"Acciones de fila","columnActions":"Acciones de columna"}},"column":{"name":"Insertar cuadrícula","insert":"Insertar","columns":"Columnas","addRight":"Agregar columna a la derecha","addRightMaxReached":"Máximo 4 columnas — elimina una para añadir otra","addLeft":"Agregar columna a la izquierda","moveLeft":"Mover columna a la izquierda","changeColor":"Color","moveRight":"Mover columna a la derecha","duplicate":"Duplicar","clearContent":"Limpiar contenido","deleteColumn":"Eliminar columna","mobile":{"columnActions":"Acciones"}},"hoverOptions":{"addNewBlockBelow":"Agregar bloque debajo","addNewBlockAbove":"Agregar bloque arriba","drag":"Arrastrar","click":"Clic","clickAction":"Para abrir el menú","dragAction":"Para mover"},"embed":{"placeholder":"Escribe o pega una URL","insert":"Insertar","addEmbed":"Incrustar cualquier cosa (PDFs, Google Docs, Google Maps...)","addPrefix":"Agregar","save":"Guardar","hidePreview":"Ocultar vista previa","showPreview":"Mostrar vista previa","viewOriginal":"Ver original","copyLink":"Copiar enlace","delete":"Eliminar","openPreview":"Abrir vista previa","alignment":"Alineación","moreAction":"Más acciones","linkCopied":"Enlace copiado al portapapeles","linkCopyFailed":"Error al copiar el enlace"},"content":"Contenido","emoji":{"emojis":"Emoji","icons":"Íconos","search":"Buscar","searchResults":"Resultado de búsqueda","searchNoResults":"Emoji no encontrado","remove":"Eliminar","emojiCategory":{"frequent":"Usados frecuentemente","people":"Emociones y personas","nature":"Animales y naturaleza","foods":"Comida y bebidas","activity":"Actividades","places":"Viajes y lugares","objects":"Objetos","symbols":"Símbolos","flags":"Banderas"}},"form":{"url":"Introduce una URL válida."},"noTitle":"Sin título","gallery":{"download":"Descargar","close":"Cerrar","errorFile":"No se pudo descargar el archivo"},"emptyPageOptions":{"heading":"Un encabezado que generará automáticamente un índice interactivo","grid":"La cuadrícula ayuda a estructurar horizontalmente la página","list":"Lista numerada para estructurar fácilmente reuniones","template":"Crear desde plantilla","code":"Bloque de código con resaltado de sintaxis","callout":"Llamado para resaltar información","table":"Tabla para encontrar dependencias en los datos","integrations":"Muchas integraciones de servicios externos"},"composer":{"discardCommentTitle":"¿Cerrar sin guardar?","discardCommentDescription":"Tu contenido ingresado se perderá.","discardConfirm":"Cerrar","cancel":"Continuar","replaceComment":{"title":"El comentario ya existe","description":"Has seleccionado un texto que ya contiene un comentario.\\nEl comentario anterior será eliminado.","confirm":"Reemplazar","cancel":"Cancelar"},"uploadErrors":{"fileTooLarge":"El archivo es demasiado grande — el tamaño máximo es de 5 MB.","tooManyFiles":"No puedes subir más de 10 archivos."},"placeholder":"Agregar comentario"},"ai":{"placeholder":"Prompt personalizado","copied":"copiado","copy":"copiar","back":"Atrás","menu":{"style":{"professional":"Profesional","straightforward":"Directo","passiveAggressive":"Pasivo-agresivo","friendly":"Amistoso","poetic":"Poético","passive_aggressive":"Pasivo agresivo","pirate":"Pirata"},"main":{"modifySelection":"Modificar selección","improveWriting":"Mejorar redacción","fixMistakes":"Corregir errores","simplify":"Simplificar","addMoreDetail":"Agregar más detalle","generate":"Generar","summarise":"Resumir","translate":"Traducir a...","changeStyle":"Cambiar estilo a...","explain":"Explicar"},"answer":{"replaceSelection":"Reemplazar selección","addTextInline":"Agregar texto en línea","addBelowParagraph":"Agregar debajo del párrafo","modifyFurther":"Modificar más","continueWriting":"Seguir escribiendo","regenerate":"Regenerar","otherOptions":"Otras opciones","discard":"Descartar"},"languages":{"arabic":"Árabe","bengali":"Bengalí","chinese":"Chino","dutch":"Holandés","english":"Inglés","french":"Francés","german":"Alemán","hindi":"Hindi","japanese":"Japonés","korean":"Coreano","nepali":"Nepalí","portuguese":"Portugués","spanish":"Español"}}},"actions":{"delete":"Eliminar","align":"Alineación"},"cancel":"Cancelar","smartPaste":{"aiButton":"Mejorar texto","rulesButton":"Dividir con Rules (Safe)","plainButton":"Pegar","dontShowAgain":"No volver a mostrar","processing":"Procesando...","fallback":"Error al procesar, pegando tal cual","textTooLong":"El texto es demasiado largo para procesarlo con IA (máx. {{max}}). Elimine {{excess}} caracteres para continuar.","accept":"Aceptar","discard":"Descartar","freeLimitReached":"Límite gratuito de Smart Paste alcanzado. Mejora tu plan para uso ilimitado.","feedbackTitle":"¿Qué tan satisfecho estás con la edición de texto con IA?"}}`),I8={editor:R8},D8=JSON.parse(`{"placeholder":"Напишите что-нибудь, или нажмите '/' для команд...","placeholders":{"list":"Список","todo":"Задача","quote":"Цитата","toggle":"Переключатель","collapsibleContent":"Пусто. Нажмите или перетащите блоки сюда","layoutAddContent":"Добавьте контент"},"upload":"Загрузить","heading":{"h1":"Заголовок 1","h2":"Заголовок 2","h3":"Заголовок 3","name":"Заголовок"},"close":"Закрыть","unsavedChanges":{"title":"Несохранённые изменения","message":"Вы действительно хотите закрыть страницу? Все несохранённые данные будут потеряны.","cancel":"Отмена","closeWithoutSaving":"Закрыть без сохранения"},"menu":{"text":{"title":"Текст"},"advanced":{"title":"Расширенные блоки"},"inline":{"title":"Инлайн"},"heading":{"title":"Заголовоки","hintShowCase":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","h1":{"subtitle":"Большой заголовок","hintDescription":"H1 используется для создания основного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header1":"заголовок1","headerOne":"заголовокодин","h1":"з1"}},"h2":{"subtitle":"средний заголовок","hintDescription":"H2 используется для создания дополнительного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header2":"заголовок2","headerTwo":"заголовокдва","h2":"з2"}},"h3":{"subtitle":"Маленький заголовок","hintDescription":"H3 используется для создания подзаголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header3":"заголовок3","headerThree":"заголовоктри","h3":"з3"}}},"lists":{"title":"Списки","numberList":{"name":"Нумерованный Список","subtitle":"Простой нумерованный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые автоматически нумеруются при добавлении новых строк."},"keywords":{"headingList":"нумерованныйсписок","heading":"нумерация","markers":"цифры"}},"bulletList":{"name":"Маркированный список","subtitle":"Автоматически маркированный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые маркируются автоматически при добавлении новых строк."},"keywords":{"headingList":"маркированныйсписок","heading":"маркеры","markers":"точки","bulletsAlt1":"буллеты","bulletsAlt2":"булеты"}},"checkList":{"name":"Чек-лист","subtitle":"Простое управление задачами","hint":{"indeterminate":"Неопределен","unchecked":"Неотмечен","checked":"Отмечен","description":"Создает список задач с возможностью отметки выполненных пунктов и подпунктов"},"keywords":{"headingList":"списокзадач","heading":"чеклист","markers":"флажки","shoppingList":"списокпокупок"}}},"main":{"title":"Базовые","paragraph":{"name":"Парараграф","subtitle":"Просто начнийте писать обычным текстом","hint":{"text":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок"},"keywords":{"paragraph":"параграф","text":"текст"}},"quote":{"name":"Цитата","subtitle":"Запишите цитату","hint":{"text":"/quote Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Оставайтесь сосредоточенными, действуйте слаженно и добивайтесь большего с Layers.","description":"Используется для вставки цитат или выделения важных блоков текста. Визуально выносится отдельно от основного текста"},"keywords":{"quote":"цитата","mark":"кавычки","citation":"цитирование"}},"collapse":{"name":"Список с переключателем","subtitle":"Прячет содержимое блока","hint":{"firstItemEmpty":"Первый пункт пустой","secondItem":"Второй пункт","firstSubItemEmpty":"Первый подпункт пустой","secondSubItem":"Второй подпункт","firstSubSubItemEmpty":"Первый подподпункт пустой ","secondSubSubItem":"Второй подподпункт","description":"Используется для создания блоков с содержимым, которое можно скрыть или показать при нажатии. Внутри такого списка может быть почти любой другой блок"},"keywords":{"collapsibleList":"сворачиваемыйсписок","expandList":"раскрыть","hideList":"скрыть","turnList":"свернуть"}},"horizontal-rule":{"name":"Разделитель","subtitle":"Визуализирует разделитель блоков","hint":{"topText":"нажал на слэш. Потом что-то ввёл...","bottomText":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","description":"Используется для визуального разделения разделов или блоков текста на странице"},"keywords":{"divider":"разделитель","horizontalLine":"линия","border":"граница"}},"table":{"name":"Таблица","subtitle":"Добавьте на свою страницу простую таблицу","hint":{"firstRow":"Первая ячейка заполненная текстом","secondRow":"И ещё одна с текстом ячейка","description":"Инструмент для создания таблиц с несколькими строками и столбцами для организации данных"},"keywords":{"table":"таблица"}},"grid":{"name":"Сетка","subtitle":"До 4-х колонок из блоков","hint":{"firstColumn":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","secondColumn":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Инструмент для разделения докуента на несколько столбцов, в которые можно помещать любые блоки"},"keywords":{"net":"сетка","grid":"грид","columns":"столбцы"}},"code":{"name":"Код","subtitle":"Запишите фрагмент кода","copy":"Копировать код","exitCommandText":"Shift + Enter чтобы выйти из блока кода","languageSearchPlaceholder":"Найти язык...","mobileActions":"Действия","languageDrawerTitle":"Язык","languageDrawerDone":"Готово","languageSearchNoResults":"Ничего не найдено","drawer":{"collapse":"Свернуть","expand":"Развернуть"},"collapsible":{"hidden":"Свернуть код","expand":"Развернуть код"},"hint":{"description":"Инструмент для вставки фрагментов программного кода с подсветкой синтаксиса"},"keywords":{"code":"код","snippet":"сниппет"}}},"media":{"title":"Медиа","photo":{"name":"Картинка","hint":{"description":"Инструмент для добавления изображения на страницу"},"keywords":{"picture":"картинка","display":"изображение","meme":"мем","drawing":"иллюстрация","memePic":"пикча"},"subtitle":"Загрузите и разместите с помощью ссылки"},"form":{"name":"Форма","subtitle":"Добавьте форму"},"video":{"name":"Видео","hint":{"description":"Инструмент для вставки видео на страницу"},"keywords":{"video":"видео"},"subtitle":"Добавьте видео"},"file":{"name":"Файл","hint":{"description":"Загружайте любые файлы объёмом до 500 Мб и они будут доступны для скачивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"файл"},"subtitle":"Добавьте файл"},"audio":{"name":"Аудио","hint":{"description":"Загружайте любые аудиофайлы объёмом до 5 Мб и они будут доступны для скачивания и прослушивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"аудио"},"subtitle":"Добавьте аудио"},"excalidraw":{"name":"Доска для рисования","hint":{"description":"Нарисуй любую схему или концепт. Полная свобода творчества — всё в твоих руках."},"keywords":{"draw":"рисовать","drawing":"рисовалка"},"subtitle":"Работайте с векторной графикой","tools":{"frameTool":"Инструмент рамки","webEmbed":"Веб-встраивание","generate":"Генерировать"}}},"callout":{"title":"Тип","default":{"name":"По умолчанию","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок.","body":"/callout Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа"},"keywords":{"callout":"оповещение","type":"поумолчанию"},"subtitle":"Уведомление по умолчанию"},"success":{"name":"Успех","subtitle":"Успешное уведомления","keywords":{"callout":"оповещение","type":"успех"}},"warning":{"name":"Предупреждение","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"предупреждение"},"subtitle":"Важное уведомления"},"alert":{"name":"Внимание","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"внимание"},"subtitle":"Критическое уведомление"}},"other":{"title":"Прочее","documents":{"empty":"У вас нет вложенных документов","loading":"Загрузка документов...","name":"Вложенные документы","subtitle":"Отображает список вложенных документов"},"pageLink":{"name":"Ссылка на страницу","subtitle":"Вставить ссылку на другую страницу","modalTitle":"Выберите страницу","selectPage":"Выберите страницу","searchPlaceholder":"Поиск страницы...","empty":"Нет доступных страниц","placeholder":"Ссылка на страницу","drawerTitle":"Добавить контент"},"inlinePageLink":{"name":"Ссылка на страницу в тексте","subtitle":"Вставить ссылку на страницу прямо в текст"},"emoji":{"name":"Эмодзи","subtitle":"Добавьте эмодзи"},"equation":{"name":"Формула","subtitle":"Добавьте блочную формулу","copy":"Копировать формулу","overlayTitle":"Формула TeX","mobileTitle":"Добавить формулу TeX","mobileActions":"Действия","keywords":{"equation":"уравнение","formula":"формула","math":"математика","latex":"латех","block":"блок","expression":"выражение","tex":"тех"}},"embed":{"name":"Embed","subtitle":"Встроить что угодно (PDF, Google Docs, Google Maps...)"},"inlineEquation":{"name":"Формула в тексте","subtitle":"Добавьте формулу внутри строки текста","keywords":{"equation":"уравнение","formula":"формула","math":"математика","latex":"латех","inline":"встроенная","expression":"выражение","tex":"тех"}}},"equation":{"placeholder":{"block":"Добавьте формулу TeX","inline":"Новая формула"}},"integrations":{"title":"Встраивания"},"formatting":{"title":"Форматирование","inlineCode":"Код в строке"}},"toolbar":{"turnInto":"Превратить в","bold":"Жирный","italic":"Курсив","underline":"Подчеркнутый","strike":"Зачеркнутый","superscript":"Надстрочный","subscript":"Подстрочный","align":"Выравнивание","left":"По левому краю","center":"По центру","right":"По правому краю","justify":"По ширине","indent":"Отступ","outdent":"Отступ","color":"Цвет","code":"Код","link":"Добавить ссылку","clear":"Очистить формат","comment":"Комментарий","more":"Ещё","colorPicker":{"recentlyUsed":"Недавние","textColors":"Цвета текста","textHighlights":"Подсветка текста","background":"Подложка","tooltipText":"{{name}} — текст","tooltipHighlight":"{{name}} — подсветка","names":{"default":"По умолчанию","violet":"Фиолетовый","indigo":"Индиго","blue":"Синий","teal":"Бирюзовый","green":"Зелёный","yellow":"Жёлтый","orange":"Оранжевый","red":"Красный","brown":"Коричневый","gray":"Серый"}}},"link":{"linkName":"Название ссылки","link":"Ссылка","name":"Название","message":"Сообщение","enterMessage":"Введите сообщение","save":"Сохранить","remove":"Удалить","edit":"Редактировать","copy":"Копировать","copied":"Ссылка скопирована в буфер обмена","addLink":"Добавить ссылку","editLink":"Редактировать ссылку","type":{"web":"Веб-ссылка","phone":"Номер телефона","email":"Адрес почты","sms":"SMS сообщение"}},"contextMenu":{"copy":"Копировать","cut":"Вырезать","paste":"Вставить","delete":"Удалить","add":"Добавить","selectAll":"Выбрать все","duplicate":"Дублировать","appearance":"Внешний вид"},"colors":{"lastTimeUsed":"Последнее раз использовался","color":"Цвет","background":"Фон","theme":"Темы","violet":"Фиолетовый","indigo":"Индиго","blue":"Синий","teal":"Бирюзовый","green":"Зелёный","yellow":"Жёлтый","orange":"Оранжевый","red":"Красный","brown":"Коричневый","gray":"Серый","colors":{"standard":"Стандартный","gray":"Серый","brown":"Коричневый","orange":"Оранжевый","yellow":"Желтый","green":"Зеленый","blue":"Синий","purple":"Фиолетовый","pink":"Розовый","red":"Красный"},"callout":{"success":"Успех","alert":"Внимание","warning":"Предупреждение"}},"video":{"insert":"Встроить","apply":"Применить","worksWith":"Работает с","add_video":"Добавить видео","source":{"embedLink":"Вставить ссылку","uploadVideo":"Загрузить видео","drawerTitle":"Источник"},"link":{"placeholder":"Вставьте ссылку на видео...","save":"Сохранить","invalid":"Введите корректную ссылку на видео."},"upload":{"title":"Загрузить видео","processed":"Видео загружено. Обработано {{percent}}%.","dragDrop":"Перетащите видео или","chooseFile":"выберите файл","toUpload":"для загрузки","maxSize":"Максимальный размер файла: {{size}}. Форматы: MP4, WebM, OGG.","otherFormats":"(Другие форматы будут конвертированы автоматически)","uploading":"Загрузка файла","remaining":"Осталось:","progress":"Загружено:"},"actions":{"pause":"Пауза","resume":"Продолжить","cancel":"Отмена","retry":"Повторить","selectAnotherFile":"Выбрать другой файл"},"errors":{"uploadFailed":"Ошибка загрузки","sizeLimit":"Размер файла превышает лимит {{size}}","format":"Этот формат видео не поддерживается и не может быть конвертирован.","formatHint":"Загрузите видео в формате MP4, WebM или OGG.","interrupted":"Загрузка прервана. Проверьте соединение.","offsetMismatch":"Ошибка синхронизации загрузки. Будет выполнена повторная попытка.","stall":"Загрузка остановилась. Проверьте соединение и попробуйте снова.","unknown":"Произошла ошибка при загрузке."},"transcoding":{"title":"Конвертация видео","analysis":"Анализ","conversion":"Конвертация"},"player":{"play":"Воспроизвести","pause":"Пауза","mute":"Выключить звук","unmute":"Включить звук","volume":"Громкость","settings":"Настройки","pictureInPicture":"Картинка в картинке","enterFullscreen":"Полный экран","exitFullscreen":"Выйти из полноэкранного режима","playbackError":"Ошибка воспроизведения: код {{code}}. Попробуйте обновить страницу."},"settings":{"title":"Настройки","subtitlesCc":"Субтитры/CC","speed":"Скорость","quality":"Качество","normal":"Нормальная","auto":"Авто","off":"Выкл"},"settingsModal":{"title":"Настройки видео","cover":"Обложка","uploadFile":"Загрузить файл","cropCoverImage":"Обрезать обложку","subtitles":"Субтитры","enableAutoSubtitles":"Включить автогенерацию субтитров","hideAutoSubtitles":"Скрыть автоматически сгенерированные субтитры","uploadSubtitlesManually":"Загрузить субтитры вручную","subtitlesFormatHint":"Загрузите субтитры в формате .SRT или .VTT.","successfullyLoaded":"Успешно загружено","autoGenerated":"Автоматические","addSubtitleTrack":"Добавить дорожку субтитров","selectLanguage":"Выбрать язык","defaultLabel":"По умолчанию","setDefaultSubtitle":"Сделать по умолчанию","downloadVtt":"Скачать VTT","deleteSubtitle":"Удалить трек","uploadError":"Не удалось загрузить","chapters":"Транскрипт","chaptersCustom":"Свой транскрипт","chaptersDontShow":"Не показывать транскрипт","chaptersPlaceholder":"00:00 Вступление\\n01:23 Демонстрация\\n05:10 Итоги","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Название главы","chaptersInvalidTimeRange":"Некорректный диапазон времени главы","addChapter":"Добавить транскрипт","deleteChapter":"Удалить транскрипт","saveChapters":"Сохранить главы","suggestChapters":"Автопредложение","refreshChapters":"Обновить","emptyChapters":"Главы пока не заданы","chaptersError":"Не удалось загрузить главы","transcript":"Транскрипт","enableAutoTranscript":"Включить автогенерацию транскрипта","uploadTranscriptManually":"Загрузить транскрипт вручную","addTranscriptManually":"Добавить транскрипт вручную","setCover":"Установить обложку","emptyCovers":"Превью для обложки пока нет","loadError":"Не удалось загрузить превью обложки","retry":"Повторить","cancel":"Отмена","save":"Сохранить"},"delete":"Удалить","mobile":{"actions":"Действия"}},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Добавить Swagger"},"image":{"add_photo":"Добавить картинку","preview":"Превью","previewFullScreen":"Открыть на весь экран","mobileActions":"Действия","tabsDrawerTitle":"Источник"},"file":{"add_file":"Добавить файл","mobileActions":"Действия","tabsDrawerTitle":"Источник"},"audio":{"add_audio":"Добавить аудио","mobileActions":"Действия","player":{"waveformSeek":"Перейти к моменту трека","playbackSpeed":"Скорость воспроизведения","volume":"Громкость","openVolume":"Открыть настройку громкости"}},"mention":{"mark":"Отменить кого-то"},"validation":{"link":"Неверная ссылка","shouldNotExceed":"Размер файла не должен превышать {{maxSize}} МБ.","doNotUploadMoreThanSingleFile":"Пожалуйста, загружайте не более одного файла.","swaggerUnavailable":"Swagger-документация недоступна. Убедитесь, что адрес указан правильно и сервер отвечает."},"table":{"background_one":"Цвет фона ячейки","background_few":"Цвет фона ячеек","background_other":"Цвет фона ячеек","settings":"Настройки","menu":{"addColAfter":"Добавить столбец справа","addColBefore":"Добавить столбец слева","addRowAbove":"Добавить строку выше","addRowBelow":"Добавить строку ниже","deleteCol":"Удалить столбец","deleteRow":"Удалить строку","mergeCells":"Объединить ячейки","disconnectCells":"Разъединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","insertRow_one":"Вставить строку","insertRow_few":"Вставить {{count}} строки","insertRow_many":"Вставить {{count}} строк","deleteRow_one":"Удалить строку","deleteRow_few":"Удалить {{count}} строки","deleteRow_many":"Удалить {{count}} строк","insertCol_one":"Вставить столбец","insertCol_few":"Вставить {{count}} столбца","insertCol_many":"Вставить {{count}} столбец","deleteCol_one":"Удалить столбец","deleteCol_few":"Удалить {{count}} столбца","deleteCol_many":"Удалить {{count}} столбец","headTable_col":"{{value}} заголовок столбца","headTable_row":"{{value}} заголовок строки","below":"ниже","above":"выше","left":"слева","right":"справа","row":"cтроку","rows":"cтроки","column":"cтолбец","columns":"cтолбца","color":"Цвет","headerColumn":"Заголовок столбца","headerRow":"Заголовок строки","insertAbove":"Вставить выше","insertBelow":"Вставить ниже","insertLeft":"Вставить слева","insertRight":"Вставить справа","duplicate":"Дублировать","clearContent":"Очистить содержимое","delete":"Удалить","increaseIndent":"Увеличить отступ","decreaseIndent":"Уменьшить отступ","addRowAndCol":"Добавить строку и столбец"},"colorPicker":{"cellBackground":"Фон ячейки"},"mobile":{"rowActions":"Действия со строкой","columnActions":"Действия со столбцом"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addRightMaxReached":"Не больше 4 колонок — удалите колонку, чтобы добавить ещё","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","duplicate":"Дублировать","clearContent":"Очистить содержимое","deleteColumn":"Удалить колонку","changeColor":"Цвет","mobile":{"columnActions":"Действия"}},"hoverOptions":{"addNewBlockAbove":"Добавить блок выше","addNewBlockBelow":"Добавить блок ниже","drag":"Перетащите","click":"Нажмите","clickAction":"Чтобы открыть меню","dragAction":"Чтобы переместить"},"embed":{"placeholder":"Введите или вставьте URL","insert":"Встроить","addEmbed":"Встроить что угодно (PDF, Google Docs, Google Maps...)","addPrefix":"Добавить","save":"Сохранить","hidePreview":"Скрыть предпросмотр","showPreview":"Показать предпросмотр","viewOriginal":"Открыть оригинал","copyLink":"Копировать ссылку","delete":"Удалить","openPreview":"Открыть предпросмотр","alignment":"Выравнивание","moreAction":"Ещё","linkCopied":"Ссылка скопирована","linkCopyFailed":"Не удалось скопировать ссылку"},"content":"Содержание","emoji":{"emojis":"Эмодзи","icons":"Иконки","search":"Поиск","searchResults":"Результат поиска","searchNoResults":"Эмодзи не найдено","remove":"Удалить","emojiCategory":{"frequent":"Часто используемые","people":"Эмоции и люди","nature":"Животные и природа","foods":"Еда и напитки","activity":"Активности","places":"Путешествия и места","objects":"Предметы","symbols":"Символы","flags":"Флаги"}},"form":{"url":"Укажите правильный URL."},"noTitle":"Без названия","gallery":{"download":"Загрузить","close":"Закрыть","errorFile":"Не удалось загрузить файл"},"emptyPageOptions":{"heading":"Заголовок, который автоматически создаст интерактивное оглавление","template":"Создать из шаблона","grid":"Сетка поможет структурировать страницу по горизонтали","list":"Нумерованный список для удобного планирования встречи","code":"Блок кода с поддержкой синтаксиса","callout":"Выделенный блок для акцента","table":"Таблица для поиска зависимостей в данных","integrations":"Множество интеграций от сторонних сервисов"},"composer":{"discardCommentTitle":"Закрыть без сохранения?","discardCommentDescription":"Ваш введённый контент будет утерян.","discardConfirm":"Закрыть","cancel":"Продолжить","replaceComment":{"title":"Комментарий уже существует","description":"Вы выделили текст, который уже содержит комментарий.\\nПредыдущий комментарий будет удалён.","confirm":"Заменить","cancel":"Отмена"},"uploadErrors":{"fileTooLarge":"Файл слишком большой — максимальный размер 5 МБ.","tooManyFiles":"Нельзя загружать больше 10 файлов."},"placeholder":"Добавить комментарий"},"actions":{"delete":"Удалить","align":"Выравнивание"},"ai":{"placeholder":"Пользовательский запрос","copied":"скопировано","copy":"копировать","back":"Назад","menu":{"style":{"professional":"Профессиональный","straightforward":"Простой и понятный","friendly":"Дружелюбный","poetic":"Поэтический","passiveAggressive":"Пассивно-агрессивный","pirate":"Пиратский"},"main":{"modifySelection":"Изменить выделение","improveWriting":"Улучшить текст","fixMistakes":"Исправить ошибки","simplify":"Упростить","addMoreDetail":"Добавить подробности","generate":"Сгенерировать","summarise":"Резюме","translate":"Перевести на...","changeStyle":"Изменить стиль на...","explain":"Объяснить"},"answer":{"replaceSelection":"Заменить выделение","addTextInline":"Добавить текст в строку","addBelowParagraph":"Добавить под абзацем","modifyFurther":"Дополнительно изменить","continueWriting":"Продолжить написание","regenerate":"Сгенерировать заново","otherOptions":"Другие варианты","discard":"Удалить"},"languages":{"arabic":"Арабский","bengali":"Бенгальский","chinese":"Китайский","dutch":"Голландский","english":"Английский","french":"Французский","german":"Немецкий","hindi":"Хинди","japanese":"Японский","korean":"Корейский","nepali":"Непальский","portuguese":"Португальский","spanish":"Испанский"}}},"cancel":"Отменить","smartPaste":{"aiButton":"Улучшить текст","rulesButton":"Разделить через Rules (Safe)","plainButton":"Вставить","dontShowAgain":"Больше не показывать","processing":"Обработка...","fallback":"Не удалось обработать, вставляем как есть","textTooLong":"Текст слишком длинный для обработки ИИ (макс. {{max}}). Удалите {{excess}} символов, чтобы продолжить.","accept":"Принять","discard":"Отменить","freeLimitReached":"Лимит бесплатного Smart Paste исчерпан. Обновите план для безлимитного использования.","feedbackTitle":"Насколько вы довольны ИИ-редактированием текста?"}}`),O8={editor:D8},Vf=s9.createInstance();Vf.use(Ke.initReactI18next).init({resources:{en:{translation:j8,ui:At.enUI},ru:{translation:O8,ui:At.ruUI},es:{translation:I8,ui:At.esUI}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(e=>{});const Rr={blockCursor:"dsd__theme__blockCursor",characterLimit:"dsd__theme__characterLimit",code:"dsd__theme__code",codeCollapsed:"dsd__theme__code_сollapsed",codeWrapper:"dsd__theme__overlay-wrapper",codeHeader:"dsd__theme__overlay-header",codeHighlight:{atrule:"dsd__theme__tokenAttr",attr:"dsd__theme__tokenAttr",boolean:"dsd__theme__tokenProperty",builtin:"dsd__theme__tokenSelector",cdata:"dsd__theme__tokenComment",char:"dsd__theme__tokenSelector",class:"dsd__theme__tokenFunction","class-name":"dsd__theme__tokenFunction",comment:"dsd__theme__tokenComment",constant:"dsd__theme__tokenProperty",deleted:"dsd__theme__tokenProperty",doctype:"dsd__theme__tokenComment",entity:"dsd__theme__tokenOperator",function:"dsd__theme__tokenFunction",important:"dsd__theme__tokenVariable",inserted:"dsd__theme__tokenSelector",keyword:"dsd__theme__tokenAttr",namespace:"dsd__theme__tokenVariable",number:"dsd__theme__tokenProperty",operator:"dsd__theme__tokenOperator",prolog:"dsd__theme__tokenComment",property:"dsd__theme__tokenProperty",punctuation:"dsd__theme__tokenPunctuation",regex:"dsd__theme__tokenVariable",selector:"dsd__theme__tokenSelector",string:"dsd__theme__tokenSelector",symbol:"dsd__theme__tokenProperty",tag:"dsd__theme__tokenProperty",url:"dsd__theme__tokenOperator",variable:"dsd__theme__tokenVariable"},embedBlock:{base:"dsd__theme__embedBlock",focus:"dsd__theme__embedBlockFocus"},hashtag:"dsd__theme__hashtag",heading:{h1:"dsd__theme__h1",h2:"dsd__theme__h2",h3:"dsd__theme__h3",h4:"dsd__theme__h4",h5:"dsd__theme__h5",h6:"dsd__theme__h6"},excalidraw:"editor-excalidraw",image:"editor-image",indent:"dsd__theme__indent",inlineImage:"inline-editor-image",layoutContainer:"dsd__theme__layoutContainer",layoutItem:"dsd__theme__layoutItem",layoutDivider:"dsd__theme__layoutDivider",calloutIcon:"dsd__theme__callout-icon",callout:"dsd__theme__callout-container",calloutWrapper:"dsd__theme__callout-wrapper",calloutContainer:"dsd__theme__callout-main-container",link:"dsd__theme__link",list:{checklist:"dsd__theme__checklist",listitem:"dsd__theme__listItem",listitemChecked:"dsd__theme__listItemChecked",listitemUnchecked:"dsd__theme__listItemUnchecked",nested:{listitem:"dsd__theme__nestedListItem"},olDepth:["dsd__theme__ol1","dsd__theme__ol2","dsd__theme__ol3","dsd__theme__ol4","dsd__theme__ol5"],ul:"dsd__theme__ul"},listitemIndeterminate:"dsd__theme__listIndeterminate",mark:"dsd__theme__mark",markOverlap:"dsd__theme__markOverlap",paragraph:"dsd__theme__paragraph",quote:"dsd__theme__quote",rtl:"dsd__theme__rtl",table:"dsd__theme__table",tableAddColumns:"dsd__theme__tableAddColumns",tableAddRows:"dsd__theme__tableAddRows",tableCell:"dsd__theme__tableCell",tableCellActionButton:"dsd__theme__tableCellActionButton",tableCellActionButtonContainer:"dsd__theme__tableCellActionButtonContainer",tableCellEditing:"dsd__theme__tableCellEditing",tableCellHeader:"dsd__theme__tableCellHeader",tableCellPrimarySelected:"dsd__theme__tableCellPrimarySelected",tableCellResizer:"dsd__theme__tableCellResizer",tableCellSelected:"dsd__theme__tableCellSelected",tableCellSortedIndicator:"dsd__theme__tableCellSortedIndicator",tableResizeRuler:"dsd__theme__tableCellResizeRuler",tableSelected:"dsd__theme__tableSelected",tableSelection:"dsd__theme__tableSelection",tableScrollableWrapper:"dsd__theme__table-scrollable-wrapper",text:{bold:"dsd__theme__textBold",capitalize:"dsd__theme__textCapitalize",code:"dsd__theme__textCode",highlight:"dsd__theme__textHighlight",italic:"dsd__theme__textItalic",lowercase:"dsd__theme__textLowercase",strikethrough:"dsd__theme__textStrikethrough",subscript:"dsd__theme__textSubscript",superscript:"dsd__theme__textSuperscript",underline:"dsd__theme__textUnderline",underlineStrikethrough:"dsd__theme__textUnderlineStrikethrough",uppercase:"dsd__theme__textUppercase"}},P8=e=>{const n={...Rr,text:{...Rr.text}};return e==="comment"&&n.text&&(delete n.text.strikethrough,delete n.text.underlineStrikethrough),n},B8=k9.lazy(()=>Promise.resolve().then(()=>require("./layers.DjVLYoWg.js")));function Fg(e){const n=e.getAttribute("data-lexical-equation"),t=e.getAttribute("data-lexical-inline")==="true",r=e.getAttribute("data-lexical-equation-preview");let o="";if(n!=null)try{o=decodeURIComponent(escape(atob(n)))}catch{o=""}else if(r!=null)try{o=decodeURIComponent(r)}catch{o=""}return{node:za(o,t)}}class Ki extends p.DecoratorNode{constructor(t,r,o){super(o);Ne(this,"__equation");Ne(this,"__inline");this.__equation=t,this.__inline=r??!1}static getType(){return"equation"}static clone(t){return new Ki(t.__equation,t.__inline,t.__key)}static importJSON(t){return za(t.equation,t.inline).updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),equation:this.getEquation(),inline:this.__inline}}createDOM(t){const r=document.createElement(this.__inline?"span":"div");return r.className=this.__inline?"editor-equation editor-equation-inline":"editor-equation",r}exportDOM(){const t=document.createElement(this.__inline?"span":"div");t.className=this.__inline?"editor-equation editor-equation-inline":"editor-equation";let r="";try{r=btoa(unescape(encodeURIComponent(this.__equation)))}catch{r=""}return t.setAttribute("data-lexical-equation",r),t.setAttribute("data-lexical-inline",`${this.__inline}`),t.setAttribute("data-lexical-equation-preview",encodeURIComponent(this.__equation)),{element:t}}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-equation")?{conversion:Fg,priority:2}:null,span:t=>t.hasAttribute("data-lexical-equation")?{conversion:Fg,priority:1}:null}}updateDOM(t){return this.__inline!==t.__inline}getTextContent(){return this.__equation}getEquation(){return this.__equation}isInline(){return this.__inline}setEquation(t){const r=this.getWritable();r.__equation=t}decorate(){return i.jsx(B8,{equation:this.__equation,inline:this.__inline,nodeKey:this.__key})}}function za(e="",n=!1){const t=new Ki(e,n);return p.$applyNodeReplacement(t)}function Po(e){return e instanceof Ki}const _8=[["path",{d:"M12.001 5.00003V19.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.002 12.002L4.99998 12.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],F8=[["path",{d:"M14 12.6483L16.3708 10.2775C16.6636 9.98469 16.81 9.83827 16.8883 9.68032C17.0372 9.3798 17.0372 9.02696 16.8883 8.72644C16.81 8.56849 16.6636 8.42207 16.3708 8.12923C16.0779 7.83638 15.9315 7.68996 15.7736 7.61169C15.473 7.46277 15.1202 7.46277 14.8197 7.61169C14.6617 7.68996 14.5153 7.83638 14.2225 8.12923L11.8517 10.5M14 12.6483L5.77754 20.8708C5.4847 21.1636 5.33827 21.31 5.18032 21.3883C4.8798 21.5372 4.52696 21.5372 4.22644 21.3883C4.06849 21.31 3.92207 21.1636 3.62923 20.8708C3.33639 20.5779 3.18996 20.4315 3.11169 20.2736C2.96277 19.973 2.96277 19.6202 3.11169 19.3197C3.18996 19.1617 3.33639 19.0153 3.62923 18.7225L11.8517 10.5M14 12.6483L11.8517 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5 2.5L19.3895 2.79873C19.2445 3.19044 19.172 3.38629 19.0292 3.52917C18.8863 3.67204 18.6904 3.74452 18.2987 3.88946L18 4L18.2987 4.11054C18.6904 4.25548 18.8863 4.32796 19.0292 4.47083C19.172 4.61371 19.2445 4.80956 19.3895 5.20127L19.5 5.5L19.6105 5.20127C19.7555 4.80956 19.828 4.61371 19.9708 4.47083C20.1137 4.32796 20.3096 4.25548 20.7013 4.11054L21 4L20.7013 3.88946C20.3096 3.74452 20.1137 3.67204 19.9708 3.52917C19.828 3.38629 19.7555 3.19044 19.6105 2.79873L19.5 2.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 12.5L19.3895 12.7987C19.2445 13.1904 19.172 13.3863 19.0292 13.5292C18.8863 13.672 18.6904 13.7445 18.2987 13.8895L18 14L18.2987 14.1105C18.6904 14.2555 18.8863 14.328 19.0292 14.4708C19.172 14.6137 19.2445 14.8096 19.3895 15.2013L19.5 15.5L19.6105 15.2013C19.7555 14.8096 19.828 14.6137 19.9708 14.4708C20.1137 14.328 20.3096 14.2555 20.7013 14.1105L21 14L20.7013 13.8895C20.3096 13.7445 20.1137 13.672 19.9708 13.5292C19.828 13.3863 19.7555 13.1904 19.6105 12.7987L19.5 12.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10.5 2.5L10.3895 2.79873C10.2445 3.19044 10.172 3.38629 10.0292 3.52917C9.88629 3.67204 9.69044 3.74452 9.29873 3.88946L9 4L9.29873 4.11054C9.69044 4.25548 9.88629 4.32796 10.0292 4.47083C10.172 4.61371 10.2445 4.80956 10.3895 5.20127L10.5 5.5L10.6105 5.20127C10.7555 4.80956 10.828 4.61371 10.9708 4.47083C11.1137 4.32796 11.3096 4.25548 11.7013 4.11054L12 4L11.7013 3.88946C11.3096 3.74452 11.1137 3.67204 10.9708 3.52917C10.828 3.38629 10.7555 3.19044 10.6105 2.79873L10.5 2.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],W8=[["path",{d:"M17 11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.3327 4.64612C15.5394 4.49594 16.4959 3.53944 16.6461 2.33267C16.6689 2.14999 16.8159 2 17 2C17.1841 2 17.3311 2.14999 17.3539 2.33267C17.5041 3.53944 18.4606 4.49594 19.6673 4.64612C19.85 4.66885 20 4.81591 20 5C20 5.1841 19.85 5.33115 19.6673 5.35388C18.4606 5.50406 17.5041 6.46056 17.3539 7.66733C17.3311 7.85001 17.1841 8 17 8C16.8159 8 16.6689 7.85001 16.6461 7.66733C16.4959 6.46056 15.5394 5.50406 14.3327 5.35388C14.15 5.33115 14 5.1841 14 5C14 4.81591 14.15 4.66885 14.3327 4.64612Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],z8=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Jh=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],U8=[["path",{d:"M3 11C3 7.25027 3 5.3754 3.95491 4.06107C4.26331 3.6366 4.6366 3.26331 5.06107 2.95491C6.3754 2 8.25027 2 12 2C15.7497 2 17.6246 2 18.9389 2.95491C19.3634 3.26331 19.7367 3.6366 20.0451 4.06107C21 5.3754 21 7.25027 21 11V13C21 16.7497 21 18.6246 20.0451 19.9389C19.7367 20.3634 19.3634 20.7367 18.9389 21.0451C17.6246 22 15.7497 22 12 22C8.25027 22 6.3754 22 5.06107 21.0451C4.6366 20.7367 4.26331 20.3634 3.95491 19.9389C3 18.6246 3 16.7497 3 13V11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 9.5L8 9.5M13.5 14.5H10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Vc=[["path",{d:"M12 19L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 10L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 2L12 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.00036 7.5C8.00036 6.65611 7.91699 5.68211 8.75036 5.20096C9.09844 5 9.56575 5 10.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H10.5004C9.56575 10 9.09844 10 8.75036 9.79904C7.91699 9.31789 8.00036 8.34389 8.00036 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H17.5004C18.435 14 18.9023 14 19.2504 14.201C20.0837 14.6821 20.0004 15.6561 20.0004 16.5C20.0004 17.3439 20.0837 18.3179 19.2504 18.799C18.9023 19 18.435 19 17.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],XC=[["path",{d:"M8.00232 7.5C8.00232 6.65611 7.91895 5.68211 8.75232 5.20096C9.10039 5 9.5677 5 10.5023 5H11.5023C12.4369 5 12.9042 5 13.2523 5.20096C14.0857 5.68211 14.0023 6.65611 14.0023 7.5C14.0023 8.34389 14.0857 9.31789 13.2523 9.79904C12.9042 10 12.4369 10 11.5023 10H10.5023C9.5677 10 9.10039 10 8.75232 9.79904C7.91895 9.31789 8.00232 8.34389 8.00232 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00232 16.5C8.00232 15.6561 7.91895 14.6821 8.75232 14.201C9.10039 14 9.5677 14 10.5023 14H17.5023C18.4369 14 18.9042 14 19.2523 14.201C20.0857 14.6821 20.0023 15.6561 20.0023 16.5C20.0023 17.3439 20.0857 18.3179 19.2523 18.799C18.9042 19 18.4369 19 17.5023 19H10.5023C9.5677 19 9.10039 19 8.75232 18.799C7.91895 18.3179 8.00232 17.3439 8.00232 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 2V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],$C=[["path",{d:"M10.0004 7.5C10.0004 6.65611 9.91699 5.68211 10.7504 5.20096C11.0984 5 11.5657 5 12.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H12.5004C11.5657 10 11.0984 10 10.7504 9.79904C9.91699 9.31789 10.0004 8.34389 10.0004 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H13.5004C14.435 14 14.9023 14 15.2504 14.201C16.0837 14.6821 16.0004 15.6561 16.0004 16.5C16.0004 17.3439 16.0837 18.3179 15.2504 18.799C14.9023 19 14.435 19 13.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 2V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],K8=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 7.00002C15 7.00002 12.7905 9.99999 12 10C11.2094 10 9 7 9 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 3V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],H8=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 5.99998C15 5.99998 12.7905 3.00001 12 3C11.2094 2.99999 9 6 9 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 10V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Jr=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Y8=[["path",{d:"M16.4999 3.26621C17.3443 3.25421 20.1408 2.67328 20.7337 3.26621C21.3266 3.85913 20.7457 6.65559 20.7337 7.5M20.5059 3.49097L13.5021 10.4961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.26636 16.5001C3.25436 17.3445 2.67343 20.141 3.26636 20.7339C3.85928 21.3268 6.65574 20.7459 7.50015 20.7339M10.502 13.4976L3.49824 20.5027",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],eA=[["path",{d:"M8.00001 3.09779C8.00001 3.09779 4.03375 2.74194 3.38784 3.38785C2.74192 4.03375 3.09784 8 3.09784 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00001 20.9022C8.00001 20.9022 4.03375 21.2581 3.38784 20.6122C2.74192 19.9662 3.09784 16 3.09784 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.09779C16 3.09779 19.9663 2.74194 20.6122 3.38785C21.2581 4.03375 20.9022 8 20.9022 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 20.9022C16 20.9022 19.9663 21.2581 20.6122 20.6122C21.2581 19.9662 20.9022 16 20.9022 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.0107 9.99847L20.0625 3.94678",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9.99696 14.0024L3.63966 20.3807",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M9.99732 10.0024L3.84571 3.85889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M13.9795 14.0024L20.5279 20.4983",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"7"}]],tA=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Xh=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Z8=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Bs=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],$h=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],G8=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],V8=[["path",{d:"M7.5 8.5H16.5M7.5 12.5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 10.5C2 9.72921 2.01346 8.97679 2.03909 8.2503C2.12282 5.87683 2.16469 4.69009 3.13007 3.71745C4.09545 2.74481 5.3157 2.6926 7.7562 2.58819C9.09517 2.5309 10.5209 2.5 12 2.5C13.4791 2.5 14.9048 2.5309 16.2438 2.58819C18.6843 2.6926 19.9046 2.74481 20.8699 3.71745C21.8353 4.69009 21.8772 5.87683 21.9609 8.2503C21.9865 8.97679 22 9.72921 22 10.5C22 11.2708 21.9865 12.0232 21.9609 12.7497C21.8772 15.1232 21.8353 16.3099 20.8699 17.2826C19.9046 18.2552 18.6843 18.3074 16.2437 18.4118C15.5098 18.4432 14.7498 18.4667 13.9693 18.4815C13.2282 18.4955 12.8576 18.5026 12.532 18.6266C12.2064 18.7506 11.9325 18.9855 11.3845 19.4553L9.20503 21.3242C9.07273 21.4376 8.90419 21.5 8.72991 21.5C8.32679 21.5 8 21.1732 8 20.7701V18.4219C7.91842 18.4186 7.83715 18.4153 7.75619 18.4118C5.31569 18.3074 4.09545 18.2552 3.13007 17.2825C2.16469 16.3099 2.12282 15.1232 2.03909 12.7497C2.01346 12.0232 2 11.2708 2 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],e1=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],q8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Q8=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 9.5V6.5C16.5 4.01472 14.4853 2 12 2C9.51472 2 7.5 4.01472 7.5 6.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15H12M12.25 15C12.25 15.1381 12.1381 15.25 12 15.25C11.8619 15.25 11.75 15.1381 11.75 15C11.75 14.8619 11.8619 14.75 12 14.75C12.1381 14.75 12.25 14.8619 12.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],J8=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9.5V6.5C7.5 4.01472 9.51472 2 12 2C13.5602 2 14.935 2.79401 15.7422 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15H12M12.25 15C12.25 15.1381 12.1381 15.25 12 15.25C11.8619 15.25 11.75 15.1381 11.75 15C11.75 14.8619 11.8619 14.75 12 14.75C12.1381 14.75 12.25 14.8619 12.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],X8=[["path",{d:"M17.5798 9.71016C17.0765 9.57314 16.5468 9.5 16 9.5C13.4668 9.5 11.3002 11.0699 10.4202 13.2898M17.5798 9.71016C20.1271 10.4036 22 12.7331 22 15.5C22 18.8137 19.3137 21.5 16 21.5C14.4633 21.5 13.0615 20.9223 12 19.9722M17.5798 9.71016C17.851 9.02618 18 8.2805 18 7.5C18 4.18629 15.3137 1.5 12 1.5C8.68629 1.5 6 4.18629 6 7.5C6 8.2805 6.14903 9.02618 6.42018 9.71016M10.4202 13.2898C10.149 13.9738 10 14.7195 10 15.5C10 17.277 10.7725 18.8736 12 19.9722M10.4202 13.2898C8.59146 12.792 7.11029 11.451 6.42018 9.71016M6.42018 9.71016C3.87294 10.4036 2 12.7331 2 15.5C2 18.8137 4.68629 21.5 8 21.5C9.53671 21.5 10.9385 20.9223 12 19.9722",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],$8=[["path",{d:"M8 13.5H16M8 8.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],sr=[["path",{d:"M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],nl=[["path",{d:"M16.9637 8.98209C16.9613 6.03194 16.9167 4.50384 16.0578 3.45753C15.892 3.25546 15.7067 3.07019 15.5047 2.90436C14.4008 1.99854 12.7609 1.99854 9.48087 1.99854C6.20089 1.99854 4.5609 1.99854 3.45708 2.90436C3.255 3.07018 3.06971 3.25546 2.90387 3.45753C1.99799 4.56128 1.99799 6.20116 1.99799 9.48091C1.99799 12.7607 1.99799 14.4005 2.90387 15.5043C3.0697 15.7063 3.255 15.8916 3.45708 16.0574C4.50346 16.9162 6.03167 16.9608 8.98201 16.9632",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.0283 9.02455L16.994 8.98193M14.0143 22.0013L16.9799 21.9586M21.9716 14.0221L21.9436 16.9818M9.01033 14.0357L8.98236 16.9953M11.4873 9.02455C10.6545 9.17371 9.31781 9.32713 9.01033 11.0488M19.4946 21.9586C20.3296 21.8223 21.6685 21.6894 22.0025 19.9726M19.4946 9.02455C20.3274 9.17371 21.6641 9.32713 21.9716 11.0488M11.5 21.9573C10.6672 21.8086 9.33039 21.6559 9.02197 19.9344",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ek=[["path",{d:"M14.5563 13.2183C13.514 14.2606 11.8241 14.2606 10.7817 13.2183C9.73942 12.1759 9.73942 10.486 10.7817 9.44364L13.1409 7.0845C14.1357 6.08961 15.7206 6.04433 16.7692 6.94866M16.4437 3.78175C17.486 2.73942 19.1759 2.73942 20.2183 3.78175C21.2606 4.82408 21.2606 6.51403 20.2183 7.55636L17.8591 9.9155C16.8643 10.9104 15.2794 10.9557 14.2308 10.0513",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.4999 3C7.21257 3 5.56889 3 4.46256 3.9079C4.25998 4.07414 4.07423 4.25989 3.90798 4.46247C3.00007 5.56879 3.00006 7.21247 3.00002 10.4998L3 12.9999C2.99996 16.7712 2.99995 18.6568 4.17152 19.8284C5.3431 21 7.22873 21 11 21H13.4999C16.7874 21 18.4311 21 19.5375 20.092C19.74 19.9258 19.9257 19.7401 20.092 19.5376C20.9999 18.4312 20.9999 16.7875 20.9999 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],tk=[["circle",{cx:"12",cy:"18",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 15V10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 13C22 7.47715 17.5228 3 12 3C6.47715 3 2 7.47715 2 13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],sn=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.7349H15",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10.5 15.6543H13.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 5.5H21M16.0555 5.5L15.3729 4.09173C14.9194 3.15626 14.6926 2.68852 14.3015 2.39681C14.2148 2.3321 14.1229 2.27454 14.0268 2.2247C13.5937 2 13.0739 2 12.0343 2C10.9686 2 10.4358 2 9.99549 2.23412C9.89791 2.28601 9.80479 2.3459 9.7171 2.41317C9.32145 2.7167 9.10044 3.20155 8.65842 4.17126L8.05273 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],nk=[["path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 5.5C14.5 6.88071 13.3807 8 12 8C10.6193 8 9.5 6.88071 9.5 5.5C9.5 4.11929 10.6193 3 12 3C13.3807 3 14.5 4.11929 14.5 5.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 18.5C14.5 19.8807 13.3807 21 12 21C10.6193 21 9.5 19.8807 9.5 18.5C9.5 17.1193 10.6193 16 12 16C13.3807 16 14.5 17.1193 14.5 18.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],Ni=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],nA=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],rk=[["path",{d:"M16.9767 19.5C19.4017 17.8876 21 15.1305 21 12C21 7.02944 16.9706 3 12 3C11.3126 3 10.6432 3.07706 10 3.22302M16.9767 19.5V16M16.9767 19.5H20.5M7 4.51555C4.58803 6.13007 3 8.87958 3 12C3 16.9706 7.02944 21 12 21C12.6874 21 13.3568 20.9229 14 20.777M7 4.51555V8M7 4.51555H3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Wg=[["path",{d:"M2 8C2 8 6.47715 3 12 3C17.5228 3 22 8 22 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.544 13.045C21.848 13.4713 22 13.6845 22 14C22 14.3155 21.848 14.5287 21.544 14.955C20.1779 16.8706 16.6892 21 12 21C7.31078 21 3.8221 16.8706 2.45604 14.955C2.15201 14.5287 2 14.3155 2 14C2 13.6845 2.15201 13.4713 2.45604 13.045C3.8221 11.1294 7.31078 7 12 7C16.6892 7 20.1779 11.1294 21.544 13.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 14C15 12.3431 13.6569 11 12 11C10.3431 11 9 12.3431 9 14C9 15.6569 10.3431 17 12 17C13.6569 17 15 15.6569 15 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],zg=[["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],ok=[["path",{d:"M17 3C17.4644 3 17.6966 3 17.8919 3.02201C19.5145 3.20484 20.7952 4.48545 20.978 6.10812C21 6.30344 21 6.53563 21 7M17 21C17.4644 21 17.6966 21 17.8919 20.978C19.5145 20.7952 20.7952 19.5145 20.978 17.8919C21 17.6966 21 17.4644 21 17M7 3C6.53563 3 6.30344 3 6.10812 3.02201C4.48545 3.20484 3.20484 4.48545 3.02201 6.10812C3 6.30344 3 6.53563 3 7M7 21C6.53563 21 6.30344 21 6.10812 20.978C4.48545 20.7952 3.20484 19.5145 3.02201 17.8919C3 17.6966 3 17.4644 3 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],pf=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12C8 18 12 22 12 22C12 22 16 18 16 12C16 6 12 2 12 2C12 2 8 6 8 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 15H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M21 9H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],t1=[["path",{d:"M4 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 19H18.5M20 19H18.5M18.5 19V11L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4 12L14 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],n1=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.5 19H16.5V18.6907C16.5 18.2521 16.5 18.0327 16.5865 17.8385C16.673 17.6443 16.836 17.4976 17.1621 17.2041L19.7671 14.8596C20.2336 14.4397 20.5 13.8416 20.5 13.214V13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13V13.4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],r1=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C19.6046 15 20.5 14.1046 20.5 13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ta=[["path",{d:"M3.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 11V15H20.5M20.5 15V19M20.5 15V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],sk=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],rA=[["path",{d:"M3 16L7.46967 11.5303C7.80923 11.1908 8.26978 11 8.75 11C9.23022 11 9.69077 11.1908 10.0303 11.5303L14 15.5M15.5 17L14 15.5M21 16L18.5303 13.5303C18.1908 13.1908 17.7302 13 17.25 13C16.7698 13 16.3092 13.1908 15.9697 13.5303L14 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 8C15.7761 8 16 7.77614 16 7.5C16 7.22386 15.7761 7 15.5 7M15.5 8C15.2239 8 15 7.77614 15 7.5C15 7.22386 15.2239 7 15.5 7M15.5 8V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.69797 19.7472C2.5 18.3446 2.5 16.2297 2.5 12C2.5 7.77027 2.5 5.6554 3.69797 4.25276C3.86808 4.05358 4.05358 3.86808 4.25276 3.69797C5.6554 2.5 7.77027 2.5 12 2.5C16.2297 2.5 18.3446 2.5 19.7472 3.69797C19.9464 3.86808 20.1319 4.05358 20.302 4.25276C21.5 5.6554 21.5 7.77027 21.5 12C21.5 16.2297 21.5 18.3446 20.302 19.7472C20.1319 19.9464 19.9464 20.1319 19.7472 20.302C18.3446 21.5 16.2297 21.5 12 21.5C7.77027 21.5 5.6554 21.5 4.25276 20.302C4.05358 20.1319 3.86808 19.9464 3.69797 19.7472Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],oA=[["path",{d:"M2.8125 18C3.01415 18.8888 3.34564 19.5638 3.89059 20.1088C5.28184 21.5 7.52101 21.5 11.9994 21.5C16.4777 21.5 18.7169 21.5 20.1081 20.1088C21.4993 18.7175 21.4993 16.4783 21.4993 12C21.4993 7.52166 21.4993 5.28249 20.1081 3.89124C18.7169 2.5 16.4777 2.5 11.9994 2.5C7.52101 2.5 5.28184 2.5 3.89059 3.89124C3.34564 4.4362 3.01415 5.11125 2.8125 6.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.5 9L2.5 12L5.5 15M3.5 12L10.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 2.49805L15 21.498",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M21.5 8.49805H15M21.5 15.498H15",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],sA=[["path",{d:"M21.1868 18C20.9852 18.8888 20.6537 19.5638 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C20.6537 4.4362 20.9852 5.11125 21.1868 6.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18.5 9L21.5 12L18.5 15M20.5 12L13.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9 2.49805V21.498",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.49805 8.49805H8.99805M2.49805 15.498H8.99805",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],iA=[["path",{d:"M18 21.1868C18.8888 20.9852 19.5638 20.6537 20.1088 20.1088C21.5 18.7175 21.5 16.4783 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C7.52166 2.5 5.28249 2.5 3.89124 3.89124C2.5 5.28249 2.5 7.52166 2.5 12C2.5 16.4783 2.5 18.7175 3.89124 20.1088C4.4362 20.6537 5.11125 20.9852 6.00001 21.1868",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13.5V20.5M9 18.5L12 21.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 9L21.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 2.5L8.5 9M15.5 2.5L15.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],aA=[["path",{d:"M18 2.8125C18.8888 3.01415 19.5638 3.34564 20.1088 3.89059C21.5 5.28184 21.5 7.52101 21.5 11.9994C21.5 16.4777 21.5 18.7169 20.1088 20.1081C18.7175 21.4993 16.4783 21.4993 12 21.4993C7.52166 21.4993 5.28249 21.4993 3.89124 20.1081C2.5 18.7169 2.5 16.4777 2.5 11.9993C2.5 7.52101 2.5 5.28184 3.89124 3.89059C4.4362 3.34564 5.11125 3.01415 6.00001 2.8125",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 5.5L12 2.5L15 5.5M12 3.5V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 15H21.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 21.5L8.5 15M15.5 21.5L15.5 15",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],ik=[["path",{d:"M14.5 7H9.5C6.21252 7 4.56878 7 3.46243 7.90796C3.25989 8.07418 3.07418 8.25989 2.90796 8.46243C2 9.56878 2 11.2125 2 14.5C2 17.7875 2 19.4312 2.90796 20.5376C3.07418 20.7401 3.25989 20.9258 3.46243 21.092C4.56878 22 6.21252 22 9.5 22H14.5C17.7875 22 19.4312 22 20.5376 21.092C20.7401 20.9258 20.9258 20.7401 21.092 20.5376C22 19.4312 22 17.7875 22 14.5C22 11.2125 22 9.56878 21.092 8.46243C20.9258 8.25989 20.7401 8.07418 20.5376 7.90796C19.4312 7 17.7875 7 14.5 7Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7V5C12 4.44772 12.4477 4 13 4C13.5523 4 14 3.55228 14 3V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 12L8 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.5 12L12.5 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16 12L17 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7 17L17 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],ak=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 2.5V21.5",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.5 2.5V21.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],qc=[["path",{d:"M20.1069 20.1088C18.7156 21.5001 16.4765 21.5001 11.9981 21.5001C7.51976 21.5001 5.28059 21.5001 3.88935 20.1088C2.49811 18.7176 2.49811 16.4784 2.49811 12.0001C2.49811 7.52172 2.49811 5.28255 3.88935 3.89131C5.28059 2.50006 7.51976 2.50006 11.9981 2.50006C16.4764 2.50006 18.7156 2.50006 20.1069 3.8913C21.4981 5.28255 21.4981 7.52172 21.4981 12.0001C21.4981 16.4784 21.4981 18.7176 20.1069 20.1088Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.99811 21.5001L8.99811 2.50006",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21.4981 8.00006L2.49811 8.00006",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M21.4981 16.0001H2.49811",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],Qc=[["path",{d:"M8 5.5L20 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L20 12.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19.5L20 19.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4.375 5.5H4.25M4.5 5.5C4.5 5.63807 4.38807 5.75 4.25 5.75C4.11193 5.75 4 5.63807 4 5.5C4 5.36193 4.11193 5.25 4.25 5.25C4.38807 5.25 4.5 5.36193 4.5 5.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 12.5H4.25M4.5 12.5C4.5 12.6381 4.38807 12.75 4.25 12.75C4.11193 12.75 4 12.6381 4 12.5C4 12.3619 4.11193 12.25 4.25 12.25C4.38807 12.25 4.5 12.3619 4.5 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 19.5H4.25M4.5 19.5C4.5 19.6381 4.38807 19.75 4.25 19.75C4.11193 19.75 4 19.6381 4 19.5C4 19.3619 4.11193 19.25 4.25 19.25C4.38807 19.25 4.5 19.3619 4.5 19.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],o1=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 15H4.5C4.77879 15 4.91819 15 5.03411 15.0231C5.51014 15.1177 5.88225 15.4899 5.97694 15.9659C6 16.0818 6 16.2212 6 16.5C6 16.7788 6 16.9182 5.97694 17.0341C5.88225 17.5101 5.51014 17.8823 5.03411 17.9769C4.91819 18 4.77879 18 4.5 18C4.22121 18 4.08181 18 3.96589 18.0231C3.48986 18.1177 3.11775 18.4899 3.02306 18.9659C3 19.0818 3 19.2212 3 19.5V20.4C3 20.6828 3 20.8243 3.08787 20.9121C3.17574 21 3.31716 21 3.6 21H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 3H4.2C4.36569 3 4.5 3.13431 4.5 3.3V9M4.5 9H3M4.5 9H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],lk=[["path",{d:"M11 5.5L21 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.4 16.8926C6.46667 17.607 7 17.9642 7 18.5C7 19.0358 6.46667 19.393 5.4 20.1074C4.33333 20.8218 3.8 21.1789 3.4 20.9111C3 20.6432 3 19.9288 3 18.5C3 17.0712 3 16.3568 3.4 16.0889C3.8 15.8211 4.33333 16.1782 5.4 16.8926Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.4 3.89263C6.46667 4.60702 7 4.96421 7 5.5C7 6.03579 6.46667 6.39298 5.4 7.10737C4.33333 7.82176 3.8 8.17895 3.4 7.91105C3 7.64316 3 6.92877 3 5.5C3 4.07123 3 3.35684 3.4 3.08895C3.8 2.82105 4.33333 3.17824 5.4 3.89263Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 18.5L21 18.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],s1=[["path",{d:"M9.14339 10.691L9.35031 10.4841C11.329 8.50532 14.5372 8.50532 16.5159 10.4841C18.4947 12.4628 18.4947 15.671 16.5159 17.6497L13.6497 20.5159C11.671 22.4947 8.46279 22.4947 6.48405 20.5159C4.50532 18.5372 4.50532 15.329 6.48405 13.3503L6.9484 12.886",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.0516 11.114L17.5159 10.6497C19.4947 8.67095 19.4947 5.46279 17.5159 3.48405C15.5372 1.50532 12.329 1.50532 10.3503 3.48405L7.48405 6.35031C5.50532 8.32904 5.50532 11.5372 7.48405 13.5159C9.46279 15.4947 12.671 15.4947 14.6497 13.5159L14.8566 13.309",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],ji=[["path",{d:"M9.5 14.5L14.5 9.49995",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.8463 14.6095L19.4558 12C21.5147 9.94108 21.5147 6.60298 19.4558 4.54411C17.397 2.48524 14.0589 2.48524 12 4.54411L9.39045 7.15366M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.3969 2.48528 14.0588 4.54416 12L7.1537 9.39041",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],lA=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ck=[["path",{d:"M2 6L8.91302 9.91697C11.4616 11.361 12.5384 11.361 15.087 9.91697L22 6",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],uk=[["path",{d:"M8.5 14.5H15.5M8.5 9.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.1706 20.8905C18.3536 20.6125 21.6856 17.2332 21.9598 12.9909C22.0134 12.1607 22.0134 11.3009 21.9598 10.4707C21.6856 6.22838 18.3536 2.84913 14.1706 2.57107C12.7435 2.47621 11.2536 2.47641 9.8294 2.57107C5.64639 2.84913 2.31441 6.22838 2.04024 10.4707C1.98659 11.3009 1.98659 12.1607 2.04024 12.9909C2.1401 14.536 2.82343 15.9666 3.62791 17.1746C4.09501 18.0203 3.78674 19.0758 3.30021 19.9978C2.94941 20.6626 2.77401 20.995 2.91484 21.2351C3.05568 21.4752 3.37026 21.4829 3.99943 21.4982C5.24367 21.5285 6.08268 21.1757 6.74868 20.6846C7.1264 20.4061 7.31527 20.2668 7.44544 20.2508C7.5756 20.2348 7.83177 20.3403 8.34401 20.5513C8.8044 20.7409 9.33896 20.8579 9.8294 20.8905C11.2536 20.9852 12.7435 20.9854 14.1706 20.8905Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Hi=[["path",{d:"M21 12C21 11.1716 20.3284 10.5 19.5 10.5C18.6716 10.5 18 11.1716 18 12C18 12.8284 18.6716 13.5 19.5 13.5C20.3284 13.5 21 12.8284 21 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 12C6 11.1716 5.32843 10.5 4.5 10.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5C5.32843 13.5 6 12.8284 6 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],qn=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Pc=[["path",{d:"M11.9967 12.5V12M11.9967 6.5V6M11.9967 18.5V18M12.9967 12.5C12.9967 11.9477 12.549 11.5 11.9967 11.5C11.4444 11.5 10.9967 11.9477 10.9967 12.5C10.9967 13.0523 11.4444 13.5 11.9967 13.5C12.549 13.5 12.9967 13.0523 12.9967 12.5ZM12.9967 6.5C12.9967 5.94772 12.549 5.5 11.9967 5.5C11.4444 5.5 10.9967 5.94772 10.9967 6.5C10.9967 7.05228 11.4444 7.5 11.9967 7.5C12.549 7.5 12.9967 7.05228 12.9967 6.5ZM12.9967 18.5C12.9967 17.9477 12.549 17.5 11.9967 17.5C11.4444 17.5 10.9967 17.9477 10.9967 18.5C10.9967 19.0523 11.4444 19.5 11.9967 19.5C12.549 19.5 12.9967 19.0523 12.9967 18.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],i1=[["path",{d:"M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],dk=[["circle",{cx:"6.5",cy:"18.5",r:"3.5",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["circle",{cx:"18",cy:"16",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 18.5L10 7C10 6.07655 10 5.61483 10.2635 5.32794C10.5269 5.04106 11.0175 4.9992 11.9986 4.91549C16.022 4.57222 18.909 3.26005 20.3553 2.40978C20.6508 2.236 20.7986 2.14912 20.8993 2.20672C21 2.26432 21 2.4315 21 2.76587V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10 10C15.8667 10 19.7778 7.66667 21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],fk=[["path",{d:"M12.8809 7.01656L17.6538 8.28825M11.8578 10.8134L14.2442 11.4492M11.9765 17.9664L12.9311 18.2208C15.631 18.9401 16.981 19.2998 18.0445 18.6893C19.108 18.0787 19.4698 16.7363 20.1932 14.0516L21.2163 10.2548C21.9398 7.57005 22.3015 6.22768 21.6875 5.17016C21.0735 4.11264 19.7235 3.75295 17.0235 3.03358L16.0689 2.77924C13.369 2.05986 12.019 1.70018 10.9555 2.31074C9.89196 2.9213 9.53023 4.26367 8.80678 6.94841L7.78366 10.7452C7.0602 13.4299 6.69848 14.7723 7.3125 15.8298C7.92652 16.8874 9.27651 17.2471 11.9765 17.9664Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20.9462L11.0477 21.2055C8.35403 21.939 7.00722 22.3057 5.94619 21.6832C4.88517 21.0607 4.52429 19.692 3.80253 16.9546L2.78182 13.0833C2.06006 10.3459 1.69918 8.97718 2.31177 7.89892C2.84167 6.96619 4 7.00015 5.5 7.00003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],hk=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C12.8417 22 14 22.1163 14 21C14 20.391 13.6832 19.9212 13.3686 19.4544C12.9082 18.7715 12.4523 18.0953 13 17C13.6667 15.6667 14.7778 15.6667 16.4815 15.6667C17.3334 15.6667 18.3334 15.6667 19.5 15.5C21.601 15.1999 22 13.9084 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["circle",{cx:"9.5",cy:"8.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"16.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.125 15H7M7.25 15C7.25 15.1381 7.13807 15.25 7 15.25C6.86193 15.25 6.75 15.1381 6.75 15C6.75 14.8619 6.86193 14.75 7 14.75C7.13807 14.75 7.25 14.8619 7.25 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],ss=[["path",{d:"M10 4C10 2.89543 10.8954 2 12 2H13C14.1046 2 15 2.89543 15 4V6.55337C15 7.86603 15.8534 9.02626 17.1065 9.41722L17.8935 9.66278C19.1466 10.0537 20 11.214 20 12.5266V14C20 14.5523 19.5523 15 19 15H6C5.44772 15 5 14.5523 5 14V12.5266C5 11.214 5.85339 10.0537 7.10648 9.66278L7.89352 9.41722C9.14661 9.02626 10 7.86603 10 6.55337V4Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.00217 15C6.15797 16.3082 5.4957 19.5132 4 21.8679C4 21.8679 14.2924 23.0594 15.6851 17.9434V19.8712C15.6851 20.8125 15.6851 21.2831 15.9783 21.5755C16.5421 22.1377 19.1891 22.1531 19.7538 21.5521C20.0504 21.2363 20.0207 20.7819 19.9611 19.8731C19.8629 18.3746 19.5932 16.4558 18.8523 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],cA=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],pk=[["path",{d:"M11.5 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C21.947 6.29018 21.9976 8.05974 21.9999 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.5 14H15.5C14.6716 14 14 14.6716 14 15.5V18.5C14 19.3284 14.6716 20 15.5 20H20.5C21.3284 20 22 19.3284 22 18.5V15.5C22 14.6716 21.3284 14 20.5 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 9.5V12C11.0475 12.5744 10.6034 13.0238 10 13H7.5M6 8L10 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],uA=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Ug=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V16M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Bc=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],a1=[["path",{d:"M10 8C10 9.88562 10 10.8284 9.41421 11.4142C8.82843 12 7.88562 12 6 12C4.11438 12 3.17157 12 2.58579 11.4142C2 10.8284 2 9.88562 2 8C2 6.11438 2 5.17157 2.58579 4.58579C3.17157 4 4.11438 4 6 4C7.88562 4 8.82843 4 9.41421 4.58579C10 5.17157 10 6.11438 10 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 7L10 11.4821C10 15.4547 7.48429 18.8237 4 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 8C22 9.88562 22 10.8284 21.4142 11.4142C20.8284 12 19.8856 12 18 12C16.1144 12 15.1716 12 14.5858 11.4142C14 10.8284 14 9.88562 14 8C14 6.11438 14 5.17157 14.5858 4.58579C15.1716 4 16.1144 4 18 4C19.8856 4 20.8284 4 21.4142 4.58579C22 5.17157 22 6.11438 22 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 7L22 11.4821C22 15.4547 19.4843 18.8237 16 20",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],mk=[["path",{d:"M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.3313 3 18.2398 4.80989 19.796 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.9991 3V4.27816C20.9991 6.47004 20.9991 7.56599 20.2918 8.16512C19.5846 8.76425 18.5036 8.58408 16.3415 8.22373L14.9991 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ua=[["path",{d:"M22 5H13.6138C12.3798 5 11.965 5.1398 11.659 6.36394L9.33913 15.6416C8.78948 17.8398 8.51466 18.9389 7.78481 18.9976C7.05496 19.0564 6.55032 18.02 5.54104 15.9472L4.97014 14.7748C4.53541 13.882 4.31804 13.4356 3.87855 13.3147C3.21709 13.1327 2.5084 13.6703 2 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.4004 11.004C15.1804 10.92 16.1337 11.0385 16.4404 11.64C17.0523 12.84 18.0604 15.36 18.4204 16.14C18.6004 16.44 18.7804 16.8 19.5004 16.98C19.9804 17.04 20.6039 16.9955 20.6039 16.9955",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21.0005 10.998C19.5005 10.998 18.5405 12.66 17.7005 13.68C16.6205 15.24 15.4205 17.1 13.9805 16.98",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],gk=[["path",{d:"M21 6C21 7.65685 19.6569 9 18 9C16.3431 9 15 7.65685 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.3431 16.3431 15 18 15C19.6569 15 21 16.3431 21 18Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 8L3 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.0003 16L11 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 5.00011L8.5 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],Jc=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ck=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Kg=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.5 10C7.67157 10 7 9.32843 7 8.5C7 7.67157 7.67157 7 8.5 7C9.32843 7 10 7.67157 10 8.5C10 9.32843 9.32843 10 8.5 10Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.5 17C16.3284 17 17 16.3284 17 15.5C17 14.6716 16.3284 14 15.5 14C14.6716 14 14 14.6716 14 15.5C14 16.3284 14.6716 17 15.5 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M10 8.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 15.5L7 15.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],Ak=[["path",{d:"M21 6.5C21 8.15685 19.6569 9.5 18 9.5C16.3431 9.5 15 8.15685 15 6.5C15 4.84315 16.3431 3.5 18 3.5C19.6569 3.5 21 4.84315 21 6.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 17.5C21 19.1569 19.6569 20.5 18 20.5C16.3431 20.5 15 19.1569 15 17.5C15 15.8431 16.3431 14.5 18 14.5C19.6569 14.5 21 15.8431 21 17.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.72852 10.7495L15.2285 7.75M8.72852 13.25L15.2285 16.2495",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],bk=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]],yk=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],xk=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 15C8.91212 16.2144 10.3643 17 12 17C13.6357 17 15.0879 16.2144 16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.625 8.387V8.91649M8.375 8.387V8.91649M8.75 8.75C8.75 8.33579 8.58211 8 8.375 8C8.16789 8 8 8.33579 8 8.75C8 9.16421 8.16789 9.5 8.375 9.5C8.58211 9.5 8.75 9.16421 8.75 8.75ZM16 8.75C16 8.33579 15.8321 8 15.625 8C15.4179 8 15.25 8.33579 15.25 8.75C15.25 9.16421 15.4179 9.5 15.625 9.5C15.8321 9.5 16 9.16421 16 8.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Ka=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],vk=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 14H15M12 14H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],dA=[["path",{d:"M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 9L21.5 9",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.5 13L21.5 13",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.5 17L21.5 17",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M12 21.5L12 9",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],fA=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 9H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 21H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],hA=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],_c=[["path",{d:"M3 3H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],pA=[["path",{d:"M13 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 15H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],mA=[["path",{d:"M5 6C5 4.58579 5 3.87868 5.43934 3.43934C5.87868 3 6.58579 3 8 3H12.5789C15.0206 3 17 5.01472 17 7.5C17 9.98528 15.0206 12 12.5789 12H5V6Z",stroke:"currentColor",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.4286 12H13.6667C16.0599 12 18 14.0147 18 16.5C18 18.9853 16.0599 21 13.6667 21H8C6.58579 21 5.87868 21 5.43934 20.5607C5 20.1213 5 19.4142 5 18V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],wk=[["path",{d:"M11 20.001H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 4L8 20.0008M12 4C13.3874 4 15.1695 4.03054 16.5884 4.17648C17.1885 4.23819 17.4886 4.26905 17.7541 4.37789C18.3066 4.60428 18.7518 5.10062 18.9194 5.6768C19 5.95381 19 6.26991 19 6.90214M12 4C10.6126 4 8.83047 4.03054 7.41161 4.17648C6.8115 4.23819 6.51144 4.26905 6.24586 4.37789C5.69344 4.60428 5.24816 5.10062 5.08057 5.6768C5 5.95381 5 6.26991 5 6.90214",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 15L19 20M14 20L19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],kk=[["path",{d:"M4 4.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 9.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 14.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 19.5H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M13 3V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 8.5L18.4578 9.74227C17.1526 10.7937 16.5 11.3193 16.5 12C16.5 12.6807 17.1526 13.2063 18.4578 14.2577L20 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],Sk=[["path",{d:"M15 4.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9.5H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 14.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 19.5H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 3V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4 8.5L5.54218 9.74227C6.84739 10.7937 7.5 11.3193 7.5 12C7.5 12.6807 6.84739 13.2063 5.54218 14.2577L4 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],gA=[["path",{d:"M12 4H19",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 20L16 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 20H12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]],qf=[["path",{d:"M6.99892 9.5C6.75828 7.50503 7.91475 7.09687 11.9989 7M11.9989 7C16.1223 7.10058 17.3402 7.59829 16.9989 9.5M11.9989 7V17M9.99892 17H13.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.89124 3.89124C2.5 5.28249 2.5 7.52166 2.5 12C2.5 16.4783 2.5 18.7175 3.89124 20.1088C5.28249 21.5 7.52166 21.5 12 21.5C16.4783 21.5 18.7175 21.5 20.1088 20.1088C21.5 18.7175 21.5 16.4783 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C7.52166 2.5 5.28249 2.5 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],CA=[["path",{d:"M4 12H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5 7.66667C17.5 5.08934 15.0376 3 12 3C8.96243 3 6.5 5.08934 6.5 7.66667C6.5 8.15279 6.55336 8.59783 6.6668 9M6 16.3333C6 18.9107 8.68629 21 12 21C15.3137 21 18 19.6667 18 16.3333C18 13.9404 16.9693 12.5782 14.9079 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],wu=[["path",{d:"M15 21.001H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 3.00001V21.0008M12 3.00001C13.3874 3.00001 15.1695 3.03055 16.5884 3.17649C17.1885 3.2382 17.4886 3.26906 17.7541 3.37791C18.3066 3.60429 18.7518 4.10063 18.9194 4.67681C19 4.95382 19 5.26992 19 5.90215M12 3.00001C10.6126 3.00001 8.83047 3.03055 7.41161 3.17649C6.8115 3.2382 6.51144 3.26906 6.24586 3.37791C5.69344 3.60429 5.24816 4.10063 5.08057 4.67681C5 4.95382 5 5.26992 5 5.90215",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],AA=[["path",{d:"M5.5 3V11.5C5.5 15.0899 8.41015 18 12 18C15.5899 18 18.5 15.0899 18.5 11.5V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 21H21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Jn=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],l1=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Ek=[["path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C8.66873 3 5.76018 4.80989 4.20404 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 3V4.27816C3 6.47004 3 7.56599 3.70725 8.16512C4.4145 8.76425 5.49553 8.58408 7.6576 8.22373L9 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Qf=[["path",{d:"M18 19C18 19 13.5811 14 12 14C10.4188 14 6 19 6 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 5.00004C18 5.00004 13.5811 9.99999 12 10C10.4188 10 6 5 6 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Jf=[["path",{d:"M10.3483 10H13.6517C15.6822 10 16.6974 10 16.9501 9.39139C17.2028 8.78277 16.4849 8.06648 15.0491 6.63391L13.3974 4.9859L13.3974 4.9859C12.7387 4.32863 12.4093 4 12 4C11.5907 4 11.2613 4.32864 10.6026 4.9859L8.95091 6.63391L8.95091 6.63391C7.51513 8.06649 6.79724 8.78277 7.0499 9.39139C7.30256 10 8.31781 10 10.3483 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.3483 14H13.6517C15.6822 14 16.6974 14 16.9501 14.6086C17.2028 15.2172 16.4849 15.9335 15.0491 17.3661L13.3974 19.0141C12.7387 19.6714 12.4093 20 12 20C11.5907 20 11.2613 19.6714 10.6026 19.0141L8.95091 17.3661C7.51513 15.9335 6.79724 15.2172 7.0499 14.6086C7.30256 14 8.31781 14 10.3483 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Tk=[["path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11.5",cy:"9.5",r:"1.5",stroke:"currentColor",strokeWidth:"1.5",key:"2"}]],c1=[["path",{d:"M19.439 15.439C20.3636 14.5212 21.0775 13.6091 21.544 12.955C21.848 12.5287 22 12.3155 22 12C22 11.6845 21.848 11.4713 21.544 11.045C20.1779 9.12944 16.6892 5 12 5C11.0922 5 10.2294 5.15476 9.41827 5.41827M6.74742 6.74742C4.73118 8.1072 3.24215 9.94266 2.45604 11.045C2.15201 11.4713 2 11.6845 2 12C2 12.3155 2.15201 12.5287 2.45604 12.955C3.8221 14.8706 7.31078 19 12 19C13.9908 19 15.7651 18.2557 17.2526 17.2526",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.85786 10C9.32783 10.53 9 11.2623 9 12.0711C9 13.6887 10.3113 15 11.9289 15C12.7377 15 13.47 14.6722 14 14.1421",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],bA=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],yA=[["path",{d:"M14 14.8135V9.18646C14 6.04126 14 4.46866 13.0747 4.0773C12.1494 3.68593 11.0603 4.79793 8.88232 7.02192C7.75439 8.17365 7.11085 8.42869 5.50604 8.42869C4.10257 8.42869 3.40084 8.42869 2.89675 8.77262C1.85035 9.48655 2.00852 10.882 2.00852 12C2.00852 13.118 1.85035 14.5134 2.89675 15.2274C3.40084 15.5713 4.10257 15.5713 5.50604 15.5713C7.11085 15.5713 7.75439 15.8264 8.88232 16.9781C11.0603 19.2021 12.1494 20.3141 13.0747 19.9227C14 19.5313 14 17.9587 14 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 9C17.6254 9.81968 18 10.8634 18 12C18 13.1366 17.6254 14.1803 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 7C21.2508 8.36613 22 10.1057 22 12C22 13.8943 21.2508 15.6339 20 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Mk=[["path",{d:"M19 9C19.6254 9.81968 20 10.8634 20 12C20 13.1366 19.6254 14.1803 19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 14.8135V9.18646C16 6.04126 16 4.46866 15.0747 4.0773C14.1494 3.68593 13.0604 4.79793 10.8823 7.02192C9.7544 8.17365 9.11086 8.42869 7.50605 8.42869C6.10259 8.42869 5.40086 8.42869 4.89677 8.77262C3.85036 9.48655 4.00854 10.882 4.00854 12C4.00854 13.118 3.85036 14.5134 4.89677 15.2274C5.40086 15.5713 6.10259 15.5713 7.50605 15.5713C9.11086 15.5713 9.7544 15.8264 10.8823 16.9781C13.0604 19.2021 14.1494 20.3141 15.0747 19.9227C16 19.5313 16 17.9587 16 14.8135Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],xA=[["path",{d:"M22 22L2 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 10C17.6296 10.7667 18 11.7054 18 12.7195C18 13.1635 17.929 13.593 17.7963 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 8C21.2508 9.22951 22 10.7952 22 12.5C22 13.9164 21.4829 15.2367 20.5906 16.348",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 14C14 17.1452 14 19.5313 13.074 19.9227C12.1481 20.3141 11.0583 19.2021 8.8787 16.9781C7.7499 15.8264 7.106 15.5713 5.5 15.5713C4.3879 15.5713 3.02749 15.7187 2.33706 14.6643C2 14.1496 2 13.4331 2 12C2 10.5669 2 9.85038 2.33706 9.33566C3.02749 8.28131 4.3879 8.42869 5.5 8.42869C6.60725 8.42869 7.3569 8.43869 7.96 7.96M14 9.5C14 6.3548 14.026 4.46866 13.1 4.0773C12.3292 3.75147 11.5323 4.46765 10 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Lk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},$=m.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:s,showAlt:l=!1,icon:c,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...g},A)=>{const b=t!==void 0?r?Number(t)*24/Number(n):t:void 0,y=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},x={ref:A,...Lk,width:n,height:n,color:d||e,className:o,...y,...g},k=[...l&&s?s:c].sort(([,T],[,I])=>{const N=T.opacity!==void 0;return I.opacity!==void 0?1:N?-1:0}).map(([T,I])=>{const N=I.opacity!==void 0,L=N&&!h?I.opacity:void 0,M=f?{...I.stroke!==void 0?{stroke:N?f:d||e}:{fill:N?f:d||e}}:{};return m.createElement(T,{...I,...y,...M,opacity:L,key:I.key})});return m.createElement("svg",x,k)});$.displayName="HugeiconsIcon";const hs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nk=hs&&"documentMode"in document?document.documentMode:null;var SC;const jk=(SC=navigator.userAgentData)==null?void 0:SC.platform,_s=hs&&/macOS|iPod|iPhone|iPad/.test(jk);hs&&"InputEvent"in window&&!Nk&&"getTargetRanges"in new window.InputEvent("input");const Rk=hs&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ik=768,st=hs&&navigator.maxTouchPoints>0&&window.innerWidth<=Ik,ps=hs&&window.matchMedia("(hover: hover)").matches,Yn=hs&&!ps&&!st,Dk="1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4))",Jt=m.forwardRef(function({label:n,icon:t,iconColor:r,tooltipDisabled:o,flexBorder:s,className:l,...c},d){const f=["action-icon",l].filter(Boolean).join(" ");return i.jsx(v.Tooltip,{label:n,disabled:o||!ps,children:i.jsx(v.Flex,{component:"div",w:32,h:32,gap:0,justify:"center",align:"center",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",bdrs:"8px",bd:s?Dk:void 0,children:i.jsx(v.ActionIcon,{ref:d,size:28,variant:"transparent",bd:"none",className:f,...c,children:i.jsx($,{icon:t,size:16,color:r})})})})});function ms({label:e,ariaLabel:n,onClick:t}){return i.jsx(Jt,{className:"header-menu__action-icon","aria-label":n,radius:"md",variant:"default",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",size:28,label:e,onClick:t,icon:sn,iconColor:"var(--mantine-color-red-5)"})}function ku({label:e,ariaLabel:n,onClick:t}){return i.jsx(Jt,{className:"header-menu__action-icon","aria-label":n,radius:"md",bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",variant:"default",size:28,label:e,onClick:t,icon:sr,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})}const u1=m.forwardRef(function({isEmpty:n,copyToClipboard:t,onDuplicate:r,tooltipCopy:o,tooltipDuplicate:s},l){const[c,d]=m.useState(!1),f=n?s:o;function h(){if(n){r();return}t().then(A=>{A&&(d(!0),setTimeout(()=>{d(!1)},1e3))})}const g=n?sr:c?Jn:nl;return i.jsx(Jt,{ref:l,className:!n&&c?"header-menu__action-icon header-menu__copy-icon header-menu__copy-icon--success":"header-menu__action-icon header-menu__copy-icon","aria-label":f,label:f,onClick:h,icon:g,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"})});function vA(e,n){const[t,r]=m.useState(()=>{let o=!1;return e.getEditorState().read(()=>{var s;o=!!((s=n())!=null&&s.getTextContent().trim())}),o});return m.useEffect(()=>e.registerUpdateListener(({editorState:o})=>{o.read(()=>{var l;const s=!!((l=n())!=null&&l.getTextContent().trim());r(c=>c===s?c:s)})}),[e,n]),t}const Ok=80,Pk=.5,Bt=({title:e,children:n,classNames:t,onClose:r,...o})=>{const s=["mobile-drawer",t==null?void 0:t.content].filter(Boolean).join(" ").trim(),l=m.useRef(null),c=m.useRef(null),d=()=>{var A;return(A=l.current)==null?void 0:A.closest(".mobile-drawer")},f=A=>{const b=d();b&&(c.current={startY:A.touches[0].clientY,startTime:Date.now(),active:!0},b.style.transition="none")},h=A=>{const b=c.current,y=d();if(!(b!=null&&b.active)||!y)return;const x=A.touches[0].clientY-b.startY;x>0&&(y.style.transform=`translateY(${x}px)`)},g=A=>{const b=c.current,y=d();if(!(b!=null&&b.active)||!y)return;const x=A.changedTouches[0].clientY-b.startY,w=Date.now()-b.startTime,k=w>0?x/w:0;y.style.transition="",y.style.transform="",(x>Ok||k>Pk)&&(r==null||r()),c.current=null};return i.jsxs(v.Drawer,{position:"bottom",size:"auto",withCloseButton:!1,padding:0,zIndex:1001,lockScroll:!0,onClose:r,classNames:{...t,content:s||void 0},...o,children:[i.jsx(v.Box,{ref:l,className:"mobile-drawer__handle-rail",onTouchStart:f,onTouchMove:h,onTouchEnd:g,children:i.jsx(v.Box,{className:"mobile-drawer__handle"})}),i.jsxs(v.Box,{className:"mobile-drawer__body",children:[e?i.jsx(v.Text,{component:"p",className:"mobile-drawer__title",children:e}):null,i.jsx(v.Box,{className:"mobile-drawer__main",children:n})]})]})};class jo extends p.TextNode{constructor(n,t){super(n,t)}static getType(){return"extended-text"}static clone(n){return new jo(n.__text,n.__key)}static importDOM(){const n=p.TextNode.importDOM(),t=document.body.getAttribute("mode")?{code:()=>({conversion:Go(n==null?void 0:n.span),priority:1}),s:()=>({conversion:Go(n==null?void 0:n.span),priority:1})}:{code:()=>({conversion:Go(n==null?void 0:n.code),priority:1})};return{...n,...t,em:()=>({conversion:Go(n==null?void 0:n.em),priority:1}),span:()=>({conversion:Go(n==null?void 0:n.span),priority:1}),strong:()=>({conversion:Go(n==null?void 0:n.strong),priority:1}),sub:()=>({conversion:Go(n==null?void 0:n.sub),priority:1}),sup:()=>({conversion:Go(n==null?void 0:n.sup),priority:1})}}static importJSON(n){return p.TextNode.importJSON(n)}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}exportDOM(n){let{element:t}=super.exportDOM(n);return t instanceof HTMLElement&&t.setAttribute("lexical-element","true"),{element:t}}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function is(e=""){return p.$applyNodeReplacement(new jo(e))}function In(e){return e instanceof jo}function Go(e){return n=>{const t=e==null?void 0:e(n);if(!t)return null;const r=t.conversion(n);if(!r)return r;const o=n.getAttribute("lexical-element")&&!document.body.getAttribute("mode"),s=o?n.style.backgroundColor:"",l=o?n.style.color:"",c=n.style.textDecoration;return{...r,forChild:(d,f)=>{const g=((r==null?void 0:r.forChild)??(A=>A))(d,f);if(In(g)){const A=[s?`background-color: ${s}`:null,l?`color: ${l}`:null,c?`text-decoration: ${c}`:null].filter(b=>b!=null).join("; ");if(A.length)return g.setStyle(A)}return g}}}}const Xf={...Rr};function Bk(){return{node:rl()}}class Ys extends p.ElementNode{static getType(){return"callout"}static clone(n){return new Ys(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div");return typeof n.theme.callout=="string"&&ve.addClassNamesToElement(t,Xf.callout),t}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:n=>n.className!==Xf.callout?null:{conversion:Bk,priority:2}}}static importJSON(){return rl()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function rl(){return new Ys}function gs(e){return e instanceof Ys}const _k=new Set(["success","warning","alert"]),Fk=new Set(["#f3f3f4","rgba(219, 242, 233, 1)","rgba(255, 224, 223, 1)","rgba(254, 247, 230, 1)","rgba(254, 247, 230)"]);function Hg(e,n){return!(_k.has(n)||!e||Fk.has(e))}function Wk(e){const n=e.getAttribute("data-type"),t=e.style.backgroundColor;return{node:ol(t,n||"default")}}class Ro extends p.ElementNode{constructor(t,r,o){super(o);Ne(this,"__backgroundColor");Ne(this,"__calloutType");this.__backgroundColor=t===void 0?"":t,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(t){return new Ro(t.__backgroundColor,t.__calloutType,t.__key)}createDOM(t){const r=document.createElement("div");return typeof t.theme.callout=="string"&&ve.addClassNamesToElement(r,t.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),Hg(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor="",r}updateDOM(t,r){return t&&(r.setAttribute("data-type",this.__calloutType),Hg(this.__backgroundColor,this.__calloutType)?r.style.backgroundColor=this.__backgroundColor:r.style.backgroundColor=""),!1}static importDOM(){return{div:t=>t.className!==Xf.calloutWrapper?null:{conversion:Wk,priority:2}}}static importJSON(t){return ol(t.backgroundColor,t.calloutType)}setBackgroundColor(t){const r=this.getWritable();r.__backgroundColor=t}setType(t="default"){const r=this.getWritable();r.__calloutType=t}exportJSON(){return{...super.exportJSON(),type:"callout-wrapper",backgroundColor:this.__backgroundColor,calloutType:this.__calloutType,version:1}}}function ol(e="",n="default"){return new Ro(e,n)}function fo(e){return e instanceof Ro}function Zs({label:e,checked:n,onSelect:t}){return i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1,width:"100%",minWidth:0}},bg:n?"light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))":void 0,onClick:t,children:i.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[i.jsx(v.Text,{size:"sm",children:e}),n?i.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"}):null]})})}function sl({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,searchable:s,data:l,value:c,defaultValue:d,placeholder:f,onChange:h,inputClassName:g,...A}){var Q;const{t:b}=Ke.useTranslation(),{onClick:y,type:x,onCopy:w,onCut:k,onPaste:T,classNames:I,allowDeselect:N,...L}=A,S=[typeof I=="object"&&I&&"input"in I?I.input:void 0,g].filter(Boolean).join(" ")||void 0,O=S?{...typeof I=="object"&&I?I:{},input:S}:I,[R,B]=m.useState(""),_=v.useCombobox({onDropdownClose:()=>{_.resetSelectedOption(),_.focusTarget(),B("")},onDropdownOpen:()=>{_.focusSearchInput()}}),j=m.useMemo(()=>(Array.isArray(l)?l:[]).map(J=>typeof J=="string"?{value:J,label:J}:J),[l]),D=c??d??null,z=!s||!R?j:j.filter(J=>J.label.toLowerCase().includes(R.toLowerCase().trim())),H=((Q=j.find(J=>J.value===D))==null?void 0:Q.label)??"",F=(J,xe,we)=>o?o({option:{value:J,label:xe},checked:we}):i.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",align:"center",children:[i.jsx(v.Text,{size:"sm",children:xe}),we?i.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"}):null]}),{width:Z,...q}=t||{},ee=Z??250;return i.jsxs(v.Combobox,{store:_,withinPortal:!0,onOptionSubmit:J=>{const xe=j.find(we=>we.value===J)??{value:J,label:J};h==null||h(J,xe),_.closeDropdown()},width:ee,...q,children:[i.jsx(v.Combobox.Target,{children:i.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:O,pointer:!0,rightSection:r??i.jsx("span",{className:"editor-select__chevron",children:i.jsx($,{icon:Jr,size:16})}),rightSectionPointerEvents:"none",onClick:J=>{y==null||y(J),_.toggleDropdown()},...L,children:H})}),i.jsxs(v.Combobox.Dropdown,{children:[s&&i.jsx(v.Combobox.Search,{value:R,onChange:J=>B(J.currentTarget.value),placeholder:f,size:e,leftSectionWidth:40,leftSection:i.jsx($,{icon:Jc,size:16,color:"var(--mantine-color-gray-6)"}),leftSectionPointerEvents:"none",classNames:{input:"editor-select__search-input"}}),i.jsx(v.Combobox.Options,{className:["editor-select__combobox-options",s?"editor-select__combobox-options--after-search":""].filter(Boolean).join(" "),style:{maxHeight:200,overflowY:"auto"},children:z.length>0?z.map(J=>{const xe=J.value===D;return i.jsx(v.Combobox.Option,{value:J.value,className:xe?"editor-select__combobox-option--selected":void 0,children:F(J.value,J.label,xe)},J.value)}):i.jsx(v.Combobox.Empty,{children:b("editor.menu.main.code.languageSearchNoResults")})})]})]})}function zk({onCollapsibleCode:e,copyToClipboard:n,onDuplicateCodeBlock:t,hasCodeContent:r,onRemoveCodeBlock:o,showExpandButton:s,isCollapsed:l}){const{t:c}=Ke.useTranslation();return i.jsx("div",{className:"code-block-header-menu__burger",children:i.jsxs(v.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Button,{radius:"sm",h:25,px:5,size:"xs",variant:"default",children:i.jsx(Ee.IconMenu2,{size:18})})}),i.jsxs(v.Menu.Dropdown,{children:[i.jsx(v.Menu.Item,{rightSection:i.jsx($,{size:16,color:"var(--mantine-color-gray-6)",icon:r?nl:sr}),onClick:()=>{r?n():t()},children:i.jsx(v.Text,{size:"12px",children:c(r?"editor.contextMenu.copy":"editor.contextMenu.duplicate")})}),s&&i.jsx(v.Menu.Item,{onClick:e,rightSection:l?i.jsx($,{size:16,color:"var(--mantine-color-gray-6)",icon:Jf}):i.jsx($,{size:16,color:"var(--mantine-color-gray-6)",icon:Qf}),children:i.jsx(v.Text,{size:"12px",children:c(l?"editor.menu.main.code.collapsible.expand":"editor.menu.main.code.collapsible.hidden")})}),i.jsx(v.Menu.Item,{rightSection:i.jsx($,{size:16,color:"var(--mantine-color-red-outline)",icon:sn}),onClick:o,children:i.jsx(v.Text,{size:"12px",children:c("editor.actions.delete")})})]})]})})}const vi={json:"JSON",...Gt.CODE_LANGUAGE_FRIENDLY_NAME_MAP};function Uk({editor:e,headerKey:n}){const{t}=Ke.useTranslation(),{disable:r}=m.useContext(ft),[o,{open:s,close:l}]=Ft.useDisclosure(!1),[c,{open:d,close:f}]=Ft.useDisclosure(!1),[h,g]=m.useState(!1),[A,b]=m.useState(""),[y,x]=m.useState(!1),[w,k]=m.useState(""),T=m.useMemo(()=>Object.entries(vi).map(([F,Z])=>({value:F,label:Z})),[]),I=m.useMemo(()=>{const F=w.toLowerCase().trim();return F?T.filter(Z=>Z.label.toLowerCase().includes(F)):T},[T,w]),N=()=>{const F=p.$getNodeByKey(n);if(!F)return null;const Z=F.getNextSibling();return yn(Z)?Z:null},L=m.useCallback(()=>{const F=p.$getNodeByKey(n);if(!F)return null;const Z=F.getNextSibling();return yn(Z)?Z:null},[n]),M=vA(e,L);m.useEffect(()=>{e.getEditorState().read(()=>{const F=N();if(!F)return;const Z=F.getLanguage()||"plain",q=Gt.CODE_LANGUAGE_MAP[Z]||Z;b(q),g(F.__isCollapsed)})},[e,n]),m.useEffect(()=>{const F=()=>{let q=null;if(e.getEditorState().read(()=>{const Q=N();Q&&(q=Q.getKey())}),h){x(!0);return}if(!q){x(!1);return}const ee=e.getElementByKey(q);if(!ee){x(!1);return}x(ee.offsetHeight>300)};F();const Z=e.registerUpdateListener(()=>{F()});return window.addEventListener("resize",F),()=>{Z(),window.removeEventListener("resize",F)}},[e,n,h]);const S=F=>{F&&e.update(()=>{const Z=N();if(!Z)return;Z.setLanguage(F),Z.selectStart();const q=Z.getLanguage()||"plain",ee=Gt.CODE_LANGUAGE_MAP[q]||q;b(ee)})},O=()=>{e.update(()=>{const F=N();F&&(F.toggleCodeState(),g(Z=>!Z))})},R=()=>{l(),O()},B=()=>{e.update(()=>{const F=p.$getNodeByKey(n),Z=F==null?void 0:F.getParent();ls(Z)&&Z.remove()})},_=()=>{l(),B()},j=async()=>{let F="";if(e.getEditorState().read(()=>{const Z=N();Z&&(F=Z.getTextContent())}),!F.trim())return!1;try{return await navigator.clipboard.writeText(F),!0}catch(Z){return console.error("Failed to copy code block:",Z),!1}},D=()=>{e.update(()=>{const F=p.$getNodeByKey(n),Z=F==null?void 0:F.getParent();ls(Z)&&Z.insertAfter(Ir(Z))})},z=()=>{l(),D()},H=()=>{l(),j()};return st?i.jsxs(i.Fragment,{children:[i.jsxs(v.Group,{className:"code-block-header-mobile__row",wrap:"nowrap",justify:"space-between",align:"center",gap:"xs",flex:1,miw:0,children:[i.jsx(v.Box,{className:"code-block-header-mobile__select-host",children:i.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:120,classNames:{input:"editor-select__input--codeblock"},rightSection:i.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{l(),d()},children:vi[A]??A})}),!r&&i.jsx(Jt,{label:t("editor.toolbar.more"),icon:Hi,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:()=>{f(),s()}})]}),i.jsx(Bt,{opened:!r&&c,onClose:()=>{f(),k("")},title:t("editor.menu.main.code.languageDrawerTitle"),children:i.jsxs(v.Stack,{gap:"sm",p:0,children:[i.jsx(v.TextInput,{value:w,onChange:F=>k(F.currentTarget.value),placeholder:t("editor.menu.main.code.languageSearchPlaceholder"),size:"sm",classNames:{input:"code-block-language-drawer__search-input editor-select__search-input"}}),i.jsx(v.Stack,{gap:4,children:I.length===0?i.jsx(v.Text,{size:"sm",c:"dimmed",py:"xs",children:t("editor.menu.main.code.languageSearchNoResults")}):I.map(F=>{const Z=F.value===A;return i.jsx(Zs,{label:F.label,checked:Z,onSelect:()=>{S(F.value),f(),k("")}},F.value)})})]})}),i.jsx(Bt,{opened:!r&&o,onClose:l,title:t("editor.menu.main.code.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[y&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:R,leftSection:i.jsx($,{icon:h?Jf:Qf,size:16,color:"var(--mantine-color-dimmed)"}),children:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:M?H:z,leftSection:i.jsx($,{icon:M?nl:sr,size:16,color:"var(--mantine-color-dimmed)"}),children:t(M?"editor.contextMenu.copy":"editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:_,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(sl,{data:T,value:A,size:"sm",rightSectionWidth:32,searchable:!0,w:120,placeholder:t("editor.menu.main.code.languageSearchPlaceholder"),onChange:S,disabled:r,classNames:{wrapper:"editor-select__wrapper--codeblock"},inputClassName:"editor-select__input--codeblock"}),!r&&i.jsxs("div",{className:"code-block-header-menu__main",children:[i.jsxs("div",{className:"code-block-header-menu__actions",children:[!Yn&&i.jsx(v.Tooltip,{label:t("editor.menu.main.code.exitCommandText"),children:i.jsx(v.Text,{size:"xs",c:"dimmed",children:"(Shift+Enter)"})}),y&&i.jsx(Jt,{className:"header-menu__action-icon","aria-label":t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse"),label:t(h?"editor.menu.main.code.drawer.expand":"editor.menu.main.code.drawer.collapse"),onClick:O,icon:h?Jf:Qf,iconColor:"light-dark(var(--mantine-color-gray-6), var(--mantine-color-gray-4))"}),i.jsx(u1,{isEmpty:!M,copyToClipboard:j,onDuplicate:D,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),i.jsx(ms,{label:t("editor.actions.delete"),ariaLabel:"remove-code-block",onClick:B})]}),i.jsx(zk,{onCollapsibleCode:O,copyToClipboard:j,onDuplicateCodeBlock:D,hasCodeContent:M,onRemoveCodeBlock:B,showExpandButton:y,isCollapsed:h})]})]})}const mf=new Map;class Qn extends Gt.CodeNode{constructor(t=!1,r="plain",o){super(r,o);Ne(this,"__isCollapsed");this.__isCollapsed=t}static getType(){return"extend-code"}static clone(t){return new Qn(t.__isCollapsed,t.getLanguage(),t.__key)}static importJSON(t){const{isCollapsed:r=!0,language:o=null}=t,s=new Qn(r,o,t.key);return s.setLanguage(t.language||""),s}createDOM(t,r){const o=document.createElement("code");o.classList.add("dsd__theme__code"),o.setAttribute("spellcheck","false"),o.setAttribute("data-language",String(this.__language)),o.setAttribute("data-highlight-language",String(this.__language)),this.__isCollapsed?(o.classList.add(t.theme.codeCollapsed),o.setAttribute("data-collapsed",String(this.__isCollapsed))):o.setAttribute("data-collapsed","false");const s=vi[this.__language||"plain"]||this.__language;return o.setAttribute("data-name-language",String(s)),setTimeout(()=>{mf.set(this.__key,o.getAttribute("data-gutter")||"")},0),o}updateDOM(t,r,o){if(this.__isCollapsed!==t.__isCollapsed)return this.__isCollapsed?(r.classList.add(Rr.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Rr.codeCollapsed),r.setAttribute("data-collapsed","false")),!1;if(this.__language!==t.__language){const s=vi[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(s))}return setTimeout(()=>{mf.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(t,r,o)}exportDOM(t){var l;const r=document.createElement("pre");ve.addClassNamesToElement(r,t._config.theme.code,(l=t._config.theme.ltr)==null?void 0:l[0]),r.setAttribute("spellcheck","false"),r.setAttribute("data-language",String(this.__language)||"plain"),r.setAttribute("data-highlight-language",String(this.__language)||"plain");const o=vi[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(o)),r.setAttribute("data-collapsed",String(this.__isCollapsed)),this.__isCollapsed&&r.classList.add(t._config.theme.codeCollapsed);const s=mf.get(this.__key);return r.setAttribute("data-gutter",s||"1"),{element:r}}static importDOM(){return{...super.importDOM(),pre:r=>{const o=r.getAttribute("data-collapsed")==="true",s=r.getAttribute("data-language")||"";return r.hasAttribute("data-collapsed")?{conversion:()=>({node:new Qn(o,s)}),priority:1}:null}}}exportJSON(){return{...super.exportJSON(),isCollapsed:this.__isCollapsed,language:this.getLanguage(),type:"extend-code",version:1}}toggleCodeState(){const t=this.getWritable();return t.__isCollapsed=!this.__isCollapsed}insertNewAfter(t,r=!0){const{anchor:o,focus:s}=t,c=(o.isBefore(s)?o:s).getNode();if(p.$isTextNode(c)){let d=Kk(c);const f=[];for(;;)if(p.$isTabNode(d))f.push(p.$createTabNode()),d=d.getNextSibling();else if(Gt.$isCodeHighlightNode(d)){let w=0;const k=d.getTextContent(),T=d.getTextContentSize();for(;w<T&&k[w]===" ";)w++;if(w!==0&&f.push(p.$applyNodeReplacement(new Gt.CodeHighlightNode(" ".repeat(w)))),w!==T)break;d=d.getNextSibling()}else break;const h=c.splitText(o.offset)[0],g=o.offset===0?0:1,A=h.getIndexWithinParent()+g,b=c.getParentOrThrow(),y=[p.$createLineBreakNode(),...f];b.splice(A,0,y);const x=f[f.length-1];x?x.select():o.offset===0?h.selectPrevious():h.getNextSibling().selectNext(0,0)}if(yn(c)){const{offset:d}=t.anchor;c.splice(d,0,[p.$createLineBreakNode()]),c.select(d+1,d+1)}return null}}function $f(e=!1){return p.$applyNodeReplacement(new Qn(e))}function yn(e){return e instanceof Qn}function Kk(e){let n=e,t=e;for(;Gt.$isCodeHighlightNode(t)||p.$isTabNode(t);)n=t,t=t.getPreviousSibling();return n}function en(e){const n=p.$getSelection();if(p.$isRangeSelection(n)){const r=n.anchor.getNode();if(r!==null){const o=r.getParent();return e?o:r}}return null}function Hk(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=n.getNodes();let r=null,o=null;if(t.forEach((s,l)=>{l===0&&(r=s.getParent()),l===t.length-1&&(o=s.getParent())}),r&&o){const s=p.$getSelection();p.$isRangeSelection(s)&&(r.isAttached()&&o.isAttached()?In(r)&&In(o)?s.setTextNodeRange(r,0,o,o.getTextContentSize()):(s.anchor.set(r.getKey(),0,"element"),s.focus.set(o.getKey(),o.getChildrenSize(),"element")):console.error("Error: One of the nodes is not attached."))}}})}const Su=(e,n)=>{e.update(()=>{if(typeof n=="string"){const t=p.$getNodeByKey(n);t&&t.remove();return}n&&n.remove()})};function Yk(e,n){n.update(()=>{let t=p.$createRangeSelection();e.getParent()&&(t.anchor.set(e.getKey(),0,"element"),t.focus.set(e.getKey(),0,"element"),p.$setSelection(t))})}function Zk(){const e=p.$getSelection();if(p.$isRangeSelection(e)){const n=e.anchor,t=e.focus,r=t.getNode(),o=yn(r)?r.__size:r.getTextContentSize(),s=n.offset===0,l=t.offset===o;if(s&&l)return!0}return!1}function Ir(e,n){const t=p.$copyNode(e),r=[[e,t]];let o;for(;(o=r.length)>0;)for(let s=0;s<o;s++){const l=r.shift();if(l!==void 0){const[c,d]=l;if(p.$isElementNode(c)&&p.$isElementNode(d)){const f=c.getChildren();for(const h of f){if(n&&h.is(n))continue;const g=p.$copyNode(h);In(h)&&In(g)&&(g.setFormat(h.__format),g.setStyle(h.__style)),d.append(g),r.push([h,g])}}}}return t}function Gk(e,n,t=3){if(!e)return null;let r=e,o=0;for(;r&&o<t;){if(n(r))return r;if(r.__type==="root")break;r=r.getParent(),o++}return null}function Ri(e,n,t){var o;const r=t||{root:!0};if(e){let s=e.getParent();if(r[s==null?void 0:s.__type]){const l=n.getElementByKey(e.__key),c=Gk(s,gs);if(c&&(c.getFirstChild()===e.getTopLevelElement()||c.getFirstChild()===((o=e.getTopLevelElement())==null?void 0:o.getParent()))){const f=c.getParent(),h=f?n.getElementByKey(f.__key):null;if(h)return{htmlElement:h,lexicalNode:p.$getNearestNodeFromDOMNode(h)}}return{htmlElement:l,lexicalNode:e}}return Ri(s,n,r)}return{htmlElement:null,lexicalNode:null}}function Yg(e,n,t,r){var o;if(e)if((e==null?void 0:e.__type)==="root"||(e==null?void 0:e.__type)==="layout-item"||(e==null?void 0:e.__type)==="callout-wrapper"||(e==null?void 0:e.__type)==="collapsible-content"){const s=(r==null?void 0:r.clientY)||0,{left:l}=((o=n.getElementByKey(e.__key))==null?void 0:o.getBoundingClientRect())||{left:0},{paddingLeft:c}=window.getComputedStyle(r==null?void 0:r.target),d=document.elementFromPoint(l+parseFloat(c)+10,s),f=p.$getNearestNodeFromDOMNode(d||document.body);return f?Ri(f,n,t):{htmlElement:null,lexicalNode:null}}else return Ri(e,n,t);return{htmlElement:null,lexicalNode:null}}const Fs=e=>{e.update(()=>{p.$getSelection()!==null&&p.$setSelection(null)})},eh=()=>{const e=p.$getRoot(),n=e==null?void 0:e.getFirstChild();return e.getChildren().length>1?!1:n&&p.$isElementNode(n)&&n.isEmpty()&&!yn(n)},wA=e=>{e.update(()=>{const n=p.$getRoot(),t=p.$createParagraphNode(),r=p.$getSelection();p.$isRangeSelection(r)&&(r.format=0,r.setStyle("")),n.append(t).selectEnd()})},ns=p.createCommand(),th=p.createCommand(),Eu=p.createCommand(),nh=p.createCommand(),Tu=p.createCommand(),kA=p.createCommand(),SA=p.createCommand(),d1=p.createCommand(),Ha=p.createCommand(),Xc=p.createCommand(),EA=p.createCommand();function Fc(e){for(;e;){if(Ru(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const Vk=e=>{e.update(()=>{let n=p.$getSelection();if(!n)return;if(p.$isNodeSelection(n)&&(n=n.clone(),n.dirty=!0),!p.$isRangeSelection(n)||n.isCollapsed()){dn.$setBlocksType(n,()=>Za(()=>{const r=za("",!1);return setTimeout(()=>{e.dispatchCommand(Xc,r.getKey())},0),r})());return}const t=Za(()=>{const r=za("",!1);return setTimeout(()=>{e.dispatchCommand(Xc,r.getKey())},0),r})();n.insertNodes([t,p.$createParagraphNode()])})};function qk({editor:e,headerKey:n}){const{t}=Ke.useTranslation(),{disable:r}=m.useContext(ft),[o,{open:s,close:l}]=Ft.useDisclosure(!1),c=m.useCallback(()=>{const w=p.$getNodeByKey(n);if(!w)return null;const k=Fc(w);return k?k.getChildren().find(Po)??null:null},[n]),d=m.useCallback(()=>c(),[c]),f=vA(e,d),h=async()=>{let w="";e.getEditorState().read(()=>{const T=c();T&&(w=T.getEquation())});const k=w.trim();if(!k)return!1;try{return await navigator.clipboard.writeText(k),!0}catch{return!1}},g=m.useCallback(()=>{e.update(()=>{const w=p.$getNodeByKey(n);if(!w)return;const k=Fc(w);if(!k||!Ru(k))return;const T=p.$createParagraphNode();k.insertAfter(T),k.remove(),T.selectStart()})},[e,n]),A=m.useCallback(()=>{e.update(()=>{const w=p.$getNodeByKey(n);if(!w)return;const k=Fc(w);k&&k.insertAfter(Ir(k))})},[e,n]),b=m.useCallback(()=>{l(),A()},[l,A]),y=m.useCallback(()=>{l(),h()},[l]),x=m.useCallback(()=>{l(),g()},[l,g]);return st?i.jsxs(i.Fragment,{children:[i.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&i.jsx(Jt,{label:t("editor.toolbar.more"),icon:Hi,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more"),onClick:s}),i.jsx(Bt,{opened:o,onClose:l,title:t("editor.menu.other.equation.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:f?y:b,leftSection:i.jsx($,{icon:f?nl:sr,size:16,color:"var(--mantine-color-dimmed)"}),children:t(f?"editor.contextMenu.copy":"editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:x,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:t("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(v.Text,{size:"sm",fw:500,ml:10,children:t("editor.menu.other.equation.overlayTitle")}),!r&&i.jsxs(v.Group,{gap:4,children:[i.jsx(u1,{isEmpty:!f,copyToClipboard:h,onDuplicate:A,tooltipCopy:t("editor.contextMenu.copy"),tooltipDuplicate:t("editor.contextMenu.duplicate")}),i.jsx(ms,{label:t("editor.actions.delete"),ariaLabel:"remove-equation-block",onClick:g})]})]})}function Qk(){const[e,n]=m.useState(!1),t=()=>n(!0),r=()=>n(!1);return m.useEffect(()=>{const o=s=>{e&&(s.preventDefault(),s.returnValue="")};return e&&window.addEventListener("beforeunload",o),()=>{e&&window.removeEventListener("beforeunload",o)}},[e]),{startLoading:t,stopLoading:r}}function Jk({size:e=20,color:n="currentColor"}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("path",{d:"M13.5 8C13.5 7.79302 13.4883 7.58864 13.4661 7.38802C13.436 7.11376 13.634 6.86706 13.9082 6.83659C14.1827 6.80624 14.4299 7.00418 14.4603 7.27865C14.4865 7.51568 14.5 7.7564 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C5.95787 14.5 4.13548 13.5575 2.94466 12.0859C2.77102 11.8713 2.80424 11.5565 3.01888 11.3828C3.23354 11.2092 3.54832 11.2424 3.72201 11.457C4.73113 12.7041 6.27244 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C10.0422 1.5 11.8645 2.44246 13.0553 3.91406C13.229 4.12872 13.1958 4.4435 12.9811 4.61719C12.7665 4.79083 12.4517 4.75761 12.278 4.54297C11.2688 3.2959 9.72758 2.5 8 2.5C4.96244 2.5 2.5 4.96244 2.5 8C2.5 8.20695 2.51167 8.41133 2.53385 8.61198C2.56402 8.88625 2.36604 9.13295 2.0918 9.16341C1.81733 9.19376 1.57006 8.99582 1.53971 8.72135C1.51352 8.48435 1.5 8.24363 1.5 8Z",fill:n}),i.jsx("path",{d:"M12.8337 2.66667V2C12.8337 1.72386 13.0575 1.5 13.3337 1.5C13.6098 1.5 13.8337 1.72386 13.8337 2V2.66667C13.8337 3.12394 13.8348 3.51736 13.7926 3.83073C13.7486 4.15842 13.649 4.47242 13.3942 4.72721C13.1394 4.98198 12.8254 5.08157 12.4977 5.12565C12.1843 5.16778 11.7909 5.16667 11.3337 5.16667H10.667C10.3908 5.16667 10.167 4.94281 10.167 4.66667C10.167 4.39052 10.3908 4.16667 10.667 4.16667H11.3337C11.8191 4.16667 12.133 4.16585 12.3643 4.13477C12.5811 4.10562 12.6491 4.05826 12.6872 4.02018C12.7252 3.98212 12.7726 3.91414 12.8018 3.69727C12.8328 3.46602 12.8337 3.15214 12.8337 2.66667Z",fill:n}),i.jsx("path",{d:"M2.167 14V13.3334C2.167 12.8761 2.16588 12.4827 2.20801 12.1693C2.25209 11.8416 2.35168 11.5276 2.60645 11.2728C2.86124 11.0181 3.17524 10.9185 3.50293 10.8744C3.8163 10.8323 4.20973 10.8334 4.667 10.8334H5.33366C5.6098 10.8334 5.83366 11.0572 5.83366 11.3334C5.83366 11.6095 5.6098 11.8334 5.33366 11.8334H4.667C4.18152 11.8334 3.86764 11.8342 3.6364 11.8653C3.41952 11.8944 3.35154 11.9418 3.31348 11.9799C3.2754 12.018 3.22804 12.086 3.1989 12.3028C3.16781 12.534 3.167 12.8479 3.167 13.3334V14C3.167 14.2762 2.94314 14.5 2.667 14.5C2.39085 14.5 2.167 14.2762 2.167 14Z",fill:n})]})}function il({onPause:e,onResume:n,onCancel:t,onRetry:r,isPaused:o=!1,showRetry:s=!1}){const{t:l}=Ke.useTranslation();return i.jsxs("div",{className:"upload-actions",children:[(e||n)&&i.jsx(v.Tooltip,{label:l(o?"editor.video.actions.resume":"editor.video.actions.pause"),children:i.jsx(v.ActionIcon,{variant:"light",color:o?"blue":"gray",size:28,radius:"md",onClick:o?n:e,children:o?i.jsx($,{icon:uA,size:16,color:"currentColor"}):i.jsx($,{icon:cA,size:16,color:"currentColor"})})}),s&&r&&i.jsx(v.Tooltip,{label:l("editor.video.actions.retry"),children:i.jsx(v.ActionIcon,{variant:"light",color:"gray",size:28,radius:"md",onClick:r,children:i.jsx(Jk,{size:16,color:"currentColor"})})}),t&&i.jsx(v.Tooltip,{label:l("editor.video.actions.cancel"),children:i.jsx(v.ActionIcon,{variant:"light",color:"red",size:28,radius:"md",onClick:t,children:i.jsx($,{icon:i1,size:16,color:"currentColor"})})})]})}function Mu({progress:e,showSpeed:n=!0,showRemaining:t=!1,showInfo:r=!0,isPaused:o=!1}){const{t:s}=Ke.useTranslation(),l=h=>{const g=Math.max(0,h);return g===0?"0 MB":`${(g/(1024*1024)).toFixed(2)} MB`},c=h=>{const g=Math.max(0,h);return g===0?"0.00 MB/s":`${(g/(1024*1024)).toFixed(2)} MB/s`},d=h=>{if(h<=0)return"0s";if(h<60)return`${h}s`;const g=Math.floor(h/60),A=h%60;return`${g}m ${A}s`},f=Math.min(100,Math.max(0,Math.round(e.percent)));return i.jsxs("div",{className:"upload-progress-container",children:[i.jsxs("div",{className:"upload-progress-header",children:[i.jsxs(v.Text,{size:"sm",fw:400,c:"var(--mantine-color-bright)",children:[f,"%"]}),o?i.jsx(v.Text,{size:"sm",c:"var(--mantine-color-text)",children:s("editor.video.actions.pause")}):t&&e.remaining>0&&i.jsxs(v.Text,{size:"sm",c:"var(--mantine-color-dimmed)",children:[s("editor.video.upload.remaining"),i.jsxs(v.Text,{component:"span",c:"var(--mantine-color-text)",children:[" ",d(e.remaining)]})]})]}),i.jsx(v.Progress,{value:f,size:6,radius:"md"}),r&&i.jsxs("div",{className:"upload-progress-info",children:[i.jsxs(v.Text,{size:"xs",c:"dimmed",children:[s("editor.video.upload.progress"),i.jsxs(v.Text,{component:"span",size:"xs",c:"var(--mantine-color-text)",inherit:!0,children:[" ",l(e.uploaded)," / ",l(e.total)]})]}),n&&!o&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"upload-progress-dot"}),i.jsx(v.Text,{size:"xs",c:"var(--mantine-color-text)",children:c(e.speed||0)})]})]})]})}function $c({isPaused:e=!1}){const{t:n}=Ke.useTranslation();return i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},children:[i.jsxs("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e?void 0:"video-upload-spinner",children:[i.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-gray-light)",strokeWidth:2.5}),!e&&i.jsx("circle",{cx:16,cy:16,r:14,stroke:"var(--mantine-color-bright)",strokeWidth:2.5,strokeLinecap:"round",strokeDasharray:"66 22"})]}),i.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",children:n("editor.video.upload.uploading")})]})}function Xk({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return e==null?i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsx(v.Stack,{align:"center",children:i.jsx($c,{isPaused:o})})}):i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsxs(v.Stack,{gap:"lg",align:"center",children:[i.jsx($c,{isPaused:o}),i.jsx(v.Box,{w:"100%",children:i.jsx(Mu,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),i.jsx(il,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const $k=8*1024*1024,e7=3e4,Zg=3,t7=3,n7=15,r7=3e3,o7=20,Gg=.15;function gf(e,n){return new Promise(t=>{if(n!=null&&n.aborted){t();return}const r=setTimeout(t,e);n==null||n.addEventListener("abort",()=>{clearTimeout(r),t()},{once:!0})})}function TA({api:e,parentId:n,parentType:t="PAGE",onComplete:r,onError:o}){const[s,l]=m.useState({percent:0,uploaded:0,total:0,speed:0,remaining:0}),[c,d]=m.useState(!1),[f,h]=m.useState(!1),[g,A]=m.useState(null),b=m.useRef({uploadId:null,currentOffset:0,file:null,signal:null,controller:null,lastUploadAckAt:0,uploadStallReported:!1,lastTime:0,lastBytes:0,startedAt:0,isPaused:!1,isPausing:!1,currentXhr:null,chunkAbortController:null,uploadSession:0,cancelled:!1}),y=m.useRef(null),x=m.useRef([]),w=m.useRef(0),k=m.useRef(0),T=m.useRef(null),I=m.useRef(r);I.current=r;const N=m.useRef(o);N.current=o;const L=m.useRef(e);L.current=e;const M=m.useCallback((D,z,H)=>{const F=b.current;if(F.lastTime===0)return F.lastTime=H,F.lastBytes=D,x.current=[],T.current=null,w.current=0,{speed:0,remaining:0};const Z=(H-F.lastTime)/1e3,q=D-F.lastBytes;if(q<0)return F.lastBytes=D,F.lastTime=H,{speed:T.current??0,remaining:w.current};if(Z>0&&!F.isPaused){const ee=Math.max(0,q/Z);x.current.push(ee),x.current.length>o7&&x.current.shift(),T.current===null?T.current=ee:T.current=Gg*ee+(1-Gg)*T.current;const Q=T.current;F.lastTime=H,F.lastBytes=D;const J=z>D&&Q>0?Math.ceil((z-D)/Q):0,xe=w.current;let we;return xe===0||J<=xe?we=J:we=Math.min(J,xe+1),w.current=we,{speed:Q,remaining:we}}if(F.isPaused&&x.current.length>0){const ee=x.current[x.current.length-1],Q=z>D&&ee>0?Math.ceil((z-D)/ee):0;return{speed:ee,remaining:Q}}return{speed:0,remaining:0}},[]),S=m.useCallback((D,z)=>{const H=Date.now(),{speed:F,remaining:Z}=M(D,z,H),q=z>0?Math.floor(D*100/z):0,ee=Math.max(q,k.current);k.current=ee,l({percent:ee,uploaded:Math.max(D,z*ee/100),total:z,speed:F,remaining:Z})},[M]),O=m.useCallback(async(D,z,H=0)=>{var we,Te,Fe,se,X,ae,pe;const F=b.current,Z=D.size;let q=Math.max(0,H);F.lastUploadAckAt=Date.now(),F.uploadStallReported=!1,F.startedAt=Date.now(),F.lastTime=0,F.lastBytes=q,F.currentOffset=q,x.current=[],y.current&&clearInterval(y.current),y.current=setInterval(()=>{var ge;F.isPaused||F.isPausing||!((ge=F.signal)!=null&&ge.aborted)&&F.currentOffset<Z&&S(F.currentOffset,Z)},1e3);let ee=0,Q=0,J=0,xe=!1;for(S(q>0?q:0,Z);q<Z;){if(F.cancelled||(we=F.signal)!=null&&we.aborted)throw new Error("Upload cancelled");if(F.isPaused)break;if(F.isPausing){F.isPausing=!1,F.isPaused=!0,h(!0);break}const ge=Date.now();!F.uploadStallReported&&ge-F.lastUploadAckAt>e7&&(F.uploadStallReported=!0);const G=Math.min(Z-1,q+$k-1),he=q,oe=new AbortController;F.chunkAbortController=oe;const K=()=>oe.abort();(Te=F.signal)!=null&&Te.aborted||F.cancelled?oe.abort():F.signal&&F.signal.addEventListener("abort",K,{once:!0});try{const Y=await L.current.uploadChunk(z,D,q,G,Z,oe.signal,ne=>{if(F.isPaused||F.isPausing)return;const fe=he+ne;fe<=G+1&&(F.currentOffset=fe)},ne=>{F.currentXhr=ne});if(F.chunkAbortController=null,F.currentXhr=null,(Fe=F.signal)==null||Fe.removeEventListener("abort",K),Y.expectedOffset!=null){if(ee++,ee>=Zg)throw{status:409,statusText:"Conflict",data:{message:"Too many consecutive offset conflicts"}};q=Y.expectedOffset;continue}if(ee=0,Q=0,xe=!0,q=Y.nextOffset!=null?Y.nextOffset:G+1,q<Z&&await gf(500,F.signal??void 0),F.currentOffset=q,F.chunkAbortController=null,F.lastUploadAckAt=Date.now(),F.uploadStallReported=!1,!F.isPaused&&!F.isPausing&&S(q,Z),F.isPausing){F.isPausing=!1,F.isPaused=!0,h(!0);break}}catch(Y){if(F.currentXhr=null,F.chunkAbortController=null,(se=F.signal)==null||se.removeEventListener("abort",K),F.isPaused||F.isPausing){F.isPausing=!1,F.isPaused=!0;break}if((Y==null?void 0:Y.name)==="AbortError"||(X=F.signal)!=null&&X.aborted||F.cancelled)throw new Error("Upload cancelled");if((Y==null?void 0:Y.status)===409&&((ae=Y==null?void 0:Y.data)==null?void 0:ae.expectedOffset)!=null){if(ee++,ee>=Zg)throw Y;q=Y.data.expectedOffset;continue}if((!(Y!=null&&Y.status)||(Y==null?void 0:Y.status)===0||(Y==null?void 0:Y.status)===409)&&Q<t7&&J<n7){Q++,J++;const fe=r7*Q;if(await gf(fe,F.signal??void 0),F.cancelled||(pe=F.signal)!=null&&pe.aborted||F.isPaused||F.isPausing)break;try{const Ce=await L.current.fetchOffset(z);if(Ce.nextOffset!=null){const Le=Ce.nextOffset;if(Le===q&&Q>=2){await gf(5e3,F.signal??void 0);const Ue=await L.current.fetchOffset(z);if(Ue.nextOffset!=null&&Ue.nextOffset>q){q=Ue.nextOffset,F.currentOffset=q,Q=0;continue}}q=Le,F.currentOffset=Le}}catch{}continue}throw Y}}if(y.current&&(clearInterval(y.current),y.current=null),q>=Z&&!xe&&ee>0&&!F.isPaused&&!F.isPausing)throw{status:409,statusText:"Conflict",data:{message:"Upload completed via offset corrections without any successful chunk transfer"}};q>=Z?!F.isPaused&&!F.isPausing&&S(Z,Z):F.isPaused||F.isPausing?S(F.currentOffset,Z):S(Z,Z)},[S]),R=m.useCallback(async D=>{var Z,q,ee;const z=b.current;(z.isPaused||z.isPausing)&&(z.isPaused=!1,z.isPausing=!1,z.cancelled=!0,z.uploadId=null),d(!0),h(!1);const H=b.current;H.uploadSession++;const F=H.uploadSession;H.isPaused=!1,H.isPausing=!1,H.cancelled=!1,H.file=D,H.currentOffset=0,H.lastTime=0,H.lastBytes=0,H.uploadStallReported=!1,k.current=0,(Z=H.controller)==null||Z.abort(),H.controller=new AbortController,H.signal=H.controller.signal;try{if(!n)throw new Error("Upload requires parentId");let Q=H.uploadId,J=0;if(Q){try{const xe=await L.current.fetchOffset(Q);xe.nextOffset!=null?J=xe.nextOffset:(Q=null,H.uploadId=null,A(null))}catch{Q=null,H.uploadId=null,A(null)}Q||(Q=(await L.current.init(D,n,t)).id,H.uploadId=Q,A(Q))}else{const xe=await L.current.init(D,n,t);Q=xe.id,H.uploadId=Q,A(Q);try{const we=await L.current.fetchOffset(Q);we.nextOffset!=null&&we.nextOffset>0?J=we.nextOffset:xe.startOffset!=null&&(J=xe.startOffset)}catch{xe.startOffset!=null&&(J=xe.startOffset)}}if(!Q)throw new Error("Upload ID is missing after initialization");if(H.currentOffset=J,H.file=D,await O(D,Q,J),H.uploadSession!==F||H.isPaused)return;if(!Q)throw new Error("Upload ID became null after upload");d(!1),(q=I.current)==null||q.call(I,Q,D)}catch(Q){if(H.uploadSession!==F||H.isPaused||H.isPausing||(Q==null?void 0:Q.message)==="Upload cancelled")return;(ee=N.current)==null||ee.call(N,Q),d(!1)}},[n,t,O]),B=m.useCallback(()=>{const D=b.current;D.isPaused||D.isPausing||D.file&&D.currentOffset>=D.file.size||(D.isPausing=!0,h(!0),y.current&&(clearInterval(y.current),y.current=null),D.chunkAbortController?D.chunkAbortController.abort():(D.isPaused=!0,D.isPausing=!1))},[]),_=m.useCallback(async()=>{var z,H,F;const D=b.current;if(D.file&&D.uploadId&&D.currentOffset<(D.file.size||0)){D.uploadSession++;const Z=D.uploadSession;d(!0);try{let q=D.currentOffset;try{const ee=await L.current.fetchOffset(D.uploadId);ee.nextOffset!=null&&(q=ee.nextOffset,D.currentOffset=q)}catch{D.uploadSession===Z&&d(!1);return}if(x.current=[],D.lastTime=0,D.lastBytes=q,(!D.signal||D.signal.aborted)&&(D.controller=new AbortController,D.signal=D.controller.signal),h(!1),D.isPaused=!1,D.isPausing=!1,D.cancelled=!1,await O(D.file,D.uploadId,q),D.uploadSession!==Z)return;!D.isPaused&&!D.isPausing&&D.uploadId&&(d(!1),(z=I.current)==null||z.call(I,D.uploadId,D.file))}catch(q){if(D.uploadSession!==Z||D.isPaused||D.isPausing||(q==null?void 0:q.message)==="Upload cancelled")return;if(((q==null?void 0:q.status)===0||(q==null?void 0:q.status)===409)&&D.file&&!D.cancelled){D.uploadId=null,A(null),R(D.file);return}(H=N.current)==null||H.call(N,q),d(!1)}}D.file&&D.uploadId&&D.currentOffset>=(D.file.size||0)&&(d(!1),(F=I.current)==null||F.call(I,D.uploadId,D.file))},[O,R]),j=m.useCallback(()=>{const D=b.current;if(D.chunkAbortController)try{D.chunkAbortController.abort()}catch{}if(D.cancelled=!0,D.controller)try{D.controller.abort()}catch{}y.current&&(clearInterval(y.current),y.current=null),d(!1),h(!1),A(null),l({percent:0,uploaded:0,total:0,speed:0,remaining:0}),D.uploadId=null,D.currentOffset=0,D.file=null,D.lastTime=0,D.lastBytes=0,D.uploadStallReported=!1,D.isPaused=!1,D.isPausing=!1,D.currentXhr=null,D.chunkAbortController=null,x.current=[],k.current=0},[]);return{uploadProgress:s,isUploading:c,isPaused:f,uploadId:g,handleUpload:R,handlePause:B,handleResume:_,handleCancel:j}}function s7({parentId:e,parentType:n="PAGE",fileChunkUploadApi:t,onComplete:r,onError:o}){const s=m.useMemo(()=>({init:async(l,c,d)=>{var h;if(!t)throw new Error("File chunk upload API is missing from Context");const f=await t.initAttachment(l,c,d);return{id:f.attachmentId,startOffset:(h=f.status)==null?void 0:h.nextOffset}},uploadChunk:(l,c,d,f,h,g,A,b)=>t.uploadChunkWithProgress(l,c,d,f,h,g,A,b),fetchOffset:l=>t.fetchContentStatus(l)}),[t]);return TA({api:s,parentId:e,parentType:n,onComplete:r,onError:o})}function MA(e,n){const t=document.createElement("a");t.href=e,t.download=n,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),t.remove()}function i7(e,n=2){if(e===0)return"0 B";const t=1024,r=["B","KB","MB","GB","TB","PB"];if(e<t)return`${e} B`;if(e<=0)return"0 B";const o=Math.floor(Math.log(e)/Math.log(t)),s=(e/Math.pow(t,o)).toFixed(1);return`${parseFloat(s).toString()}${r[o]}`}const al=["link","upload"],LA={link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},upload:{labelKey:"editor.image.upload",fallback:"Upload"}};function eu(e){return e&&al.includes(e)?e:"upload"}function Lu(e,n){const{link:t,download:r}=e,o=t===void 0?!0:t,s=r===void 0?!0:r,l=new Set;o&&l.add("link"),s&&l.add("upload");const c=al.filter(f=>l.has(f)),d=c.filter(f=>f==="upload"?n.hasOnUpload:!0);return{showTabKeys:c,visibleInFilePicker:d}}function tu(e,n){return n.length?e&&n.includes(e)?e:n[0]:al[0]}const a7=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,...l})=>{const{imagePickerSettings:c,maxFileSize:d}=m.useContext(ft),{maxUploadFiles:f}=c,h=n&&!!t,{showTabKeys:g,visibleInFilePicker:A}=m.useMemo(()=>Lu(c,{hasOnUpload:!!l.onUpload}),[c,l.onUpload]),b=m.useMemo(()=>tu(o,A),[o,A]);m.useLayoutEffect(()=>{if(!h||!s)return;const x=tu(o,A);x!==o&&s(x)},[h,o,s,A]);const y={type:"file",showTabs:g,dropZoneProps:{multiple:!1,maxFiles:f||1,maxSize:d*1024*1024,accept:{}},inline:n,tab:b,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...l};return i.jsx(At.FilePicker,{...y})};function l7({src:e,editor:n,nodeKey:t,filePickerTab:r}){const{t:o}=Ke.useTranslation(),{disable:s,pageId:l,fileChunkUploadApi:c}=m.useContext(ft),[d,{open:f,close:h}]=Ft.useDisclosure(!1),g=m.useRef(null),{startLoading:A,stopLoading:b}=Qk(),y=m.useCallback(Q=>{n.update(()=>{const J=p.$getNodeByKey(t);if(!J)return;Io(J)&&J.setSrc(Q);const xe=J.getNextSibling();xe&&p.$setSelection(xe.selectNext())})},[n,t]),{uploadProgress:x,isUploading:w,isPaused:k,handleUpload:T,handlePause:I,handleResume:N,handleCancel:L}=s7({parentId:l,parentType:"PAGE",fileChunkUploadApi:c,onComplete:(Q,J)=>{b();const xe=`/v1/attachments/${Q}/content`,we=new URLSearchParams({contentType:J.type||"application/octet-stream",fileSize:String(J.size),originalFileName:J.name}),Te=`${xe}?${we.toString()}`;y(Te)},onError:Q=>{b(),Q&&At.showErrorNotification({message:o("editor.gallery.errorFile")})}});m.useEffect(()=>{n.update(()=>{var xe,we;const Q=p.$getNodeByKey(t),J=((we=(xe=g.current)==null?void 0:xe.firstChild)==null?void 0:we.outerHTML)||"";Q instanceof as&&e&&Q.setRef(J)})},[e,n,t]);const{fileSize:M,fileName:S,contentType:O}=m.useMemo(()=>{const Q=new URL(window.location.href+e),J=Q.searchParams.get("contentType"),xe=Q.searchParams.get("fileSize"),we=Q.searchParams.get("originalFileName");return{contentType:J,fileName:we||e,fileSize:xe}},[e]),R=m.useMemo(()=>!!(O&&O.toLowerCase().includes("pdf")||S&&/\.pdf(\?|$)/i.test(S)),[O,S]),B=m.useMemo(()=>At.getFileType(O||"application/octet-stream"),[O]),_=m.useMemo(()=>At.getFileIcons(B,!1,40),[B]),j=m.useMemo(()=>{var J,xe;const Q=(xe=(J=S.split("/").pop())==null?void 0:J.split("?")[0])==null?void 0:xe.trim();return Q&&Q.length>0?Q:"file"},[S]),D=m.useCallback(()=>{L(),b()},[L,b]),z=m.useCallback(Q=>{Q.length&&(A(),T(Q[0]))},[T,A]);m.useEffect(()=>n.registerCommand(wb,Q=>e!=="upload"||w?!1:(z(Q),!0),p.COMMAND_PRIORITY_LOW),[e,n,z,w]);const H=m.useCallback(Q=>rh(n,t,Q),[n,t]),F=Q=>{Q.stopPropagation(),Q.preventDefault(),n.update(()=>{const J=p.$getNodeByKey(t);J&&J.remove()})},Z=m.useCallback(Q=>{Q.stopPropagation(),Q.preventDefault(),MA(e,j)},[e,j]),q=m.useCallback(async Q=>{Q.stopPropagation(),Q.preventDefault();const J=window.open("","_blank");try{const xe=await fetch(e);if(!xe.ok)throw new Error("failed to fetch pdf");const we=await xe.blob(),Te=we.type==="application/pdf"?we:new Blob([we],{type:"application/pdf"}),Fe=URL.createObjectURL(Te);J?J.location.href=Fe:window.location.href=Fe,setTimeout(()=>URL.revokeObjectURL(Fe),6e4)}catch{J==null||J.close(),At.showErrorNotification({message:o("editor.gallery.errorFile")})}},[e,o]);if(!e||e==="upload")return i.jsx(v.Box,{"data-editor-file-picker-drop-root":!0,w:"100%",children:w?i.jsx(Xk,{progress:x,onPause:I,onResume:N,onCancel:D,isPaused:k}):i.jsx(a7,{inline:!0,nodeKey:t,defaultTabValue:r,onWriteTabToNode:H,uploading:!1,onUpload:z,popoverProps:{opened:!0,position:"bottom"},onChange:Q=>{let J=!1;try{const xe=new URL(Q);J=xe.protocol==="http:"||xe.protocol==="https:"}catch{J=!1}J&&y(Q)}})});const ee=i7(Number(M)||0,2);return i.jsxs(v.Flex,{ref:g,className:s?"editor-file-attached":`editor-file-attached editor-file-attached--has-actions${st?" editor-file-attached--touch":""}`,align:"center",w:"100%",miw:0,children:[i.jsxs(v.Flex,{className:"editor-file-attached__body",align:"stretch",gap:0,flex:1,miw:0,children:[i.jsx(v.UnstyledButton,{component:"button",type:"button",className:"editor-file-attached__icon-link",onClick:Z,"aria-label":o("editor.gallery.download"),children:i.jsx(v.Box,{className:"editor-file-attached__icon-slot",children:_})}),i.jsxs(v.Box,{className:"editor-file-attached__meta",children:[i.jsx(v.UnstyledButton,{component:"button",type:"button",className:"editor-file-attached__meta-link",onClick:Z,"aria-label":o("editor.gallery.download"),children:i.jsxs(v.Box,{className:"editor-file-attached__row",children:[i.jsx(v.Text,{component:"span",className:"editor-file-attached__name",size:"sm",fw:500,truncate:!0,c:"var(--mantine-color-bright)",children:S}),i.jsx(v.Box,{component:"span",className:"editor-file-attached__dot","aria-hidden":!0}),i.jsx(v.Text,{component:"span",className:"editor-file-attached__size",size:"xs",c:"var(--mantine-color-gray-text)",children:ee})]})}),s?null:i.jsx(v.Box,{className:"editor-file-attached__actions",children:st?i.jsx(Jt,{label:o("editor.toolbar.more"),icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:f}):i.jsxs(i.Fragment,{children:[R&&i.jsx(Jt,{label:o("editor.image.preview"),icon:Wg,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.image.preview"),onClick:q}),i.jsx(Jt,{label:o("editor.gallery.download"),icon:Ni,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.gallery.download"),onClick:Z}),i.jsx(Jt,{label:o("editor.actions.delete"),icon:sn,iconColor:"var(--mantine-color-red-6)","aria-label":o("editor.actions.delete"),onClick:F})]})})]})]}),st&&!s&&i.jsx(Bt,{opened:d,onClose:h,title:o("editor.file.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[R&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:Q=>{h(),q(Q)},leftSection:i.jsx($,{icon:Wg,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.image.preview")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:Q=>{h(),Z(Q)},leftSection:i.jsx($,{icon:Ni,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.gallery.download")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:Q=>{h(),F(Q)},leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]})}function c7({className:e,format:n,src:t,editor:r,nodeKey:o,create:s,filePickerTab:l}){const{disable:c}=m.useContext(ft);return c&&(!t||t==="upload")?null:i.jsx(l7,{className:e,format:n,src:t,editor:r,nodeKey:o,create:s,filePickerTab:l})}const Vg=new Map,wi="upload";function u7(e){const n=e.getAttribute("data-src"),t=parseFloat(e.getAttribute("width")??"100%"),r=parseFloat(e.getAttribute("height")??"100%"),o=e.style.justifyContent||"left",s=e.getAttribute("data-file-picker-tab");return{node:f1(n||"",t,r,o,void 0,s||void 0)}}class as extends eo.DecoratorBlockNode{constructor(t,r,o,s,l,c="left",d,f){super(r,l);Ne(this,"__src");Ne(this,"__create");Ne(this,"__width");Ne(this,"__height");Ne(this,"__alignment");Ne(this,"__filePickerTab");this.__src=t,this.__create=d||!1,this.__width=o||560,this.__height=s||315,this.__alignment=c||"left",this.__filePickerTab=f||wi}static getType(){return"file"}static clone(t){return new as(t.__src,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create,t.__filePickerTab)}static importJSON(t){const r=f1(t.src,t.width,t.height,void 0,void 0,t.filePickerTab||wi);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"file",version:1,src:this.__src,width:this.__width,height:this.__height,...this.__filePickerTab!=null&&this.__filePickerTab!==""?{filePickerTab:this.__filePickerTab}:{}}}static importDOM(){return{span:t=>t.className==="file-container"?{conversion:u7,priority:1}:null}}createDOM(){const t=document.createElement("div");return t.className="file-container",t.style.justifyContent=this.__alignment||"left",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=this.__src==="upload"?"":this.__src,r=document.createElement("div"),o=document.createElement("span"),s=Vg.get(this.__key)||"";return r.innerHTML=s,o.className="file-container",o.setAttribute("data-src",t),o.setAttribute("data-file-picker-tab",this.__filePickerTab),o.appendChild(r),{element:o}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return i.jsx(c7,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}setRef(t){Vg.set(this.__key,t)}setSrc(t){const r=this.getWritable();r.__src=t}setCreated(t){const r=this.getWritable();r.__create=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}getSrc(){return this.__src}getFilePickerTab(){return this.__filePickerTab}setFilePickerTab(t){const r=this.getWritable();r.__filePickerTab=t||wi}}function f1(e,n,t,r,o,s){return new as(e,void 0,n,t,void 0,r,o,s)}function qg(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Io(r)&&(t=r.getFilePickerTab())}),t}function rh(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Io(r)&&r.setFilePickerTab(t)})}function Io(e){return e instanceof as}function d7({editor:e,headerKey:n,fileNodeKey:t,filePickerTab:r}){var M;const{t:o}=Ke.useTranslation(),{disable:s,imagePickerSettings:l,fetchUploadMedia:c}=m.useContext(ft),[d,{open:f,close:h}]=Ft.useDisclosure(!1),[g,{open:A,close:b}]=Ft.useDisclosure(!1),{visibleInFilePicker:y}=m.useMemo(()=>Lu(l,{hasOnUpload:!!c}),[c,l]),x=m.useMemo(()=>al.filter(S=>y.includes(S)).map(S=>{const O=LA[S];return{value:S,label:o(O.labelKey,O.fallback)}}),[o,y]),[w,k]=m.useState(()=>eu(qg(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const S=qg(e,t),O=eu(S??r);k(R=>R===O?R:O)}),[e,t,r]);const T=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n),O=S==null?void 0:S.getParent();o0(O)&&O.remove()})},[e,n]),I=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n);if(!S)return;const O=S.getParent();o0(O)&&O.insertAfter(Ir(O))})},[e,n]),N=()=>{h(),I()},L=()=>{h(),T()};return s?null:i.jsx(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:st?i.jsxs(i.Fragment,{children:[i.jsx(v.Box,{className:"image-header__select-host",children:i.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:140,classNames:{input:"image-header__select-input"},rightSection:i.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{h(),A()},children:((M=x.find(S=>S.value===w))==null?void 0:M.label)??w})}),i.jsx(Jt,{label:o("editor.toolbar.more"),icon:Hi,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:()=>{b(),f()}}),i.jsx(Bt,{opened:g,onClose:b,title:o("editor.file.tabsDrawerTitle"),children:i.jsx(v.Stack,{gap:4,p:0,children:x.map(S=>i.jsx(Zs,{label:S.label,checked:S.value===w,onSelect:()=>{rh(e,t,S.value),b()}},S.value))})}),i.jsx(Bt,{opened:d,onClose:h,title:o("editor.file.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:N,leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:L,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(sl,{data:x,value:w,onChange:S=>{if(!S)return;rh(e,t,S)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(ku,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-file-block",onClick:I}),i.jsx(ms,{label:o("editor.actions.delete"),ariaLabel:"remove-file-block",onClick:T})]})]})})}const f7=m.lazy(()=>Promise.resolve().then(()=>require("./layers.Bvxpmu-2.js"))),Wc="upload",Qg="95%";function h7(e){const n=e;if(n.src.startsWith("file:///"))return null;const{alt:t,src:r,width:o,height:s}=n,l=n.getAttribute("data-id"),c=n.getAttribute("height")??"inherit",d=n.getAttribute("width")??"inherit",f=n.getAttribute("data-image-picker-tab"),h=r===window.location.href?"":r,g=n.style.justifyContent||"left";return{node:Ya({altText:t,height:c!=null&&c.includes("%")?c:s,src:h,width:d!=null&&d.includes("%")?d:o,id:String(l),alignment:g,imagePickerTab:f||Wc})}}class gr extends p.DecoratorNode{constructor(t,r,o,s,l,c,d,f,h,g,A,b,y){super(h);Ne(this,"__src");Ne(this,"__altText");Ne(this,"__width");Ne(this,"__height");Ne(this,"__maxWidth");Ne(this,"__showCaption");Ne(this,"__caption");Ne(this,"__captionsEnabled");Ne(this,"__id");Ne(this,"__create");Ne(this,"__alignment");Ne(this,"__imagePickerTab");this.__src=t,this.__altText=r,this.__maxWidth=Number(o),this.__width=s!==void 0&&s!==""?s||"inherit":Qg,this.__height=l!==void 0&&l!==""?l||"inherit":Qg,this.__showCaption=c||!1,this.__caption=d||p.createEditor(),this.__captionsEnabled=f||f===void 0,this.__id=g||"0",this.__create=A||!1,this.__alignment=b||"left",this.__imagePickerTab=y||Wc}static getType(){return"image"}static clone(t){return new gr(t.__src,t.__altText,t.__maxWidth,t.__width,t.__height,t.__showCaption,t.__caption,t.__captionsEnabled,t.__key,t.__id,t.__create,t.__alignment,t.__imagePickerTab)}static importJSON(t){const{altText:r,height:o,width:s,maxWidth:l,caption:c,src:d,showCaption:f,alignment:h,imagePickerTab:g}=t,A=Ya({altText:r,height:o,maxWidth:l,showCaption:f,src:d,width:s,create:!1,alignment:h,imagePickerTab:g||Wc}),b=A.__caption,y=b.parseEditorState(c.editorState);return y.isEmpty()||b.setEditorState(y),A}exportDOM(){const t=document.createElement("img");t.setAttribute("src",this.__src),t.setAttribute("alt",""),t.setAttribute("data-id",this.__id),(this.__width==="auto"||typeof this.__width=="number"&&this.__width%1!==0)&&t.setAttribute("data-type","icon/image"),typeof this.__width=="number"?(t.setAttribute("width","inherit"),t.setAttribute("height","inherit")):(t.setAttribute("width",this.__width.toString()),t.setAttribute("height",this.__height.toString())),t.setAttribute("data-id",this.__id),t.style.justifyContent=this.__alignment||"left",t.setAttribute("data-image-picker-tab",this.__imagePickerTab);const r=document.createElement("span");return r.className="editor-image",r.style.justifyContent=this.__alignment||"left",r.appendChild(t),{element:r}}static importDOM(){return{img:()=>({conversion:h7,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,maxWidth:this.__maxWidth,showCaption:this.__showCaption,src:this.getSrc(),type:"image",version:1,width:this.__width==="inherit"?0:this.__width,alignment:this.__alignment,...this.__imagePickerTab!=null&&this.__imagePickerTab!==""?{imagePickerTab:this.__imagePickerTab}:{}}}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){if(this.getSrc()!==""&&t.trim()==="")return;const o=this.getWritable();o.__src=t}setAlt(t){const r=this.getWritable();r.__altText=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}setShowCaption(t){const r=this.getWritable();r.__showCaption=t}getImagePickerTab(){return this.__imagePickerTab}setImagePickerTab(t){const r=this.getWritable();r.__imagePickerTab=t||Wc}createDOM(t){const r=document.createElement("span"),s=t.theme.image;return r.style.justifyContent=this.__alignment||"left",s!==void 0&&(r.className=s),gr.isPlaceholderSrc(this.__src)&&r.setAttribute("data-image-placeholder",""),r}updateDOM(t,r){const o=gr.isPlaceholderSrc(this.__src),s=gr.isPlaceholderSrc(t.__src);return o!==s&&(o?r.setAttribute("data-image-placeholder",""):r.removeAttribute("data-image-placeholder")),this.__alignment!==t.__alignment&&(r.style.display="flex",r.style.justifyContent=this.__alignment||"left"),!1}getSrc(){return this.__src}replaceBase64(t,r){const o=this.getWritable();o.__src=t,r&&(o.__id=r)}getAltText(){return this.__altText}isInline(){return!1}isKeyboardSelectable(){return!0}static isPlaceholderSrc(t){const r=t.trim();return r===""||r==="upload"}setCreated(t){const r=this.getWritable();r.__create=t}decorate(){return i.jsx(f7,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,maxWidth:this.__maxWidth,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,id:this.__id,alignment:this.__alignment||"left",create:this.__create,imagePickerTab:this.__imagePickerTab})}}function Ya({altText:e,height:n,maxWidth:t,captionsEnabled:r,src:o,width:s,showCaption:l,caption:c,key:d,id:f,create:h,alignment:g,imagePickerTab:A}){return p.$applyNodeReplacement(new gr(o,e,t,s,n,l,c,r,d,f,h,g,A))}function Pr(e){return e instanceof gr}function Jg(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Pr(r)&&(t=r.getImagePickerTab())}),t}function oh(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Pr(r)&&r.setImagePickerTab(t)})}const Ii=["gallery","upload","link","unsplash","giphy"],p7={gallery:{labelKey:"editor.image.gallery",fallback:"Gallery"},upload:{labelKey:"editor.image.upload",fallback:"Upload"},link:{labelKey:"editor.image.embed_link",fallback:"Embed link"},unsplash:{labelKey:"editor.image.search_images",fallback:"Search images"},giphy:{labelKey:"editor.image.gifs",fallback:"GIFs"}};function Xg(e){return e&&Ii.includes(e)?e:Ii[0]}function m7(e,n){const{link:t,download:r,unsplashClientId:o,giphyToken:s}=e,l=t===void 0?!0:t,c=r===void 0?!0:r,d=new Set;d.add("gallery"),c&&d.add("upload"),l&&d.add("link"),d.add("unsplash"),d.add("giphy");const f=Ii.filter(g=>d.has(g)),h=Ii.filter(g=>{if(!f.includes(g))return!1;switch(g){case"gallery":return n.hasGalleryInPicker;case"upload":return n.hasOnUpload;case"link":case"unsplash":case"giphy":return!0;default:return!1}});return{showTabKeys:f,visibleInFilePicker:h}}function $g(e,n){return n.length?e&&n.includes(e)?e:n[0]:Ii[0]}function g7({editor:e,headerKey:n,imageNodeKey:t,imagePickerTab:r}){var I;const{t:o}=Ke.useTranslation(),{disable:s}=m.useContext(ft),[l,{open:c,close:d}]=Ft.useDisclosure(!1),[f,{open:h,close:g}]=Ft.useDisclosure(!1),[A,b]=m.useState(()=>Xg(Jg(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const N=Jg(e,t),L=Xg(N??r);b(M=>M===L?M:L)}),[e,t,r]);const y=m.useMemo(()=>Ii.map(N=>{const L=p7[N];return{value:N,label:o(L.labelKey,L.fallback)}}),[o]),x=m.useCallback(()=>{e.update(()=>{const N=p.$getNodeByKey(n),L=N==null?void 0:N.getParent();r0(L)&&L.remove()})},[e,n]),w=m.useCallback(()=>{e.update(()=>{const N=p.$getNodeByKey(n);if(!N)return;const L=N.getParent();r0(L)&&L.insertAfter(Ir(L))})},[e,n]),k=()=>{d(),w()},T=()=>{d(),x()};return s?null:i.jsx(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:st?i.jsxs(i.Fragment,{children:[i.jsx(v.Box,{className:"image-header__select-host",children:i.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:140,classNames:{input:"image-header__select-input"},rightSection:i.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{d(),h()},children:((I=y.find(N=>N.value===A))==null?void 0:I.label)??A})}),i.jsx(Jt,{label:o("editor.toolbar.more"),icon:Hi,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:()=>{g(),c()}}),i.jsx(Bt,{opened:f,onClose:g,title:o("editor.image.tabsDrawerTitle"),children:i.jsx(v.Stack,{gap:4,p:0,children:y.map(N=>i.jsx(Zs,{label:N.label,checked:N.value===A,onSelect:()=>{oh(e,t,N.value),g()}},N.value))})}),i.jsx(Bt,{opened:l,onClose:d,title:o("editor.image.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:k,leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:T,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(sl,{data:y,value:A,onChange:N=>{if(!N)return;oh(e,t,N)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(ku,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-image-block",onClick:w}),i.jsx(ms,{label:o("editor.actions.delete"),ariaLabel:"remove-image-block",onClick:x})]})]})})}function NA(){const e=m.useRef(null),n=m.useCallback(()=>{var r;return(r=e.current)==null||r.abort(),e.current=new AbortController,e.current.signal},[]),t=m.useCallback(()=>{var r;(r=e.current)==null||r.abort(),e.current=null},[]);return{start:n,cancel:t}}const ki=400;let Ma=null;function h1(e){var n;Ma=((n=e.touches[0])==null?void 0:n.clientY)??null}function Di(e){var r;let n=0;if(e instanceof WheelEvent)n=e.deltaY;else if(typeof TouchEvent<"u"&&e instanceof TouchEvent){const o=((r=e.touches[0])==null?void 0:r.clientY)??null;o!==null&&Ma!==null&&(n=Ma-o),o!==null&&(Ma=o)}if(n===0)return;let t=e.target;for(;t&&t!==document.body&&t!==document.documentElement;){const o=window.getComputedStyle(t),s=o.overflowY||o.overflow;if(/(auto|scroll|overlay)/.test(s)&&t.scrollHeight>t.clientHeight){const c=n<0&&t.scrollTop>0,d=n>0&&t.scrollTop+t.clientHeight<t.scrollHeight;if(c||d)return}t=t.parentElement}e.cancelable&&e.preventDefault()}const C7=299,Cf={passive:!1,capture:!1},Si={passive:!1,capture:!0};function A7(){const e=document.createElement("div");return Object.assign(e.style,{position:"fixed",inset:"0",zIndex:String(C7),pointerEvents:"auto",background:"transparent",touchAction:"none"}),e.setAttribute("aria-hidden","true"),e.addEventListener("wheel",Di,Cf),e.addEventListener("touchstart",h1,Cf),e.addEventListener("touchmove",Di,Cf),document.body.appendChild(e),e}let jA=0,ga=null;function ll(){jA++>0||(document.addEventListener("wheel",Di,Si),document.addEventListener("touchstart",h1,Si),document.addEventListener("touchmove",Di,Si),ga=A7())}function cl(){--jA>0||(document.removeEventListener("wheel",Di,Si),document.removeEventListener("touchstart",h1,Si),document.removeEventListener("touchmove",Di,Si),ga==null||ga.remove(),ga=null,Ma=null)}function RA({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){return e==null?i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsx(v.Stack,{align:"center",children:i.jsx($c,{isPaused:o})})}):i.jsx(v.Paper,{p:"xl",withBorder:!0,radius:"md",children:i.jsxs(v.Stack,{gap:"lg",align:"center",w:"100%",children:[i.jsx($c,{isPaused:o}),i.jsx(v.Box,{w:"100%",children:i.jsx(Mu,{progress:e,showSpeed:!0,showRemaining:!0,isPaused:o})}),i.jsx(il,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})})}const zc=p.createCommand("INSERT_MUSIC_COMMAND"),IA=p.createCommand("UPLOAD_MUSIC_COMMAND");function b7(e){const n=e.getSrc();return!n||!n.trim()}function y7(e,n){m.useEffect(()=>{if(!n)return;const t=e.hasNodes([Dn,to]),r=e.registerNodeTransform(Gs,s=>{if(!t)return;const l=s.getParent(),c=b7(s);if(c&&l&&!Ar(l)){const d=s.getNextSibling(),f=ul(s);d?d.insertBefore(f):l.append(f);return}if(!c&&l&&Ar(l)){const d=l;d.insertBefore(s),d.remove()}}),o=t?e.registerNodeTransform(Dn,s=>{const l=s.getChildren(),c=l.find(Xr);if(!c||l.some(Yi))return;const f=Bo();c.insertBefore(f)}):()=>{};return ve.mergeRegister(r,o)},[e,n])}const x7=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,...l})=>{const{imagePickerSettings:c,maxFileSize:d}=m.useContext(ft),{maxUploadFiles:f}=c,h=n&&!!t,{showTabKeys:g,visibleInFilePicker:A}=m.useMemo(()=>Lu(c,{hasOnUpload:!!l.onUpload}),[c,l.onUpload]),b=m.useMemo(()=>tu(o,A),[o,A]);m.useLayoutEffect(()=>{if(!h||!s)return;const x=tu(o,A);x!==o&&s(x)},[h,o,s,A]);const y={type:"audio",showTabs:g,dropZoneProps:{multiple:!1,maxFiles:f||1,maxSize:d*1024*1024,accept:{"audio/*":[]}},inline:n,tab:b,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...l};return i.jsx(At.FilePicker,{...y})};function v7({children:e}){return Br.createPortal(i.jsx("div",{className:"FlashMessage__overlay",role:"dialog",children:i.jsx("p",{className:"FlashMessage__alert",role:"alert",children:e})}),document.body)}const DA=m.createContext(void 0),Af={},w7=1e3,k7=({children:e})=>{const[n,t]=m.useState(Af),r=m.useCallback((o,s)=>t(o?{duration:s,message:o}:Af),[]);return m.useEffect(()=>{if(n.message){const o=setTimeout(()=>t(Af),n.duration??w7);return()=>clearTimeout(o)}},[n]),i.jsxs(DA.Provider,{value:r,children:[e,n.message&&i.jsx(v7,{children:n.message})]})},S7=()=>{const e=m.useContext(DA);if(!e)throw new Error("Missing FlashMessageContext");return e};function Nu(){return S7()}function E7(e){const n=e.trim();if(!n)return n;try{return n.startsWith("http://")||n.startsWith("https://")?n:new URL(n,window.location.href).href}catch{return n}}function OA(e){const n=e.trim();if(!n)return!1;let t;try{t=n.startsWith("http://")||n.startsWith("https://")?new URL(n):new URL(n,window.location.href)}catch{return!1}if((t.searchParams.get("contentType")||"").toLowerCase().startsWith("audio/"))return!0;const o=(t.searchParams.get("originalFileName")||"").toLowerCase();if(/\.(mp3|m4a|aac|wav|ogg|oga|flac|webm)(\?|#|$)/.test(o))return!0;const s=t.pathname.toLowerCase();return!!/\.(mp3|m4a|aac|wav|ogg|oga|flac|webm)$/.test(s)}const Kr=(e,n,t)=>Math.min(t,Math.max(n,e)),gi=e=>{if(!Number.isFinite(e))return"0:00";const n=Math.max(0,Math.floor(e)),t=Math.floor(n/3600),r=Math.floor(n%3600/60),o=n%60;return t>0?`${t}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${r}:${String(o).padStart(2,"0")}`},e0=e=>{if(!e||!Number.isFinite(e.duration)||e.duration<=0)return[];const n=[],t=e.buffered;for(let r=0;r<t.length;r+=1){const o=Kr(t.start(r)/e.duration,0,1),s=Kr(t.end(r)/e.duration,0,1);n.push({start:o,end:s})}return n},T7=[.5,.7,1,1.2,1.5,1.7,2],M7=3,PA=3,L7=M7+PA;function bf(e,n=6,t=28){return Math.round(Math.abs(Math.sin(e*2.3+1.7)*Math.cos(e*.9))*(t-n)+n)}function N7(e,n){return n!=null&&n.length?n.length===e?n:Array.from({length:e},(t,r)=>{const o=n.length>1?r/Math.max(e-1,1)*(n.length-1):0,s=Math.floor(o),l=Math.min(s+1,n.length-1),c=o-s;return Math.round((n[s]??bf(s))*(1-c)+(n[l]??bf(l))*c)}):Array.from({length:e},(t,r)=>bf(r))}function t0(e,n){const[t,r]=m.useState(!1),o=m.useRef(null),s=m.useRef(null),l=()=>{o.current&&clearTimeout(o.current),s.current&&clearTimeout(s.current)};m.useEffect(()=>()=>l(),[]);const c=m.useCallback(()=>{l(),o.current=setTimeout(()=>r(!0),e)},[e]),d=m.useCallback(()=>{l(),s.current=setTimeout(()=>r(!1),n)},[n]),f=m.useCallback(()=>{s.current&&clearTimeout(s.current)},[]);return{opened:t,setOpened:r,open:c,close:d,cancelClose:f}}function j7(e,n){return n||e===0?xA:e<=.5?Mk:yA}const R7={dropdown:"music-player-bar-speed-dropdown"},I7={dropdown:"music-player-bar-ghost-dropdown"};function D7({src:e,duration:n,playbackRates:t=T7,initialVolume:r=1,waveformHeights:o,editor:s,nodeKey:l}){const{disable:c}=m.useContext(ft),{t:d}=Ke.useTranslation(),f=Nu(),h=m.useRef(null),g=m.useRef(null),A=m.useRef(null),[b,y]=m.useState(!1),[x,w]=m.useState(0),[k,T]=m.useState(()=>n??0),[I,N]=m.useState(()=>{const ce=t.indexOf(1);return ce>=0?ce:0}),[L,M]=m.useState(r),[S,O]=m.useState(!1),[R,B]=m.useState(40),[_,j]=m.useState(!1),[D,{open:z,close:H}]=Ft.useDisclosure(!1),[F,{open:Z,close:q}]=Ft.useDisclosure(!1),ee=t0(120,220),Q=t0(120,480);m.useEffect(()=>{const ce=g.current;if(!ce)return;const je=new ResizeObserver(([Ze])=>{const dt=Ze.contentRect.width;B(Math.max(4,Math.min(200,Math.floor((dt+PA)/L7))))});return je.observe(ce),()=>je.disconnect()},[]);const J=m.useMemo(()=>N7(R,o),[R,o]);m.useEffect(()=>{n!=null&&Number.isFinite(n)&&n>0&&T(n)},[n]);const{start:xe,stop:we}=Ft.useInterval(()=>{h.current&&w(h.current.currentTime)},200);m.useEffect(()=>(b?xe():we(),()=>we()),[b,xe,we]),m.useEffect(()=>{const ce=h.current;ce&&(b?ce.play().catch(()=>y(!1)):ce.pause())},[b]),m.useEffect(()=>{h.current&&(h.current.playbackRate=t[I]??1)},[I,t]),m.useEffect(()=>{h.current&&(h.current.muted=S,h.current.volume=S?0:L)},[S,L]),m.useEffect(()=>()=>{A.current!==null&&clearTimeout(A.current)},[]);const Te=m.useCallback(()=>{var je;const ce=(je=h.current)==null?void 0:je.duration;Number.isFinite(ce)&&(ce??0)>0&&T(ce??0)},[]),Fe=m.useCallback(()=>y(!1),[]),se=m.useCallback(()=>y(ce=>!ce),[]),X=m.useCallback(()=>O(ce=>!ce),[]),ae=m.useCallback(ce=>{N(ce),ee.setOpened(!1)},[ee]),pe=m.useCallback(ce=>{if(!h.current||!k)return;const je=ce.currentTarget.getBoundingClientRect(),Ze=Math.max(0,Math.min((ce.clientX-je.left)/je.width,1))*k;h.current.currentTime=Ze,w(Ze)},[k]),ge=m.useCallback(ce=>{M(ce),ce>0&&O(!1)},[]),G=m.useMemo(()=>{var ce,je,Ze,dt;try{const Dt=(je=(ce=((e.startsWith("http://")||e.startsWith("https://")?new URL(e):new URL(e,window.location.href)).searchParams.get("originalFileName")||e).split("/").pop())==null?void 0:ce.split("?")[0])==null?void 0:je.trim();return Dt&&Dt.length>0?Dt:"file"}catch{const Ct=(dt=(Ze=e.split("/").pop())==null?void 0:Ze.split("?")[0])==null?void 0:dt.trim();return Ct&&Ct.length>0?Ct:"file"}},[e]),he=m.useCallback(ce=>{ce.stopPropagation(),ce.preventDefault();const je=E7(e);je&&navigator.clipboard.writeText(je).then(()=>{A.current!==null&&clearTimeout(A.current),j(!0),A.current=setTimeout(()=>{j(!1),A.current=null},1e3)},()=>f(d("editor.embed.linkCopyFailed")))},[f,e,d]),oe=m.useCallback(ce=>{ce.stopPropagation(),ce.preventDefault(),MA(e,G)},[e,G]),K=m.useCallback(()=>{!s||!l||s.update(()=>{const ce=p.$getNodeByKey(l);if(!Xr(ce))return;const je=ce.getParent();ih(je)?je.remove():ce.remove()})},[s,l]),Y=k>0?x/k:0,ne=Math.round(Y*R),fe=t[I]??1,Ce=S?0:L,Le=Number.isFinite(k)&&k>0?Math.round(k):0,Ue=j7(L,S);return i.jsxs(i.Fragment,{children:[i.jsx("audio",{ref:h,src:e,title:"",onLoadedMetadata:Te,onTimeUpdate:()=>{var ce;return w(((ce=h.current)==null?void 0:ce.currentTime)??0)},onEnded:Fe,preload:"metadata",style:{position:"absolute",width:0,height:0,opacity:0,pointerEvents:"none"}}),i.jsxs("div",{"data-testid":"music-player-bar",className:"music-player-bar","data-popovers-open":ee.opened||Q.opened||void 0,"data-volume-open":Q.opened||void 0,"data-hover-actions-reduced":c||void 0,children:[i.jsx(v.ActionIcon,{size:28,radius:8,onClick:se,className:"music-player-bar__play-btn","aria-label":d(b?"editor.video.player.pause":"editor.video.player.play"),children:i.jsx($,{icon:b?cA:uA,size:16,color:"var(--mantine-color-white)"})}),i.jsxs(v.Text,{component:"time",fz:14,lh:"20px",c:"var(--mantine-color-text)",className:"music-player-bar__timer","aria-label":d("editor.audio.player.timeDisplay"),children:[gi(x)," / ",gi(k)]}),i.jsx("div",{ref:g,className:"music-player-bar__waveform-clip",children:i.jsx("div",{"data-testid":"music-waveform",className:"music-player-bar__waveform",onClick:pe,role:"slider","aria-label":d("editor.audio.player.waveformSeek"),"aria-valuenow":Math.round(x),"aria-valuemin":0,"aria-valuemax":Le,children:J.map((ce,je)=>i.jsx("div",{className:`music-player-bar__stem music-player-bar__stem--${je<ne?"active":"inactive"}`,style:{height:ce}},je))})}),i.jsxs("div",{className:"music-player-bar__tail-rail",children:[st?i.jsxs("div",{className:"music-player-bar__tail music-player-bar__tail--touch",children:[i.jsxs(v.UnstyledButton,{type:"button",className:"music-player-bar__speed-trigger","aria-label":d("editor.audio.player.playbackSpeed"),onClick:()=>{H(),Z()},children:[fe,"x"]}),s&&l&&i.jsx(Jt,{label:d("editor.toolbar.more"),icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":d("editor.toolbar.more"),onClick:()=>{q(),z()}})]}):i.jsxs("div",{className:"music-player-bar__tail",children:[i.jsxs(v.Popover,{opened:ee.opened,position:"top-end",offset:6,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:R7,children:[i.jsx(v.Popover.Target,{children:i.jsxs(v.UnstyledButton,{onMouseEnter:ee.open,onMouseLeave:ee.close,className:"music-player-bar__speed-trigger","aria-label":d("editor.audio.player.playbackSpeed"),"aria-haspopup":"listbox","aria-expanded":ee.opened,children:[fe,"x"]})}),i.jsx(v.Popover.Dropdown,{children:i.jsxs(v.Stack,{gap:6,onMouseEnter:ee.cancelClose,onMouseLeave:ee.close,children:[i.jsx(v.Text,{className:"music-player-bar__speed-label",children:d("editor.audio.player.playbackSpeed")}),i.jsx(v.Box,{role:"listbox","aria-label":d("editor.audio.player.playbackSpeed"),style:{display:"flex",alignItems:"center",gap:2},children:t.map((ce,je)=>{const Ze=je===I;return i.jsx(v.UnstyledButton,{role:"option","aria-selected":Ze,onClick:()=>ae(je),className:`music-player-bar__speed-chip${Ze?" music-player-bar__speed-chip--active":""}`,children:i.jsxs(v.Text,{fz:14,fw:Ze?600:400,c:Ze?"var(--mantine-primary-color-filled)":"var(--mantine-color-text)",children:[ce,"x"]})},ce)})})]})})]}),i.jsxs(v.Popover,{opened:Q.opened,onChange:Q.setOpened,position:"right",offset:4,withinPortal:!0,trapFocus:!1,returnFocus:!1,classNames:I7,children:[i.jsx(v.Popover.Target,{children:i.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:28,"aria-label":d(S||L===0?"editor.video.player.unmute":"editor.video.player.mute"),onMouseEnter:Yn?void 0:Q.open,onMouseLeave:Yn?void 0:Q.close,onClick:()=>{if(Yn&&!Q.opened){Q.setOpened(!0);return}X()},children:i.jsx($,{icon:Ue,size:20,color:"var(--mantine-color-dimmed)"})})}),i.jsx(v.Popover.Dropdown,{children:i.jsx("div",{className:"music-player-bar__volume-dropdown",onMouseEnter:Q.cancelClose,onMouseLeave:Q.close,children:Q.opened&&i.jsx(v.Slider,{min:0,max:1,step:.01,value:Ce,onChange:ge,label:null,w:57,size:2,"data-testid":"music-volume-slider",className:"music-player-bar__volume-slider","aria-label":d("editor.audio.player.volume")})})})]})]}),!st&&i.jsx("div",{className:"music-player-bar__tail-spacer","aria-hidden":!0})]}),!st&&s&&l&&i.jsxs("div",{className:"music-player-bar__hover-actions",onPointerDown:ce=>ce.stopPropagation(),children:[i.jsx(Jt,{label:d("editor.gallery.download"),icon:Ni,iconColor:"var(--mantine-color-gray-text)",onClick:oe}),i.jsx(Jt,{label:d("editor.embed.copyLink"),icon:_?Jn:ji,iconColor:"var(--mantine-color-gray-text)",className:_?"header-menu__copy-icon header-menu__copy-icon--success":"header-menu__copy-icon",onClick:he}),!c&&i.jsx(ms,{label:d("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:K})]})]}),st&&i.jsx(Bt,{opened:F,onClose:q,title:d("editor.audio.player.playbackSpeed"),children:i.jsx(v.Stack,{gap:4,p:0,children:t.map((ce,je)=>i.jsx(Zs,{label:`${ce}x`,checked:je===I,onSelect:()=>{N(je),q()}},ce))})}),st&&s&&l&&i.jsx(Bt,{opened:D,onClose:H,title:d("editor.audio.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:ce=>{H(),oe(ce)},leftSection:i.jsx($,{icon:Ni,size:16,color:"var(--mantine-color-dimmed)"}),children:d("editor.gallery.download")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:ce=>{H(),he(ce)},leftSection:i.jsx($,{icon:_?Jn:ji,size:16,color:"var(--mantine-color-dimmed)"}),children:d("editor.embed.copyLink")}),!c&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{H(),K()},leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:d("editor.actions.delete")})]})})]})}function O7({className:e,format:n,src:t,editor:r,nodeKey:o,filePickerTab:s,create:l}){const[c,d]=m.useState(!1),{start:f}=NA(),{fetchUploadMedia:h,disable:g}=m.useContext(ft),A=m.useCallback(w=>sh(r,o,w),[r,o]),b=m.useCallback(w=>{r.update(()=>{const k=p.$getNodeByKey(o);if(!k)return;Xr(k)&&k.setSrc(w);const T=k.getNextSibling();T&&p.$setSelection(T.selectNext())})},[r,o]),y=m.useCallback(w=>{if(!w[0]||!h)return;d(!0);const k=f();h(w[0],(T,I,N)=>{const{originalFileName:L}=N,M=new URLSearchParams({originalFileName:L}),S=`${T}?${M.toString()}`;b(S),d(!1)},()=>{d(!1)},k)},[b,h,f]),x=c;return m.useEffect(()=>r.registerCommand(IA,w=>!w.length||x||t.trim()||!h?!1:(y(w),!0),p.COMMAND_PRIORITY_LOW),[r,h,y,x,t]),g&&!t.trim()?null:t.trim()?i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:i.jsx(v.Box,{w:"100%",children:i.jsx(D7,{src:t,editor:r,nodeKey:o})})}):i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:o,children:i.jsx(v.Box,{"data-editor-music-picker-drop-root":!0,w:"100%",style:{pointerEvents:x?"none":void 0},children:x?i.jsx(RA,{}):i.jsx(x7,{inline:!0,nodeKey:o,defaultTabValue:s,onWriteTabToNode:A,uploading:c,onUpload:w=>{!w.length||!h||y(w)},popoverProps:{opened:!0,position:"bottom",zIndex:ki},onChange:w=>{b(w)}})})})}function P7(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-file-picker-tab");return{node:p1(n||"",void 0,t||void 0)}}class Gs extends eo.DecoratorBlockNode{constructor(t,r,o,s,l){super(r,o);Ne(this,"__src");Ne(this,"__create");Ne(this,"__filePickerTab");this.__src=t,this.__create=s||!1,this.__filePickerTab=l||wi}static getType(){return"music"}static clone(t){return new Gs(t.__src,t.__format,t.__key,t.__create,t.__filePickerTab)}static importJSON(t){const r=p1(t.src,t.create,t.filePickerTab||wi);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"music",version:1,src:this.__src,...this.__create?{create:this.__create}:{},...this.__filePickerTab!=null&&this.__filePickerTab!==""?{filePickerTab:this.__filePickerTab}:{}}}static importDOM(){return{span:t=>t.classList.contains("audio-container")?{conversion:P7,priority:1}:null}}createDOM(){const t=document.createElement("div");return t.className="audio-container",t}updateDOM(t,r){return!1}exportDOM(){const t=document.createElement("span"),r=document.createElement("audio");return t.className="audio-container",r.setAttribute("controls","true"),r.setAttribute("src",this.__src),t.setAttribute("data-src",this.__src),t.setAttribute("data-file-picker-tab",this.__filePickerTab),t.appendChild(r),{element:t}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return i.jsx(O7,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,src:this.__src,create:this.__create,filePickerTab:this.__filePickerTab})}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();r.__src=t}setCreated(t){const r=this.getWritable();r.__create=t}getFilePickerTab(){return this.__filePickerTab}setFilePickerTab(t){const r=this.getWritable();r.__filePickerTab=t||wi}}function p1(e,n,t){return new Gs(e,void 0,void 0,n,t)}function Xr(e){return e instanceof Gs}function n0(e,n){let t;return e.getEditorState().read(()=>{const r=p.$getNodeByKey(n);Xr(r)&&(t=r.getFilePickerTab())}),t}function sh(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Xr(r)&&r.setFilePickerTab(t)})}function B7({editor:e,headerKey:n,musicNodeKey:t,filePickerTab:r}){var M;const{t:o}=Ke.useTranslation(),{disable:s,imagePickerSettings:l,fetchUploadMedia:c}=m.useContext(ft),[d,{open:f,close:h}]=Ft.useDisclosure(!1),[g,{open:A,close:b}]=Ft.useDisclosure(!1),{visibleInFilePicker:y}=m.useMemo(()=>Lu(l,{hasOnUpload:!!c}),[c,l]),x=m.useMemo(()=>al.filter(S=>y.includes(S)).map(S=>{const O=LA[S];return{value:S,label:o(O.labelKey,O.fallback)}}),[o,y]),[w,k]=m.useState(()=>eu(n0(e,t)??r));m.useEffect(()=>e.registerUpdateListener(()=>{const S=n0(e,t),O=eu(S??r);k(R=>R===O?R:O)}),[e,t,r]);const T=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n),O=S==null?void 0:S.getParent();ih(O)&&O.remove()})},[e,n]),I=m.useCallback(()=>{e.update(()=>{const S=p.$getNodeByKey(n);if(!S)return;const O=S.getParent();ih(O)&&O.insertAfter(Ir(O))})},[e,n]),N=()=>{h(),I()},L=()=>{h(),T()};return s?null:i.jsx(v.Flex,{className:"image-header",align:"center",justify:"space-between",w:"100%",children:st?i.jsxs(i.Fragment,{children:[i.jsx(v.Box,{className:"image-header__select-host",children:i.jsx(v.InputBase,{component:"button",type:"button",size:"sm",w:140,classNames:{input:"image-header__select-input"},rightSection:i.jsx($,{icon:Jr,size:16}),rightSectionPointerEvents:"none",onClick:()=>{h(),A()},children:((M=x.find(S=>S.value===w))==null?void 0:M.label)??w})}),i.jsx(Jt,{label:o("editor.toolbar.more"),icon:Hi,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more"),onClick:()=>{b(),f()}}),i.jsx(Bt,{opened:g,onClose:b,title:o("editor.image.tabsDrawerTitle"),children:i.jsx(v.Stack,{gap:4,p:0,children:x.map(S=>i.jsx(Zs,{label:S.label,checked:S.value===w,onSelect:()=>{sh(e,t,S.value),b()}},S.value))})}),i.jsx(Bt,{opened:d,onClose:h,title:o("editor.image.mobileActions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:N,leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-dimmed)"}),children:o("editor.contextMenu.duplicate")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:L,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:o("editor.actions.delete")})]})})]}):i.jsxs(i.Fragment,{children:[i.jsx(sl,{data:x,value:w,onChange:S=>{if(!S)return;sh(e,t,S)},size:"sm",rightSectionWidth:32,w:140,classNames:{wrapper:"image-header__select-wrapper"},inputClassName:"image-header__select-input"}),i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(ku,{label:o("editor.contextMenu.duplicate"),ariaLabel:"duplicate-music-block",onClick:I}),i.jsx(ms,{label:o("editor.actions.delete"),ariaLabel:"remove-music-block",onClick:T})]})]})})}function _7(){return{node:Bo()}}class to extends eo.DecoratorBlockNode{static getType(){return"overlay-header"}static clone(n){return new to(n.__format,n.__key)}constructor(n,t){super(n,t)}static importJSON(){return Bo()}exportJSON(){return{...super.exportJSON(),type:"overlay-header",version:1}}static importDOM(){return{div:n=>{const t=n.classList.contains("equation-header")||n.classList.contains("extend-code-header"),r=n.classList.contains("overlay-header");return!t&&!r?null:{conversion:_7,priority:2}}}}createDOM(){const n=document.createElement("div");return ve.addClassNamesToElement(n,Rr.codeHeader,"overlay-header"),n}updateDOM(){return!1}decorate(n,t){const r=this.getNextSibling();return yn(r)?i.jsx(Uk,{editor:n,headerKey:this.__key}):Po(r)?i.jsx(qk,{editor:n,headerKey:this.__key}):Pr(r)?i.jsx(g7,{editor:n,headerKey:this.__key,imageNodeKey:r.getKey(),imagePickerTab:r.getImagePickerTab()}):Io(r)?i.jsx(d7,{editor:n,headerKey:this.__key,fileNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):Xr(r)?i.jsx(B7,{editor:n,headerKey:this.__key,musicNodeKey:r.getKey(),filePickerTab:r.getFilePickerTab()}):i.jsx(i.Fragment,{})}}function Bo(){return new to}function Yi(e){return e instanceof to}function F7(){return{node:ju()}}class Dn extends p.ElementNode{static getType(){return"overlay-wrapper"}static clone(n){return new Dn(n.__key)}constructor(n){super(n)}createDOM(n){const t=document.createElement("div"),r=n.theme.codeWrapper||Rr.codeWrapper;return ve.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true"),t}updateDOM(){return!1}exportDOM(n){const t=document.createElement("div"),r=Rr.codeWrapper;ve.addClassNamesToElement(t,r),t.setAttribute("dir","auto"),t.setAttribute("data-lexical-overlay-wrapper","true");const o=this.getChildren().find(yn);if(o){const l=vi[o.getLanguage()||"plain"]||o.getLanguage();t.setAttribute("data-name-language",String(l))}const s=this.getChildren().find(Po);if(s){const l=s.getEquation();let c="";try{c=btoa(unescape(encodeURIComponent(l)))}catch{c=""}t.setAttribute("data-lexical-equation-wrapper","true"),t.setAttribute("data-lexical-equation",c)}return{element:t}}static importDOM(){const n=Rr.codeWrapper,t=o=>o.classList.contains(n),r=o=>o.classList.contains("dsd__theme__code-wrapper");return{div:o=>{if(!t(o)&&!r(o))return null;const s=o.hasAttribute("data-lexical-equation-wrapper"),l=o.hasAttribute("data-lexical-overlay-wrapper"),c=o.hasAttribute("data-name-language");return!s&&!l&&!c?null:{conversion:F7,priority:2}}}}static importJSON(n){return ju()}exportJSON(){return{...super.exportJSON(),type:"overlay-wrapper",version:1}}}function ju(){return new Dn}function Ar(e){return e instanceof Dn}function ls(e){return Ar(e)?e.getChildren().some(yn):!1}function Ru(e){return Ar(e)?e.getChildren().some(Po):!1}function Za(e){return()=>{const n=ju(),t=Bo(),r=e();return n.append(t,r),n}}function ul(e){const n=ju(),t=Bo();return n.append(t,e),n}function r0(e){return Ar(e)?e.getChildren().some(Pr):!1}function o0(e){return Ar(e)?e.getChildren().some(Io):!1}function ih(e){return Ar(e)?e.getChildren().some(Xr):!1}function W7(e){m.useEffect(()=>{if(!e.hasNodes([Dn]))return;const n=e.registerMutationListener(Dn,t=>{e.getEditorState().read(()=>{for(const[r,o]of t)o==="updated"&&e.update(()=>{const s=p.$getNodeByKey(r);if(!s||!Ar(s))return;const l=s.getChildren(),c=l.some(yn),d=l.some(Po),f=l.some(Pr),h=l.some(Io),g=l.some(Xr);if(!(c||d||f||h||g)){for(const A of l)Yi(A)?A.remove():s.insertBefore(A);s.remove()}},{tag:p.HISTORY_MERGE_TAG})})});return ve.mergeRegister(n)},[e])}function z7(){const[e]=it.useLexicalComposerContext();return W7(e),null}function lt(e,n,...t){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+n)}function nu(...e){const n=[];for(const t of e)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))n.push(r);return n}function ah(e){let n=1,t=e.getParent();for(;t!=null;){if(It(t)){const r=t.getParent();if(gt(r)){n++,t=r.getParent();continue}lt(!1,"A ListItemNode must have a ListNode for a parent.")}return n}return n}function lh(e){let n=e.getParent();gt(n)||lt(!1,"A ListItemNode must have a ListNode for a parent.");let t=n;for(;t!==null;)t=t.getParent(),gt(t)&&(n=t);return n}function BA(e){let n=[];const t=e.getChildren().filter(It);for(let r=0;r<t.length;r++){const o=t[r],s=o.getFirstChild();gt(s)?n=n.concat(BA(s)):n.push(o)}return n}function co(e){return It(e)&>(e.getFirstChild())}function U7(e){let n=e;for(;n.getNextSibling()==null&&n.getPreviousSibling()==null;){const t=n.getParent();if(t==null||!(It(n)||gt(n)))break;n=t}n.remove()}function s0(e){return _n().append(e)}let _A=!1;function Ci(e){_A=e}function FA(e,n){return It(e)&&(n.length===0||n.length===1&&e.is(n[0])&&e.getChildrenSize()===0)}function ch(e,n){e.update(()=>{const t=p.$getSelection();if(t!==null){const r=t.getNodes();if(p.$isRangeSelection(t)){const s=t.getStartEndPoints();lt(s!==null,"insertList: anchor should be defined");const[l]=s,c=l.getNode(),d=c.getParent();if(FA(c,r)){const f=hn(n);if(p.$isRootOrShadowRoot(d)){c.replace(f);const h=_n();p.$isElementNode(c)&&(h.setFormat(c.getFormatType()),h.setIndent(c.getIndent())),f.append(h)}else if(It(c)){const h=c.getParentOrThrow();Ws(f,h.getChildren()),h.replace(f)}return}}const o=new Set;for(let s=0;s<r.length;s++){const l=r[s];if(p.$isElementNode(l)&&l.isEmpty()&&!It(l)&&!o.has(l.getKey())){i0(l,n);continue}if(p.$isLeafNode(l)){let c=l.getParent();for(;c!=null;){const d=c.getKey();if(gt(c)){if(!o.has(d)){const f=hn(n);Ws(f,c.getChildren()),c.replace(f),o.add(d)}break}else{const f=c.getParent();if(p.$isRootOrShadowRoot(f)&&!o.has(d)){o.add(d),i0(c,n);break}c=f}}}}}})}function Ws(e,n){e.splice(e.getChildrenSize(),0,n)}function K7(e,n){const t=e.getChildren().find(l=>yn(l));if(!t){const l=hn(n),c=_n();return c.append(p.$createParagraphNode()),l.append(c),e.replace(l),l}const o=t.getTextContent().split(/\r?\n/),s=hn(n);for(const l of o){const c=_n(),d=p.$createParagraphNode();d.append(p.$createTextNode(l)),c.append(d),s.append(c)}return e.replace(s),s}function i0(e,n){if(gt(e))return e;if(ls(e))return K7(e,n);const t=e.getPreviousSibling(),r=e.getNextSibling(),o=_n();if(o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),Ws(o,e.getChildren()),gt(t)&&n===t.getListType())return t.append(o),e.remove(),gt(r)&&n===r.getListType()&&(Ws(t,r.getChildren()),r.remove()),t;if(gt(r)&&n===r.getListType())return r.getFirstChildOrThrow().insertBefore(o),e.remove(),r;{const s=hn(n);return s.append(o),e.replace(s),s}}function m1(e,n){const t=e.getLastChild(),r=n.getFirstChild();t&&r&&co(t)&&co(r)&&(m1(t.getFirstChild(),r.getFirstChild()),r.remove());const o=n.getChildren();o.length>0&&e.append(...o),n.remove()}function H7(e){e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)){const t=new Set,r=n.getNodes(),o=n.anchor.getNode();if(FA(o,r))t.add(lh(o));else for(let s=0;s<r.length;s++){const l=r[s];if(p.$isLeafNode(l)){const c=ve.$getNearestNodeOfType(l,On);c!=null&&t.add(lh(c))}}for(const s of t){let l=s;const c=BA(s);for(const d of c){const f=p.$createParagraphNode();Ws(f,d.getChildren()),l.insertAfter(f),l=f,d.__key===n.anchor.key&&n.anchor.set(f.getKey(),0,"element"),d.__key===n.focus.key&&n.focus.set(f.getKey(),0,"element"),d.remove()}s.remove()}}})}function Y7(e){const n=e.getListType()!=="check";let t=e.getStart();for(const r of e.getChildren())It(r)&&(r.getValue()!==t&&r.setValue(t),n&&r.getLatest().__checked!=null&&r.setChecked(void 0),gt(r.getFirstChild())||t++)}function Z7(e){if(_A)return;const n=e.getNextSibling();gt(n)&&e.getListType()===n.getListType()&&m1(e,n)}function G7(e){const n=new Set;if(co(e)||n.has(e.getKey()))return;const t=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(co(r)&&co(o)){const s=o.getFirstChild();if(gt(s)){s.append(e);const l=r.getFirstChild();if(gt(l)){const c=l.getChildren();Ws(s,c),r.remove(),n.add(r.getKey())}}}else if(co(r)){const s=r.getFirstChild();if(gt(s)){const l=s.getFirstChild();l!==null&&l.insertBefore(e)}}else if(co(o)){const s=o.getFirstChild();gt(s)&&s.append(e)}else if(gt(t)){const s=_n(),l=hn(t.getListType());s.append(l),l.append(e),o?o.insertAfter(s):r?r.insertBefore(s):t.append(s)}}function V7(e){if(co(e))return;const n=e.getParent(),t=n?n.getParent():void 0,r=t?t.getParent():void 0;if(gt(r)&&It(t)&>(n)){const o=n?n.getFirstChild():void 0,s=n?n.getLastChild():void 0;if(e.is(o))t.insertBefore(e),n.isEmpty()&&t.remove();else if(e.is(s))t.insertAfter(e),n.isEmpty()&&t.remove();else{const l=n.getListType(),c=_n(),d=hn(l);c.append(d),e.getPreviousSiblings().forEach(g=>d.append(g));const f=_n(),h=hn(l);f.append(h),Ws(h,e.getNextSiblings()),t.insertBefore(c),t.insertAfter(f),t.replace(e)}}}function q7(){const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed())return!1;const n=e.anchor.getNode();if(!It(n)||n.getChildrenSize()!==0)return!1;const t=lh(n),r=n.getParent();lt(gt(r),"A ListItemNode must have a ListNode for a parent.");const o=r.getParent();let s;if(p.$isRootOrShadowRoot(o))s=p.$createParagraphNode(),t.insertAfter(s);else if(It(o))s=_n(),o.insertAfter(s);else return!1;s.select();const l=n.getNextSiblings();if(l.length>0){const c=hn(r.getListType());if(p.$isParagraphNode(s))s.insertAfter(c);else{const d=_n();d.append(c),s.insertAfter(d)}l.forEach(d=>{d.remove(),c.append(d)})}return U7(n),!0}class On extends p.ElementNode{constructor(t,r,o,s,l){super(l);Ne(this,"__value");Ne(this,"__checked");Ne(this,"__opened");Ne(this,"__isIndeterminate");this.__value=t===void 0?1:t,this.__checked=r,this.__opened=o,this.__isIndeterminate=s}static getType(){return"listitem"}static clone(t){return new On(t.__value,t.__checked,t.__opened,t.__isIndeterminate,t.__key)}createDOM(t){const r=document.createElement("li"),o=this.getParent();return gt(o)&&o.getListType()==="check"&&l0(r,this,null),r.value=this.__value,a0(r,t.theme,this),r}updateDOM(t,r,o){const s=this.getParent();return gt(s)&&s.getListType()==="check"&&l0(r,this,t),r.value=this.__value,a0(r,o.theme,this),!1}static transform(){return t=>{if(lt(It(t),"node is not a ListItemNode"),t.__checked==null)return;const r=t.getParent();gt(r)&&r.getListType()!=="check"&&t.getChecked()!=null&&t.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:Q7,priority:0})}}static importJSON(t){const r=_n(t.checked,t.opened,t.isIndeterminate);return r.setValue(t.value),r.setFormat(t.format),r.setDirection(t.direction),r}exportDOM(t){const r=this.createDOM(t._config);return r.style.textAlign=this.getFormatType(),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),opened:this.getOpened(),isIndeterminate:this.__isIndeterminate,version:1}}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(p.$isElementNode(o)&&this.canMergeWith(o)){const s=o.getChildren();this.append(...s),o.remove()}else super.append(o)}return this}replace(t,r){if(It(t))return super.replace(t);this.setIndent(0);const o=this.getParentOrThrow();if(!gt(o))return t;if(o.__first===this.getKey())o.insertBefore(t);else if(o.__last===this.getKey())o.insertAfter(t);else{const s=hn(o.getListType());let l=this.getNextSibling();for(;l;){const c=l;l=l.getNextSibling(),s.append(c)}o.insertAfter(t),t.insertAfter(s)}return r&&(lt(p.$isElementNode(t),"includeChildren should only be true for ElementNodes"),this.getChildren().forEach(s=>{t.append(s)})),this.remove(),o.getChildrenSize()===0&&o.remove(),t}insertAfter(t,r=!0){const o=this.getParentOrThrow();if(gt(o)||lt(!1,"insertAfter: list node is not parent of list item node"),It(t))return super.insertAfter(t,r);const s=this.getNextSiblings();if(o.insertAfter(t,r),s.length!==0){const l=hn(o.getListType());s.forEach(c=>l.append(c)),t.insertAfter(l,r)}return t}remove(t){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(t),r&&o&&co(r)&&co(o)&&(m1(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(t,r=!0){const o=_n(this.__checked==null?void 0:!1);return this.insertAfter(o,r),o}collapseAtStart(t){const r=p.$createParagraphNode();this.getChildren().forEach(d=>r.append(d));const s=this.getParentOrThrow(),l=s.getParentOrThrow(),c=It(l);if(s.getChildrenSize()===1)if(c)s.remove(),l.select();else{s.insertBefore(r),s.remove();const d=t.anchor,f=t.focus,h=r.getKey();d.type==="element"&&d.getNode().is(this)&&d.set(h,d.offset,"element"),f.type==="element"&&f.getNode().is(this)&&f.set(h,f.offset,"element")}else s.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(t){const r=this.getWritable();r.__value=t}getChecked(){const t=this.getLatest();let r;const o=this.getParent();return gt(o)&&(r=o.getListType()),r==="check"?!!t.__checked:void 0}getOpened(){const t=this.getLatest();let r;const o=this.getParent();return gt(o)&&(r=o.getListType()),r==="check"?!!t.__opened:void 0}setChecked(t){const r=this.getWritable();r.__checked=t}setOpened(t){const r=this.getWritable();r.__opened=t}setIndeterminate(t){const r=this.getWritable();r.__isIndeterminate=t}toggleChecked(){this.setChecked(!this.__checked)}toggleOpen(){const t=!(this.__opened===!0||this.__opened===void 0);this.setOpened(t)}getIndent(){const t=this.getParent();if(t===null)return this.getLatest().__indent;let r=t.getParentOrThrow(),o=0;for(;It(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(t){lt(typeof t=="number","Invalid indent value."),t=Math.floor(t),lt(t>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==t;)r<t?(G7(this),r++):(V7(this),r--);return this}canInsertAfter(t){return It(t)}canReplaceWith(t){return It(t)}canMergeWith(t){return p.$isParagraphNode(t)||It(t)}extractWithChild(t,r){if(!p.$isRangeSelection(r))return!1;const o=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(s)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return hn("bullet")}canMergeWhenEmpty(){return!0}}function a0(e,n,t){let r=[],o=[];const s=n.list,l=s?s.listitem:void 0;let c;if(s&&s.nested&&(c=s.nested.listitem),l!==void 0&&r.push(...nu(l)),s){const d=t.getParent(),f=gt(d)&&d.getListType()==="check",h=t.getChecked();(!f||h)&&o.push(s.listitemUnchecked),(!f||!h)&&o.push(s.listitemChecked),f&&r.push(h?s.listitemChecked:s.listitemUnchecked)}if(c!==void 0){const d=nu(c);t.getChildren().some(f=>gt(f))?r.push(...d):o.push(...d)}t.__isIndeterminate?r=[...r,Rr.listitemIndeterminate]:o=[...o,Rr.listitemIndeterminate],o.length>0&&ve.removeClassNamesFromElement(e,...o),r.length>0&&ve.addClassNamesToElement(e,...r)}function l0(e,n,t,r){gt(n.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),(!t||n.__checked!==t.__checked)&&e.setAttribute("aria-checked",n.getChecked()?"true":"false"),n.__opened===!1?e.setAttribute("data-list","closed"):e.setAttribute("data-list","opened"))}function Q7(e){if(e.classList.contains("task-list-item")){for(const c of e.children)if(c.tagName==="INPUT")return J7(c)}const t=e.getAttribute("aria-checked"),r=e.getAttribute("data-list"),o=t==="true"?!0:t==="false"?!1:void 0,s=!r||r==="opened",l=e.className.includes(Rr.listitemIndeterminate);return{node:_n(o,s,l)}}function J7(e){if(!(e.getAttribute("type")==="checkbox"))return{node:null};const t=e.hasAttribute("checked");return{node:_n(t,!1,!0)}}function _n(e,n,t){return p.$applyNodeReplacement(new On(void 0,e,n,t))}function It(e){return e instanceof On}class br extends p.ElementNode{constructor(t,r,o){super(o);Ne(this,"__tag");Ne(this,"__start");Ne(this,"__listType");const s=d0[t]||t;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=r}static getType(){return"list"}static clone(t){const r=t.__listType||d0[t.__tag];return new br(r,t.__start,t.__key)}getTag(){return this.__tag}setListType(t){const r=this.getWritable();r.__listType=t,r.__tag=t==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(t,r){const o=this.__tag,s=document.createElement(o);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,c0(s,t.theme,this),s}updateDOM(t,r,o){return t.__tag!==this.__tag?!0:(c0(r,o.theme,this),!1)}static transform(){return t=>{lt(gt(t),"node is not a ListNode"),Z7(t),Y7(t)}}static importDOM(){return{ol:()=>({conversion:u0,priority:0}),ul:()=>({conversion:u0,priority:0})}}static importJSON(t){const r=hn(t.listType,t.start);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportDOM(t){const{element:r}=super.exportDOM(t);return r&&ve.isHTMLElement(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(It(o))super.append(o);else{const s=_n();if(gt(o))s.append(o);else if(p.$isElementNode(o)){const l=is(o.getTextContent());s.append(l)}else s.append(o);super.append(s)}}return this}extractWithChild(t){return It(t)}}function c0(e,n,t){const r=[],o=[],s=n.list;if(s!==void 0){const l=s[`${t.__tag}Depth`]||[],c=ah(t)-1,d=c%l.length,f=l[d],h=s[t.__tag];let g;const A=s.nested,b=s.checklist;if(A!==void 0&&A.list&&(g=A.list),h!==void 0&&r.push(h),b!==void 0&&t.__listType==="check"&&r.push(b),f!==void 0){r.push(...nu(f));for(let y=0;y<l.length;y++)y!==d&&o.push(t.__tag+y)}if(g!==void 0){const y=nu(g);c>1?r.push(...y):o.push(...y)}}o.length>0&&ve.removeClassNamesFromElement(e,...o),r.length>0&&ve.addClassNamesToElement(e,...r)}function X7(e){const n=[];for(let t=0;t<e.length;t++){const r=e[t];if(It(r)){n.push(r);const o=r.getChildren();o.length>1&&o.forEach(s=>{gt(s)&&n.push(s0(s))})}else n.push(s0(r))}return n}function $7(e){if(e.getAttribute("__lexicallisttype")==="check"||e.classList.contains("contains-task-list"))return!0;for(const n of e.childNodes)if(ve.isHTMLElement(n)&&n.hasAttribute("aria-checked"))return!0;return!1}function u0(e){const n=e.nodeName.toLowerCase();let t=null;if(n==="ol"){const r=e.start;t=hn("number",r)}else n==="ul"&&($7(e)?t=hn("check"):t=hn("bullet"));return{after:X7,node:t}}const d0={ol:"number",ul:"bullet"};function hn(e,n=1){return p.$applyNodeReplacement(new br(e,n))}function gt(e){return e instanceof br}const g1=p.createCommand("INSERT_UNORDERED_LIST_COMMAND"),Iu=p.createCommand("INSERT_ORDERED_LIST_COMMAND"),C1=p.createCommand("INSERT_CHECK_LIST_COMMAND"),eS=p.createCommand("REMOVE_LIST_COMMAND");function tS(e){return ve.mergeRegister(e.registerCommand(Iu,()=>(ch(e,"number"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(g1,()=>(ch(e,"bullet"),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(eS,()=>(H7(e),!0),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>!!q7(),p.COMMAND_PRIORITY_LOW))}const ru=/^(\d+(?:\.\d+)?)px$/,Tt={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class Zr extends p.ElementNode{constructor(t=Tt.NO_STATUS,r=1,o,s){super(s);Ne(this,"__colSpan");Ne(this,"__rowSpan");Ne(this,"__headerState");Ne(this,"__width");Ne(this,"__backgroundColor");this.__colSpan=r,this.__rowSpan=1,this.__headerState=t,this.__width=o,this.__backgroundColor=null}static getType(){return"tablecell"}static clone(t){return new Zr(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__rowSpan=t.__rowSpan,this.__backgroundColor=t.__backgroundColor}static importDOM(){return{td:t=>({conversion:f0,priority:0}),th:t=>({conversion:f0,priority:0})}}static importJSON(t){const r=t.colSpan||1,o=t.rowSpan||1;return Gr(t.headerState,r,t.width||void 0).setRowSpan(o).setBackgroundColor(t.backgroundColor||null)}createDOM(t){const r=document.createElement(this.getTag());return this.__width&&(r.style.maxWidth=`${this.__width}px`,r.style.minWidth=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),ve.addClassNamesToElement(r,t.theme.tableCell,this.hasHeader()&&t.theme.tableCellHeader),r}exportDOM(t){const{element:r}=super.exportDOM(t);if(r){const o=r;this.__colSpan>1&&(o.colSpan=this.__colSpan),this.__rowSpan>1&&(o.rowSpan=this.__rowSpan),this.getWidth()&&(o.style.maxWidth=`${this.getWidth()}px`,o.style.minWidth=`${this.getWidth()}px`),o.style.verticalAlign="top",o.style.textAlign="start";const s=this.getBackgroundColor();s!==null&&(o.style.backgroundColor=s)}return{element:r}}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(t){const r=this.getWritable();return r.__colSpan=t,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(t){const r=this.getWritable();return r.__rowSpan=t,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(t,r=Tt.BOTH){const o=this.getWritable();return o.__headerState=t&r|o.__headerState&~r,o}getHeaderStyles(){return this.getLatest().__headerState}setWidth(t){const r=this.getWritable();return r.__width=t,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(t){const r=this.getWritable();return r.__backgroundColor=t,r}toggleHeaderStyle(t){const r=this.getWritable();return(r.__headerState&t)===t?r.__headerState-=t:r.__headerState+=t,r}hasHeaderState(t){return(this.getHeaderStyles()&t)===t}hasHeader(){return this.getLatest().__headerState!==Tt.NO_STATUS}updateDOM(t){return t.__headerState!==this.__headerState||t.__width!==this.__width||t.__colSpan!==this.__colSpan||t.__rowSpan!==this.__rowSpan||t.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function f0(e){const n=e,t=e.nodeName.toLowerCase();let r;(ru.test(n.style.minWidth)||ru.test(n.style.maxWidth))&&(r=parseFloat(n.style.minWidth));const o=Gr(t==="th"?Tt.ROW:Tt.NO_STATUS,n.colSpan,r);o.__rowSpan=n.rowSpan;const s=n.style.backgroundColor;s!==""&&(o.__backgroundColor=s);const l=n.style,c=(l&&l.textDecoration||"").split(" "),d=l.fontWeight==="700"||l.fontWeight==="bold",f=c.includes("line-through"),h=l.fontStyle==="italic",g=c.includes("underline");return{after:A=>(A.length===0&&A.push(p.$createParagraphNode()),A),forChild:(A,b)=>{if(Pe(b)&&!p.$isElementNode(A)){const y=p.$createParagraphNode();return p.$isLineBreakNode(A)&&A.getTextContent()===`
|
|
3
|
+
`?null:(In(A)&&(d&&A.toggleFormat("bold"),f&&A.toggleFormat("strikethrough"),h&&A.toggleFormat("italic"),g&&A.toggleFormat("underline")),y.append(A),y)}return A},node:o}}function Gr(e,n=1,t){return p.$applyNodeReplacement(new Zr(e,n,t))}function Pe(e){return e instanceof Zr}const Du=p.createCommand("INSERT_TABLE_COMMAND");function WA(e,n){if(n.add(e.getKey()),p.$isElementNode(e))for(const t of e.getChildren())WA(t,n)}function Ou(e){const n=e.getNodes();if(n.length===0)return!1;const t=n[0],r=n[n.length-1];if(p.$isDecoratorNode(t)||p.$isDecoratorNode(r))return!1;const o=p.$createRangeSelection(),s=p.$isElementNode(t)?"element":"text",l=p.$isElementNode(r)?"element":"text";o.anchor.set(t.getKey(),0,s),o.focus.set(r.getKey(),p.$isElementNode(r)?r.getChildrenSize():r.getTextContentSize(),l),p.$setSelection(o)}const Pu=[".ContentEditable__root > *:not(ol):not(ul):not(.dsd__theme__table-scrollable-wrapper):not(.editor-image:not(:has(button))):not(div.video-container):not(div.editor-iframe)",".dsd__theme__table-scrollable-wrapper > table",".editor-image > div.resizable-container > div.resizable-container__inner",".video-container > div.resizable-container > div.resizable-container__inner",".editor-iframe > div.resizable-container > div.resizable-container__inner",".editor-iframe"],uh=[...Pu,"ul.dsd__theme__ul > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol2 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol3 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol4 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol5 > li:not(.dsd__theme__nestedListItem)"],nS=[...Pu,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],rS=[...Pu,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem"],oS=[...Pu,"ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],sS=e=>{const n=document.querySelectorAll(".selected-block");if(n.length===0)return;setTimeout(()=>{e.update(()=>{const r=p.$createNodeSelection();n.forEach(o=>{const s=p.$getNearestNodeFromDOMNode(o);s&&WA(s,r)}),p.$setSelection(r)})},100);const t=r=>{const o=!!document.querySelector(".draggable-menu");if(r.button===2||o){r.preventDefault();return}const s=r.target;s.closest(".draggable-block-menu")||s.closest(".draggable-menu")||(n.forEach(l=>{Do(l)}),document.body.removeEventListener("mousedown",t))};setTimeout(()=>{document.body.addEventListener("mousedown",t)}),e.update(()=>{const r=document.querySelector(".ContentEditable__root");r==null||r.focus({preventScroll:!0})})},iS=(e,n,t)=>{var l;const r=n.code==="ArrowUp"||n.code==="ArrowLeft",o=n.code==="ArrowDown"||n.code==="ArrowRight";if(!r&&!o)return!1;const s=t[0];return s?(n.preventDefault(),(l=e.getRootElement())==null||l.focus({preventScroll:!0}),e.update(()=>{var g,A,b,y;const c=p.$getNearestNodeFromDOMNode(s);if(!c)return;const d=r?(g=c.getPreviousSibling)==null?void 0:g.call(c):(A=c.getNextSibling)==null?void 0:A.call(c);if(!d)return;let f=d;for(;p.$isElementNode(f)&&f.getChildrenSize()>0&&(f=r?((b=f.getLastChild)==null?void 0:b.call(f))??f:((y=f.getFirstChild)==null?void 0:y.call(f))??f,f!==d););const h=(r?f==null?void 0:f.selectEnd:f==null?void 0:f.selectStart)||(f==null?void 0:f.select)||(d==null?void 0:d.select);h&&h.call(f||d)}),t.forEach(c=>Do(c)),!0):!1},aS=(e,n,t)=>{var o;const r=t[0];return r?(n.preventDefault(),(o=e.getRootElement())==null||o.focus({preventScroll:!0}),e.update(()=>{const s=p.$getNearestNodeFromDOMNode(r);if(!s||typeof s.insertAfter!="function")return;const l=p.$createParagraphNode();s.insertAfter(l),l.selectStart()}),t.forEach(s=>Do(s)),!0):!1},lS=(e,n,t)=>{const{hasSelectedBlock:r}=$o(),o=(t==null?void 0:t.getSelectedTargets())||[];return!r||!o.length?!1:n.key==="Backspace"||n.key==="Delete"?(o.forEach(c=>Do(c)),t==null||t.setSelectedTargets([]),!1):n.code==="Enter"&&aS(e,n,o)?(t==null||t.setSelectedTargets([]),!0):iS(e,n,o)?(t==null||t.setSelectedTargets([]),!0):!1},cS={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},h0=(e,n,t)=>function r(o){if(o instanceof KeyboardEvent&&o.key!=="Backspace"&&o.key!=="Delete"&&o.key!=="Escape")return!1;const s=o.target;s.closest(".draggable-block-menu")||s.closest(".toolbar")||s.closest(".draggable-menu")||(e==null||e.classList.remove(n),t.update(()=>{s.closest(".ContentEditable__root")||p.$setSelection(null),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key!=="Escape"&&t.update(()=>{var c;(c=p.$getRoot().getFirstChild())==null||c.selectStart()}),o instanceof KeyboardEvent&&n==="selected-all-document"&&o.key==="Escape"&&t.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},A1=(e,n)=>{var t,r;if(n&&n.block){const{block:o,isCreateEventListener:s}=n,l="selected-block";if(o.classList.add(l),o.classList.remove("selected-block-hidden"),s){const c=h0(o,l,e);document.body.addEventListener("mousedown",c),document.addEventListener("keydown",c)}}else{const o="selected-all-document",s=h0(e._rootElement,o,e);document.body.addEventListener("mousedown",s),document.addEventListener("keydown",s),(t=e._rootElement)==null||t.classList.add(o),(r=e._rootElement)==null||r.classList.remove("selected-block-hidden")}},Do=e=>{e.classList.remove("selected-block"),e.classList.add("selected-block-hidden")},lc=e=>{e.querySelectorAll(".selected-block").forEach(t=>{Do(t)})},uS=(e,n,t,r,o)=>{var s;if(((s=e.selected[0])==null?void 0:s.tagName)==="LI"){let l=e.added[0];if(!e.added.length&&e.beforeSelected.length>=2){const g=e.beforeSelected[0],A=e.beforeSelected[1],b=g.getBoundingClientRect().top;A.getBoundingClientRect().top<b?l=zA(e.selected[0]):l=e.selected[0]}let d=(l==null?void 0:l.classList.contains("dsd__theme__nestedListItem"))&&e.added.length===0?1:0,f=l,h=null;for(;f;){const g=f.tagName.toUpperCase();if(g==="UL"||g==="OL")h||(h=g.toLowerCase()),d++;else if(g!=="LI")break;f=f.parentElement}if(d!==0&&t.depth!==d){if(!h)return;r({depth:d,targets:dS(d,h)}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)})}}else!t.depth&&e.added.length&&(r({depth:999,targets:nS}),setTimeout(()=>{o==null||o.findSelectableTargets(),o==null||o.setSelectedTargets(e.selected)}));e.added.forEach(l=>{A1(n,{block:l,isCreateEventListener:!1})}),e.removed.forEach(l=>{Do(l)})},$o=()=>{const e=document.querySelector("div.ContentEditable__root"),n=(e==null?void 0:e.querySelector(".selected-block"))!==null,t=e==null?void 0:e.classList.contains("selected-all-document");return{hasSelectedBlock:n,selectedAllDocument:t}},p0=(e,n,t,r)=>{if(e==="ol"){const o=Array.from({length:n},(d,f)=>`ol.dsd__theme__ol${f+1}`).join(" ");let s="";n===1&&(s=":not(.dsd__theme__nestedListItem ol)");const l=`${o}${s} >`;return t?`${l} li.dsd__theme__nestedListItem`:`${l} li:not(.dsd__theme__nestedListItem)`}else{const o=" ul".repeat(n-1).trim(),s=" ul".repeat(n).trim(),c=`ul.dsd__theme__ul${o?` ${o}`:""}:not(.dsd__theme__nestedListItem ${s}) >`;let d=`${c} li:not(.dsd__theme__nestedListItem)`;return t?`${c} li.dsd__theme__nestedListItem`:d}};function dS(e,n){if(e<1)throw new Error("Depth must be >= 1");const t=[];if(t.push(p0(n,e,!1)),t.push(p0(n,e,!0)),n==="ol"){if(e>1)for(let r=1;r<e;r++)t.push(`ol.dsd__theme__ol${r} > li:not(.dsd__theme__nestedListItem)`);return[...rS,...t]}else if(n==="ul"){if(e>1)for(let r=1;r<e;r++)t.push(`ul.dsd__theme__ul${" ul".repeat(r-1)}:not(.dsd__theme__nestedListItem ${"ul ".repeat(r).trim()}) > li:not(.dsd__theme__nestedListItem):not(:has(ul))`);return[...oS,...t]}return[...uh,...t]}function zA(e){const n=e.querySelector("ul, ol");let t=n==null?void 0:n.lastElementChild;for(;t&&t.tagName!=="LI";)t=t.previousElementSibling;return t!=null&&t.classList.contains("dsd__theme__nestedListItem")?zA(t)??t:t}function So(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}class Zi extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__height");this.__height=t}static getType(){return"tablerow"}static clone(t){return new Zi(t.__height,t.__key)}static importDOM(){return{tr:t=>({conversion:fS,priority:0})}}static importJSON(t){return Ga(t.height)}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(t){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),ve.addClassNamesToElement(r,t.theme.tableRow),r}isShadowRoot(){return!0}setHeight(t){const r=this.getWritable();return r.__height=t,this.__height}getHeight(){return this.getLatest().__height}updateDOM(t){return t.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function fS(e){const n=e;let t;return ru.test(n.style.height)&&(t=parseFloat(n.style.height)),{node:Ga(t)}}function Ga(e){return p.$applyNodeReplacement(new Zi(e))}function _t(e){return e instanceof Zi}function hS(e,n,t=!0){const r=w1();for(let o=0;o<e;o++){const s=Ga();for(let l=0;l<n;l++){let c=Tt.NO_STATUS;typeof t=="object"?(o===0&&t.rows&&(c|=Tt.ROW),l===0&&t.columns&&(c|=Tt.COLUMN)):t&&(o===0&&(c|=Tt.ROW),l===0&&(c|=Tt.COLUMN));const d=Gr(c),f=p.$createParagraphNode();f.append(is()),d.append(f),s.append(d)}r.append(s)}return r}function UA(e){const n=ve.$findMatchingParent(e,t=>_t(t));if(_t(n))return n;throw new Error("Expected table cell to be inside of table row.")}function Hn(e){const n=ve.$findMatchingParent(e,t=>St(t));if(St(n))return n;throw new Error("Expected table cell to be inside of table.")}function Qo(e){const n=UA(e);return Hn(n).getChildren().findIndex(r=>r.is(n))}function Jo(e){return UA(e).getChildren().findIndex(t=>t.is(e))}const pS=(e,n)=>e===Tt.BOTH||e===n?n:Tt.NO_STATUS;function Va(e=!0){const n=p.$getSelection();lt(p.$isRangeSelection(n)||xt(n),"Expected a RangeSelection or TableSelection");const t=n.focus.getNode(),[r,,o]=Tn(t),[s,l]=Dr(o,r,r),c=s[0].length,{startRow:d}=l;let f=null;if(e){const h=d+r.__rowSpan-1,g=s[h],A=Ga();for(let y=0;y<c;y++){const{cell:x,startRow:w}=g[y];if(w+x.__rowSpan-1<=h){const T=g[y].cell.__headerState;A.append(Gr(T).append(p.$createParagraphNode()))}else x.setRowSpan(x.__rowSpan+1)}const b=o.getChildAtIndex(h);lt(_t(b),"focusEndRow is not a TableRowNode"),b.insertAfter(A),f=A}else{const h=s[d],g=Ga();for(let b=0;b<c;b++){const{cell:y,startRow:x}=h[b];if(x===d){const k=h[b].cell.__headerState;g.append(Gr(k).append(p.$createParagraphNode()))}else y.setRowSpan(y.__rowSpan+1)}const A=o.getChildAtIndex(d);lt(_t(A),"focusEndRow is not a TableRowNode"),A.insertBefore(g),f=g}return f}function ou(e=!0){const n=p.$getSelection();lt(p.$isRangeSelection(n)||xt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),r=n.focus.getNode(),[o]=Tn(t),[s,,l]=Tn(r),[c,d,f]=Dr(l,s,o),h=c.length,g=e?Math.max(d.startColumn,f.startColumn):Math.min(d.startColumn,f.startColumn),A=e?g+s.__colSpan-1:g-1,b=l.getFirstChild();lt(_t(b),"Expected firstTable child to be a row");let y=null;function x(T=Tt.NO_STATUS){const I=Gr(T).append(p.$createParagraphNode());return y===null&&(y=I),I}let w=b;e:for(let T=0;T<h;T++){if(T!==0){const R=w.getNextSibling();lt(_t(R),"Expected row nextSibling to be a row"),w=R}const I=c[T],N=I[A<0?0:A].cell.__headerState,L=pS(N,Tt.ROW);if(A<0){b1(w,x(L));continue}const{cell:M,startColumn:S,startRow:O}=I[A];if(S+M.__colSpan-1<=A){let R=M,B=O,_=A;for(;B!==T&&R.__rowSpan>1;)if(_-=M.__colSpan,_>=0){const{cell:D,startRow:z}=I[_];R=D,B=z}else{w.append(x(L));continue e}const j=T?0:L;R.insertAfter(x(j))}else M.setColSpan(M.__colSpan+1)}y!==null&&qa(y);const k=l.getColWidths();if(k){const T=[...k],I=A<0?0:A,N=T[I];T.splice(I,0,N),l.setColWidths(T)}return y}function KA(){const e=p.$getSelection();lt(p.$isRangeSelection(e)||xt(e),"Expected a RangeSelection or TableSelection");const[n,t]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[r,,o]=Tn(n),[s]=Tn(t),[l,c,d]=Dr(o,r,s),{startRow:f}=c,{startRow:h}=d,g=h+s.__rowSpan-1;if(l.length===g-f+1){o.remove();return}const A=l[0].length,b=l[g+1],y=o.getChildAtIndex(g+1);for(let x=g;x>=f;x--){for(let k=A-1;k>=0;k--){const{cell:T,startRow:I,startColumn:N}=l[x][k];if(N===k&&(x===f&&I<f&&T.setRowSpan(T.__rowSpan-(I-f)),I>=f&&I+T.__rowSpan-1>g))if(T.setRowSpan(T.__rowSpan-(g-I+1)),lt(y!==null,"Expected nextRowNode not to be null"),k===0)b1(y,T);else{const{cell:L}=b[k-1];L.insertAfter(T)}}const w=o.getChildAtIndex(x);lt(_t(w),"Expected TableNode childAtIndex(%s) to be RowNode",String(x)),w.remove()}if(b!==void 0){const{cell:x}=b[0];qa(x)}else{const x=l[f-1],{cell:w}=x[0];qa(w)}}function HA(){const e=p.$getSelection();lt(p.$isRangeSelection(e)||xt(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),t=e.focus.getNode(),[r,,o]=Tn(n),[s]=Tn(t),[l,c,d]=Dr(o,r,s),{startColumn:f}=c,{startRow:h,startColumn:g}=d,A=Math.min(f,g),b=Math.max(f+r.__colSpan-1,g+s.__colSpan-1),y=b-A+1;if(l[0].length===b-A+1){o.selectPrevious(),o.remove();return}const w=l.length;for(let N=0;N<w;N++)for(let L=A;L<=b;L++){const{cell:M,startColumn:S}=l[N][L];if(S<A){if(L===A){const O=A-S;M.setColSpan(M.__colSpan-Math.min(y,M.__colSpan-O))}}else if(S+M.__colSpan-1>b){if(L===b){const O=b-S+1;M.setColSpan(M.__colSpan-O)}}else M.remove()}const k=l[h],T=f>g?k[f+r.__colSpan]:k[g+s.__colSpan];if(T!==void 0){const{cell:N}=T;qa(N)}else{const N=g<f?k[g-1]:k[f-1],{cell:L}=N;qa(L)}const I=o.getColWidths();if(I){const N=[...I];N.splice(A,y),o.setColWidths(N)}}function qa(e){const n=e.getFirstDescendant();n==null?e.selectStart():n.getParentOrThrow().selectStart()}function b1(e,n){const t=e.getFirstChild();t!==null?t.insertBefore(n):e.append(n)}function m0(){const e=p.$getSelection();lt(p.$isRangeSelection(e)||xt(e),"Expected a RangeSelection or TableSelection");const n=e.anchor.getNode(),[t,r,o]=Tn(n),s=t.__colSpan,l=t.__rowSpan;if(s===1&&l===1)return;const[c,d]=Dr(o,t,t),{startColumn:f,startRow:h}=d,g=t.__headerState&Tt.COLUMN,A=Array.from({length:s},(x,w)=>{let k=g;for(let T=0;k!==0&&T<c.length;T++)k&=c[T][w+f].cell.__headerState;return k}),b=t.__headerState&Tt.ROW,y=Array.from({length:l},(x,w)=>{let k=b;for(let T=0;k!==0&&T<c[0].length;T++)k&=c[w+h][T].cell.__headerState;return k});if(s>1){for(let x=1;x<s;x++)t.insertAfter(Gr(A[x]|y[0]).append(p.$createParagraphNode()));t.setColSpan(1)}if(l>1){let x;for(let w=1;w<l;w++){const k=h+w,T=c[k];x=(x||r).getNextSibling(),lt(_t(x),"Expected row next sibling to be a row");let I=null;for(let N=0;N<f;N++){const L=T[N],M=L.cell;L.startRow===k&&(I=M),M.__colSpan>1&&(N+=M.__colSpan-1)}if(I===null)for(let N=s-1;N>=0;N--)b1(x,Gr(A[N]|y[w]).append(p.$createParagraphNode()));else for(let N=s-1;N>=0;N--)I.insertAfter(Gr(A[N]|y[w]).append(p.$createParagraphNode()))}t.setRowSpan(1)}}function Dr(e,n,t){const[r,o,s]=YA(e,n,t);return lt(o!==null,"Anchor not found in Table"),lt(s!==null,"Focus not found in Table"),[r,o,s]}function YA(e,n,t){const r=[];let o=null,s=null;function l(d){let f=r[d];return f===void 0&&(r[d]=f=[]),f}const c=e.getChildren();for(let d=0;d<c.length;d++){const f=c[d];lt(_t(f),"Expected TableNode children to be TableRowNode");for(let h=f.getFirstChild(),g=0;h!=null;h=h.getNextSibling()){lt(Pe(h),"Expected TableRowNode children to be TableCellNode");const A=l(d);for(;A[g]!==void 0;)g++;const b={cell:h,startColumn:g,startRow:d},{__rowSpan:y,__colSpan:x}=h;for(let w=0;w<y&&!(d+w>=c.length);w++){const k=l(d+w);for(let T=0;T<x;T++)k[g+T]=b}n!==null&&o===null&&n.is(h)&&(o=b),t!==null&&s===null&&t.is(h)&&(s=b)}}return[r,o,s]}function Tn(e){let n;if(e instanceof Zr)n=e;else if("__type"in e){const o=ve.$findMatchingParent(e,Pe);lt(Pe(o),"Expected to find a parent TableCellNode"),n=o}else{const o=ve.$findMatchingParent(e.getNode(),Pe);lt(Pe(o),"Expected to find a parent TableCellNode"),n=o}const t=n.getParent();lt(_t(t),"Expected TableCellNode to have a parent TableRowNode");const r=t.getParent();return lt(St(r),"Expected TableRowNode to have a parent TableNode"),[n,t,r]}function g0(e){const[n,,t]=Tn(e),r=t.getChildren(),o=r.length,s=r[0].getChildren().length,l=new Array(o);for(let c=0;c<o;c++)l[c]=new Array(s);for(let c=0;c<o;c++){const f=r[c].getChildren();let h=0;for(let g=0;g<f.length;g++){for(;l[c][h];)h++;const A=f[g],b=A.__rowSpan||1,y=A.__colSpan||1;for(let x=0;x<b;x++)for(let w=0;w<y;w++)l[c+x][h+w]=A;if(n===A)return{colSpan:y,columnIndex:h,rowIndex:c,rowSpan:b};h+=y}}return null}class Bu{constructor(n,t,r){Ne(this,"tableKey");Ne(this,"anchor");Ne(this,"focus");Ne(this,"_cachedNodes");Ne(this,"dirty");this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=n}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(n){this._cachedNodes=n}is(n){return xt(n)?this.tableKey===n.tableKey&&this.anchor.is(n.anchor)&&this.focus.is(n.focus):!1}set(n,t,r){this.dirty=!0,this.tableKey=n,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new Bu(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(n){}insertText(){}hasFormat(n){let t=0;this.getNodes().filter(Pe).forEach(s=>{const l=s.getFirstChild();p.$isParagraphNode(l)&&(t|=l.getTextFormat())});const o=p.TEXT_TYPE_TO_FORMAT[n];return(t&o)!==0}insertNodes(n){const t=this.focus.getNode();lt(p.$isElementNode(t),"Expected TableSelection focus to be an ElementNode"),p.$normalizeSelection__EXPERIMENTAL(t.select(0,t.getChildrenSize())).insertNodes(n)}getShape(){const n=p.$getNodeByKey(this.anchor.key);lt(Pe(n),"Expected TableSelection anchor to be (or a child of) TableCellNode");const t=g0(n);lt(t!==null,"getCellRect: expected to find AnchorNode");const r=p.$getNodeByKey(this.focus.key);lt(Pe(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const o=g0(r);lt(o!==null,"getCellRect: expected to find focusCellNode");const s=Math.min(t.columnIndex,o.columnIndex),l=Math.max(t.columnIndex+t.colSpan-1,o.columnIndex+o.colSpan-1),c=Math.min(t.rowIndex,o.rowIndex),d=Math.max(t.rowIndex+t.rowSpan-1,o.rowIndex+o.rowSpan-1);return{fromX:Math.min(s,l),fromY:Math.min(c,d),toX:Math.max(s,l),toY:Math.max(c,d)}}getNodes(){const n=this._cachedNodes;if(n!==null)return n;const t=this.anchor.getNode(),r=this.focus.getNode(),o=ve.$findMatchingParent(t,Pe),s=ve.$findMatchingParent(r,Pe);lt(Pe(o),"Expected TableSelection anchor to be (or a child of) TableCellNode"),lt(Pe(s),"Expected TableSelection focus to be (or a child of) TableCellNode");const l=o.getParent();lt(_t(l),"Expected anchorCell to have a parent TableRowNode");const c=l.getParent();lt(St(c),"Expected tableNode to have a parent TableNode");const d=s.getParents()[1];if(d!==c){if(c.isParentOf(s)){const O=d.getParent();lt(O!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,s.getKey(),O.getKey())}else{const O=c.getParent();lt(O!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,O.getKey(),s.getKey())}return this.getNodes()}const[f,h,g]=Dr(c,o,s);let A=Math.min(h.startColumn,g.startColumn),b=Math.min(h.startRow,g.startRow),y=Math.max(h.startColumn+h.cell.__colSpan-1,g.startColumn+g.cell.__colSpan-1),x=Math.max(h.startRow+h.cell.__rowSpan-1,g.startRow+g.cell.__rowSpan-1),w=A,k=b,T=A,I=b;function N(O){const{cell:R,startColumn:B,startRow:_}=O;A=Math.min(A,B),b=Math.min(b,_),y=Math.max(y,B+R.__colSpan-1),x=Math.max(x,_+R.__rowSpan-1)}for(;A<w||b<k||y>T||x>I;){if(A<w){const O=I-k,R=w-1;for(let B=0;B<=O;B++)N(f[k+B][R]);w=R}if(b<k){const O=T-w,R=k-1;for(let B=0;B<=O;B++)N(f[R][w+B]);k=R}if(y>T){const O=I-k,R=T+1;for(let B=0;B<=O;B++)N(f[k+B][R]);T=R}if(x>I){const O=T-w,R=I+1;for(let B=0;B<=O;B++)N(f[R][w+B]);I=R}}const L=new Map([[c.getKey(),c]]);let M=null;for(let O=b;O<=x;O++)for(let R=A;R<=y;R++){const{cell:B}=f[O][R],_=B.getParent();lt(_t(_),"Expected TableCellNode parent to be a TableRowNode"),_!==M&&L.set(_.getKey(),_),L.set(B.getKey(),B);for(const j of mS(B))L.set(j.getKey(),j);M=_}const S=Array.from(L.values());return p.isCurrentlyReadOnlyMode()||(this._cachedNodes=S),S}getTextContent(){const n=this.getNodes().filter(r=>Pe(r));let t="";for(let r=0;r<n.length;r++){const o=n[r],s=o.__parent,l=(n[r+1]||{}).__parent;t+=o.getTextContent()+(l!==s?`
|
|
4
|
+
`:" ")}return t}}function xt(e){return e instanceof Bu}function C0(){const e=p.$createPoint("root",0,"element"),n=p.$createPoint("root",0,"element");return new Bu("root",e,n)}function mS(e){const n=[],t=[e];for(;t.length>0;){const r=t.pop();lt(r!==void 0,"Stack.length > 0; can't be undefined"),p.$isElementNode(r)&&t.unshift(...r.getChildren()),r!==e&&n.push(r)}return n}function ZA(e,n=p.$getEditor()){const t=p.$getNodeByKey(e);lt(St(t),"TableObserver: Expected tableNodeKey %s to be a TableNode",e);const r=zs(t,n.getElementByKey(e));return lt(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",e),{tableElement:r,tableNode:t}}class gS{constructor(n,t){Ne(this,"focusX");Ne(this,"focusY");Ne(this,"listenersToRemove");Ne(this,"table");Ne(this,"isHighlightingCells");Ne(this,"anchorX");Ne(this,"anchorY");Ne(this,"tableNodeKey");Ne(this,"anchorCell");Ne(this,"focusCell");Ne(this,"anchorCellNodeKey");Ne(this,"focusCellNodeKey");Ne(this,"editor");Ne(this,"tableSelection");Ne(this,"hasHijackedSelectionStyles");Ne(this,"isSelecting");Ne(this,"shouldCheckSelection");Ne(this,"abortController");Ne(this,"listenerOptions");this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=n,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(n=>n()),this.listenersToRemove.clear()}$lookup(){return ZA(this.tableNodeKey,this.editor)}trackTable(){const n=new MutationObserver(t=>{this.editor.getEditorState().read(()=>{let r=!1;for(let o=0;o<t.length;o++){const c=t[o].target.nodeName;if(c==="TABLE"||c==="TBODY"||c==="THEAD"||c==="TR"){r=!0;break}}if(r)try{const{tableNode:o,tableElement:s}=this.$lookup();this.table=La(o,s)}catch{}},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:t,tableElement:r}=this.$lookup();this.table=La(t,r),n.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}clearHighlight(){const n=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),n.update(()=>{const{tableNode:t,tableElement:r}=this.$lookup(),o=La(t,r);cc(n,o,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}enableHighlightStyle(){const n=this.editor;n.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();ve.removeClassNamesFromElement(t,n._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1},{editor:n})}disableHighlightStyle(){const n=this.editor;n.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();ve.addClassNamesToElement(t,n._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0},{editor:n})}updateTableTableSelection(n){if(n!==null&&n.tableKey===this.tableNodeKey){const t=this.editor;this.tableSelection=n,this.isHighlightingCells=!0,this.disableHighlightStyle(),cc(t,this.table,this.tableSelection)}else n==null?this.clearHighlight():(this.tableNodeKey=n.tableKey,this.updateTableTableSelection(n))}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setFocusCellForSelection(n,t=!1){const r=this.editor;r.update(()=>{const{tableNode:o}=this.$lookup(),s=n.x,l=n.y;if(this.focusCell=n,this.anchorCell!==null){const c=GA(r._window);c&&c.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==s||this.anchorY!==l||t))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(s===this.focusX&&l===this.focusY)return;if(this.focusX=s,this.focusY=l,this.isHighlightingCells){const c=p.$getNearestNodeFromDOMNode(n.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&Pe(c)&&o.is(js(c))){const d=c.getKey();this.tableSelection=this.tableSelection.clone()||C0(),this.focusCellNodeKey=d,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),p.$setSelection(this.tableSelection),r.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),cc(r,this.table,this.tableSelection)}}})}setAnchorCellForSelection(n){this.isHighlightingCells=!1,this.anchorCell=n,this.anchorX=n.x,this.anchorY=n.y,this.editor.update(()=>{const t=p.$getNearestNodeFromDOMNode(n.elem);if(Pe(t)){const r=t.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():C0(),this.anchorCellNodeKey=r}})}formatCells(n){this.editor.update(()=>{const t=p.$getSelection();xt(t)||lt(!1,"Expected grid selection");const r=p.$createRangeSelection(),o=r.anchor,s=r.focus,l=t.getNodes().filter(Pe),c=l[0].getFirstChild(),d=p.$isParagraphNode(c)?c.getFormatFlags(n,null):null;l.forEach(f=>{o.set(f.getKey(),0,"element"),s.set(f.getKey(),f.getChildrenSize(),"element"),r.formatText(n,d)}),p.$setSelection(t),this.editor.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}clearText(){const n=this.editor;n.update(()=>{const t=p.$getNodeByKey(this.tableNodeKey);if(!St(t))throw new Error("Expected TableNode.");const r=p.$getSelection();xt(r)||lt(!1,"Expected grid selection");const o=r.getNodes().filter(Pe);if(o.length===this.table.columns*this.table.rows){t.selectPrevious(),t.remove(),p.$getRoot().selectStart();return}o.forEach(s=>{if(p.$isElementNode(s)){const l=p.$createParagraphNode(),c=is();l.append(c),s.append(l),s.getChildren().forEach(d=>{d!==l&&d.remove()})}}),cc(n,this.table,null),p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0)})}}const y1="__lexicalTableSelection",GA=e=>hs?(e||window).getSelection():null,CS=e=>(e.buttons&1)===1;function zs(e,n){if(!n)return n;const t=n.nodeName==="TABLE"?n:e.getDOMSlot(n).element;return lt(t.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",n.nodeName),t}function AS(e,n,t,r){const o=t.getRootElement();if(o===null)throw new Error("No root element.");const s=new gS(t,e.getKey()),l=t._window||window,c=zs(e,n);yS(c,s),s.listenersToRemove.add(()=>bS(c,s));const d=()=>{const y=()=>{s.isSelecting=!1,l.removeEventListener("mouseup",y),l.removeEventListener("mousemove",x)},x=xu.debounce(w=>{setTimeout(()=>{if(!CS(w)&&s.isSelecting){s.isSelecting=!1,l.removeEventListener("mouseup",y),l.removeEventListener("mousemove",x);return}const k=su(w.target);k!==null&&(s.anchorX!==k.x||s.anchorY!==k.y)&&(w.preventDefault(),s.setFocusCellForSelection(k))},0)},20);return{onMouseMove:x,onMouseUp:y}},f=y=>{setTimeout(()=>{if(y.button!==0||!l)return;const x=su(y.target);x!==null&&(So(y),s.setAnchorCellForSelection(x));const{onMouseUp:w,onMouseMove:k}=d();s.isSelecting=!0,l.addEventListener("mouseup",w,s.listenerOptions),l.addEventListener("mousemove",k,s.listenerOptions)},0)};c.addEventListener("mousedown",f,s.listenerOptions);const h=y=>{y.button===0&&t.update(()=>{const x=p.$getSelection(),w=y.target;xt(x)&&x.tableKey===s.tableNodeKey&&o.contains(w)&&s.clearHighlight()})};l.addEventListener("mousedown",h,s.listenerOptions),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_DOWN_COMMAND,y=>Ca(t,y,"down",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_UP_COMMAND,y=>Ca(t,y,"up",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_LEFT_COMMAND,y=>Ca(t,y,"backward",e,s),p.COMMAND_PRIORITY_HIGH)),s.listenersToRemove.add(t.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,y=>Ca(t,y,"forward",e,s),p.COMMAND_PRIORITY_HIGH));const g=y=>()=>{const x=p.$getSelection();if(!Ls(x,e))return!1;if(xt(x))return s.clearText(),!0;if(p.$isRangeSelection(x)){const w=ve.$findMatchingParent(x.anchor.getNode(),O=>Pe(O));if(!Pe(w))return!1;const k=x.anchor.getNode(),T=x.focus.getNode(),I=e.isParentOf(k),N=e.isParentOf(T);if(I&&!N||N&&!I)return s.clearText(),!0;const M=ve.$findMatchingParent(x.anchor.getNode(),O=>p.$isElementNode(O)),S=M&&ve.$findMatchingParent(M,O=>p.$isElementNode(O)&&Pe(O.getParent()));if(!p.$isElementNode(S)||!p.$isElementNode(M))return!1;if(y===p.DELETE_LINE_COMMAND&&S.getPreviousSibling()===null)return!0}return!1};[p.DELETE_WORD_COMMAND,p.DELETE_LINE_COMMAND,p.DELETE_CHARACTER_COMMAND].forEach(y=>{s.listenersToRemove.add(t.registerCommand(y,g(y),p.COMMAND_PRIORITY_CRITICAL))});const A=y=>{const x=p.$getSelection();if(!(xt(x)||p.$isRangeSelection(x)))return!1;const w=e.isParentOf(x.anchor.getNode()),k=e.isParentOf(x.focus.getNode());if(w!==k){const T=w?"anchor":"focus",I=w?"focus":"anchor",{key:N,offset:L,type:M}=x[I];return e[x[T].isBefore(x[I])?"selectPrevious":"selectNext"]()[I].set(N,L,M),!1}return xt(x)?(y&&(y.preventDefault(),y.stopPropagation()),s.clearText(),!0):!1};s.listenersToRemove.add(t.registerCommand(p.KEY_BACKSPACE_COMMAND,A,p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.KEY_DELETE_COMMAND,A,p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.CUT_COMMAND,y=>{const x=p.$getSelection();if(x){if(!(xt(x)||p.$isRangeSelection(x)))return!1;_a.copyToClipboard(t,ve.objectKlassEquals(y,ClipboardEvent)?y:null,_a.$getClipboardDataFromSelection(x));const w=A(y);return p.$isRangeSelection(x)?(x.removeText(),!0):w}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FORMAT_TEXT_COMMAND,y=>{const x=p.$getSelection();if(!Ls(x,e))return!1;if(xt(x))return s.formatCells(y),!0;if(p.$isRangeSelection(x)){const w=ve.$findMatchingParent(x.anchor.getNode(),k=>Pe(k));if(!Pe(w))return!1}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FORMAT_ELEMENT_COMMAND,y=>{const x=p.$getSelection();if(!xt(x)||!Ls(x,e))return!1;const w=x.anchor.getNode(),k=x.focus.getNode();if(!Pe(w)||!Pe(k))return!1;const[T,I,N]=Dr(e,w,k),L=Math.max(I.startRow,N.startRow),M=Math.max(I.startColumn,N.startColumn),S=Math.min(I.startRow,N.startRow),O=Math.min(I.startColumn,N.startColumn);for(let R=S;R<=L;R++)for(let B=O;B<=M;B++){const _=T[R][B].cell;_.setFormat(y);const j=_.getChildren();for(let D=0;D<j.length;D++){const z=j[D];p.$isElementNode(z)&&!z.isInline()&&z.setFormat(y)}}return!0},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.CONTROLLED_TEXT_INSERTION_COMMAND,y=>{const x=p.$getSelection(),w=x==null?void 0:x.getNodes(),k=Pe(w[1]),T=p.$getRoot(),I=t._keyToDOMMap.size-1===(x==null?void 0:x.getNodes().length);if(k&&t.update(()=>{const N=p.$createParagraphNode(),L=is(y);N.append(L),w.forEach(M=>{if(!St(M))return;const S=M.getPreviousSibling(),O=M.getNextSibling();S?S.insertAfter(N,!0):O&&O.insertBefore(N).selectEnd(),M.remove()}),I&&(T.clear(),x.insertText(y))}),!Ls(x,e))return!1;if(xt(x))return s.clearHighlight(),!1;if(p.$isRangeSelection(x)){const N=ve.$findMatchingParent(x.anchor.getNode(),L=>Pe(L));if(!Pe(N))return!1;if(typeof y=="string"){const L=y0(t,x,e);if(L)return b0(L,e,[is(y)]),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)),r&&s.listenersToRemove.add(t.registerCommand(p.KEY_TAB_COMMAND,y=>{const x=p.$getSelection();if(!p.$isRangeSelection(x)||!x.isCollapsed()||!Ls(x,e))return!1;const w=dc(x.anchor.getNode());if(w===null)return!1;So(y);const k=e.getCordsFromCellNode(w,s.table);return VA(s,e,k.x,k.y,y.shiftKey?"backward":"forward"),!0},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.FOCUS_COMMAND,y=>e.isSelected(),p.COMMAND_PRIORITY_HIGH));function b(y){const x=e.getCordsFromCellNode(y,s.table);return e.getDOMCellFromCordsOrThrow(x.x,x.y,s.table)}return s.listenersToRemove.add(t.registerCommand(p.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,y=>{const{nodes:x,selection:w}=y,k=w.focus.getNode().getParent();if(Pe(k)&&x.length>0){const T=x[0];if(St(T)){const I=T.getFirstChild();return I&&I.getChildrenSize(),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>{const y=p.$getSelection(),x=p.$getPreviousSelection();if(s.getAndClearShouldCheckSelection()&&p.$isRangeSelection(x)&&p.$isRangeSelection(y)&&y.isCollapsed()){const T=y.anchor.getNode(),I=e.getFirstChild(),N=dc(T);if(N!==null&&e.is(js(N))&&_t(I)){const L=I.getFirstChild();if(Pe(L)&&!ve.$findMatchingParent(N,M=>M.is(L)))return L.selectStart(),!0}}const{hasSelectedBlock:w,selectedAllDocument:k}=$o();if(p.$isRangeSelection(y)){const{anchor:T,focus:I}=y,N=T.getNode(),L=I.getNode(),M=dc(N),S=dc(L),O=!!(M&&e.is(js(M))),R=!!(S&&e.is(js(S))),B=O!==R,_=O&&R,j=y.isBackward();if(B){const D=y.clone();if(R){const[z]=Dr(e,S,S),H=z[0][0].cell,F=z[z.length-1].at(-1).cell;D.focus.set(j?H.getKey():F.getKey(),j?H.getChildrenSize():F.getChildrenSize(),"element")}else if(O){const[z]=Dr(e,M,M),H=z[0][0].cell,F=z[z.length-1].at(-1).cell;D.anchor.set(j?F.getKey():H.getKey(),j?F.getChildrenSize():0,"element")}p.$setSelection(D),!w&&!k&&A0(t,s)}else _&&(M.is(S)||(s.setAnchorCellForSelection(b(M)),s.setFocusCellForSelection(b(S),!0),s.isSelecting||setTimeout(()=>{const{onMouseUp:D,onMouseMove:z}=d();s.isSelecting=!0,l.addEventListener("mouseup",D),l.addEventListener("mousemove",z)},0)))}else if(y&&xt(y)&&y.is(x)&&y.tableKey===e.getKey()){const T=GA(t._window);if(T&&T.anchorNode&&T.focusNode){const I=p.$getNearestNodeFromDOMNode(T.focusNode),N=I&&!e.is(js(I)),L=p.$getNearestNodeFromDOMNode(T.anchorNode),M=L&&e.is(js(L));if(N&&M&&T.rangeCount>0){const S=p.$createRangeSelectionFromDom(T,t);S&&(S.anchor.set(e.getKey(),y.isBackward()?e.getChildrenSize():0,"element"),T.removeAllRanges(),p.$setSelection(S))}}}return y&&!y.is(x)&&(xt(y)||xt(x))&&s.tableSelection&&!s.tableSelection.is(x)?(xt(y)&&y.tableKey===s.tableNodeKey?s.updateTableTableSelection(y):!xt(y)&&xt(x)&&x.tableKey===s.tableNodeKey&&s.updateTableTableSelection(null),!1):(s.hasHijackedSelectionStyles&&!e.isSelected()?xS(t,s):!s.hasHijackedSelectionStyles&&e.isSelected()&&!w&&!k&&A0(t,s),!1)},p.COMMAND_PRIORITY_CRITICAL)),s.listenersToRemove.add(t.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{const y=p.$getSelection();if(!p.$isRangeSelection(y)||!y.isCollapsed()||!Ls(y,e))return!1;const x=y0(t,y,e);return x?(b0(x,e),!0):!1},p.COMMAND_PRIORITY_CRITICAL)),s}function bS(e,n){x1(e)===n&&delete e[y1]}function yS(e,n){lt(x1(e)===null,"tableElement already has an attached TableObserver"),e[y1]=n}function x1(e){return e[y1]||null}function su(e){let n=e;for(;n!=null;){const t=n.nodeName;if(t==="TD"||t==="TH"){const r=n._cell;return r===void 0?null:r}n=n.parentNode}return null}function La(e,n){const t=zs(e,n),r=[],o={columns:0,domRows:r,rows:0};let s=t.querySelector("tr"),l=0,c=0;for(r.length=0;s!=null;){const d=s.nodeName;if(d==="TD"||d==="TH"){const g=s,A={elem:g,hasBackgroundColor:g.style.backgroundColor!=="",highlighted:!1,x:l,y:c};s._cell=A;let b=r[c];b===void 0&&(b=r[c]=[]),b[l]=A}else{const g=s.firstChild;if(g!=null){s=g;continue}}const f=s.nextSibling;if(f!=null){l++,s=f;continue}const h=s.parentNode;if(h!=null){const g=h.nextSibling;if(g==null)break;c++,l=0,s=g}}return o.columns=l+1,o.rows=c+1,o}function cc(e,n,t){const r=new Set(t?t.getNodes():[]);v1(n,(o,s)=>{const l=o.elem;r.has(s)?(o.highlighted=!0,QA(e,o)):(o.highlighted=!1,JA(e,o),l.getAttribute("style")||l.removeAttribute("style"))})}function v1(e,n){const{domRows:t}=e;for(let r=0;r<t.length;r++){const o=t[r];if(o)for(let s=0;s<o.length;s++){const l=o[s];if(!l)continue;const c=p.$getNearestNodeFromDOMNode(l.elem);c!==null&&n(l,c,{x:s,y:r})}}}function A0(e,n){n.disableHighlightStyle(),v1(n.table,t=>{t.highlighted=!0,QA(e,t)})}function xS(e,n){n.enableHighlightStyle(),v1(n.table,t=>{const r=t.elem;t.highlighted=!1,JA(e,t),r.getAttribute("style")||r.removeAttribute("style")})}const VA=(e,n,t,r,o)=>{const s=o==="forward";switch(o){case"backward":case"forward":return t!==(s?e.table.columns-1:0)?uc(n.getCellNodeFromCordsOrThrow(t+(s?1:-1),r,e.table),s):r!==(s?e.table.rows-1:0)?uc(n.getCellNodeFromCordsOrThrow(s?0:e.table.columns-1,r+(s?1:-1),e.table),s):s?n.selectNext():n.selectPrevious(),!0;case"up":return r!==0?uc(n.getCellNodeFromCordsOrThrow(t,r-1,e.table),!1):n.selectPrevious(),!0;case"down":return r!==e.table.rows-1?uc(n.getCellNodeFromCordsOrThrow(t,r+1,e.table),!0):n.selectNext(),!0;default:return!1}},vS=(e,n,t,r,o)=>{const s=o==="forward";switch(o){case"backward":case"forward":return t!==(s?e.table.columns-1:0)&&e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t+(s?1:-1),r,e.table)),!0;case"up":return r!==0?(e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t,r-1,e.table)),!0):!1;case"down":return r!==e.table.rows-1?(e.setFocusCellForSelection(n.getDOMCellFromCordsOrThrow(t,r+1,e.table)),!0):!1;default:return!1}};function Ls(e,n){if(p.$isRangeSelection(e)||xt(e)){const t=n.isParentOf(e.anchor.getNode()),r=n.isParentOf(e.focus.getNode());return t&&r}return!1}function uc(e,n){n?e.selectStart():e.selectEnd()}const yf="172,206,247";let qA=!1;function ha(e){qA=e}function QA(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);if(lt(Pe(r),"Expected to find LexicalNode from Table Cell DOMNode"),qA){t.style.setProperty("caret-color","transparent");return}r.getBackgroundColor()===null?t.style.setProperty("background-color",`rgb(${yf})`):t.style.setProperty("background-image",`linear-gradient(to right, rgba(${yf},0.85), rgba(${yf},0.85))`),t.style.setProperty("caret-color","transparent")}function JA(e,n){const t=n.elem,r=p.$getNearestNodeFromDOMNode(t);lt(Pe(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null&&t.style.removeProperty("background-color"),t.style.removeProperty("background-image"),t.style.removeProperty("caret-color")}function dc(e){const n=ve.$findMatchingParent(e,Pe);return Pe(n)?n:null}function js(e){const n=ve.$findMatchingParent(e,St);return St(n)?n:null}function Ca(e,n,t,r,o){if((t==="up"||t==="down")&&wS(e))return!1;const s=p.$getSelection();if(!Ls(s,r)){if(p.$isRangeSelection(s)){if(s.isCollapsed()&&t==="backward"){const l=s.anchor.type,c=s.anchor.offset;if(l!=="element"&&!(l==="text"&&c===0))return!1;const d=s.anchor.getNode();if(!d)return!1;const f=ve.$findMatchingParent(d,g=>p.$isElementNode(g)&&!g.isInline());if(!f)return!1;const h=f.getPreviousSibling();return!h||!St(h)?!1:(So(n),h.selectEnd(),!0)}else if(n.shiftKey&&(t==="up"||t==="down")){const l=s.focus.getNode();if(!s.isCollapsed()&&(t==="up"&&!s.isBackward()||t==="down"&&s.isBackward())){let d=ve.$findMatchingParent(l,b=>St(b));if(Pe(d)&&(d=ve.$findMatchingParent(d,St)),d!==r||!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(!f)return!1;let h=0;t==="up"&&p.$isElementNode(f)&&(h=f.getChildrenSize());let g=f;if(t==="up"&&p.$isElementNode(f)){const b=f.getLastChild();g=b||f,h=In(g)?g.getTextContentSize():0}const A=s.clone();return A.focus.set(g.getKey(),h,In(g)?"text":"element"),p.$setSelection(A),So(n),!0}else if(p.$isRootOrShadowRoot(l)){const d=t==="up"?s.getNodes()[s.getNodes().length-1]:s.getNodes()[0];if(d){const f=ve.$findMatchingParent(d,Pe);if(f&&r.isParentOf(f)){const h=r.getFirstDescendant(),g=r.getLastDescendant();if(!h||!g)return!1;const[A]=Tn(h),[b]=Tn(g),y=r.getCordsFromCellNode(A,o.table),x=r.getCordsFromCellNode(b,o.table),w=r.getDOMCellFromCordsOrThrow(y.x,y.y,o.table),k=r.getDOMCellFromCordsOrThrow(x.x,x.y,o.table);return o.setAnchorCellForSelection(w),o.setFocusCellForSelection(k,!0),!0}}return!1}else{let d=ve.$findMatchingParent(l,h=>p.$isElementNode(h)&&!h.isInline());if(Pe(d)&&(d=ve.$findMatchingParent(d,St)),!d)return!1;const f=t==="down"?d.getNextSibling():d.getPreviousSibling();if(St(f)&&o.tableNodeKey===f.getKey()){const h=f.getFirstDescendant(),g=f.getLastDescendant();if(!h||!g)return!1;const[A]=Tn(h),[b]=Tn(g),y=s.clone();return y.focus.set((t==="up"?A:b).getKey(),t==="up"?0:b.getChildrenSize(),"element"),So(n),p.$setSelection(y),!0}}}}return t==="down"&&XA(e)&&o.setShouldCheckSelection(),!1}if(p.$isRangeSelection(s)&&s.isCollapsed()){const{anchor:l,focus:c}=s,d=ve.$findMatchingParent(l.getNode(),Pe),f=ve.$findMatchingParent(c.getNode(),Pe);if(!Pe(d)||!d.is(f))return!1;const h=js(d);if(h!==r&&h!=null){const T=zs(h,e.getElementByKey(h.getKey()));if(T!=null)return o.table=La(h,T),Ca(e,n,t,h,o)}if(t==="backward"||t==="forward"){const T=l.type,I=l.offset,N=l.getNode();if(!N)return!1;const L=s.getNodes();return L.length===1&&p.$isDecoratorNode(L[0])?!1:kS(T,I,N,t)?TS(n,N,r,t):!1}const g=e.getElementByKey(d.__key),A=e.getElementByKey(l.key);if(A==null||g==null)return!1;let b;if(l.type==="element")b=A.getBoundingClientRect();else{const T=window.getSelection();if(T===null||T.rangeCount===0)return!1;b=T.getRangeAt(0).getBoundingClientRect()}const y=t==="up"?d.getFirstChild():d.getLastChild();if(y==null)return!1;const x=e.getElementByKey(y.__key);if(x==null)return!1;const w=x.getBoundingClientRect();if(t==="up"?w.top>b.top-b.height:b.bottom+b.height>w.bottom){So(n);const T=r.getCordsFromCellNode(d,o.table);if(n.shiftKey){const I=r.getDOMCellFromCordsOrThrow(T.x,T.y,o.table);o.setAnchorCellForSelection(I),o.setFocusCellForSelection(I,!0)}else return VA(o,r,T.x,T.y,t);return!0}}else if(xt(s)){const{anchor:l,focus:c}=s,d=ve.$findMatchingParent(l.getNode(),Pe),f=ve.$findMatchingParent(c.getNode(),Pe),[h]=s.getNodes();lt(St(h),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const g=zs(h,e.getElementByKey(h.getKey()));if(!Pe(d)||!Pe(f)||!St(h)||g==null)return!1;o.updateTableTableSelection(s);const A=La(h,g),b=r.getCordsFromCellNode(d,A),y=r.getDOMCellFromCordsOrThrow(b.x,b.y,A);if(o.setAnchorCellForSelection(y),So(n),n.shiftKey){const x=r.getCordsFromCellNode(f,A);return vS(o,h,x.x,x.y,t)}else f.selectEnd();return!0}return!1}function wS(e){const n=e.getRootElement();return n?n.hasAttribute("aria-controls")&&n.getAttribute("aria-controls")==="typeahead-menu":!1}function kS(e,n,t,r){return SS(e,t,r)||ES(e,n,t,r)}function SS(e,n,t){return e==="element"&&(t==="backward"?n.getPreviousSibling()===null:n.getNextSibling()===null)}function ES(e,n,t,r){const o=ve.$findMatchingParent(t,l=>p.$isElementNode(l)&&!l.isInline());if(!o)return!1;const s=r==="backward"?n===0:n===t.getTextContentSize();return e==="text"&&s&&(r==="backward"?o.getPreviousSibling()===null:o.getNextSibling()===null)}function TS(e,n,t,r){const o=ve.$findMatchingParent(n,Pe);if(!Pe(o))return!1;const[s,l]=Dr(t,o,o);if(!MS(s,l,r))return!1;const c=LS(n,r,t);return!c||St(c)?!1:(So(e),r==="backward"?c.selectEnd():c.selectStart(),!0)}function MS(e,n,t){const r=e[0][0],o=e[e.length-1][e[0].length-1],{startColumn:s,startRow:l}=n;return t==="backward"?s===r.startColumn&&l===r.startRow:s===o.startColumn&&l===o.startRow}function LS(e,n,t){const r=ve.$findMatchingParent(e,s=>p.$isElementNode(s)&&!s.isInline());if(!r)return;const o=n==="backward"?r.getPreviousSibling():r.getNextSibling();return o&&St(o)?o:n==="backward"?t.getPreviousSibling():t.getNextSibling()}function b0(e,n,t){const r=p.$createParagraphNode();e==="first"?n.insertBefore(r):n.insertAfter(r),r.append(...t||[]),r.selectEnd()}function y0(e,n,t){const r=t.getParent();if(!r)return;const o=window.getSelection();if(!o)return;const s=o.anchorNode,l=e.getElementByKey(r.getKey()),c=zs(t,e.getElementByKey(t.getKey()));if(!s||!l||!c||!l.contains(s)||c.contains(s))return;const d=ve.$findMatchingParent(n.anchor.getNode(),T=>Pe(T));if(!d)return;const f=ve.$findMatchingParent(d,T=>St(T));if(!St(f)||!f.is(t))return;const[h,g]=Dr(t,d,d),A=h[0][0],b=h[h.length-1][h[0].length-1],{startRow:y,startColumn:x}=g,w=y===A.startRow&&x===A.startColumn,k=y===b.startRow&&x===b.startColumn;return w?"first":k?"last":void 0}function x0(e,n,t,r){const o=e.querySelector("colgroup");if(!o)return;const s=[];for(let l=0;l<t;l++){const c=document.createElement("col"),d=r&&r[l];d&&(c.style.width=`${d}px`),s.push(c)}o.replaceChildren(...s)}function v0(e,n,t){t?(ve.addClassNamesToElement(e,n.theme.tableRowStriping),e.setAttribute("data-lexical-row-striping","true")):(ve.removeClassNamesFromElement(e,n.theme.tableRowStriping),e.removeAttribute("data-lexical-row-striping"))}const dh=new WeakSet;function XA(e=p.$getEditor()){return dh.has(e)}function NS(e,n){n?(e._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),dh.add(e)):dh.delete(e)}class Vr extends p.ElementNode{constructor(t){super(t);Ne(this,"__rowStriping");Ne(this,"__colWidths");this.__rowStriping=!1}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(t){const r=this.getWritable();return r.__colWidths=t,r}static clone(t){return new Vr(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__colWidths=t.__colWidths,this.__rowStriping=t.__rowStriping}static importDOM(){return{table:t=>({conversion:jS,priority:1})}}static importJSON(t){const r=w1();return r.__rowStriping=t.rowStriping||!1,r.__colWidths=t.colWidths,r}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(t){const r=t.nodeName!=="TABLE"&&t.querySelector("table")||t;return lt(r.nodeName==="TABLE","TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(r).withAfter(r.querySelector("colgroup"))}createDOM(t,r){const o=document.createElement("table"),s=document.createElement("colgroup");if(o.appendChild(s),x0(o,t,this.getColumnCount(),this.getColWidths()),p.setDOMUnmanaged(s),ve.addClassNamesToElement(o,t.theme.table),this.__rowStriping&&v0(o,t,!0),XA(r)){const l=document.createElement("div"),c=t.theme.tableScrollableWrapper;return c?ve.addClassNamesToElement(l,c):l.style.cssText="overflow-x: auto;",l.appendChild(o),l}return o}updateDOM(t,r,o){const l=this.getDOMSlot(r).element;return t.__rowStriping!==this.__rowStriping&&v0(r,o,this.__rowStriping),x0(l,o,this.getColumnCount(),this.getColWidths()),t!==this}exportDOM(t){return{...super.exportDOM(t),after:r=>{if(!r||!ve.isHTMLElement(r))return null;const o=r.firstChild;if(!(o instanceof HTMLTableElement))return null;const s=r.querySelectorAll(":scope > tr");if(s.length>0){const l=document.createElement("tbody");l.append(...s),o.append(l),r.append(o)}return r}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(t,r){const{rows:o,domRows:s}=r;for(let l=0;l<o;l++){const c=s[l];if(c==null)continue;const d=c.findIndex(f=>{if(!f)return;const{elem:h}=f;return p.$getNearestNodeFromDOMNode(h)===t});if(d!==-1)return{x:d,y:l}}throw new Error("Cell not found in table.")}getDOMCellFromCords(t,r,o){const{domRows:s}=o,l=s[r];if(l==null)return null;const c=t<l.length?t:l.length-1,d=l[c];return d??null}getDOMCellFromCordsOrThrow(t,r,o){const s=this.getDOMCellFromCords(t,r,o);if(!s)throw new Error("Cell not found at cords.");return s}getCellNodeFromCords(t,r,o){const s=this.getDOMCellFromCords(t,r,o);if(s==null)return null;const l=p.$getNearestNodeFromDOMNode(s.elem);return Pe(l)?l:null}getCellNodeFromCordsOrThrow(t,r,o){const s=this.getCellNodeFromCords(t,r,o);if(!s)throw new Error("Node at cords not TableCellNode.");return s}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(t){this.getWritable().__rowStriping=t}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const t=this.getFirstChild();if(!t)return 0;let r=0;return t.getChildren().forEach(o=>{Pe(o)&&(r+=o.getColSpan())}),r}}function jS(e){const n=w1();e.hasAttribute("data-lexical-row-striping")&&n.setRowStriping(!0);const t=e.querySelector(":scope > colgroup");if(t){let r=[];for(const o of t.querySelectorAll(":scope > col")){const s=o.style.width;if(!s||!ru.test(s)){r=void 0;break}r.push(parseFloat(s))}r&&n.setColWidths(r)}return{node:n}}function w1(){return p.$applyNodeReplacement(new Vr)}function St(e){return e instanceof Vr}const $A=m.createContext([e=>()=>{},e=>{}]),RS=({children:e})=>{const n=m.useMemo(()=>{let t=null;const r=new Set;return[o=>(o(t),r.add(o),()=>{r.delete(o)}),o=>{t=o;for(const s of r)s(o)}]},[]);return i.jsx($A.Provider,{value:n,children:e})},IS=()=>{const[e,n]=m.useContext($A),[t,r]=m.useState(null);return m.useEffect(()=>e(o=>{r(o)}),[e]),[t,n]},DS=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class _u extends p.DecoratorNode{constructor(t,r){super(r);Ne(this,"__uuid");this.__uuid=t}static clone(t){return new _u(t.__uuid,t.__key)}static getType(){return"autocomplete"}static importJSON(t){return OS(t.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}updateDOM(){return!1}createDOM(){return document.createElement("span")}decorate(){return this.__uuid!==DS?null:i.jsx(PS,{})}}function OS(e){return new _u(e)}function PS(){const[e]=IS(),n=window.navigator.userAgentData,t=n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600;return i.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[e," ",t?"(SWIPE ⮕)":"(TAB)"]})}class qr extends bi.MarkNode{constructor(t,r=null,o){super(t,o);Ne(this,"__resolve");this.__resolve=r}static getType(){return"extend-mark"}static clone(t){return new qr(t.getIDs(),t.__resolve,t.__key)}static importJSON(t){return new qr(t.ids||[])}static importDOM(){return{mark:r=>({conversion:()=>{const o=r.getAttribute("data-key"),s=o?o.split(" "):[],l=r.getAttribute("resolve"),c=document.createDocumentFragment();return Array.from(r.childNodes).forEach(d=>c.appendChild(d.cloneNode(!0))),{node:eb(s,l)}},priority:1})}}resolveThreat(t){const r=this.getWritable();r.__resolve=t}createDOM(t){const r=document.createElement("mark");ve.addClassNamesToElement(r,t.theme.mark),ve.addClassNamesToElement(r,t.theme.markOverlap),r.style.background="transparent",r.style.border="none";const o=this.getIDs();if(o.length>0){const s=o.join(" ");r.setAttribute("data-key",s),r.setAttribute("data-comment-count",String(o.length))}else r.removeAttribute("data-key"),r.removeAttribute("data-comment-count");return this.__resolve&&r.setAttribute("resolve",this.__resolve),r}exportDOM(t){const{element:r}=super.exportDOM(t);return this.__resolve&&r.setAttribute("resolve",this.__resolve),{element:r}}updateDOM(t,r,o){const s=this.getIDs();return s.length>0?(r.setAttribute("data-key",s.join(" ")),r.setAttribute("data-comment-count",String(s.length))):(r.removeAttribute("data-key"),r.removeAttribute("data-comment-count")),this.__resolve?r.setAttribute("resolve",this.__resolve):r.removeAttribute("resolve"),super.updateDOM(t,r,o)}exportJSON(){return{...super.exportJSON(),type:"extend-mark",ids:this.getIDs()}}excludeFromCopy(t){return!1}updateExtendId(t,r){const o=this.getWritable();o.hasID(t)&&(o.deleteID(t),o.addID(r))}}function eb(e,n=null){return p.$applyNodeReplacement(new qr(e,n))}function Vo(e){return e instanceof qr}const tb=[{replace:p.TextNode,with:e=>new jo(e.getTextContent()),withKlass:jo},{replace:Gt.CodeNode,with:e=>new Qn(!1),withKlass:Qn},{replace:bi.MarkNode,with:e=>new qr(e.__ids),withKlass:qr}],Fn={transition:"fade",duration:400};function BS(e,n){for(let t=0;t<n.length;t++){const r=n[t];if(It(r)){const o=r.getParent(),s=gt(o)?o.getListType():"bullet",l=hn(s);for(;t<n.length&&It(n[t]);)l.append(n[t]),t++;e.append(l),t--}else e.append(r)}}function _S(e,n){const t=e.getChildren();if(t.length===0){e.remove();return}const r=t.findIndex(c=>c.getKey()===n.getKey());if(r===-1)return;const o=t.slice(r+1),s=e.getParent(),l=e.getNextSibling();if(n.remove(),e.getChildrenSize()===0){if(s&&It(s)){const c=s.getParent();if(c&>(c)){const d=c.getChildren().findIndex(f=>f.getKey()===s.getKey());if(d!==-1){s.remove();const f=c.getChildren(),h=c.getListType(),g=hn(h),A=hn(h);for(let b=0;b<d;b++)g.append(f[b]);for(let b=d;b<f.length;b++)A.append(f[b]);c.insertBefore(g),g.insertAfter(n),n.insertAfter(A),c.isAttached()&&c.remove();return}}}s&&p.$isElementNode(s)&&(l?l.insertBefore(n):s.append(n)),e.isAttached()&&e.remove();return}if(r===0)e.insertBefore(n);else if(r===t.length-1)e.insertAfter(n);else{const c=e.getListType(),d=hn(c);for(const f of o)d.append(f);e.insertAfter(n),n.insertAfter(d)}}function FS(e){var t;const n=mr();return(t=e.parentElement)!=null&&t.classList.contains("dsd__theme__layoutItem")?{node:n}:null}class $r extends p.ElementNode{static getType(){return"layout-divider"}static clone(n){return new $r(n.__key)}createDOM(n){const t=document.createElement("div");return typeof n.theme.layoutDivider=="string"&&ve.addClassNamesToElement(t,n.theme.layoutDivider),t.setAttribute("contenteditable","false"),t}updateDOM(){return!1}static importDOM(){return{div:n=>n.className!=="dsd__theme__layoutDivider"?null:{conversion:FS,priority:2}}}static importJSON(){return mr()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function mr(){return new $r}function WS(e){return e instanceof $r}const Fu=(e,n,t)=>{var o,s,l,c,d;const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const f=r.anchor.getNode(),h=f.getKey(),g=f.getParent()===t,A=t instanceof p.ElementNode&&(t.__type==="layout-item"?(s=(o=t.getLastChild())==null?void 0:o.getPreviousSibling())==null?void 0:s.getKey():(l=t.getLastChild())==null?void 0:l.getKey())===h,b=t instanceof p.ElementNode&&((c=t.getFirstChild())==null?void 0:c.getKey())===h;if(t&&f instanceof p.ParagraphNode&&!f.getTextContent()&&g&&!((d=f.getPreviousSibling())!=null&&d.getTextContent())&&A&&!b){const x=e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>(x(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{var k;if(t){let T=t.getChildren();const I=t.getLastChild();WS(I)&&(T=T.slice(0,-1)),T.length===2?T.slice(-1).forEach(N=>N.remove()):T.slice(-2).forEach(N=>N.remove())}const w=n==null?void 0:n.getNextSibling();if(p.$isParagraphNode(w)&&w.getTextContent()==="")(k=n==null?void 0:n.getNextSibling())==null||k.selectEnd();else{const T=n==null?void 0:n.insertAfter(p.$createParagraphNode());T==null||T.selectStart()}}),!0}}return!1},uo=e=>{for(;e;){if(fo(e))return e;const n=e.getParent();if(!n)break;e=n}return null},Wu=e=>{switch(e){case"warning":return{emoji:"e=%E2%9A%A0%EF%B8%8F",backgroundColor:"",calloutType:"warning"};case"alert":return{emoji:"e=%E2%9D%97",backgroundColor:"",calloutType:"alert"};case"success":return{emoji:"e=%E2%9C%85",backgroundColor:"",calloutType:"success"};default:return{emoji:"e=%F0%9F%92%AB",backgroundColor:"",calloutType:"😊"}}},w0=e=>e.replace(/\s+/g," ").trim(),zS=e=>{const n=en();if(n){const t=ve.$findMatchingParent(n,gs);if((t==null?void 0:t.__type)==="callout"){const r=p.$getSelection();if(p.$isRangeSelection(r)&&r.isCollapsed()){const o=r.anchor.getNode(),s=ve.$findMatchingParent(o,fo);return Fu(e,s,t)}}}return!0};function xf(e,n){let t=e;for(;t;){if(p.$isElementNode(t)){const r=t.getParent();if(It(t)||(r==null?void 0:r.getKey())===n.getKey())return t}t=t.getParent()}return null}function US(e){const n=[];function t(r){if(gt(r))for(const o of r.getChildren())t(o);else if(It(r)){n.push(r);for(const o of r.getChildren())t(o)}else p.$isElementNode(r)&&n.push(r)}for(const r of e.getChildren())t(r);return n}function nb(e){const n=p.$getRoot(),t=e.anchor.getNode(),r=e.focus.getNode(),o=xf(t,n),s=xf(r,n);if(!o||!s)return[];const l=new Set([o.getKey(),s.getKey()]);for(const h of e.getNodes()){const g=xf(h,n);g&&l.add(g.getKey())}const d=US(n).filter(h=>l.has(h.getKey())),f=new Set(d.map(h=>h.getKey()));return d.filter(h=>{let g=h.getParent();for(;g;){if(f.has(g.getKey()))return!1;g=g.getParent()}return!0})}const KS=(e,n,t)=>()=>{const r=ol(n,t),o=dl(e),s=p.$createParagraphNode(),l=rl().append(s);return r.append(o),r.append(l),r};function HS(e,n,t){const r=ol(n,t),o=dl(e),s=rl();return r.append(o),r.append(s),r}function YS(e,n,t,r){const o=nb(e);if(o.length===0)return!1;const s=o[0],l=s.getParent(),c=HS(n,t,r),d=c.getChildren().find(gs);return!d||!p.$isElementNode(d)?!1:(s.insertBefore(c),BS(d,o),l&>(l)&&_S(l,c),!0)}const ZS=(e,n)=>{const r=n.getChildren().find(gs);if(!r)return;const o=r.getFirstChild();if(!o||!p.$isElementNode(o))return;const s=e.getChildren();for(const l of s)o.append(l)},rb=[{key:"default",i18n:"editor.menu.callout.default.name"},{key:"success",i18n:"editor.menu.callout.success.name"},{key:"warning",i18n:"editor.menu.callout.warning.name"},{key:"alert",i18n:"editor.menu.callout.alert.name"}],k1={default:"",violet:"var(--mantine-color-violet-light)",indigo:"var(--mantine-color-indigo-light)",blue:"var(--mantine-color-blue-light)",teal:"var(--mantine-color-teal-light)",green:"var(--mantine-color-green-light)",yellow:"var(--mantine-color-yellow-light)",orange:"var(--mantine-color-orange-light)",red:"var(--mantine-color-red-light)",brown:"var(--mantine-color-dark-light)",gray:"var(--mantine-color-gray-light)"},ob=e=>{const n=Object.entries(k1).find(([,t])=>t===e);return n?n[0]:"default"},sb=[{name:"violet",outline:"var(--mantine-color-violet-outline, #9775fa)",bg:"rgba(121, 80, 242, 0.25)"},{name:"indigo",outline:"var(--mantine-color-indigo-outline, #748ffc)",bg:"rgba(76, 110, 245, 0.25)"},{name:"blue",outline:"var(--mantine-color-blue-outline, #4dabf7)",bg:"rgba(34, 139, 230, 0.25)"},{name:"teal",outline:"var(--mantine-color-teal-2, #96f2d7)",bg:"rgba(56, 217, 169, 0.25)"},{name:"green",outline:"var(--mantine-color-green-outline, #69db7c)",bg:"rgba(64, 192, 87, 0.25)"},{name:"yellow",outline:"var(--mantine-color-yellow-outline, #ffd43b)",bg:"rgba(250, 176, 5, 0.25)"},{name:"orange",outline:"var(--mantine-color-orange-outline, #ffa94d)",bg:"rgba(253, 126, 20, 0.25)"},{name:"red",outline:"var(--mantine-color-red-outline, #ff8787)",bg:"rgba(250, 82, 82, 0.25)"},{name:"brown",outline:"#9F765A",bg:"rgba(159, 118, 90, 0.25)"},{name:"gray",outline:"var(--mantine-color-gray-outline, #ced4da)",bg:"rgba(134, 142, 150, 0.25)"}],vf="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function GS({editor:e,keyNode:n,currentType:t,currentBg:r,onClose:o}){const{t:s}=Ke.useTranslation(),l=m.useCallback(g=>{e.update(()=>{const A=p.$getNodeByKey(n);if(!A)return;const b=uo(A);if(!b)return;const{emoji:y,backgroundColor:x,calloutType:w}=Wu(g);b.setType(w),b.setBackgroundColor(x),A instanceof Qr&&A.setEmoji(y)}),o()},[e,n,o]),c=m.useCallback(g=>{e.update(()=>{const A=p.$getNodeByKey(n);if(!A)return;const b=uo(A);b&&b.setBackgroundColor(g)})},[e,n]),d=t==="😊"||t==="default"?"default":t,f=d==="default",h=ob(r);return i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,paddingTop:8,paddingBottom:8,overflow:"hidden"},children:[i.jsx("div",{style:{paddingLeft:8,paddingRight:8,paddingBottom:6},children:i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[i.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:s("editor.menu.callout.type","Type")}),i.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:rb.map(({key:g,i18n:A})=>{const b=d===g;return i.jsx("button",{type:"button",onClick:()=>l(g),style:{flex:"1 1 calc(50% - 2px)",minWidth:0,height:36,padding:4,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--mantine-radius-md)",border:"none",cursor:"pointer",backgroundColor:b?"var(--mantine-primary-color-light)":"var(--mantine-color-gray-light)",color:b?"light-dark(var(--mantine-primary-color-light-color), var(--mantine-primary-color-4))":"var(--mantine-color-bright)",fontSize:"var(--mantine-font-size-sm)",fontWeight:400,lineHeight:1.45,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"inherit"},children:s(A)},g)})})]})}),f&&i.jsxs(i.Fragment,{children:[i.jsx("div",{style:{paddingTop:4,paddingBottom:4},children:i.jsx("div",{style:{height:1,backgroundColor:"light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5))"}})}),i.jsxs("div",{style:{paddingLeft:8,paddingRight:8,display:"flex",flexDirection:"column",gap:4},children:[i.jsx(v.Text,{size:"xs",fw:500,c:"dimmed",px:4,lh:1.4,children:s("editor.colors.color","Color")}),i.jsx(At.ColorPicker,{colors:sb.map(({name:g,outline:A,bg:b})=>({value:g,border:A,bg:b})),value:h,onChange:g=>c(k1[g]||""),swatchSize:28,swatchVariant:"outline",gap:5})]})]})]})}function VS({editor:e,keyNode:n}){const{t}=Ke.useTranslation(),[r,o]=m.useState("default"),[s,l]=m.useState(""),[c,d]=m.useState(!1);m.useEffect(()=>{const h=()=>{const g=p.$getNodeByKey(n);if(!g)return;const A=uo(g);A&&(o(A.__calloutType),l(A.__backgroundColor))};return e.getEditorState().read(h),e.registerUpdateListener(({editorState:g})=>{g.read(h)})},[e,n]);const f=m.useCallback(()=>{e.update(()=>{const h=p.$getNodeByKey(n);if(!h)return;const g=uo(h);if(g){for(const A of g.getChildren())if(gs(A))for(const b of A.getChildren())g.insertBefore(b);g.remove()}})},[e,n]);return i.jsxs("div",{className:"callout-hover-actions",children:[i.jsxs(v.Menu,{opened:c,onChange:d,position:"bottom-end",shadow:"md",withinPortal:!0,transitionProps:Fn,styles:{dropdown:{borderRadius:"var(--mantine-spacing-sm)",padding:0,overflow:"hidden",width:306}},children:[i.jsx(v.Menu.Target,{children:i.jsx(Jt,{label:t("editor.contextMenu.appearance"),"aria-label":t("editor.contextMenu.appearance"),icon:ss,iconColor:"var(--mantine-color-gray-text)"})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(GS,{editor:e,keyNode:n,currentType:r,currentBg:s,onClose:()=>d(!1)})})]}),i.jsx(ms,{label:t("editor.actions.delete"),ariaLabel:"remove-callout-block",onClick:f})]})}function qS({editor:e,keyNode:n}){const{t}=Ke.useTranslation(),[r,o]=m.useState("default"),[s,l]=m.useState(""),[c,{open:d,close:f}]=Ft.useDisclosure(!1),[h,{open:g,close:A}]=Ft.useDisclosure(!1),[b,{open:y,close:x}]=Ft.useDisclosure(!1);m.useEffect(()=>{const N=()=>{const L=p.$getNodeByKey(n);if(!L)return;const M=uo(L);M&&(o(M.__calloutType),l(M.__backgroundColor))};return e.getEditorState().read(N),e.registerUpdateListener(({editorState:L})=>{L.read(N)})},[e,n]);const w=m.useCallback(N=>{e.update(()=>{const L=p.$getNodeByKey(n);if(!L)return;const M=uo(L);if(!M)return;const{emoji:S,backgroundColor:O,calloutType:R}=Wu(N);M.setType(R),M.setBackgroundColor(O),L instanceof Qr&&L.setEmoji(S)}),A()},[e,n,A]),k=m.useCallback(N=>{e.update(()=>{const L=p.$getNodeByKey(n);if(!L)return;const M=uo(L);M&&M.setBackgroundColor(N)}),x()},[e,n,x]),T=m.useCallback(()=>{f(),e.update(()=>{const N=p.$getNodeByKey(n);if(!N)return;const L=uo(N);if(L){for(const M of L.getChildren())if(gs(M))for(const S of M.getChildren())L.insertBefore(S);L.remove()}})},[e,n,f]),I=r==="😊"||r==="default"?"default":r;return i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"callout-mobile-actions-btn",size:32,variant:"subtle",color:"gray",radius:"md",bg:"var(--mantine-color-body)",onClick:d,children:i.jsx($,{icon:qn,size:16})}),i.jsx(Bt,{opened:c,onClose:f,title:t("editor.menu.main.code.mobileActions"),children:i.jsxs(v.Stack,{gap:2,p:0,children:[i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:vf,leftSection:i.jsx($,{icon:ss,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx($,{icon:Bs,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),g()},children:t("editor.menu.callout.type","Type")}),i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:vf,leftSection:i.jsx($,{icon:X8,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx($,{icon:Bs,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{f(),y()},children:t("editor.colors.color","Color")}),i.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:vf,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),onClick:T,children:t("editor.actions.delete")})]})}),i.jsx(Bt,{opened:h,onClose:A,title:t("editor.menu.callout.type","Type"),children:i.jsx(v.Stack,{gap:2,p:0,children:rb.map(({key:N,i18n:L})=>i.jsx(Zs,{label:t(L),checked:I===N,onSelect:()=>w(N)},N))})}),i.jsx(Bt,{opened:b,onClose:x,title:t("editor.colors.color","Color"),children:i.jsx(At.ColorPicker.List,{sections:[{key:"color",label:"",type:"highlight",colors:sb.map(({name:N,outline:L,bg:M})=>({value:N,label:t(`editor.colors.${N}`,N),border:L,bg:M})),value:ob(s)}],onChange:N=>{k(k1[N]||"")}})})]})}const QS=({editor:e,keyNode:n,emoji:t})=>{const{t:r}=Ke.useTranslation(),{disable:o}=m.useContext(ft),s=m.useRef(null);return m.useEffect(()=>{e.update(()=>{var d,f;const l=p.$getNodeByKey(n),c=((f=(d=s.current)==null?void 0:d.firstChild)==null?void 0:f.outerHTML)||"";l instanceof Qr&&l.setRef(c)})},[t]),o?i.jsx("div",{ref:s,children:i.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,style:{pointerEvents:"none"},children:i.jsx(At.ProjectIcon,{size:24,fz:24,icon:t,fallback:i.jsx(Ee.IconFile,{size:"1em"})})})}):i.jsxs("div",{ref:s,children:[st?i.jsx(JS,{emoji:t,onChange:l=>{e.update(()=>{var d;const c=p.$getNodeByKey(n);c instanceof Qr&&((d=c.getNextSibling())==null||d.selectStart(),c.setEmoji(l))})}}):i.jsx(At.EmojiPicker,{value:t,showRemoveButton:!1,onChange:l=>{e.update(()=>{var d;const c=p.$getNodeByKey(n);c instanceof Qr&&((d=c.getNextSibling())==null||d.selectStart(),c.setEmoji(l))})},locales:{emojis:r("editor.emoji.emojis"),icons:r("editor.emoji.icons"),search:r("editor.emoji.search"),searchResults:r("editor.emoji.searchResults"),searchNoResults:r("editor.emoji.searchNoResults"),remove:r("editor.emoji.remove"),emojiCategory:{frequent:r("editor.emoji.emojiCategory.frequent"),people:r("editor.emoji.emojiCategory.people"),nature:r("editor.emoji.emojiCategory.nature"),foods:r("editor.emoji.emojiCategory.foods"),activity:r("editor.emoji.emojiCategory.activity"),places:r("editor.emoji.emojiCategory.places"),objects:r("editor.emoji.emojiCategory.objects"),symbols:r("editor.emoji.emojiCategory.symbols"),flags:r("editor.emoji.emojiCategory.flags")}},popoverProps:{classNames:{dropdown:"emoji-picker-callout"},withinPortal:!0,transitionProps:Fn},children:i.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,children:i.jsx(At.ProjectIcon,{size:24,fz:24,icon:t,fallback:i.jsx(Ee.IconFile,{size:"1em"})})})}),st?i.jsx(qS,{editor:e,keyNode:n}):i.jsx(VS,{editor:e,keyNode:n})]})};function JS({emoji:e,onChange:n}){const{t}=Ke.useTranslation(),[r,{open:o,close:s}]=Ft.useDisclosure(!1);return i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{size:28,variant:"subtle",radius:6,onClick:o,"aria-label":t("editor.emoji.emojis"),children:i.jsx(At.ProjectIcon,{size:24,fz:24,icon:e,fallback:i.jsx(Ee.IconFile,{size:"1em"})})}),i.jsx(Bt,{opened:r,onClose:s,title:t("editor.emoji.emojis"),classNames:{content:"emoji-panel-drawer"},children:i.jsx(At.EmojiPanel,{locales:{emojis:t("editor.emoji.emojis"),search:t("editor.emoji.search"),searchResults:t("editor.emoji.searchResults"),searchNoResults:t("editor.emoji.searchNoResults"),remove:t("editor.emoji.remove"),emojiCategory:{frequent:t("editor.emoji.emojiCategory.frequent"),people:t("editor.emoji.emojiCategory.people"),nature:t("editor.emoji.emojiCategory.nature"),foods:t("editor.emoji.emojiCategory.foods"),activity:t("editor.emoji.emojiCategory.activity"),places:t("editor.emoji.emojiCategory.places"),objects:t("editor.emoji.emojiCategory.objects"),symbols:t("editor.emoji.emojiCategory.symbols"),flags:t("editor.emoji.emojiCategory.flags")}},value:e,onChange:l=>{n(l),s()},setRandomIcon:()=>{},onClose:s})})]})}function XS(e){const n=e.getAttribute("data-emoji");return{node:dl(n||"","")}}const k0=new Map;class Qr extends eo.DecoratorBlockNode{constructor(t,r,o,s){super(o,s);Ne(this,"__emojiCode");Ne(this,"__refElem");this.__emojiCode=t||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(t){return new Qr(t.__emojiCode,t.__refElem,t.__format,t.__key)}static importJSON(t){return dl(t.emojiCode)}exportJSON(){return{...super.exportJSON(),type:"callout-image",version:1,emojiCode:this.__emojiCode,refElem:""}}static importDOM(){return{div:t=>t.classList.contains("callout-image")?{conversion:XS,priority:2}:null}}createDOM(){const t=document.createElement("div");return t.className="callout-image",t}updateDOM(){return!1}exportDOM(){const t=document.createElement("div"),r=k0.get(this.__key)||"";return t.innerHTML=r,t.classList.add("callout-image"),t.setAttribute("data-emoji",this.__emojiCode),{element:t}}setEmoji(t){const r=this.getWritable();r.__emojiCode=t}setRef(t){k0.set(this.__key,t)}decorate(t,r){return i.jsx(QS,{emoji:this.__emojiCode,editor:t,keyNode:this.__key})}}function dl(e,n){return new Qr(e||"",n||"")}const S0={bullet:Ee.IconList,check:Ee.IconListCheck,"check-mark":Ee.IconCheck,code:Ee.IconCode,h1:Ee.IconH1,h2:Ee.IconH2,h3:Ee.IconH3,number:Ee.IconListNumbers,paragraph:Ee.IconIndentIncrease,quote:Ee.IconQuote,fontFamily:Ee.IconLetterT,undo:Ee.IconArrowBackUp,redo:Ee.IconArrowForwardUp,bold:Ee.IconBold,italic:Ee.IconItalic,underline:Ee.IconUnderline,link:Ee.IconLink,"color-picker":Ee.IconColorPicker,background:Ee.IconBucketDroplet,photo:Ee.IconPhoto,"photo-check":Ee.IconPhotoCheck,"align-left":Ee.IconAlignLeft,"align-end":Ee.IconAlignLeft,"align-start":Ee.IconAlignLeft,"align-right":Ee.IconAlignRight,"align-center":Ee.IconAlignCenter,"align-justify":Ee.IconAlignJustified,"horizontal-rule":Ee.IconFlipHorizontal,strikethrough:Ee.IconStrikethrough,subscript:Ee.IconSubscript,superscript:Ee.IconSuperscript,minus:Ee.IconMinus,plus:Ee.IconPlus,"chevron-down":Ee.IconChevronDown,"chevron-right":Ee.IconChevronRight,grip:Ee.IconGripVertical,"circle-check":Ee.IconCircleCheck,"circle-x":Ee.IconCircleX,pencil:Ee.IconPencil,trash:Ee.IconTrash,table:Ee.IconTable,"caret-right":Ee.IconCaretRight,grid:Ee.IconColumns3,"dots-vertical":Ee.IconDotsVertical,copy:Ee.IconCopy,clipboard:Ee.IconClipboard,cut:Ee.IconCut,"arrow-bar-to-up":Ee.IconArrowBarToUp,"arrow-bar-to-down":Ee.IconArrowBarToDown,"arrow-bar-to-left":Ee.IconArrowBarToLeft,"arrow-bar-to-right":Ee.IconArrowBarToRight,"column-insert-left":Ee.IconColumnInsertLeft,"column-insert-right":Ee.IconColumnInsertRight,"row-insert-top":Ee.IconRowInsertTop,"row-insert-bottom":Ee.IconRowInsertBottom,"container-off":Ee.IconContainerOff,"table-off":Ee.IconTableOff,"layers-union":Ee.IconLayersUnion,"layers-substract":Ee.IconLayersSubtract,"сlear-format":Ee.IconDropletOff,form:Ee.IconCheckupList,youtube:Ee.IconBrandYoutube,emoji:Ee.IconMoodSmile,file:Ee.IconFile,success:Ee.IconCheck,warning:Ee.IconAlertTriangle,alert:Ee.IconExclamationCircle,defaultOff:Ee.IconBaseline,embed:Ee.IconCodeCircle,at:Ee.IconAt,paperclip:Ee.IconPaperclip,close:Ee.IconX,api:Ee.IconApi,music:Ee.IconMusic,message:Ee.IconMessage,reply:Ee.IconArrowBackUp,filter:Ee.IconFilter,messages:Ee.IconMessages,"shield-check":Ee.IconShieldCheckFilled,reOpen:Ee.IconReload,send:Ee.IconSend,expandSidebar:Ee.IconLayoutSidebarLeftExpand,palette:Ee.IconPalette},bn=({name:e,iconStyle:n,...t})=>{const r=S0[e]||S0.bullet;return i.jsx(v.Flex,{gap:0,justify:"center",align:"center",...t,children:i.jsx(r,{size:18,stroke:2,style:n,...t})})},$S=({icon:e,title:n,pointerEvents:t="auto",isLoading:r,progress:o,nodeKey:s,onAfterCancel:l,...c})=>{const[d]=it.useLexicalComposerContext(),{t:f}=Ke.useTranslation(),{fetchUploadMedia:h,disable:g}=m.useContext(ft),A=o?((h==null?void 0:h.length)??0)>=5:!1,b=()=>{d.update(()=>{const x=p.$getNodeByKey(s);x&&x.remove()})},y=x=>{x.stopPropagation(),l==null||l()};return g?null:i.jsxs(v.UnstyledButton,{className:"image-node-picker-button",styles:{root:{width:"100%",display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)",flexDirection:"column",padding:"var(--mantine-spacing-md)",background:"var(--mantine-primary-color-light)",color:"var(--mantine-color-text)",borderRadius:"var(--mantine-radius-default)",opacity:.75,pointerEvents:r?"none":t,boxSizing:"border-box"}},...c,children:[i.jsxs("div",{className:"empty-node-button__content",children:[r&&!A&&i.jsx(v.Loader,{size:"xs",mb:2,mr:4,color:"gray"}),!r&&i.jsx(bn,{name:e}),n,r&&l&&i.jsx(v.Text,{component:"span",onClick:y,variant:"link",style:{marginLeft:"auto",cursor:"pointer",pointerEvents:"auto"},children:f("editor.cancel")}),s&&!r&&i.jsx(bn,{style:{pointerEvents:"auto"},className:"delete-icon",name:"close",size:22,onClick:b})]}),r&&typeof o=="number"&&A&&i.jsx(v.Progress,{w:"100%",value:o,animated:!0,transitionDuration:200})]})},eE="_title_f282m_1",tE="_icon_f282m_23",nE="_link_f282m_41",fc={title:eE,icon:tE,link:nE},rE=({page:e,titleClassName:n,withTooltip:t=!0,withHover:r=!0})=>{const{t:o}=Ke.useTranslation(),s=i.jsx(v.Text,{truncate:!0,className:`${fc.title} ${n||""}`.trim(),"data-empty":!e.title,children:e.title||o("editor.noTitle")});return i.jsxs("div",{className:`${fc.link} ${r?"":fc.linkNoHover}`.trim(),onClick:e.onClick,children:[i.jsx("div",{className:fc.icon,children:e.icon?i.jsx(At.ProjectIcon,{size:16,fz:16,icon:e.icon,fallback:i.jsx(Ee.IconFile,{size:"1em"})}):i.jsx(At.EntityIcon,{item:{...e,type:"PAGE"}})}),t?i.jsx(v.Tooltip,{label:e.title,disabled:!e.title,openDelay:400,zIndex:1e3,children:s}):s]})},oE=m.memo,iu=oE(rE),sE=({page:e})=>i.jsx("div",{className:"docs-item",children:i.jsx(iu,{page:e})});function iE({nodeKey:e}){const{pages:n,childPagesLoading:t}=m.useContext(ft),{t:r}=Ke.useTranslation();return n.length===0?i.jsx("p",{style:{margin:0},children:i.jsx($S,{title:r(t?"editor.menu.other.documents.loading":"editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none",nodeKey:e,isLoading:t})}):i.jsx("div",{className:"docs-container",children:n.map(o=>i.jsx(sE,{page:o},o.id))})}function aE(e){return e.getAttribute("data-child-docs")?{node:ib()}:null}class Oi extends eo.DecoratorBlockNode{static getType(){return"childDocs"}static clone(n){return new Oi(n.__format,n.__key)}constructor(n,t){super(n,t)}createDOM(){const n=document.createElement("div");return n.className="editor-child-docs",n}updateDOM(){return!1}decorate(n,t){return i.jsx(iE,{nodeKey:this.__key})}static importJSON(n){const{format:t,key:r}=n;return new Oi(t,r)}exportJSON(){return{type:"childDocs",format:this.__format,key:this.__key}}exportDOM(){const n=document.createElement("div");return n.setAttribute("data-child-docs","true"),{element:n}}static importDOM(){return{div:n=>n.getAttribute("data-child-docs")?{conversion:aE,priority:2}:null}}}function ib(){return new Oi(void 0)}function lE(e){const n=ib(),t=en();t==null||t.replace(n)}const ab=p.createCommand("INSERT_CHILD_DOCUMENTS_COMMAND");function cE(e){m.useEffect(()=>{if(!e.hasNodes([Oi]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return e.registerCommand(ab,()=>(lE(),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function uE(){const[e]=it.useLexicalComposerContext();return cE(e),null}function dE(e){var o;const n=e.getAttribute("open");return((o=e.firstElementChild)==null?void 0:o.tagName)==="SPAN"?{node:null}:{node:S1(n!==null)}}class Us extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__open");this.__open=t}static getType(){return"collapsible-container"}static clone(t){return new Us(t.__open,t.__key)}createDOM(t,r){const o=document.createElement("details");return o.open=this.__open,o.addEventListener("toggle",()=>{r.getEditorState().read(()=>this.getOpen())!==o.open&&r.update(()=>this.toggleOpen())}),o.classList.add("Collapsible__container"),o}updateDOM(t,r){const o=this.__open;return t.__open!==o&&(r.open=this.__open),!1}static importDOM(){return{details:t=>({conversion:dE,priority:1})}}static importJSON(t){return S1(t.open)}exportDOM(){const t=document.createElement("details");return t.classList.add("Collapsible__container"),this.__open&&t.setAttribute("open",""),{element:t}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(t){const r=this.getWritable();r.__open=t}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function S1(e){return new Us(e)}function Cr(e){return e instanceof Us}function fE(e){return{node:E1()}}class Oo extends p.ElementNode{static getType(){return"collapsible-content"}static clone(n){return new Oo(n.__key)}createDOM(n,t){const r=document.createElement("div");return r.classList.add("Collapsible__content"),r}updateDOM(n,t){return!1}static importDOM(){return{div:n=>n.hasAttribute("data-lexical-collapsible-content")?{conversion:fE,priority:2}:null}}exportDOM(){const n=document.createElement("div");return n.classList.add("Collapsible__content"),n.setAttribute("data-lexical-collapsible-content","true"),{element:n}}static importJSON(n){return E1()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function E1(){return new Oo}function cs(e){return e instanceof Oo}function hE(e){return{node:T1()}}class us extends p.ElementNode{static getType(){return"collapsible-title"}static clone(n){return new us(n.__key)}createDOM(n,t){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),Rk&&(r.style.cursor="pointer"),r}updateDOM(n,t){return!1}static importDOM(){return{summary:n=>({conversion:hE,priority:1})}}static importJSON(n){return T1()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(n){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(n,t=!0){const r=this.getParentOrThrow();if(!Cr(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const o=this.getNextSibling();if(!cs(o))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const s=o.getFirstChild();if(p.$isElementNode(s))return s;{const l=p.$createParagraphNode();return o.append(l),l}}else{const o=p.$createParagraphNode();return r.insertAfter(o,t),o}}}function T1(){return new us}function Lo(e){return e instanceof us}const lb=p.createCommand("INSERT_COLLAPSIBLE_COMMAND");p.createCommand("TOGGLE_COLLAPSIBLE_COMMAND");function pE(e){m.useEffect(()=>{if(!e.hasNodes([Us,us,Oo]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return ve.mergeRegister(e.registerNodeTransform(Oo,n=>{const t=n.getParent();if(!Cr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove()}}),e.registerNodeTransform(us,n=>{const t=n.getParent();if(!Cr(t)){const r=n.getChildren();for(const o of r)n.insertBefore(o);n.remove();return}}),e.registerNodeTransform(Us,n=>{const t=n.getChildren();if(t.length!==2||!Lo(t[0])||!cs(t[1])){for(const r of t)n.insertBefore(r);n.remove()}}),e.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{var t;const n=e.getEditorState().read(()=>p.$getSelection());if(p.$isRangeSelection(n)){const r=ve.$findMatchingParent(n.anchor.getNode(),o=>Lo(o));if(r&&Lo(r)){const o=r.getParent();if(o&&Cr(o))return o.getOpen()||o.toggleOpen(),(t=r.getNextSibling())==null||t.selectEnd(),!0}}return!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(lb,()=>(e.update(()=>{const n=T1(),t=p.$createParagraphNode(),r=en(),o=S1(!1).append(n.append(t),E1().append(p.$createParagraphNode()));r==null||r.replace(o),t.select()}),!0),p.COMMAND_PRIORITY_LOW))},[e])}function mE(){const[e]=it.useLexicalComposerContext();return pE(e),null}function gE(e){const n=e.style.gridTemplateColumns;return n?{node:zu(n)}:null}class Or extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__templateColumns");this.__templateColumns=t}static getType(){return"layout-container"}static clone(t){return new Or(t.__templateColumns,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.gridTemplateColumns=this.__templateColumns,typeof t.theme.layoutContainer=="string"&&ve.addClassNamesToElement(r,t.theme.layoutContainer),r}exportDOM(){const t=document.createElement("div");return t.style.gridTemplateColumns=this.__templateColumns,t.setAttribute("data-lexical-layout-container","true"),t.classList.add("dsd__theme__layoutContainer"),{element:t}}updateDOM(t,r){return t.__templateColumns!==this.__templateColumns&&(r.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-layout-container")?{conversion:gE,priority:2}:null}}static importJSON(t){return zu(t.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns,type:"layout-container",version:1}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(t){this.getWritable().__templateColumns=t}}function zu(e){return new Or(e)}function au(e){return e instanceof Or}function CE(e){const n=e.style.backgroundColor||"transparent";return{node:lo(n)}}class Mn extends p.ElementNode{constructor(t,r){super(r);Ne(this,"__backgroundColor");this.__backgroundColor=t}static getType(){return"layout-item"}static clone(t){return new Mn(t.__backgroundColor,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof t.theme.layoutItem=="string"&&ve.addClassNamesToElement(r,t.theme.layoutItem),r}exportDOM(){const t=document.createElement("div");return t.style.backgroundColor=this.__backgroundColor,t.classList.add("dsd__theme__layoutItem"),{element:t}}updateDOM(t,r){return t.__backgroundColor!==this.__backgroundColor&&(r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:t=>t.className!=="dsd__theme__layoutItem"?null:{conversion:CE,priority:2}}}static importJSON(){return lo()}isShadowRoot(){return!1}setLayoutBackground(t){this.getWritable().__backgroundColor=t}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function lo(e="transparent"){return new Mn(e)}function jr(e){return e instanceof Mn}const M1="calc(50% - 25px) calc(50% - 25px)",AE=4,bE=2,yE="draggable-block-menu",xE=16,E0="application/x-lexical-drag-block",T0=32,L1=e=>e?e.match(/(\d*\.?\d+)%/g):[],cb=e=>e<0?0:e>100?100:e,ub=(e,n,t)=>{let r=0,o=[];e.update(()=>{if(e&&n){const d=e.getElementByKey(n.getKey());if(d){const f=d.style;o=L1(f.getPropertyValue("grid-template-columns")).map(h=>h.slice(0,-1)),r=o?o.length:0}}const s=100/(r+1),l=[...o];l.splice(t,0,`${s}%`);let c=s/r;for(let d=0;d<l.length;d++)if(t!==d){const f=Number(l[d])-c;l[d]=`minmax(100px,${cb(f)}%)`}else l[d]=`minmax(100px,${l[d]})`;n.setTemplateColumns(l.join(" "))})},fh=(e,n,t,r)=>{e.update(()=>{const o=e.getElementByKey(n.getKey());if(!o)return;let s=r;t<r&&(s=r-1);const c=o.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],d=c.splice(t,1)[0];c.splice(s,0,d),n.setTemplateColumns(c.join(" "))})},Qa=(e,n)=>(e!=null&&e.children?Array.from(e.children):[]).indexOf(n);function vE(e,n,t,r){var d;let o=e.getAttribute("data-direction")==="left",s=e.getAttribute("data-direction")==="right",l=e.getAttribute("data-index"),c=e.getAttribute("data-index-start");if(o||s||l){let f=(d=t.getParent())==null?void 0:d.getParent();if(t instanceof Or&&(f=t),t instanceof $r||t instanceof Or){const h=f==null?void 0:f.getChildren();let g=r instanceof $r;if((h==null?void 0:h.length)>=4&&!g)return!0;n.update(()=>{var y;let A=0;o?A=0:s?A=((y=f==null?void 0:f.getChildren())==null?void 0:y.length)-1:A=Number(l),g?fh(n,f,Number(c),A):ub(n,f,A);let b=null;A!==void 0&&n.update(()=>{if(b=f.getChildren()[A],g)t instanceof Or?b.insertAfter(r.getParent()):b.insertBefore(r.getParent());else if(s)b.insertAfter(lo().append(r).append(mr()));else{const x=r.getParent(),w=x==null?void 0:x.getParent();jr(x)&&(x==null?void 0:x.getChildrenSize())===2&&jr(x)&&au(w)&&Bi(n,x,w),b.insertBefore(lo().append(r).append(mr()))}})})}else n.update(()=>{const h=zu(M1);let g;if(fo(t)||Cr(t)){const A=r.getParent(),b=A==null?void 0:A.getParent();if(jr(A)&&(A==null?void 0:A.getChildrenSize())===2&&au(b)){const x=b.getParent(),w=x==null?void 0:x.getParent(),k=b.getChildren(),I=k.findIndex(L=>L===A)===0?1:0,N=k[I];if(jr(N)){const L=N.getChildren()[0];fo(w)&&(w.append(L),b.remove(),g=Ir(w))}}else g=Ir(t,r)}else g=Ir(t);g&&(o?(h.append(lo().append(r).append(mr())),h.append(lo().append(g).append(mr()))):(h.append(lo().append(g).append(mr())),h.append(lo().append(r).append(mr()))),t.insertAfter(h),t.remove(),g.selectStart())});return!0}return!1}function wE(e,n,t="right",r=!1){e.update(()=>{const o=p.$getNearestNodeFromDOMNode(n),s=o==null?void 0:o.getParent();if(s){if(L1(s.__templateColumns).length===4)return;let c=Qa(n.parentElement,n);t==="right"&&(c=c+1),ub(e,s,c)}const l=lo().append(p.$createParagraphNode()).append(mr());o&&(t==="right"?r?(o.insertBefore(Ir(o)),o.selectStart()):(o.insertAfter(l),l==null||l.selectStart()):(o.insertBefore(l),l.selectStart()))})}const db=(e,n)=>{const t=n==null?void 0:n.getParent();let r=L1(t==null?void 0:t.getTemplateColumns());const o=t==null?void 0:t.getChildren();let s=0;if(o&&n){for(let h=0;h<o.length;h++)if(o[h].__key===n.__key){s=h;break}}r.splice(s,1);const l=r.map(h=>parseFloat(h)),c=l.reduce((h,g)=>h+g,0),f=l.map(h=>h/c*100).map(h=>`minmax(50px,${h.toFixed(2)}%)`);t==null||t.setTemplateColumns(f.join(" "))},kE=e=>e.className.includes("editor-image")||e.className.includes("video-container")?e:e.className.includes("editor-excalidraw")?e.firstChild:null,fb=(e,n)=>n!=null&&n.__key&&e!==n.__key?fb(e,n==null?void 0:n.getParent()):e===(n==null?void 0:n.__key),Pi=(e,n,t)=>{if(n==null)return;const r=typeof n=="string"?n:n.getKey();e.update(()=>{var d,f,h;const o=p.$getNodeByKey(r);if(!o)return;const s=(d=o.getParent())==null?void 0:d.getParent(),l=o.getParent(),c=t==="right"?(f=o.getParent())==null?void 0:f.getNextSibling():(h=o.getParent())==null?void 0:h.getPreviousSibling();if(l&&c&&s instanceof Or){const g=e.getElementByKey(l.getKey()),A=e.getElementByKey(s.getKey()),b=Qa(A,g);l&&s&&c&&(t==="right"&&(fh(e,s,b+1,b),c.insertAfter(l)),t==="left"&&(fh(e,s,b,b+1),c.insertBefore(l)))}})};function SE(e){e&&(e.style.display="none")}function M0({blockElement:e,editor:n,isTop:t,isClickedBlockRef:r,setDraggableBlockElem:o}){e&&(r.current=!0,n.update(()=>{const s=p.$getNearestNodeFromDOMNode(e);if(s){const l=p.$createParagraphNode();t?(s.insertBefore(l),setTimeout(()=>{r.current=!1,o(n.getElementByKey(l.__key)),n.update(()=>{l.selectStart()})})):(s.insertAfter(l),setTimeout(()=>{r.current=!1,o(n.getElementByKey(l.__key)),n.update(()=>{l.selectEnd()})}))}}))}function EE(e){const n=(d,f)=>d?parseFloat(window.getComputedStyle(d)[f]):0,{marginTop:t,marginBottom:r}=window.getComputedStyle(e),o=n(e.previousElementSibling,"marginBottom"),s=n(e.nextElementSibling,"marginTop"),l=Math.max(parseFloat(t),o);return{marginBottom:Math.max(parseFloat(r),s),marginTop:l}}function TE(e){return!!e.closest(`.${yE}`)}function L0(e,n,t,r){if(!e){n.style.opacity="0";return}n.style.display="block";let o=null;const s=kE(e);s&&s.style.justifyContent!=="left"&&s.firstChild instanceof HTMLElement?o=s.firstChild.getBoundingClientRect():o=e.getBoundingClientRect();let l=null,c=0,d=!0,f=0;if(o){let k=e.firstChild instanceof HTMLElement&&(e.firstChild.hasAttribute("data-lexical-text")||e.firstChild.tagName==="LI"||e.firstChild.tagName==="A")?e.firstChild:null;if(k&&!k.className.includes("editor-image")&&e.tagName!=="CODE"){const T=window.getComputedStyle(k),I=parseFloat(T.lineHeight),N=parseFloat(T.fontSize);f=Math.ceil(N+(I-N)/2),l=k.getBoundingClientRect()}else if(e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="BR"&&e.tagName!=="CODE"){const T=window.getComputedStyle(e,"::before");f=parseFloat(T.height)||30}else e&&(e.tagName==="HR"||e.matches(":has(audio)")||e.classList.contains("file-container"))?f=e.clientHeight:e.firstChild instanceof HTMLElement&&e.firstChild.tagName==="SUMMARY"?f=e.firstChild.clientHeight:(l=o,d=!1)}const h=t.getBoundingClientRect(),g=(l==null?void 0:l.top)||o.top,A=f||c,b=n.clientHeight,y=A-b;let x=!d||!A?o.top+7-h.top:g+y/2-h.top,w=o.left-h.left-b*2-5;e.tagName==="LI"&&e.getAttribute("role")!=="checkbox"&&(w=w-26,x=x-1),s&&(x=g-h.top+7,(s.style.justifyContent==="center"||s.style.justifyContent==="right")&&(w=w+10)),e.matches(":has(.resizable-container__handle)")&&!e.matches(":has(.hide-padding)")&&e.tagName!=="DETAILS"&&(x=g-h.top+27),o.top<0&&(x=x+-o.top),e.className==="dsd__theme__layoutDivider"&&(n.style.display="none",o.top-n.clientHeight<0?e.style.setProperty("--height-column",`${e.clientHeight+o.top-n.clientHeight-7}px`):e.style.setProperty("--height-column",`${e.clientHeight}px`)),n.style.opacity="1",!r&&w>-40&&(n.style.transform=`translate(${w}px, ${x}px)`)}function N0(e,n){const{transform:t}=n.style;n.style.transform="translateZ(0)",e.setDragImage(n,0,0),setTimeout(()=>{n.style.transform=t})}function ME(e,n){const t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",n.forEach(r=>{const o=r.cloneNode(!0);o.style.position="relative",t.appendChild(o)}),document.body.appendChild(t),e.setDragImage(t,0,0),setTimeout(()=>document.body.removeChild(t),0)}function LE(e,n,t,r,o,s,l){var _;const{top:c,height:d,width:f,left:h}=n.getBoundingClientRect(),{top:g,left:A,width:b}=o==null?void 0:o.getBoundingClientRect(),{marginTop:y,marginBottom:x}=EE(n);let w=c;t>=c?(l.current.isBottom=!0,w+=d+x/2):(l.current.isBottom=!1,w-=y/2);const k=w-g-bE,T=xE-AE,N=s.target.closest(".dsd__theme__layoutDivider");e.setAttribute("data-index",""),e.style.background="deepskyblue";const L=h-A-T,M=b-L,S=r-A,O=h+f,R=S>=M,B=r>=O-T0&&r<=O+T0;if(r<=h&&!N){if(n.closest(".dsd__theme__layoutItem"))return;e.style.transform=`translate(${L}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","left")}else if((R||B)&&!N&&!n.closest(".dsd__theme__layoutItem"))n.classList.contains("dsd__theme__layoutContainer")&&!e.getAttribute("data-index-start")&&n&&n.children.length>=4&&(e.style.background="red"),e.style.transform=`translate(${b-L}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-direction","right");else if(N){s.preventDefault();const j=(_=N.parentNode)==null?void 0:_.parentNode;(j==null?void 0:j.children.length)===4&&(e.style.background="red");const D=N.parentNode,z=Qa(j,D),H=z?N.getBoundingClientRect().left-A:L+30;e.style.transform=`translate(${H}px, ${c-g}px)`,e.style.width="4px",e.style.height=`${d}px`,e.style.opacity=".4",e.setAttribute("data-index",`${z}`)}else e.style.transform=`translate(${L}px, ${k}px)`,e.style.width=`${f+T}px`,e.style.opacity=".4",e.style.height="4px",e.setAttribute("data-direction","")}function j0(e){e&&(e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)")}const Bi=(e,n,t)=>{var s,l,c;const r=(t==null?void 0:t.getChildren())||[];if((r==null?void 0:r.length)===2){for(const d of r)d.__key!==(n==null?void 0:n.__key)&&(t==null||t.insertBefore(d),(s=d.getFirstChild())==null||s.selectEnd());t.remove()}else for(const d of r)if(d.__key===(n==null?void 0:n.__key)){db(e,d),Su(e,d);const f=d.getPreviousSibling()??d.getNextSibling();(c=(l=f==null?void 0:f.getFirstChild)==null?void 0:l.call(f))==null||c.selectEnd()}const o=e.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>(o(),!0),p.COMMAND_PRIORITY_NORMAL);return!0},NE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ve.$findMatchingParent(t,cs),o=ve.$findMatchingParent(t,Cr);return Fu(e,o,r)&&cs(r)}return!0},jE=()=>{const e=p.$getSelection();if(!p.$isRangeSelection(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;const t=e.anchor.getNode().getTopLevelElement();if(t===null)return!1;const r=t.getPreviousSibling();return!Cr(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},RE=()=>{var n;const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()&&e.anchor.offset===0){const t=ve.$findMatchingParent(e.anchor.getNode(),Cr);if(Cr(t)){const r=t.getParent();r!==null&&r.getFirstChild()===t&&e.anchor.key===((n=t.getFirstDescendant())==null?void 0:n.getKey())&&t.insertBefore(p.$createParagraphNode())}}return!1},IE=()=>{const e=p.$getSelection();if(p.$isRangeSelection(e)&&e.isCollapsed()){const n=ve.$findMatchingParent(e.anchor.getNode(),Cr);if(Cr(n)){const t=n.getParent();if(t!==null&&t.getLastChild()===n){const r=n.getFirstDescendant(),o=n.getLastDescendant();(o!==null&&e.anchor.key===o.getKey()&&e.anchor.offset===o.getTextContentSize()||r!==null&&e.anchor.key===r.getKey()&&e.anchor.offset===r.getTextContentSize())&&n.insertAfter(p.$createParagraphNode())}}}return!1},DE=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.focus.getNode().getParent(),r=t==null?void 0:t.getParent();return Bi(e,t,r)}return!1},R0=[{value:"left",icon:XC,labelKey:"editor.toolbar.left"},{value:"center",icon:Vc,labelKey:"editor.toolbar.center"},{value:"right",icon:$C,labelKey:"editor.toolbar.right"}],hb=({currentAlignment:e,onAlign:n,className:t,targetLabel:r})=>{var c;const{t:o}=Ke.useTranslation(),s=((c=R0.find(d=>d.value===e))==null?void 0:c.icon)??Vc,l=i.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:i.jsx($,{icon:Jn,size:16})});return i.jsxs(v.Menu,{shadow:"md",position:"bottom-end",transitionProps:Fn,children:[i.jsx(v.Menu.Target,{children:i.jsx(Jt,{className:t,label:r??o("editor.toolbar.align"),icon:s,iconColor:"var(--mantine-color-gray-text)"})}),i.jsx(v.Menu.Dropdown,{p:4,children:R0.map(d=>i.jsx(v.Menu.Item,{onClick:()=>n(d.value),leftSection:i.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:i.jsx($,{icon:d.icon,size:16})}),rightSection:e===d.value?l:void 0,children:o(d.labelKey)},d.value))})]})},OE=e=>{if(e==="left")return["n-resize","s-resize","e-resize","se-resize","ne-resize"];if(e==="center")return["sw-resize","nw-resize","w-resize","n-resize","s-resize","e-resize","se-resize","ne-resize"];if(e==="right")return["sw-resize","nw-resize","w-resize","n-resize","s-resize"]},ui=(()=>{var n;const e=(n=window.navigator)==null?void 0:n.userAgentData;return e!==void 0?e.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),PE={center:-8,right:2,left:-18},I0=(e,n,t,r)=>{const s=e.width/2,l=e.height/2,c=r==null?void 0:r.classList[1],d=PE[c];switch(n){case"nw-resize":return{x:0,y:0};case"ne-resize":return{x:e.width-16,y:0};case"sw-resize":return{x:0,y:e.height-16};case"se-resize":return{x:e.width-16,y:e.height-16};case"n-resize":return{x:s+d,y:0};case"s-resize":return{x:s+d,y:e.height-16};case"w-resize":return{x:0,y:l-8};case"e-resize":return{x:e.width-16,y:l-(t?17:8)}}},BE=(e,n,t,r=["nw-resize","ne-resize","sw-resize","se-resize","n-resize","s-resize","w-resize","e-resize"])=>{const s=t<=32,l=t>=e.height-32,c=n<=32,d=n>=e.width-32;return s&&c?r.includes("nw-resize")?"nw-resize":"default":s&&d?r.includes("ne-resize")?"ne-resize":"default":l&&c?r.includes("sw-resize")?"sw-resize":"default":l&&d?r.includes("se-resize")?"se-resize":"default":s?r.includes("n-resize")?"n-resize":"default":l?r.includes("s-resize")?"s-resize":"default":c?r.includes("w-resize")?"w-resize":"default":d&&r.includes("e-resize")?"e-resize":"default"},hc=32,pc=(e,n)=>e&&typeof e=="number"?Math.min(e/n*100,95.5):95.5;function _E(e){const t=100-4e3/e;return{minResizePercent:Math.max(5,9792/e),maxWidthPercent:t}}const N1=({editor:e,width:n,height:t,initialHeight:r,initialWidth:o,children:s,onResizeStart:l,isIcon:c,onResizeEnd:d,alignment:f,isEmbed:h,type:g,disableInteractions:A=!1})=>{const[b,y]=m.useState({x:-1e3,y:-1e3}),[x,w]=m.useState(30),[k,T]=m.useState("default"),[I,N]=m.useState(!1),{imperativeHandleRef:L,disable:M}=m.useContext(ft),S=A||!!M,[O,R]=m.useState(null),B=m.useMemo(()=>OE(f)||["e-resize"],[f]),_=B.length===1&&B[0]==="e-resize",j=m.useRef(null),D=m.useRef(null),z=m.useRef(null),H=m.useRef({rootHeight:0,rootWidth:0,ratio:1,currentWidth:0,currentWidthPercent:0,currentHeight:0,currentHeightPercent:0,startWidth:0,startWidthPercent:0,startHeight:0,startHeightPercent:0,startX:0,startY:0,direction:"x",isResizing:!1,isTop:!1,isBottom:!1,isLeft:!1,isRight:!1}),F=(K,Y=95.5)=>{var fe;const ne=(fe=e._window)==null?void 0:fe.innerWidth;if(ne){let Ce=100;h&&(Ce=250);const Le=Ce/ne*100;return K<Le?Le:K>Y?Y:K}else return K<20?20:K>100?100:K},Z=(K,Y)=>{const ne=Math.min(K,Y);return 15+(Math.max(200,Math.min(800,ne))-100)/500*15},q=(K,Y,ne)=>{if(T("default"),!I)return;let fe=k;fe=BE(K,Y,ne,B),H.current.isResizing&&(fe=k),T(fe),w(x),y(Ce=>I0(K,fe,h||!1,j.current)||Ce)},ee=K=>{var Ce;if(ui)return;K.preventDefault();const Y=(Ce=j.current)==null?void 0:Ce.getBoundingClientRect();if(!Y)return;const ne=K.clientX-Y.left,fe=K.clientY-Y.top;H.current.isResizing||q(Y,ne,fe)},Q=(K,Y=12,ne=95.5,fe=H.current.rootWidth)=>{const Ce=j.current,Le=H.current;if(!Ce||K.button===2||!(Le!=null&&Le.isResizing))return;const Ue=Ce.getBoundingClientRect(),ce=K.clientX-Ue.left,je=K.clientY-Ue.top;q(Ue,ce,je);const Ze=.17,dt=f==="right",Ct=f==="center",Wt=Le.isLeft,Dt=Le.isTop,ue=Le.isBottom,re=Le.direction==="y",ke=Le.isRight,_e=Math.floor(dt?Ue.right-K.clientX-(Ue.right-Le.startX):K.clientX-Le.startX),me=Math.floor(K.clientY-Le.startY);let ie=0;Wt||ke?ie=_e/fe*100:(Dt||ue||Ct)&&(ie=me*Ze),(Wt||Dt)&&(!dt||re&&!Wt)&&(!ue||Ct)&&(ie=-ie),(Dt&&ke||ue&&ke)&&(ie=_e/fe*100),ie=Math.max(-100,Math.min(100,ie));const Ae=Le.startWidthPercent+ie,Oe=Le.startHeightPercent+ie;Le.currentWidthPercent=F(Math.max(Y,Ae),ne),Le.currentHeightPercent=F(Math.max(Y,Oe),ne),Ce.style.width=`${Le.currentWidthPercent}%`,Ce.style.height=`${Le.currentHeightPercent}%`},J=()=>{const K=z.current;K&&(document.removeEventListener("mousedown",K,!0),document.removeEventListener("pointerdown",K,!0),document.removeEventListener("click",K,!0),z.current=null)},xe=K=>{var Ce,Le;const Y=H.current;if(Y.isResizing=!1,ge(null),J(),(Ce=j.current)==null||Ce.classList.remove("is-resizing"),(Le=j.current)==null||Le.releasePointerCapture(K.pointerId),d(Y.currentWidthPercent+"%",Y.currentHeightPercent+"%"),document.removeEventListener("pointermove",Q),!j.current)return;const ne=j.current.getBoundingClientRect(),fe=Z(ne.width,ne.height);w(fe)},we=(K,Y)=>{var Se,We;const ne=K.target;if(ne!=null&&ne.closest(".video-player-controls")||ne!=null&&ne.closest(".video-player-menu-dropdown")||ne!=null&&ne.closest(".mantine-Menu-dropdown"))return;if(K.button===2||!I&&!Y){K.preventDefault(),K.stopPropagation();return}if(!j.current)return;j.current.classList.add("is-resizing");const fe=e.getRootElement();if(!fe)return;const Ce=fe.getBoundingClientRect();if(!e.isEditable())return;const Le=Y??k;if(Le==="default")return;Y&&T(Y);const Ue=D.current;if(Ue===null)return;const ce=(Se=j.current)==null?void 0:Se.getBoundingClientRect();if(!Ue.getBoundingClientRect()||!ce)return;if(K.preventDefault(),K.stopPropagation(),!z.current){const Be=Xe=>{H.current.isResizing&&(Xe.preventDefault(),Xe.stopPropagation())};z.current=Be,document.addEventListener("mousedown",Be,!0),document.addEventListener("pointerdown",Be,!0),document.addEventListener("click",Be,!0)}const{width:Ze,height:dt,top:Ct,left:Wt}=ce,Dt=K.clientX-Wt,ue=K.clientY-Ct,re=Y?Le.startsWith("n"):ue<=hc,ke=Y?Le.startsWith("s"):ue>=dt-hc,_e=Y?Le.includes("w-"):Dt<=hc,me=Y?Le.includes("e-"):Dt>=Ze-hc,ie=H.current,Ae=window.getComputedStyle(fe),Oe=parseFloat(Ae.paddingTop),He=parseFloat(Ae.paddingBottom),$e=parseFloat(Ae.paddingLeft),rt=parseFloat(Ae.paddingRight);ie.rootHeight=Ce.height-Oe-He||0,ie.rootWidth=Ce.width-$e-rt||0,ie.ratio=Ze/dt,ie.currentWidth=ie.currentWidth||Ze,ie.currentWidthPercent=+j.current.style.width.replace("%",""),ie.currentHeight=ie.currentHeight||dt,ie.currentHeightPercent=+j.current.style.height.replace("%",""),ie.startX=K.clientX,ie.startY=K.clientY,ie.startWidth=ie.currentWidth||Ze,ie.startWidthPercent=ie.currentWidthPercent,ie.startHeight=ie.currentHeight||dt,ie.startHeightPercent=ie.currentHeightPercent,ie.isResizing=!0,ie.isTop=re,ie.isBottom=ke,ie.isLeft=_e,ie.isRight=me,ie.direction=ke||re?"y":"x",l&&l(),j.current.setPointerCapture(K.pointerId);const Je=((We=j.current.parentElement)==null?void 0:We.offsetWidth)??ie.rootWidth,{maxWidthPercent:ct,minResizePercent:be}=_E(Je);document.addEventListener("pointermove",Be=>{var Xe,Ye;return Q(Be,g==="video"?40:be,ct,(Ye=(Xe=j.current)==null?void 0:Xe.parentElement)==null?void 0:Ye.offsetWidth)}),document.addEventListener("pointerup",xe,{capture:!0,once:!0})};m.useEffect(()=>{var Ce;const K=j.current;if(!K)return;if(typeof n=="number"&&typeof t=="number"){K.style.width=`${F(n)}%`,K.style.height=`${F(t)}%`;return}const Y=(Ce=K.parentElement)==null?void 0:Ce.getBoundingClientRect();if(!Y)return;const ne=pc(r,Y.height),fe=pc(o,Y.width);K.style.width=`${fe}%`,K.style.height=`${ne}%`},[n,t,o,r]),m.useEffect(()=>{var fe;if(!j.current)return;const K=j.current.getBoundingClientRect(),Y=(fe=j.current.parentElement)==null?void 0:fe.getBoundingClientRect(),ne=Z(K.width,K.height);if(w(ne),typeof n=="number"&&typeof t=="number")j.current.style.width=`${F(n)}%`,j.current.style.height=`${F(t)}%`,H.current.currentWidthPercent=n,H.current.currentHeightPercent=t;else if(Y){const Ce=pc(r,Y.height),Le=pc(o,Y.width);requestAnimationFrame(()=>{j.current&&(j.current.style.height=`${Ce}%`,j.current.style.width=`${Le}%`)}),H.current.currentWidthPercent=Le,H.current.currentHeightPercent=Ce}else j.current.style.height="100%",j.current.style.width="100%",H.current.currentWidthPercent=100,H.current.currentHeightPercent=100},[j.current,c,r,o]);const Te=K=>{const ne=K.target.closest("[data-lexical-decorator]");return ne?e.update(()=>{const fe=p.$getNearestNodeFromDOMNode(ne);fe&&fe instanceof p.DecoratorNode&&(typeof fe.select=="function"&&fe.select(),R(fe))}):R(null),!1},Fe=()=>(O&&setTimeout(()=>{e.update(()=>(O.insertAfter(p.$createParagraphNode()).selectStart(),R(null),!0))}),!1);L!=null&&L.current&&(L.current.decoratorEnterAction=Fe),m.useEffect(()=>{const K=e.registerCommand(p.CLICK_COMMAND,Te,p.COMMAND_PRIORITY_NORMAL);return()=>{K()}},[O]);const se=S||ui,[X,ae]=m.useState(!1),[pe,ge]=m.useState(null);m.useEffect(()=>{if(!ui||!X)return;const K=Y=>{var ne;H.current.isResizing||(ne=j.current)!=null&&ne.contains(Y.target)||ae(!1)};return document.addEventListener("pointerdown",K,!0),()=>document.removeEventListener("pointerdown",K,!0)},[X]);const G=K=>{if(!ui||S)return;const Y=K.target;Y!=null&&Y.closest(".resizable-container__touch-handle")||Y!=null&&Y.closest(".video-player-controls")||Y!=null&&Y.closest(".video-player-menu-dropdown")||Y!=null&&Y.closest(".mantine-Menu-dropdown")||X||ae(!0)},he=K=>Y=>{Y.stopPropagation(),ge(K),we(Y,K)},oe=K=>{var ne;const Y=(ne=j.current)==null?void 0:ne.getBoundingClientRect();return Y?I0(Y,K,h||!1,j.current)||{x:0,y:0}:{x:0,y:0}};return i.jsxs("div",{ref:j,className:`resizable-container ${f||""} ${_?"hide-padding":""} ${g?`resizable-container--${g}`:""}`,style:{cursor:k,pointerEvents:S?"none":"auto"},onMouseMove:se?void 0:ee,onMouseEnter:se?void 0:()=>N(!0),onMouseLeave:se?void 0:()=>{N(!1),T("default")},onMouseUp:se?void 0:()=>{e.dispatchCommand(ns,"show_menu")},onPointerDown:S?void 0:ui?G:we,children:[i.jsx("svg",{className:`resizable-container__handle ${I?"hovered":""}`,style:{"--clip-x1":`${b.x-x}px`,"--clip-y1":`${b.y-x}px`,"--clip-x2":`${b.x+x}px`,"--clip-y2":`${b.y-x}px`,"--clip-x3":`${b.x+x}px`,"--clip-y3":`${b.y+x}px`,"--clip-x4":`${b.x-x}px`,"--clip-y4":`${b.y+x}px`,clipPath:`polygon(
|
|
5
|
+
var(--clip-x1) var(--clip-y1),
|
|
6
|
+
var(--clip-x2) var(--clip-y2),
|
|
7
|
+
var(--clip-x3) var(--clip-y3),
|
|
8
|
+
var(--clip-x4) var(--clip-y4)
|
|
9
|
+
)`,opacity:I?1:0,transition:`${H.current.isResizing?"none":` opacity 0.3s ease-in-out, clip-path ${(B==null?void 0:B.length)<4?"0.2s":"0.3s"} cubic-bezier(0.825, 0.225, 0.280, 0.770)`}`},children:i.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),i.jsx("div",{ref:D,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:H.current.isResizing?"none":"auto"},children:s}),ui&&X&&!S&&B.filter(K=>pe?K===pe:!0).map(K=>{const Y=oe(K);return i.jsx("svg",{className:"resizable-container__handle hovered resizable-container__touch-handle",onPointerDown:he(K),style:{"--clip-x1":`${Y.x-x}px`,"--clip-y1":`${Y.y-x}px`,"--clip-x2":`${Y.x+x}px`,"--clip-y2":`${Y.y-x}px`,"--clip-x3":`${Y.x+x}px`,"--clip-y3":`${Y.y+x}px`,"--clip-x4":`${Y.x-x}px`,"--clip-y4":`${Y.y+x}px`,clipPath:`polygon(
|
|
10
|
+
var(--clip-x1) var(--clip-y1),
|
|
11
|
+
var(--clip-x2) var(--clip-y2),
|
|
12
|
+
var(--clip-x3) var(--clip-y3),
|
|
13
|
+
var(--clip-x4) var(--clip-y4)
|
|
14
|
+
)`,opacity:1,pointerEvents:"auto",touchAction:"none"},children:i.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})},K)})]})},pb=e=>typeof e=="string"&&e.includes("%")?parseFloat(e):e;function FE(e,n){if(e.match(/\n/))return!1;try{const t=new URL(e);return["javascript:","file:","vbscript:","data:"].includes(t.protocol)?!1:t.hostname?!0:t.protocol!==""&&(t.pathname.startsWith("//")||t.pathname.startsWith("http"))&&!(n!=null&&n.requireHostname)}catch{return!1}}function mb(e){var n;try{if(e.includes("maps/embed"))return e;const t=new URL(e),r=t.href.match(/@([0-9.]+),([0-9.]+),([0-9]+)m/),o=t.href.match(/1s([^!]+)/),s=t.href.match(/!3d([0-9.]+)!4d([0-9.]+)/);if(!r&&!s)throw new Error("Invalid Google Maps URL format");const l=s?s[1]:r?r[1]:"0",c=s?s[2]:r?r[2]:"0",d=r?Math.round(Math.log2(40075016686e-3/(parseFloat(r[3])*2))):14,f=o?o[1]:"",h=((n=navigator==null?void 0:navigator.language)==null?void 0:n.split("-")[0])||"en";return`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14774!2d${c}!3d${l}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f${d}!3m3!1m2!1s${f}!2z!5e1!3m2!1s${h}!2s!4v${Date.now()}!5m2!1s${h}!2s`}catch(t){return console.error("Error link:",t),""}}function WE(e){const n=/https:\/\/lookerstudio\.google\.com\/u\/\d+\/reporting\/([^\/]+)\/page\/([^\/]+)(\/edit)?/;return e.replace(n,"https://lookerstudio.google.com/embed/reporting/$1/page/$2")}function gb(e){if(e)return e.includes("lookerstudio")?WE(e):e.includes("maps")?mb(e):!FE(e,{requireHostname:!1})&&!e.startsWith("/")&&!e.startsWith("#")&&!e.startsWith("mailto:")&&!e.startsWith("sms:")&&!e.startsWith("fax:")&&!e.startsWith("tel:")?`https://${e}`:e}const zE=28,Ks=m.forwardRef(({src:e,title:n,icon:t,canonicalUrl:r,isSelected:o,width:s="100%",height:l,saveUrl:c,editor:d,updateMinHeight:f,disableOutline:h},g)=>{var w;const A=m.useRef(null),[b,y]=m.useState(!1),x=m.useMemo(()=>{var T;return(l?parseFloat(String(l)):((T=A.current)==null?void 0:T.scrollHeight)||0)+zE},[l,(w=A.current)==null?void 0:w.scrollHeight]);return m.useEffect(()=>{const k=setTimeout(()=>{y(!0),e&&(d==null||d.update(()=>{c(e)}))},0);return()=>clearTimeout(k)},[e]),m.useEffect(()=>{x&&f(x)},[x]),i.jsx(v.Box,{className:`frame-container ${o?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:b&&i.jsx("iframe",{ref:g||A,style:h?{outline:"none"}:{outline:"1px"},className:"editor-video",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:l,frameBorder:"0",title:n||"embed",lo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ipSzsXdFaYWMCFrB/PPAvFP9cGxABvq+vbg2lc2m3tD1zycVUtD2ljbwf7F8RF4FuKoqgENqBqyBl0BOZeqpy2xNdK0BAxJuA/t+a4OaqjTX2K1TajjP25eCls4kJeHA/o0enbh4O4BcPS+I/SQziN4wr9jTKBrYFugnek6eVmxBRxvyhaidjGcy0hh/RtAEiaWLbdAXwh1t6aF+ppxcfl/GD6NurIGm8AAAAAASUVORK5CYII=",sT="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20width='256'%20height='256'%20preserveAspectRatio='xMidYMid'%3e%3cpath%20fill='%23625DF5'%20d='M256%20113.765h-74.858l64.83-37.43-14.237-24.667-64.83%2037.43%2037.421-64.825-24.667-14.246-37.421%2064.826V0h-28.476v74.86L76.326%2010.027%2051.667%2024.266%2089.096%2089.09%2024.265%2051.668l-14.238%2024.66%2064.83%2037.43H0v28.477h74.85l-64.823%2037.43%2014.238%2024.667%2064.824-37.423-37.43%2064.825%2024.667%2014.239%2037.429-64.832V256h28.476v-74.853l37.422%2064.826%2024.665-14.239-37.428-64.832%2064.83%2037.43%2014.24-24.667-64.825-37.423h74.85v-28.477H256ZM128%20166.73c-21.472%200-38.876-17.403-38.876-38.876%200-21.472%2017.404-38.876%2038.876-38.876%2021.472%200%2038.875%2017.404%2038.875%2038.876%200%2021.473-17.403%2038.876-38.875%2038.876Z'/%3e%3c/svg%3e",iT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAn1BMVEUAAAD3jR3zhhT1hxTthxb3dwD3jR34jR74jR33jR33ihf4jB33jB34jR33jRz4jBz3jBz4ixv4iRn3hgD3jR33jRz3jB34ixf5iBb3jRz3jR33jR33jB33jB32jBz4jBz4jBz4jBn4jR33jR33jRz3jBz3ixv4jR33jR33jBz3jB34jRz4jR33jRz4jRv3jRz2jBr3jRr5jBr4jRz3jR5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Yt6Pc+kBYWXRf8uV5P3M7QvKFvFJBnNy5OJfafD4SmBZDc1YP9K6Jze5KZ18CAbZz5n5AJL8HaQ4Lvq12P01+q6qEJPnUQJPbSWJYrBapJoq2Aw/5KYnFntMCbd635LcTrNuLSIvcJdosVfcdDl1OM7x2b5MsWQpr65H11eWuFewL4epnVvbSzPg5ND2eZnc3PGvxOy8ilrhITRPvolcPImOnYu8uNoZ3I+H+C9Yd6ZxyF9La9sw2mOzbFNara8bNu9S8BideF27sprMr0oKOj9Ec8TsNKfq7hOnG3iUcKSB+j1PTuo3Gtnc+Yz473e7h7vw+X2mGJV+P4/siVuy8Ae9ff0wouNpoXU2Is2lSXI+tmpoXdBLu0wbiPdqaFa8rXS/O7mdO6xVIsmMZscMiCWMoNfmvQDOWZuYJb89/DMu2kyTbBHHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",uT="data:image/svg+xml,%3csvg%20height='256'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20256'%20width='256'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m127.059657%20255.996921c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722zm0%200c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722z'%20fill='%23fff'/%3e%3cpath%20d='m127.184644%20238.997327c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076zm0%200c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076z'%20fill='%2349a32b'/%3e%3cpath%20d='m169.327319%20127.956161c-.284596%205.290212-4.906213%209.683063-9.461106%208.916425-.021787%200-.044936%200-.068085%200-5.045107.006809-9.139745-4.078298-9.145192-9.123404.171575-5.058724%204.366979-9.045787%209.427064-8.96%205.045106.02451%209.51966%204.288%209.247319%209.166979zm-81.1261275%2051.264c1.9022979.055829%203.8059574.014978%205.9996596.014978v13.785873c-13.6347234%202.305361-24.8660426-1.565958-27.6221277-13.091405-.9436596-4.237617-1.5237447-8.548766-1.7361702-12.885787-.292766-4.591659.2137872-9.235064-.1361702-13.818553-.9695319-12.612085-2.6035745-16.917787-14.706383-17.514213v-15.69634c.8674043-.202894%201.7470638-.352681%202.6321702-.452085%206.6355745-.326809%209.4325107-2.361192%2010.916766-8.897362.6754042-3.672511%201.0757447-7.389958%201.1942127-11.1223831.5256171-7.2170212.3390639-14.5511489%201.5414468-21.6510638%201.737532-10.267234%208.1116596-15.2551489%2018.6403405-15.8134468%202.9957447-.1606808%206.0010212-.0245106%209.3957447-.0245106v14.0908936c-1.3971064.0994042-2.6771064.3022979-3.9489362.2641702-8.5800851-.2628085-9.024%202.6594043-9.650383%209.7620426-.3908085%204.4541276.1484255%208.9845106-.155234%2013.453617-.3172766%204.4473189-.9123405%208.8714889-1.7811064%2013.2452769-1.2377873%206.338723-5.1349787%2011.052936-10.5354894%2015.053617%2010.4837447%206.822127%2011.6765958%2017.422978%2012.3574468%2028.187234.3662979%205.78451.1988085%2011.609872.7857022%2017.365787.4575319%204.467745%202.1950638%205.607489%206.8085106%205.74366zm8.8360851-60.430979h.1620425c5.0124259.083064%209.0103829%204.213106%208.9273189%209.226893%200%20.164766-.005447.328171-.014978.491575-.281873%204.899404-4.481362%208.641362-9.3807664%208.359489-.1974468.004085-.3935319%200-.5909787-.009532-4.9892766-.247829-8.8333617-4.493617-8.5855319-9.482893.2478298-4.989277%204.493617-8.833362%209.4828936-8.585532zm31.2360854%200c5.482212-.042213%209.123404%203.510468%209.152%208.930042.029957%205.565277-3.421958%209.126128-8.868766%209.149277-5.539405.024511-9.186043-3.479149-9.216-8.866043-.016341-.275063-.020426-.550127-.012256-.825191.153873-4.786383%204.158639-8.541958%208.945022-8.388085zm65.399829-6.865702c1.458383%205.446808%204.297532%207.361361%2010.03166%207.622808.939575.043575%201.875064.202894%203.163234.345873v15.692255c-.697191.228766-1.412085.40034-2.137872.512-7.684085.477957-11.186383%203.630298-11.962553%2011.334808-.49566%204.918468-.454809%209.891405-.795234%2014.827575-.142979%205.419574-.635915%2010.82417-1.476086%2016.179745-1.960851%209.703489-8.019063%2014.54434-18.028936%2015.135319-3.221787.190638-6.466723.029957-9.940425.029957v-14.025532c1.869617-.115744%203.52-.275064%205.174468-.314553%205.980596-.142979%208.095319-2.071149%208.388085-8.010894.324085-6.525276.465702-13.058723.757106-19.585361.42349-9.433873%203.006639-17.861447%2011.795064-23.745362-5.028766-3.585362-9.066213-7.92783-10.112-13.783149-1.265021-7.097191-1.673532-14.3509787-2.354383-21.5475744-.33634-3.597617-.32-7.2265532-.671319-10.8214468-.378553-3.8808511-3.044766-5.2234894-6.577021-5.3106383-2.02349-.0490213-4.055149-.0095319-6.642383-.0095319v-13.696c16.509276-2.7411064%2027.913532%202.752%2028.972936%2018.5477446.443915%206.6328511.378553%2013.2970213.803404%2019.9298728.186553%203.60851.725787%207.189787%201.612255%2010.692085z'%20fill='%23fff'/%3e%3c/svg%3e",dT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ+FbZGhqICmpvSz9QQtTMgkW/PtSEvWQBfrSPzAr13Vnd2fsXPYe9nj39/M3OzMx957f98KX329mZ4ad+5lz7v3dc879GTO5FbzH80mbSCdIf5FqpCtQW2T7/gLppGOyIIPdpFYU54tIp9Cpwes4qS+F4VWtJF6wTXzAKKnijrDeMKxYMuHntwkLLqZZbhfpkHuD/YBhdGjwsoxG3PlhUtmHLP32PvfCi6QqOi8qq77kzg/4Y3KHe7DevWDQeyM6MB5ddseNjilbs5ntjbnorHgtmc975Rj8oXtyCJYbvcbcsZ/hThdgMe7qsWI7j5phAa8Ws2Z0kC43vcYC3gnA6gAz5L0W8FFMrtSJh9pjFvDP3uAM6XHTlq05iwmWWsDnAFg34LMADMAQAEMADAEwBMAQACev6lRcrHTIHYeVL+zkAvCYA1rNCJBXADjezAbWv6SfSKdJP5D+SHh9DYDjg/spaSVpDukO0s2k20j3kBaTtpD+ca8dUeS2VQKuiSzQ70kPmfra3aTPvJRUAA7wC/FY+iXpJi8luDNBJQ/02wlpLwAcUG6wPQ6QukVGYVFkjZqUMp2yeLxVdFAVgMMQW+6fpB4H6joztdYlzo8rsGI1gKvi/17nAHVmWG1au8Ed+xS4ajWA2Xp/I810gLpNY60gfhgDok9qANw+cU3Ovnqq6+po7NrXRV7doQKwtK6NTbpnH/CShAQ2AG5TBr/V2oTJUiON3/+A8A4AHADgF5ocf33Ac8SKGAAHAPjlFlvwXPH5ANzGL8H/8xYxwWrFGLwCY3BYl0kDYumxswnA3QkrWphFB3CZZMfLBxtcxTLeD8MueJyJfHVPDWAZZPhIwCo1AHiaO74SuXt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F9pu4hTHMMDm+UXSfGc2fBeyUulW7kq/Bu9ZfIin0yOLydyO0/qtz4JnyC6jvaGPba+iF8iDByx2U/ahxfkhA+SDWK+vKo/SRV4dOEaarHv+APh8PhcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function gT({matches:e,...n}){const t=e[0],r=new URL(t).searchParams,o="Draw.io",s=r.get("title")?`${o} (${r.get("title")})`:o;return i.jsx(Ks,{...n,src:n.attrs.href,icon:i.jsx(v.Image,{src:Cb,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:n.attrs.href,title:s})}function CT(e){return e.endsWith(".pibb")?e:`${e}.pibb`}function AT(e){const n=CT(e.attrs.href);return i.jsx(Ks,{...e,src:n,canonicalUrl:n,width:"100%",title:"GitHub Gist"})}function bT({matches:e,...n}){let t="";try{t=new URL(e[0]).pathname}catch{t=""}const r=t.replace(/^\/embed/,"/");let o;return r.includes("episode")||r.includes("show")?o=232:r.includes("track")?o=80:o=380,i.jsx(Ks,{...n,disableOutline:!0,width:"100%",height:`${o}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function yT({matches:e,...n}){const t=e[2];return e[1]==="c"?i.jsx(Ks,{...n,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${t}`,title:`Trello Card (${t})`}):i.jsx(Ks,{...n,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${t}`,title:`Trello Board (${t})`})}function xT({matches:e,...n}){const t=e[4],r=e[5],o=`https://player.vimeo.com/video/${t}?byline=0${r?`&h=${r}`:""}`;return i.jsx(Ks,{...n,src:o,canonicalUrl:o,title:`Vimeo Embed (${t})`,height:"412px",referrerPolicy:"origin"})}const vT={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},Gi=[{parentKey:"integrations",platform:"spotify",keywords:["spotify"],key:"spotify",hide:!1,regexMatches:[/(?:https?:\/\/)?(?:open\.)?spotify\.com\/(?:embed\/)?(track|album|playlist|show|episode)\/([a-zA-Z0-9]+)/],icon:i.jsx(Zt,{className:"integration-icon",src:cT}),name:"Spotify",placeholder:"https://open.spotify.com/...",component:bT},{parentKey:"integrations",platform:"figma",keywords:["figma","design"],key:"figma",hide:!1,regexMatches:[new RegExp("^https://([w.-]+\\.)?figma\\.com/(file|proto|board|design)/([0-9a-zA-Z]{22,128})(?:/.*)?$"),new RegExp("^https://([w.-]+\\.)?figma\\.com/embed(.*)$")],transformMatch:e=>e[0].includes("/embed")?e[0]:`https://www.figma.com/embed?embed_host=outline&url=${encodeURIComponent(e[0])}`,icon:i.jsx(Zt,{className:"integration-icon",src:ZE}),name:"Figma",placeholder:"https://www.figma.com/...",getIframeUrl:e=>`https://www.figma.com/embed?embed_host=share&url=${e}`},{parentKey:"integrations",platform:"airtable",keywords:["spreadsheet"],key:"airtable",hide:!1,regexMatches:[new RegExp("^https://airtable.com/(?:embed/)?(app.*/)?(shr.*)$"),new RegExp("^https://airtable.com/(app.*/)?(pag.*)/form$")],icon:i.jsx(Zt,{className:"integration-icon",src:UE}),name:"Airtable",placeholder:"https://airtable.com/...",transformMatch:e=>`https://airtable.com/embed/${e[1]??""}${e[2]}`,getIframeUrl:e=>`https://airtable.com/embed/${e}`},{parentKey:"integrations",platform:"codepen",keywords:["code","editor"],key:"codepen",hide:!1,regexMatches:[/^https:\/\/codepen\.io\/(.*?)\/(pen|embed)\/(.*)$/],icon:i.jsx(Zt,{className:"integration-icon",src:KE}),name:"Codepen",placeholder:"https://codepen.io/...",transformMatch:e=>`https://codepen.io/${e[1]}/embed/${e[3]}`,getIframeUrl:e=>`https://codepen.io/${e}/embed/`},{parentKey:"integrations",platform:"dbdiagram",keywords:["diagrams","database"],key:"dbdiagram",hide:!1,regexMatches:[/^https:\/\/dbdiagram\.io\/(embed|e|d)\/(\w+)(\/.*)?$/],icon:i.jsx(Zt,{className:"integration-icon",src:HE}),name:"DBDiagram",placeholder:"https://dbdiagram.io/...",transformMatch:e=>`https://dbdiagram.io/embed/${e[2]}`,getIframeUrl:e=>`https://dbdiagram.io/embed/${e}`},{parentKey:"integrations",platform:"diagrams",keywords:["diagrams","drawio"],key:"diagrams",hide:!1,regexMatches:[/^https:\/\/viewer\.diagrams\.net\/(?!proxy).*(title=\\w+)?/],icon:i.jsx(Zt,{className:"integration-icon",src:Cb}),name:"Diagrams.net",placeholder:"https://viewer.diagrams.net/...",component:gT},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:i.jsx(Zt,{className:"integration-icon",src:YE}),name:"Descript",placeholder:"https://share.descript.com/...",transformMatch:e=>`https://share.descript.com/embed/${e[1]}`,getIframeUrl:e=>`https://share.descript.com/embed/${e}`},{parentKey:"integrations",platform:"github",keywords:["code"],key:"gist",hide:!1,regexMatches:[/^https:\/\/gist\.github\.com\/([a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,38})\/(.*)$/],icon:i.jsx(Zt,{className:"integration-icon",src:GE}),name:"GitHub Gist",placeholder:"https://gist.github.com/...",component:AT},{parentKey:"integrations",platform:"google-maps",keywords:["maps"],key:"google-maps",hide:!1,regexMatches:[/https?:\/\/(?!maps\.app\.goo\.gl\/2SrY88FwWBpKDkk88)(?:maps\.app\.goo\.gl\/[\w-]+|www\.google\.com\/maps\/[\S]+)/],icon:i.jsx(Zt,{className:"integration-icon",src:eT}),name:"Google Maps",placeholder:"https://www.google.com/maps/...",transformMatch:e=>e[0]},{parentKey:"integrations",platform:"google-drawings",keywords:["drawings"],key:"google-drawings",hide:!1,regexMatches:[/^https:\/\/docs\.google\.com\/drawings\/d\/(.*)\/(edit|preview)(.*)$/],icon:i.jsx(Zt,{className:"integration-icon",src:QE}),name:"Google Drawings",placeholder:"https://docs.google.com/drawings/...",transformMatch:e=>e[0].replace("/edit","/preview")},{parentKey:"integrations",platform:"google-drive",keywords:["drive"],key:"google-drive",hide:!1,regexMatches:[/^https?:\/\/drive\.google\.com\/file\/d\/(.*)$/],icon:i.jsx(Zt,{className:"integration-icon",src:JE}),name:"Google Drive",placeholder:"https://drive.google.com/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-docs",keywords:["documents","word"],key:"google-docs",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/document\/(.*)$/],icon:i.jsx(Zt,{className:"integration-icon",src:qE}),name:"Google Docs",placeholder:"https://docs.google.com/document/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-sheets",keywords:["excel","spreadsheet"],key:"google-sheets",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/spreadsheets\/d\/(.*)$/],icon:i.jsx(Zt,{className:"integration-icon",src:tT}),name:"Google Sheets",placeholder:"https://docs.google.com/spreadsheets/...",transformMatch:e=>e[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-slides",keywords:["presentation","slideshow"],key:"slides",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/presentation\/d\/(.*)$/],transformMatch:e=>e[0].replace("/edit","/preview").replace("/pub","/embed"),icon:i.jsx(Zt,{className:"integration-icon",src:nT,alt:"Google Slides"}),name:"Google Slides",placeholder:"https://docs.google.com/presentation/..."},{parentKey:"integrations",platform:"google-calendar",keywords:["calendar"],key:"calendar",hide:!1,regexMatches:[/^https:\/\/calendar\.google\.com\/calendar\/embed\?src=(.*)$/],transformMatch:e=>e[0],icon:i.jsx(Zt,{className:"integration-icon",src:VE,alt:"Google Calendar"}),name:"Google Calendar",placeholder:"https://calendar.google.com/..."},{parentKey:"integrations",platform:"google-forms",keywords:["form","survey"],key:"forms",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/forms\/d\/(.+)$/],transformMatch:e=>e[0].replace(/\/(edit|viewform)(\?.+)?$/,"/viewform?embedded=true"),icon:i.jsx(Zt,{className:"integration-icon",src:XE,alt:"Google Forms"}),name:"Google Forms",placeholder:"https://docs.google.com/forms/..."},{parentKey:"integrations",platform:"google-business",keywords:["bi","business intelligence"],key:"lookerstudio",hide:!1,regexMatches:[/^https?:\/\/(lookerstudio|datastudio)\.google\.com\/(embed|u\/0)\/reporting\/(.*)\/page\/(.*)(\/edit)?$/],transformMatch:e=>e[0].replace("u/0","embed").replace("/edit",""),icon:i.jsx(Zt,{className:"integration-icon",src:$E,alt:"Google Looker Studio"}),name:"Google Looker Studio",placeholder:"https://lookerstudio.google.com/..."},{parentKey:"integrations",platform:"grist",keywords:["spreadsheet"],key:"grist",hide:!1,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:e=>{const n=e.input??e[0];return n.includes("style=singlePage")?n:n.replace(/(\?embed=true)?$/,"?embed=true")},icon:i.jsx(Zt,{className:"integration-icon",src:rT,alt:"Grist"}),name:"Grist",placeholder:"https://docs.getgrist.com/..."},{parentKey:"integrations",platform:"instagram",keywords:["post"],key:"instagram",hide:!1,regexMatches:[/^https?:\/\/www\.instagram\.com\/(p|reel)\/([\w-]+)(\/?utm_source=\w+)?/],transformMatch:e=>`${e[0]}/embed`,icon:i.jsx(Zt,{className:"integration-icon",src:oT,alt:"Instagram"}),name:"Instagram",placeholder:"https://www.instagram.com/..."},{parentKey:"integrations",platform:"loom",keywords:["video","screencast"],key:"loom",hide:!1,regexMatches:[/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/],transformMatch:e=>e[0].replace("share","embed"),icon:i.jsx(Zt,{className:"integration-icon",src:sT,alt:"Loom"}),name:"Loom",placeholder:"https://www.loom.com/..."},{parentKey:"integrations",platform:"lucidchart",keywords:["chart"],key:"lucidchart",hide:!1,regexMatches:[/^https?:\/\/(www\.|app\.)?(lucidchart\.com|lucid\.app)\/documents\/(embeddedchart|view|edit)\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:.*)?$/,/^https?:\/\/(www\.|app\.)?(lucid\.app|lucidchart\.com)\/lucidchart\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view|edit)(?:.*)?$/],transformMatch:e=>{var n;return`https://lucidchart.com/documents/embeddedchart/${(n=e.groups)==null?void 0:n.chartId}`},icon:i.jsx(Zt,{className:"integration-icon",src:iT,alt:"Lucidchart"}),name:"Lucidchart",placeholder:"https://lucid.app/lucidchart/..."},{parentKey:"integrations",platform:"miro",keywords:["whiteboard"],key:"miro",hide:!1,regexMatches:[/^https:\/\/(realtimeboard|miro)\.com\/app\/board\/(.*)$/],transformMatch:e=>`https://${e[1]}.com/app/embed/${e[2]}`,icon:i.jsx(Zt,{className:"integration-icon",src:aT,alt:"Miro"}),name:"Miro",placeholder:"https://miro.com/app/board/..."},{parentKey:"integrations",platform:"scribe",keywords:["screencast"],key:"scribe",hide:!1,regexMatches:[/^https?:\/\/scribehow\.com\/shared\/(.*)$/],transformMatch:e=>`https://scribehow.com/embed/${e[1]}`,icon:i.jsx(Zt,{className:"integration-icon",src:lT,alt:"Scribe"}),name:"Scribe",placeholder:"https://scribehow.com/..."},{parentKey:"integrations",platform:"swagger",keywords:["swagger","api"],key:"swagger",hide:!0,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:e=>e.input??e[0],icon:i.jsx(Zt,{className:"integration-icon",src:uT,alt:"Swagger"}),name:"Swagger"},{parentKey:"integrations",platform:"tldraw",keywords:["draw","schematics","diagrams"],key:"tldraw",hide:!1,regexMatches:[/^https?:\/\/(beta|www|old)\.tldraw\.com\/[rsvo]+\/(.*)$/],transformMatch:e=>e[0],icon:i.jsx(Zt,{className:"integration-icon",src:dT,alt:"Tldraw"}),name:"Tldraw",placeholder:"https://www.tldraw.com/..."},{parentKey:"integrations",platform:"trello",keywords:["kanban"],key:"trello",hide:!1,regexMatches:[/^https:\/\/trello\.com\/(c|b)\/([^/]*)(.*)?$/],icon:i.jsx(Zt,{className:"integration-icon",src:fT,alt:"Trello"}),component:yT,name:"Trello",placeholder:"https://trello.com/..."},{parentKey:"integrations",platform:"typeform",keywords:["form","survey"],key:"typeform",hide:!1,regexMatches:[/^https:\/\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.typeform\.com\/to\/(.*)$/],transformMatch:e=>e[0],icon:i.jsx(Zt,{className:"integration-icon typeform",src:hT,alt:"Typeform"}),name:"Typeform",placeholder:"https://typeform.com/..."},{parentKey:"integrations",platform:"valtown",keywords:["code"],key:"valtown",hide:!1,regexMatches:[/^https?:\/\/(?:www.)?val\.town\/(?:v|embed)\/(.*)$/],transformMatch:e=>`https://www.val.town/embed/${e[1]}`,icon:i.jsx(Zt,{className:"integration-icon",src:pT,alt:"Valtown"}),name:"Valtown",placeholder:"https://www.val.town/..."},{parentKey:"integrations",platform:"vimeo",keywords:["video"],key:"vimeo",hide:!1,regexMatches:[/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/],icon:i.jsx(Zt,{className:"integration-icon",src:mT,alt:"Vimeo"}),name:"Vimeo",placeholder:"https://vimeo.com/...",component:xT}];function Zt({w:e=16,h:n=16,...t}){return i.jsx(v.Image,{w:e,h:n,...t})}const hh=(e,n=[])=>{const t=n??[];for(const r of t){const o=e.match(r);if(o)return o}return!1};function wT(e){for(const n of Gi){const t=hh(e,n.regexMatches);if(t)return{embed:n,matches:t}}}function Ab(e){var r;let n=null;const t=Gi.find(o=>o.regexMatches.some(s=>{var l;return n=e.match(s),n?{platform:o.platform,id:((l=o==null?void 0:o.transformMatch)==null?void 0:l.call(o,n))||"valid"}:{platform:"unknown",id:null}}));return t?{platform:t.platform,id:n?((r=t.transformMatch)==null?void 0:r.call(t,n))||"valid":null}:{platform:"unknown",id:null}}function kT(e,n){var r;const t=Gi.find(o=>o.platform===e);return t?((r=t==null?void 0:t.getIframeUrl)==null?void 0:r.call(t,n))||"valid":""}const ST=({height:e,width:n,id:t,platform:r,src:o})=>{const s=vT[r]||r,c=`${parseInt(e,10)-24}px`;return i.jsxs("span",{className:"frame-container",style:{width:n,height:e},children:[i.jsx("iframe",{"data-lexical-embedid":t,"data-lexical-platform":r,src:o,style:{margin:0},width:"100%","data-exportheight":e,"data-exportwidth":n,height:c,allowFullScreen:!0,frameBorder:"0"}),i.jsx("span",{className:"frame-bar","data-title":s,children:i.jsx("a",{className:"frame-open-link",href:o,target:"_blank",rel:"noopener noreferrer"})})]})},pa="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))";function D0({icon:e,title:n,actions:t}){return i.jsxs("div",{className:"embed-header",children:[i.jsxs("div",{className:"embed-header__title",children:[i.jsx("div",{className:"embed-header__icon",children:e}),i.jsx(v.Text,{size:"sm",fw:500,c:"bright",truncate:!0,children:n})]}),i.jsx("div",{className:"embed-header__actions",children:t})]})}function wf({showPreview:e,onTogglePreview:n,onViewOriginal:t,onCopyLink:r,onDelete:o}){const{t:s}=Ke.useTranslation();return i.jsxs(v.Menu,{shadow:"md",position:"bottom-end",withinPortal:!0,children:[i.jsx(v.Menu.Target,{children:i.jsx(Jt,{className:"embed-action-btn",label:s("editor.embed.moreAction"),icon:qn,iconColor:"var(--mantine-color-gray-text)"})}),i.jsxs(v.Menu.Dropdown,{miw:232,children:[i.jsx(v.Menu.Item,{leftSection:i.jsx($,{icon:e?c1:bA,size:16,color:"currentColor"}),onClick:n,children:s(e?"editor.embed.hidePreview":"editor.embed.showPreview")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx($,{icon:lA,size:16,color:"currentColor"}),onClick:t,children:s("editor.embed.viewOriginal")}),i.jsx(v.Menu.Item,{leftSection:i.jsx($,{icon:s1,size:16,color:"currentColor"}),onClick:r,children:s("editor.embed.copyLink")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{color:"red",leftSection:i.jsx($,{icon:sn,size:16,color:"currentColor"}),onClick:o,children:s("editor.embed.delete")})]})]})}function mc({opened:e,onClose:n,hasPreview:t,showPreview:r,onTogglePreview:o,onViewOriginal:s,onCopyLink:l,onDuplicate:c,onDelete:d}){const{t:f}=Ke.useTranslation(),h=g=>{n(),g()};return i.jsx(Bt,{opened:e,onClose:n,title:f("editor.menu.main.code.mobileActions"),children:i.jsxs(v.Stack,{gap:t?16:2,p:0,children:[t&&i.jsx(v.Stack,{gap:2,p:0,children:i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:pa,leftSection:i.jsx($,{icon:r?c1:bA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(o),children:f(r?"editor.embed.hidePreview":"editor.embed.showPreview")})}),i.jsxs(v.Stack,{gap:2,p:0,children:[t&&i.jsxs(i.Fragment,{children:[i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:pa,leftSection:i.jsx($,{icon:lA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(s),children:f("editor.embed.viewOriginal")}),i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:pa,leftSection:i.jsx($,{icon:s1,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(l),children:f("editor.embed.copyLink")})]}),c&&!t&&i.jsx(v.Button,{variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:pa,leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>h(c),children:f("editor.contextMenu.duplicate")})]}),i.jsx(v.Stack,{gap:2,p:0,children:i.jsx(v.Button,{variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:pa,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>h(d),children:f("editor.embed.delete")})})]})})}function ET({opened:e,onClose:n,title:t,url:r,onUrlChange:o,onSubmit:s,onCancel:l,inputPlaceholder:c,invalidUrl:d,errorMessage:f}){const{t:h}=Ke.useTranslation();return i.jsx(Bt,{opened:e,onClose:n,title:t,children:i.jsxs(v.Stack,{gap:16,p:0,children:[i.jsx(v.TextInput,{placeholder:c,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:r,onChange:g=>o(g.currentTarget.value),error:d?f:void 0}),i.jsxs(v.Stack,{gap:8,p:0,children:[i.jsx(v.Button,{h:36,fullWidth:!0,onClick:s,disabled:!r,children:h("editor.embed.save")}),i.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:l,children:h("editor.cancel")})]})]})})}function TT({className:e,format:n,platform:t,embedId:r,embedSrc:o="",width:s,editor:l,nodeKey:c,create:d,showPreview:f}){const[h,g]=m.useState(r||""),[A,b]=m.useState(!1),[y,x]=m.useState(d||!1),[w,k]=m.useState(f!==!1),{t:T}=Ke.useTranslation(),{disable:I,onTrack:N}=m.useContext(ft),[L,{open:M,close:S}]=Ft.useDisclosure(!1),[O,{open:R,close:B}]=Ft.useDisclosure(!1),_=Nu(),j=m.useMemo(()=>Gi.find(oe=>oe.platform===t),[t]);m.useEffect(()=>{if(y)return st||ll(),()=>{st||cl()}},[y]);const D=m.useMemo(()=>wT(h),[h]);m.useEffect(()=>{g(r||"")},[r]);const z=m.useMemo(()=>D!=null&&D.embed.transformMatch?D.embed.transformMatch(D.matches):o||r||"",[D,o,r]),H=m.useMemo(()=>gb(z),[z]),F=j!=null&&j.icon?j.icon:i.jsx($,{icon:pf,size:20,color:"var(--mantine-color-gray-text)"}),Z=(j==null?void 0:j.name)||T("editor.embed.insert"),q=oe=>{l.update(()=>{const K=p.$getNodeByKey(c);return ma(K)&&K.setMinHeight(oe),!0})},ee=oe=>{const K=p.$getNodeByKey(c),Y=hh(h,(D==null?void 0:D.embed.regexMatches)||[]);if(ma(K)&&Y){const ne=h.includes("maps");if(oe&&!ne){K.setSrc(oe);return}K.setPlatform(D==null?void 0:D.embed.platform),K.setId(h),ne?K.setSrc(mb(h)):D!=null&&D.embed.transformMatch?K.setSrc(D==null?void 0:D.embed.transformMatch(D==null?void 0:D.matches)):K.setSrc(h)}},Q=(oe,K)=>{l.update(()=>{p.$setSelection(null);const Y=p.$getNodeByKey(c);return ma(Y)&&Y.setWidthAndHeight(oe,K),!0})},J=()=>{if(!hh(h,(D==null?void 0:D.embed.regexMatches)||[])&&!(D!=null&&D.embed.platform)){b(!0);return}l.update(()=>{const K=p.$getNodeByKey(c);if(!K)return;ee();const Y=K.getNextSibling();Y&&p.$setSelection(Y.selectNext())}),x(!1),b(!1)},xe=oe=>{oe.preventDefault(),J()},we=()=>{x(!1),g(""),b(!1)},Te=()=>{N==null||N("block_deleted"),l.update(()=>{const oe=p.$getNodeByKey(c);oe&&oe.remove()})},Fe=()=>{N==null||N("block_duplicated"),l.update(()=>{const oe=p.$getNodeByKey(c);oe&&oe.insertAfter(Ir(oe))})},se=()=>{r&&navigator.clipboard.writeText(r).then(()=>_(T("editor.embed.linkCopied")),()=>_(T("editor.embed.linkCopyFailed")))},X=()=>{r&&window.open(r,"_blank","noopener,noreferrer")},ae=()=>{const oe=!w;k(oe),l.update(()=>{const K=p.$getNodeByKey(c);ma(K)&&K.setShowPreview(oe)})},pe=()=>{M()},ge=()=>{if(D!=null&&D.embed.transformMatch){const oe=D==null?void 0:D.embed.transformMatch(D==null?void 0:D.matches);return i.jsx(Ks,{src:oe,width:"100%",height:"400px",canonicalUrl:h,title:j==null?void 0:j.name,allow:"encrypted-media",saveUrl:ee,editor:l,updateMinHeight:q})}return j!=null&&j.component?j.component({saveUrl:ee,attrs:{href:h},matches:D==null?void 0:D.matches,isSelected:!1,isEditable:!1,embed:j,editor:l,updateMinHeight:q}):i.jsx("div",{})};m.useEffect(()=>{d&&x(!0)},[d]);const G=(j==null?void 0:j.placeholder)||T("editor.embed.placeholder"),he=j!=null&&j.name?`${T("editor.embed.addPrefix")} ${j.name}`:T("editor.embed.addEmbed");return r?w?D?i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsxs(N1,{editor:l,width:pb(s),isIcon:!1,isEmbed:!0,height:400,onResizeEnd:Q,children:[i.jsx(v.Modal,{opened:L,onClose:S,fullScreen:!0,title:Z,zIndex:1e4,children:i.jsx(v.Box,{style:{height:"calc(100dvh - 2 * var(--mantine-spacing-xl))",minHeight:"60vh"},children:H?i.jsx("iframe",{sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:"100%",style:{border:0,minHeight:"calc(100dvh - 2 * var(--mantine-spacing-xl))"},title:Z,src:H,allowFullScreen:!0}):j!=null&&j.component?i.jsx(v.Box,{style:{height:"100%",minHeight:"60vh"},children:j.component({saveUrl:ee,attrs:{href:h},matches:D==null?void 0:D.matches,isSelected:!1,isEditable:!1,embed:j,editor:l,updateMinHeight:q})}):null})}),i.jsx("div",{className:"embed-block embed-block--preview",children:i.jsxs("div",{className:"embed-block__box",children:[i.jsx(D0,{icon:F,title:Z,actions:I?null:st?i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:R,children:i.jsx($,{icon:qn,size:16,color:"currentColor"})}),i.jsx(mc,{opened:O,onClose:B,hasPreview:!0,showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDelete:Te})]}):i.jsxs(v.Flex,{gap:4,align:"center",children:[i.jsx(Jt,{className:"embed-action-btn",label:T("editor.embed.openPreview"),icon:Y8,iconColor:"var(--mantine-color-gray-text)",onClick:pe}),i.jsx(hb,{currentAlignment:n||"left",onAlign:oe=>{l.update(()=>{const K=p.$getNodeByKey(c);ma(K)&&K.setFormat(oe)})},className:"embed-action-btn",targetLabel:T("editor.embed.alignment")}),i.jsx(wf,{showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDelete:Te})]})}),i.jsx("div",{className:"embed-block__preview-content",children:ge()})]})})]})}):i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsx("div",{className:"embed-block embed-block--inline",children:i.jsxs("div",{className:"embed-inline",children:[i.jsxs("div",{className:"embed-inline__info",children:[i.jsx($,{icon:pf,size:20,color:"currentColor"}),i.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:r})]}),I?null:st?i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:R,children:i.jsx($,{icon:qn,size:16,color:"currentColor"})}),i.jsx(mc,{opened:O,onClose:B,hasPreview:!1,showPreview:!1,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDelete:Te})]}):i.jsx(wf,{showPreview:!1,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDelete:Te})]})})}):i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsx("div",{className:"embed-block embed-block--inline",children:i.jsxs("div",{className:"embed-inline",children:[i.jsxs("div",{className:"embed-inline__info",children:[i.jsx($,{icon:pf,size:20,color:"currentColor"}),i.jsx(v.Text,{size:"md",c:"bright",truncate:!0,children:Z})]}),I?null:st?i.jsxs(i.Fragment,{children:[i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:R,children:i.jsx($,{icon:qn,size:16,color:"currentColor"})}),i.jsx(mc,{opened:O,onClose:B,hasPreview:!0,showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDelete:Te})]}):i.jsx(wf,{showPreview:w,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDelete:Te})]})})}):i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:c,children:i.jsx("div",{className:"embed-block embed-block--empty",children:i.jsxs("div",{className:"embed-block__box",children:[i.jsx(D0,{icon:F,title:Z,actions:I?null:st?i.jsx(v.ActionIcon,{className:"embed-action-btn",variant:"subtle",color:"gray",radius:6,size:28,onClick:R,children:i.jsx($,{icon:qn,size:16,color:"currentColor"})}):i.jsxs(v.Flex,{gap:4,align:"center",className:"code-block-header-menu__actions",children:[i.jsx(ku,{label:T("editor.contextMenu.duplicate"),ariaLabel:"duplicate-embed-block",onClick:Fe}),i.jsx(ms,{label:T("editor.actions.delete"),ariaLabel:"remove-embed-block",onClick:Te})]})}),st?i.jsxs(i.Fragment,{children:[i.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(!0),children:i.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:he})}),i.jsx(ET,{opened:y,onClose:we,title:he,url:h,onUrlChange:g,onSubmit:J,onCancel:we,inputPlaceholder:G,invalidUrl:A,errorMessage:T("editor.validation.link")}),i.jsx(mc,{opened:!I&&O,onClose:B,hasPreview:!1,showPreview:!1,onTogglePreview:ae,onViewOriginal:X,onCopyLink:se,onDuplicate:Fe,onDelete:Te})]}):i.jsxs(v.Popover,{width:400,position:"bottom-start",shadow:"md",opened:y,trapFocus:!0,onChange:oe=>{x(oe),oe||(g(""),b(!1))},withinPortal:!0,zIndex:ki,children:[i.jsx(v.Popover.Target,{children:i.jsx(v.UnstyledButton,{className:"embed-block__placeholder",onClick:()=>x(oe=>!oe),children:i.jsx(v.Text,{size:"md",c:"var(--mantine-color-placeholder)",truncate:!0,children:he})})}),i.jsx(v.Popover.Dropdown,{className:"embed-url-input",children:i.jsxs("form",{onSubmit:xe,children:[i.jsx(v.TextInput,{placeholder:G,type:"url",size:"sm",variant:"default","data-autofocus":!0,value:h,onChange:oe=>g(oe.currentTarget.value),error:A?T("editor.validation.link"):void 0}),i.jsxs(v.Flex,{justify:"flex-end",mt:"xs",gap:8,children:[i.jsx(v.Button,{variant:"subtle",size:"xs",color:"gray",onClick:we,children:T("editor.cancel")}),i.jsx(v.Button,{type:"submit",size:"xs",disabled:!h,children:T("editor.embed.save")})]})]})})]})]})})})}function MT(e){const n=e.getAttribute("data-lexical-platform"),t=e.getAttribute("src"),r=e.getAttribute("data-lexical-embedid")||"",o=parseFloat(e.getAttribute("data-exportwidth")??"100%"),s=parseFloat(e.getAttribute("height")??"100%"),l=e.getAttribute("data-exportheight");if(n&&typeof t=="string"){const c=j1(t,o,s,r,!1,n);return c.setMinHeight(parseFloat(l)),{node:c}}return{node:null}}class Vi extends eo.DecoratorBlockNode{constructor(t,r,o,s,l,c,d,f,h,g){super(o,c);Ne(this,"__platform");Ne(this,"__id");Ne(this,"__create");Ne(this,"__width");Ne(this,"__height");Ne(this,"__src");Ne(this,"__minHeight");Ne(this,"__showPreview");this.__platform=t,this.__id=r,this.__create=d||!1,this.__width=s||560,this.__height=l||315,this.__src=f,this.__minHeight=h||400,this.__showPreview=g!==!1}static getType(){return"embed"}static clone(t){return new Vi(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__create,t.__src,t.__minHeight,t.__showPreview)}static importJSON(t){const r=j1(t.src,t.width,t.height,t.embedId,t.create,t.platform,t.showPreview);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"embed",version:1,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,src:this.__src,showPreview:this.__showPreview}}createDOM(){const t=document.createElement("div");return t.className="editor-iframe",t}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-embedid");return r&&typeof o=="string"?{conversion:MT,priority:1}:null}}}updateDOM(){return!1}exportDOM(){const t=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=this.__src||"",o=a9.renderToString(i.jsx(ST,{platform:this.__platform,id:this.__id,src:r,height:(typeof this.__height=="number"?this.__height:this.__minHeight).toString()+"px",width:t})),s=document.createElement("div");return s.innerHTML=o,{element:s.firstChild}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return i.jsx(TT,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,platform:this.__platform,embedId:this.__id,embedSrc:this.__src??"",width:this.__width,height:this.__height,create:this.__create,showPreview:this.__showPreview})}setMinHeight(t){const r=this.getWritable();r.__minHeight=t}setPlatform(t){const r=this.getWritable();r.__platform=t}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){const r=this.getWritable();r.__src=t}getId(){return this.__id}setCreated(t){const r=this.getWritable();r.__create=t}setShowPreview(t){const r=this.getWritable();r.__showPreview=t}getShowPreview(){return this.__showPreview}getTextContent(){return kT(this.__platform,this.__id)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function j1(e,n,t,r,o,s,l){let c=s||"unknown";if(!s){const{platform:d}=Ab(e||"");c=d||"unknown"}return new Vi(c,r,void 0,n,t,void 0,o,e,void 0,l)}function ma(e){return e instanceof Vi}const O0=m.lazy(()=>Promise.resolve().then(()=>require("./layers.CIg6bGPB.js")));function LT(e){const n=e.getAttribute("data-lexical-excalidraw-json"),t=e.firstChild.style.height||"0",r=e.firstChild.style.width||"0",o=e.style.justifyContent||"left",s=t==="inherit"?"inherit":parseInt(t,10),l=r==="inherit"?"inherit":parseInt(r,10);return n?{node:R1(n,l,s,o)}:null}class ds extends p.DecoratorNode{constructor(t="[]",r="inherit",o="inherit",s="left",l){super(l);Ne(this,"__data");Ne(this,"__width");Ne(this,"__height");Ne(this,"__alignment");this.__data=t,this.__width=r,this.__height=o,this.__alignment=s}static getType(){return"excalidraw"}static clone(t){return new ds(t.__data,t.__width,t.__height,t.__alignment,t.__key)}static importJSON(t){return new ds(t.data,t.width??"inherit",t.height??"inherit",t.alignment??"left")}exportJSON(){return{data:this.__data,height:this.__height==="inherit"?void 0:this.__height,type:"excalidraw",version:1,width:this.__width==="inherit"?void 0:this.__width,alignment:this.__alignment||"left"}}createDOM(t){const r=document.createElement("span"),s=t.theme.excalidraw;return s!==void 0&&(r.className=s),r}updateDOM(){return!1}static importDOM(){return{span:t=>t.className==="editor-excalidraw"?{conversion:LT,priority:2}:null}}exportDOM(t){const r=document.createElement("span"),o=document.createElement("span");r.style.display="inline-block",r.style.width="100%";const s=t.getElementByKey(this.getKey());if(s!==null){const l=s.querySelector(".excalidraw-svg");l!==null&&(o.innerHTML=l.outerHTML)}return o.style.width=this.__width==="inherit"?"inherit":`${parseInt(String(this.__width))}%`,o.style.height=this.__height==="inherit"?"inherit":`${parseInt(String(this.__height))}%`,r.setAttribute("data-lexical-excalidraw-json",this.__data),r.className="editor-excalidraw",r.style.justifyContent=this.__alignment,r.style.display="flex",r.appendChild(o),{element:r}}setData(t){const r=this.getWritable();r.__data=t}getWidth(){return this.getLatest().__width}setWidth(t){const r=this.getWritable();r.__width=t}getHeight(){return this.getLatest().__height}setHeight(t){const r=this.getWritable();r.__height=t}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}setAlignment(t){const r=this.getWritable();r.__alignment=t}isInline(){return!1}decorate(){return O0?i.jsx(m.Suspense,{fallback:null,children:i.jsx(O0,{nodeKey:this.getKey(),data:this.__data,width:this.__width,height:this.__height,alignment:this.__alignment})}):i.jsx("div",{})}}function R1(e="[]",n="inherit",t="inherit",r="left"){return new ds(e,n,t,r)}function NT(e){return e instanceof ds}const bb=p.createCommand("INSERT_EXCALIDRAW_COMMAND");function jT(e){m.useEffect(()=>{if(!e.hasNodes([ds]))throw new Error("ExcalidrawPlugin: ExcalidrawNode not registered on editor");return e.registerCommand(bb,()=>(e.update(()=>{const n=R1(),t=en();t&&t.getParent()&&t.replace(n)}),!0),p.COMMAND_PRIORITY_EDITOR)},[e])}function RT({className:e,format:n,editor:t,nodeKey:r,formID:o}){const s={base:"dsd__theme__embedBlock dsd__theme__embedBlock__form",focus:"dsd__theme__embedBlockFocus"};return i.jsxs(Xo.BlockWithAlignableContents,{className:s,format:n,nodeKey:r,children:[i.jsx(v.Tooltip,{label:"Удалить",children:i.jsx(v.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:l=>{l.stopPropagation(),t.update(()=>{if(p.$getSelection()){const c=p.$getNodeByKey(r);c&&c.remove()}return!1})},children:i.jsx(bn,{name:"trash"})})}),i.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${o}`,title:"Form",style:{border:"none"}})]})}function IT(e){const n=e.getAttribute("data-form");return n?{node:I1(n)}:null}class fl extends eo.DecoratorBlockNode{constructor(t,r,o){super(r,o);Ne(this,"__id");this.__id=t}static getType(){return"form"}static clone(t){return new fl(t.__id,t.__format,t.__key)}static importJSON(t){const r=I1(t.formID);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"form",version:1,formID:this.__id}}exportDOM(){const t=document.createElement("iframe");return t.setAttribute("data-form",this.__id),t.setAttribute("width","100%"),t.setAttribute("height","500"),t.setAttribute("src",`https://dudoc.io/f/${this.__id}`),t.setAttribute("title","Form"),{element:t}}static importDOM(){return{iframe:t=>t.hasAttribute("data-form")?{conversion:IT,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getTextContent(){return`https://dudoc.io/f/${this.__id}`}decorate(t,r){const o=r.theme.embedBlock||{},s={base:o.base||"",focus:o.focus||""};return i.jsx(RT,{className:s,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:t})}}function I1(e){return new fl(e)}class Uu extends p.TextNode{static getType(){return"keyword"}static clone(n){return new Uu(n.__text,n.__key)}static importJSON(n){const t=DT(n.text);return t.setFormat(n.format),t.setDetail(n.detail),t.setMode(n.mode),t.setStyle(n.style),t}exportJSON(){return{...super.exportJSON(),type:"keyword",version:1}}createDOM(n){const t=super.createDOM(n);return t.style.cursor="default",t.className="keyword",t}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}isTextEntity(){return!0}}function DT(e){return new Uu(e)}function OT({nodeKey:e}){const[n]=it.useLexicalComposerContext(),[t,r,o]=l9.useLexicalNodeSelection(e),s=m.useCallback(l=>{if(l.preventDefault(),t&&p.$isNodeSelection(p.$getSelection())){const c=p.$getNodeByKey(e);if(BT(c))return c.remove(),!0}return!1},[t,e]);return m.useEffect(()=>ve.mergeRegister(n.registerCommand(p.CLICK_COMMAND,l=>{const c=n.getElementByKey(e);return l.target===c?(l.shiftKey||o(),r(!t),!0):!1},p.COMMAND_PRIORITY_LOW),n.registerCommand(p.KEY_DELETE_COMMAND,s,p.COMMAND_PRIORITY_LOW),n.registerCommand(p.KEY_BACKSPACE_COMMAND,s,p.COMMAND_PRIORITY_LOW)),[o,n,t,e,s,r]),m.useEffect(()=>{const l=n.getElementByKey(e);l!==null&&(l.className=t?"selected":"")},[n,t,e]),null}class hl extends p.DecoratorNode{static getType(){return"page-break"}static clone(n){return new hl(n.__key)}static importJSON(){return yb()}static importDOM(){return{figure:n=>n.getAttribute("type")!==this.getType()?null:{conversion:PT,priority:p.COMMAND_PRIORITY_HIGH}}}exportJSON(){return{type:this.getType(),version:1}}createDOM(){const n=document.createElement("figure");return n.style.pageBreakAfter="always",n.setAttribute("type",this.getType()),n}getTextContent(){return`
|
|
15
|
+
`}isInline(){return!1}updateDOM(){return!1}decorate(){return i.jsx(OT,{nodeKey:this.__key})}}function PT(){return{node:yb()}}function yb(){return new hl}function BT(e){return e instanceof hl}const _T="_inlineElement_tumj2_1",FT="_placeholderInline_tumj2_29",WT="_placeholderInlineIcon_tumj2_67",zT="_placeholderInlineText_tumj2_79",UT="_placeholderInlineDisabled_tumj2_87",KT="_main_tumj2_97",HT="_mainIcon_tumj2_105",Es={inlineElement:_T,placeholderInline:FT,placeholderInlineIcon:WT,placeholderInlineText:zT,placeholderInlineDisabled:UT,main:KT,mainIcon:HT};function YT({page:e,inlineElement:n,placeholder:t}){const{t:r}=Ke.useTranslation(),{disable:o}=m.useContext(ft);if(t)return null;if(n&&!e.id)return i.jsxs(v.Box,{component:"span",className:`${Es.placeholderInline} ${o?Es.placeholderInlineDisabled:""}`,"data-page-link-anchor":"true",children:[i.jsx("span",{className:Es.placeholderInlineIcon,children:i.jsx($,{icon:ji,size:16})}),i.jsx(v.Text,{component:"span",className:Es.placeholderInlineText,children:r("editor.menu.other.pageLink.placeholder")})]});if(n)return i.jsx(v.Box,{component:"span",className:Es.inlineElement,"data-page-link-anchor":"true",children:i.jsx(iu,{page:e,withTooltip:!1,withHover:!0})});const s=l=>{e.onClick&&e.onClick(l)};return i.jsxs(v.Box,{component:"div",className:Es.main,onClick:s,children:[i.jsx(iu,{page:{...e,onClick:void 0},withTooltip:!1}),i.jsx("span",{className:Es.mainIcon,children:i.jsx($,{icon:G8,size:20})})]})}function ZT(e){const{pageId:n,title:t,icon:r,inlineElement:o,placeholder:s}=e,{linkablePages:l,pages:c}=m.useContext(ft),f=(l??c).find(g=>g.id===n),h={id:n,title:t||((f==null?void 0:f.title)??""),icon:r??(f==null?void 0:f.icon)??null,order:(f==null?void 0:f.order)??0,onClick:f==null?void 0:f.onClick};return i.jsx(YT,{page:h,inlineElement:o,placeholder:s})}function P0(e){const n=e.getAttribute("data-page-link-id");if(!n)return null;const t=e.getAttribute("data-page-link-title")??"",r=e.getAttribute("data-page-link-icon"),o=e.getAttribute("data-page-link-inline")==="true",s=n==="__placeholder__",l=e.getAttribute("data-page-link-placeholder")==="true";return{node:mi({id:s?"":n,title:t,icon:r??null,inlineElement:o,placeholder:l})}}class No extends p.DecoratorNode{constructor(t,r,o,s,l=!1,c=!1,d){super(d);Ne(this,"__pageId");Ne(this,"__title");Ne(this,"__icon");Ne(this,"__order");Ne(this,"__inlineElement");Ne(this,"__placeholder");this.__pageId=t,this.__title=r,this.__icon=o,this.__order=s,this.__inlineElement=l,this.__placeholder=c}static getType(){return"pageLink"}static clone(t){return new No(t.__pageId,t.__title,t.__icon,t.__order,t.__inlineElement,t.__placeholder,t.__key)}getPageId(){return this.__pageId}getMeta(){return{title:this.__title,icon:this.__icon}}setMeta(t,r){const o=this.getWritable();o.__title=t,o.__icon=r}static importJSON(t){const{pageId:r,title:o,icon:s,order:l,inlineElement:c,placeholder:d,format:f}=t;return new No(r??"",o??"",s??null,l,c??!1,d??!1,f).updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),type:"pageLink",pageId:this.__pageId,title:this.__title,icon:this.__icon,order:this.__order,inlineElement:this.__inlineElement,placeholder:this.__placeholder}}createDOM(t){if(this.__inlineElement){const o=document.createElement("span");return o.className="editor-page-link-inline",o}const r=document.createElement("div");return r.className="editor-page-link-wrap",r}updateDOM(t){return this.__inlineElement!==t.__inlineElement}getTextContent(){return this.__title}isInline(){return this.__inlineElement}decorate(t,r){return i.jsx(ZT,{nodeKey:this.__key,pageId:this.__pageId,title:this.__title,icon:this.__icon,inlineElement:this.__inlineElement,placeholder:this.__placeholder})}exportDOM(){const t=document.createElement("a");return t.setAttribute("data-page-link","true"),t.setAttribute("data-page-link-id",this.__pageId||"__placeholder__"),t.setAttribute("data-page-link-title",this.__title),this.__icon&&t.setAttribute("data-page-link-icon",this.__icon),t.setAttribute("data-page-link-inline",this.__inlineElement?"true":"false"),t.setAttribute("data-page-link-placeholder",this.__placeholder?"true":"false"),t.setAttribute("href","#"),t.className="editor-page-link",t.textContent=this.__title||"",{element:t}}getInlineElement(){return this.__inlineElement}static importDOM(){return{div:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:P0,priority:2},a:t=>t.getAttribute("data-page-link")!=="true"?null:{conversion:P0,priority:2}}}}function mi(e){return new No(e.id,e.title,e.icon,e.order,e.inlineElement??!1,e.placeholder??!1,void 0)}function B0(e){return e instanceof No}function GT(e){const n=e.getAttribute("data-src"),t=e.getAttribute("data-json");return{node:D1(n||"",t||"",!1)}}class pl extends eo.DecoratorBlockNode{constructor(t,r,o,s,l){super(s,l);Ne(this,"__src");Ne(this,"__json");Ne(this,"__create");this.__src=t,this.__json=r,this.__create=o}static getType(){return"swagger"}static clone(t){return new pl(t.__src,t.__json,!1,t.__format,t.__key)}static importJSON(t){const r=D1(t.src,t.json);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),src:this.__src,json:this.__json,create:this.__create,type:"swagger",version:1}}createDOM(){const t=document.createElement("span");return t.className="editor-swagger",t}setSrc(t){const r=this.getWritable();r.__src=t}setJSON(t){const r=this.getWritable();r.__json=t}updateDOM(){return!1}getSrc(){return this.__src}getJSON(){return this.__json}exportDOM(){const t=document.createElement("span");return t.classList.add("editor-swagger"),t.setAttribute("data-src",this.getSrc()),t.setAttribute("data-json",this.getJSON()),{element:t}}static importDOM(){return{span:t=>t.classList.contains("editor-swagger")?{conversion:GT,priority:1}:null}}decorate(t,r){return(r.theme.embedBlock||{}).base,i.jsx("div",{})}}function D1(e,n,t){return new pl(e,n,t)}function VT(e){const n=e.textContent;return n!==null?{node:xb(n)}:null}const qT="background-color: rgba(24, 119, 232, 0.2)";class Ku extends p.TextNode{constructor(t,r,o){super(r??t,o);Ne(this,"__mention");this.__mention=t}static getType(){return"mention"}static clone(t){return new Ku(t.__mention,t.__text,t.__key)}static importJSON(t){const r=xb(t.mentionName);return r.setTextContent(t.text),r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),mentionName:this.__mention,type:"mention",version:1}}createDOM(t){const r=super.createDOM(t);return r.style.cssText=qT,r.className="mention",r}exportDOM(){const t=document.createElement("span");return t.setAttribute("data-lexical-mention","true"),t.textContent=this.__text,{element:t}}static importDOM(){return{span:t=>t.hasAttribute("data-lexical-mention")?{conversion:VT,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function xb(e){const n=new Ku(e);return n.setMode("segmented").toggleDirectionless(),p.$applyNodeReplacement(n)}const QT=[fn.HeadingNode,br,On,fn.QuoteNode,Vr,Zr,Zi,i9.HashtagNode,cn.AutoLinkNode,cn.LinkNode,TC.OverflowNode,gr,jo,Ku,_u,Uu,Ds.HorizontalRuleNode,Vi,fl,bi.MarkNode,Us,Oo,us,hl,Or,Mn,$r,Oi,No,Ro,Ys,qr,Qr,Qn,to,Dn,Gt.CodeHighlightNode,pl,Gs,as,ds,Ki,...tb.map(e=>e)],JT=(e,n)=>{const t=e==="comment"?[br,On,cn.AutoLinkNode,cn.LinkNode,TC.OverflowNode,gr,jo,Qn,Gt.CodeHighlightNode,...tb.map(o=>o)]:QT,r=(n==null?void 0:n.map(o=>o.node).filter(Boolean))||[];return[...t,...r]};function XT(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function $T(e){m.useEffect(()=>{const n=e.hasNodes([Dn,to]),t=e.registerNodeTransform(gr,o=>{if(!n)return;const s=o.getParent(),l=XT(o);if(l&&s&&!Ar(s)){const c=o.getNextSibling(),d=ul(o);c?c.insertBefore(d):s.append(d);return}if(!l&&s&&Ar(s)){const c=s;c.insertBefore(o),c.remove()}}),r=n?e.registerNodeTransform(Dn,o=>{const s=o.getChildren(),l=s.find(Pr);if(!l||s.some(Yi))return;const d=Bo();l.insertBefore(d)}):()=>{};return ve.mergeRegister(t,r)},[e])}const O1=p.createCommand("INSERT_IMAGE_COMMAND"),vb=p.createCommand("UPLOAD_IMAGE_COMMAND");function eM(){const[e]=it.useLexicalComposerContext(),{t:n}=Ke.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=m.useContext(ft);return o||$T(e),m.useEffect(()=>{if(!e.hasNodes([gr]))throw new Error("ImageOlugin: FileNode not registered on editor");const s=l=>{if(l.length>1){At.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(l[0].size>r*1024*1024){At.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}let c="";e.update(()=>{const d=Ya({src:"upload",create:!1,altText:""});_i(d),c=d.getKey()}),setTimeout(()=>{e.dispatchCommand(vb,{files:l,targetNodeKey:c})},100)};return t!=null&&t.current&&(t.current.insertImages=s),e.registerCommand(O1,l=>{const c=Ya(l);return _i(c),!1},p.COMMAND_PRIORITY_LOW)},[e]),null}const _i=e=>{var l;const n=en();if(p.$isRootNode(n))return n.append(e),!0;let t=n==null?void 0:n.getParent();const r=t instanceof p.ParagraphNode||t instanceof On||t instanceof br,o=n instanceof jo&&!!n.__text,s=p.$isElementNode(n)&&(n==null?void 0:n.getChildrenSize())>0;if(s&&(t=n),r&&o||r||s)return t.insertAfter(e),!0;if(n&&t)return n instanceof $r?((l=n.getPreviousSibling())==null||l.replace(e),!0):(n==null||n.replace(e),!0);if(!n)return p.$getRoot().append(e),!0},ph=p.createCommand("INSERT_FILE_COMMAND"),wb=p.createCommand("UPLOAD_FILE_COMMAND");function tM(e){const n=e.getSrc();return!n||n==="upload"||!n.trim()}function nM(){const[e]=it.useLexicalComposerContext(),{imperativeHandleRef:n}=m.useContext(ft);m.useEffect(()=>{if(!e.hasNodes([as]))throw new Error("FilePlugin: FileNode not registered on editor");const t=e.hasNodes([Dn,to]),r=o=>{if(o.length>1){At.showMessageNotification({message:"editor.validation.doNotUploadMoreThanSingleFile"});return}e.dispatchCommand(ph,"upload"),setTimeout(()=>{e.dispatchCommand(wb,o)})};return n!=null&&n.current&&(n.current.insertFiles=r),ve.mergeRegister(e.registerNodeTransform(as,o=>{if(!t)return;const s=o.getParent(),l=tM(o);if(l&&s&&!Ar(s)){const c=o.getNextSibling(),d=ul(o);c?c.insertBefore(d):s.append(d);return}if(!l&&s&&Ar(s)){const c=s;c.insertBefore(o),c.remove()}}),...t?[e.registerNodeTransform(Dn,o=>{const s=o.getChildren(),l=s.find(Io);if(!l||s.some(Yi))return;const d=Bo();l.insertBefore(d)})]:[],e.registerCommand(ph,o=>{const s=f1(o,"100%","100%","left",o!=="upload");return _i(s),!1},p.COMMAND_PRIORITY_LOW))},[e,n])}function rM(){return nM(),null}function mh(e){return e!==null&&typeof e=="object"&&typeof e.getType=="function"&&e.getType()==="video"&&"setId"in e&&typeof e.setId=="function"}function gc(e){if(e&&e.includes("unsplash"))return null;const n=/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,t=e==null?void 0:e.match(n);return t&&(e.startsWith("/v1/attachments/")||e.includes(window.location.origin))?t[0]:null}function _0(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);Pr(r)||Xr(r)?r.setSrc(t):mh(r)&&t.trim()&&r.setId(t)},{tag:"historic"})}const Lr=new Map;function oM({editor:e}){const{fetchDeleteMedia:n,fetchRestoreMedia:t,pageId:r}=m.useContext(ft);return m.useEffect(()=>()=>{Lr.clear()},[r]),m.useEffect(()=>{if(e)return e.getEditorState().read(()=>{var l;const o=((l=e.getDecorators)==null?void 0:l.call(e))||e._decorators,s=new Map;for(const[c,d]of Object.entries(o)){const f=d.props,h=d._self,A=Pr(h)||mh(h)||Io(h)||Xr(h);if(!f&&A)continue;const b=(f==null?void 0:f.src)||(f==null?void 0:f.videoID);if(b!=null&&b.trim()&&!(b!=null&&b.includes("unsplash"))&&gc(b)){const y=s.get(b)||[],x=y.includes(c)?y:[...y,c];s.set(b,x)}}for(const[c,d]of s.entries())Lr.set(c,{mediaNodeKeys:d})}),e.registerDecoratorListener(o=>{var c;const s=new Map;let l=!1;for(const[d,f]of Object.entries(o)){const h=f==null?void 0:f.props,g=f==null?void 0:f._self,A=mh(g)||Pr(g)||Io(g)||Xr(g);if(A&&((c=h==null?void 0:h.src)!=null&&c.includes("unsplash"))||!h&&A)continue;const b=h.src||h.videoID;if(!b)continue;if(b.trim()==="")return;const y=s.get(b)||[];!y.includes(d)&&gc(h==null?void 0:h.src)&&s.set(b,[...y,d])}for(const[d,f]of Lr.entries()){const h=s.get(d);if(Array.isArray(f.mediaNodeKeys)&&f.mediaNodeKeys.length>0&&(!h||h.length===0)){const g=gc(d);if(g&&n){const A=e.registerCommand(p.UNDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);n(g,()=>{A()}),Lr.set(d,{mediaNodeKeys:[]})}}}for(const[d]of Lr.entries())s.has(d)||Lr.set(d,{mediaNodeKeys:[]});if(Lr.size>0)for(const[d,f]of s.entries()){const h=Lr.get(d);if(h&&Array.isArray(h.mediaNodeKeys)&&h.mediaNodeKeys.length===0&&f.length>0){_0(e,f[0]," "),l=!0;const g=gc(d);if(Lr.set(d,{mediaNodeKeys:f}),g&&t){const A=e.registerCommand(p.REDO_COMMAND,()=>!0,p.COMMAND_PRIORITY_NORMAL);t(g,()=>{A(),_0(e,f[0],d)})}}}if(!l)for(const[d,f]of s.entries())Lr.set(d,{mediaNodeKeys:f})})},[e,t,n]),Lr}const F0=window.location.hostname,sM=F0!=="playground.lexical.dev"&&F0!=="lexical-playground.vercel.app",iM=new URLSearchParams(window.location.search),W0=e=>iM.get(e)==="true",{isShowTreeView:aM,isMaxLength:lM}={isShowTreeView:W0("showTreeView"),isMaxLength:W0("isMaxLength")},Ja={disableBeforeInput:!1,emptyEditor:sM,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:lM,isRichText:!0,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:aM,tableCellBackgroundColor:!0,tableCellMerge:!0},z0={...Ja},kb=m.createContext({setOption:(e,n)=>{},settings:Ja});function cM(){const e={},n=new URLSearchParams(window.location.search);for(const t of Object.keys(Ja)){const r=n.get(t);r!==null&&(e[t]=r==="true")}return e}const uM=({children:e})=>{const[n,t]=m.useState(()=>({...Ja,...cM()})),r=m.useCallback((s,l)=>{t(c=>({...c,[s]:l})),Ja[s]===l?U0(s,null):U0(s,l)},[]),o=m.useMemo(()=>({setOption:r,settings:n}),[r,n]);return i.jsx(kb.Provider,{value:o,children:e})},P1=()=>m.useContext(kb);function U0(e,n){const t=new URL(window.location.href),r=new URLSearchParams(t.search);n!==null?r.has(e)?r.set(e,String(n)):r.append(e,String(n)):r.has(e)&&r.delete(e),t.search=r.toString(),window.history.pushState(null,"",t.toString())}const Sb=m.createContext({}),dM=({children:e})=>{const n=m.useMemo(()=>({historyState:Hh.createEmptyHistoryState()}),[]);return i.jsx(Sb.Provider,{value:n,children:e})},B1=()=>m.useContext(Sb),fM=[".toolbar",'[role="menu"]',".mantine-Popover-dropdown",".floating-text-format-popup","[data-comment-submit-button]","[data-modal-content]"],hM=({onBlur:e})=>{const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{const t=n.getRootElement();if(!t)return;const r=(s,l,c)=>s>=c.left&&s<=c.right&&l>=c.top&&l<=c.bottom,o=s=>{const l=t.getBoundingClientRect(),c=s.target,d=c instanceof Element&&fM.some(y=>c.closest(y)),{clientX:f,clientY:h}=s,g=r(f,h,l),A=document.activeElement;!t.contains(A)&&!g&&!d&&n.update(()=>{var y;p.$setSelection(null),n.dispatchCommand(p.SELECTION_CHANGE_COMMAND,void 0),(y=n._rootElement)==null||y.classList.remove("focused"),e&&(e==null||e(n.getEditorState(),n))})};return document.addEventListener("pointerdown",o,!0),()=>{document.removeEventListener("pointerdown",o,!0)}},[n,e]),null};function pM(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>Gt.registerCodeHighlighting(e),[e]),null}function mM({isLoading:e}){const[n]=it.useLexicalComposerContext(),{disable:t}=m.useContext(ft);return m.useEffect(()=>{t||n.update(()=>{p.$getRoot().getFirstChild()&&setTimeout(()=>{var s;(s=n._rootElement)==null||s.setAttribute("contenteditable","true")},0)})},[n,e,t]),null}function _1(e){const n=e.getParent();if(!jr(n)||!p.$isParagraphNode(e))return!1;let t=0;for(const r of n.getChildren())p.$isParagraphNode(r)&&t++;return t===1}function Eb(e,n,t){const r=e.getParent();if(!cs(r)||!p.$isParagraphNode(e))return t||n("editor.placeholder");const o=r.getChildren();return o.length===1&&o[0].getKey()===e.getKey()?n("editor.placeholders.collapsibleContent"):t||n("editor.placeholder")}const gM=(e,n,t)=>{if(ve.$findMatchingParent(e,St)||ve.$findMatchingParent(e,Lo)||Lo(e))return;const s=p.$isParagraphNode(e)?e:p.$isParagraphNode(e.getParent())?e.getParent():null;if(s){const l=s.getParent();return cs(l)?Eb(s,n,t):_1(s)?n("editor.placeholders.layoutAddContent"):t||n("editor.placeholder")}},kf="node-placeholder",K0=new WeakMap,CM=({selection:e,editor:n,t,customPlaceholder:r})=>{var f,h;const o=e.anchor,s=K0.get(n);if(s&&s!==o.key){const g=n.getElementByKey(s);(f=g==null?void 0:g.classList)==null||f.remove(kf),g==null||g.removeAttribute("data-placeholder")}const l=gM(o.getNode(),t,r),c=o.getNode().getTextContentSize(),d=n.getElementByKey(o.key);l&&c===0?(d==null||d.classList.add(kf),d==null||d.setAttribute("data-placeholder",l)):d&&((h=d==null?void 0:d.classList)==null||h.remove(kf),d==null||d.removeAttribute("data-placeholder")),K0.set(n,o.key)},AM=(e,n,t)=>{e.getEditorState().read(()=>{const r=p.$getSelection();p.$isRangeSelection(r)&&CM({selection:r,editor:e,t:n,customPlaceholder:t})})},Cc="node-placeholder";function bM(e,n){if(fn.$isHeadingNode(e)){const t=e.getTag();let r=n("editor.heading.name");switch(t){case"h1":r+=" 1";break;case"h2":r+=" 2";break;case"h3":r+=" 3";break;case"h4":r+=" 4";break;case"h5":r+=" 5";break;case"h6":r+=" 6";break}return r}if(fn.$isQuoteNode(e))return n("editor.placeholders.quote");if(It(e)){const t=e.getParent();if(gt(t))return t.getListType()==="check"?n("editor.placeholders.todo"):n("editor.placeholders.list")}if(p.$isParagraphNode(e)){const t=e.getParent();if(Lo(t))return n("editor.placeholders.toggle");if(cs(t))return Eb(e,n);if(_1(e))return n("editor.placeholders.layoutAddContent")}}function H0(e,n){e.getEditorState().read(()=>{const t=r=>{const o=bM(r,n),s=n("editor.placeholders.layoutAddContent");if(p.$isParagraphNode(r)){const l=r.getParent();if(jr(l)&&!_1(r)&&r.getTextContentSize()===0){const c=e.getElementByKey(r.getKey());c&&c.classList.contains(Cc)&&c.getAttribute("data-placeholder")===s&&(c.classList.remove(Cc),c.removeAttribute("data-placeholder"))}}if(o){const l=e.getElementByKey(r.getKey());if(!l)return;r.getTextContentSize()===0?(l.classList.add(Cc),l.setAttribute("data-placeholder",o)):(l.classList.remove(Cc),l.removeAttribute("data-placeholder"))}if(p.$isElementNode(r))for(const l of r.getChildren())t(l)};for(const r of p.$getRoot().getChildren())t(r)})}const yM=()=>{const[e]=it.useLexicalComposerContext(),{t:n}=Ke.useTranslation(),{placeholder:t,disable:r}=m.useContext(ft);return m.useEffect(()=>{const o=setTimeout(()=>{H0(e,n)}),s=e.registerUpdateListener(()=>{r||AM(e,n,t),H0(e,n)});return()=>{clearTimeout(o),s()}},[e,t,r,n]),null},Sf=700,xM=3e3,Y0=15,vM=55,wM=150,kM=45,SM=5,EM=200,TM=3,MM=500,LM=()=>typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches,NM=e=>{if(e<Sf)return 0;const n=Math.min(1,(e-Sf)/(xM-Sf));return Y0+(vM-Y0)*n};function jM(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>{if(!LM())return;let n=0,t=0,r=0,o=0,s=null,l=0,c=0,d=!1;const f=()=>{s!==null&&(cancelAnimationFrame(s),s=null)},h=()=>{f(),n=0,t=0,r=0,l=0},g=()=>{const T=performance.now();if(T-t>wM){f();return}const I=T-n,N=NM(I);if(N>0){const L=N>=kM,M=L?1e3/(N/SM):1e3/N;if(T-r>=M){r=T;let S=!1;if(e.update(()=>{const O=p.$getSelection();if(!p.$isRangeSelection(O)||!O.isCollapsed())return;const R=p.$getRoot(),B=R.getTextContent().length;B!==0&&(L?O.deleteWord(!0):O.deleteCharacter(!0),S=R.getTextContent().length<B)}),S)l=0;else if(l+=1,l>=TM){c=T+MM,h();return}}}s=requestAnimationFrame(g)},A=T=>{if(T.key!=="Backspace"||d||!e.isEditable())return;const I=e.getRootElement(),N=T.target;if(!I||!N||!I.contains(N))return;const L=performance.now(),M=o?L-o:1/0,S=T.repeat||M<EM;if(o=L,!S){h(),n=L,t=L,r=L;return}n===0&&(n=L,r=L),!(L<c)&&(t=L,s===null&&(s=requestAnimationFrame(g)),T.preventDefault())},b=T=>{T.inputType==="deleteContentBackward"&&s!==null&&(performance.now()<c||T.preventDefault())},y=()=>{d=!0,h()},x=()=>{d=!1},w=()=>h(),k=e.getRootElement();return document.addEventListener("keydown",A,!0),k==null||k.addEventListener("beforeinput",b),k==null||k.addEventListener("compositionstart",y),k==null||k.addEventListener("compositionend",x),k==null||k.addEventListener("blur",w),()=>{h(),document.removeEventListener("keydown",A,!0),k==null||k.removeEventListener("beforeinput",b),k==null||k.removeEventListener("compositionstart",y),k==null||k.removeEventListener("compositionend",x),k==null||k.removeEventListener("blur",w)}},[e])}function RM(){return jM(),null}const IM=({onFocus:e})=>{const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{n.registerCommand(p.FOCUS_COMMAND,t=>{var r;return(r=n._rootElement)==null||r.classList.add("focused"),!t.relatedTarget&&e&&e(),!1},p.COMMAND_PRIORITY_LOW)},[]),null};function DM(e){m.useEffect(()=>{if(e)return e.registerCommand(p.KEY_DOWN_COMMAND,n=>{if(!(n.ctrlKey||n.metaKey))return!1;switch(n.code){case"KeyC":return n.shiftKey||n.altKey?!1:(n.preventDefault(),e.dispatchCommand(p.COPY_COMMAND,n),!0);case"KeyX":return n.shiftKey||n.altKey?!1:(n.preventDefault(),e.dispatchCommand(p.CUT_COMMAND,n),!0);case"KeyZ":return n.preventDefault(),n.shiftKey?e.dispatchCommand(p.REDO_COMMAND,void 0):e.dispatchCommand(p.UNDO_COMMAND,void 0),!0;case"KeyY":return n.preventDefault(),e.dispatchCommand(p.REDO_COMMAND,void 0),!0;default:return!1}},p.COMMAND_PRIORITY_CRITICAL)},[e])}const OM=()=>{const[e]=it.useLexicalComposerContext();return DM(e),null};function PM(){return i.jsx(g9.LinkPlugin,{attributes:{target:null,rel:"noreferrer"}})}function BM(e){m.useEffect(()=>tS(e),[e])}function _M(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([br,On]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[e]),BM(e),null}const FM=" ";function WM(e){const n=e.getNodes();return n.length===0?new Set([e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]):new Set(n.map(t=>p.$isElementNode(t)?t:t.getParentOrThrow()))}function zM(e){const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.focus.getNode();if(!(gt(t)||It(t)||It(t.getParent())))return n.insertText(FM),!1;const o=WM(n);let s=0;for(const l of o)if(gt(l))s=Math.max(ah(l)+1,s);else if(It(l)){const c=l.getParent();if(!gt(c))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");s=Math.max(ah(c)+1,s)}return s<=e}function UM({maxDepth:e}){const[n]=it.useLexicalComposerContext();return m.useEffect(()=>ve.mergeRegister(n.registerCommand(p.INDENT_CONTENT_COMMAND,()=>!zM(e??7),p.COMMAND_PRIORITY_CRITICAL)),[n,e]),null}const Tb=4,KM={dependencies:[Ds.HorizontalRuleNode],export:e=>Ds.$isHorizontalRuleNode(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,n,t,r)=>{const o=Ds.$createHorizontalRuleNode();r||e.getNextSibling()!=null?e.replace(o):e.insertBefore(o),o.selectNext()},type:"element"},HM={dependencies:[gr],export:e=>Pr(e)?`})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(e,n)=>{const[,t,r]=n,o=Ya({altText:t,maxWidth:800,src:r});e.replace(o)},trigger:")",type:"text-match"};function YM(e){const n=e.match(/\t/g),t=e.match(/ /g);let r=0;return n&&(r+=n.length),t&&(r+=Math.floor(t.length/Tb)),r}const Mb=e=>(n,t,r)=>{const o=n.getPreviousSibling(),s=n.getNextSibling(),l=_n(e==="check"?r[3]==="x":void 0);if(gt(s)&&s.getListType()===e){const d=s.getFirstChild();d!==null?d.insertBefore(l):s.append(l),n.remove()}else if(gt(o)&&o.getListType()===e)o.append(l),n.remove();else{const d=hn(e,e==="number"?Number(r[2]):void 0);d.append(l),n.replace(d)}l.append(...t),l.select(0,0);const c=YM(r[1]);c&&l.setIndent(c)},F1=(e,n,t)=>{const r=[],o=e.getChildren();let s=0;for(const l of o)if(It(l)){if(l.getChildrenSize()===1){const h=l.getFirstChild();if(gt(h)){r.push(F1(h,n,t+1));continue}}const c=" ".repeat(t*Tb),d=e.getListType(),f=d==="number"?`${e.getStart()+s}. `:d==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";r.push(c+f+n(l)),s++}return r.join(`
|
|
16
|
+
`)},ZM=/^(\s*)(\d{1,})\.\s/,GM=/^(\s*)[-*+]\s/,VM={dependencies:[br,On],export:(e,n)=>gt(e)?F1(e,n,0):null,regExp:ZM,replace:Mb("number"),type:"element"},qM={dependencies:[br,On],export:(e,n)=>gt(e)?F1(e,n,0):null,regExp:GM,replace:Mb("bullet"),type:"element"},Lb=/^(?:\|)(.+)(?:\|)\s?$/,QM=/^(\| ?:?-*:? ?)+\|\s?$/,JM={dependencies:[jn.TableNode,jn.TableRowNode,jn.TableCellNode],export:e=>{if(!jn.$isTableNode(e))return null;const n=[];for(const t of e.getChildren()){const r=[];if(!jn.$isTableRowNode(t))continue;let o=!1;for(const s of t.getChildren())jn.$isTableCellNode(s)&&(r.push(ao.$convertToMarkdownString(Xa,s).replace(/\n/g,"\\n")),s.__headerState===jn.TableCellHeaderStates.ROW&&(o=!0));n.push(`| ${r.join(" | ")} |`),o&&n.push(`| ${r.map(s=>"---").join(" | ")} |`)}return n.join(`
|
|
17
|
+
`)},regExp:Lb,replace:(e,n,t)=>{if(QM.test(t[0])){const f=e.getPreviousSibling();if(!f||!jn.$isTableNode(f))return;const h=f.getChildren(),g=h[h.length-1];if(!g||!jn.$isTableRowNode(g))return;g.getChildren().forEach(A=>{jn.$isTableCellNode(A)&&A.setHeaderStyles(jn.TableCellHeaderStates.ROW,jn.TableCellHeaderStates.ROW)}),e.remove();return}const r=Z0(t[0]);if(r==null)return;const o=[r];let s=e.getPreviousSibling(),l=r.length;for(;s&&!(!p.$isParagraphNode(s)||s.getChildrenSize()!==1);){const f=s.getFirstChild();if(!In(f))break;const h=Z0(f.getTextContent());if(h==null)break;l=Math.max(l,h.length),o.unshift(h);const g=s.getPreviousSibling();s.remove(),s=g}const c=jn.$createTableNode();for(const f of o){const h=jn.$createTableRowNode();c.append(h);for(let g=0;g<l;g++)h.append(g<f.length?f[g]:Nb(""))}const d=e.getPreviousSibling();jn.$isTableNode(d)&&XM(d)===l?(d.append(...c.getChildren()),e.remove()):e.replace(c),c.selectEnd()},type:"element"};function XM(e){const n=e.getFirstChild();return jn.$isTableRowNode(n)?n.getChildrenSize():0}const Nb=e=>{e=e.replace(/\\n/g,`
|
|
18
|
+
`);const n=jn.$createTableCellNode(jn.TableCellHeaderStates.NO_STATUS);return ao.$convertFromMarkdownString(e,Xa,n),n},Z0=e=>{const n=e.match(Lb);return!n||!n[1]?null:n[1].split("|").map(t=>Nb(t))},Xa=[JM,KM,HM,ao.CHECK_LIST,ao.HEADING,ao.QUOTE,qM,VM,...ao.MULTILINE_ELEMENT_TRANSFORMERS,...ao.TEXT_FORMAT_TRANSFORMERS,...ao.TEXT_MATCH_TRANSFORMERS];function $M(){return i.jsx(C9.MarkdownShortcutPlugin,{transformers:Xa})}function eL({maxLength:e}){const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{let t=null;return n.registerNodeTransform(p.RootNode,r=>{const o=p.$getSelection();if(!p.$isRangeSelection(o)||!o.isCollapsed())return;const s=n.getEditorState(),l=s.read(()=>r.getTextContentSize()),c=r.getTextContentSize();if(l!==c){const d=c-e,f=o.anchor;d>0&&(l===e&&t!==s?(t=s,ve.$restoreEditorState(n,s)):dn.trimTextContentFromAnchor(n,f,d))}})},[n,e]),null}const Ef=8,Tf=72,gh=15,tL={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",codeTheme:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:`${gh}px`,fontSizeInputValue:`${gh}`,isBold:!1,isCode:!1,isHighlight:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,isLowercase:!0,isUppercase:!0,isCapitalize:!0,rootType:"root",listStartNumber:null},jb=m.createContext(void 0),nL=({children:e})=>{const[n,t]=m.useState(tL),r=n.fontSize,o=m.useCallback((l,c)=>{t(d=>({...d,[l]:c}))},[]);m.useEffect(()=>{o("fontSizeInputValue",r.slice(0,-2))},[r,o]);const s=m.useMemo(()=>({toolbarState:n,updateToolbarState:o}),[n,o]);return i.jsx(jb.Provider,{value:s,children:e})},rL=()=>{const e=m.useContext(jb);if(e===void 0)throw new Error("useToolbarState must be used within a ToolbarProvider");return e};function di(e,n){if(e=e.trim(),e.startsWith("rgb"))return e.replace("rgb","rgba").replace(")",`, ${n})`);const t=e.replace("#",""),r=parseInt(t,16),o=r>>16&255,s=r>>8&255,l=r&255;return`rgba(${o}, ${s}, ${l}, ${n})`}const Hu=p.createCommand("INSERT_INLINE_COMMAND");function oL(){var L;const[e]=it.useLexicalComposerContext(),[n,t]=m.useState([]),[r,o]=m.useState(!1),s=m.useRef(new Map),l=(L=m.useContext(ft))==null?void 0:L.commentController,{onHighlight:c,activeCommentId:d,actions:f,editorComments:h}=l??{onHighlight:void 0,activeCommentId:{ids:[],source:null},actions:{add:async()=>{},delete:()=>{},restore:()=>{}},editorComments:new Map};m.useEffect(()=>{const M=document.documentElement,S=getComputedStyle(M).getPropertyValue("--mantine-primary-color-filled").trim()||"#4c6ef5";M.style.setProperty("--comment-selection-color-level1",di(S,.12)),M.style.setProperty("--comment-selection-color-level2",di(S,.24)),M.style.setProperty("--comment-selection-color-level3",di(S,.4)),M.style.setProperty("--comment-selection-color-selected1",di(S,.28)),M.style.setProperty("--comment-selection-color-selected2",di(S,.36)),M.style.setProperty("--comment-selection-color-selected3",di(S,.48))},[]),m.useEffect(()=>{const S=((d==null?void 0:d.ids)??[])[0];!S||d.source==="editor"||e.update(()=>{const O=g.get(S);if(!O)return;const R=Array.from(O).filter(_=>!!p.$getNodeByKey(_)),B=p.$getNodeByKey(R[0]);B&&Vo(B)&&B.selectStart()})},[d==null?void 0:d.ids,d==null?void 0:d.source]);const g=m.useMemo(()=>new Map,[]),A=m.useRef(h),b=m.useRef(null);m.useEffect(()=>{A.current=h},[h]);function y(M,S){e.update(()=>{const O=g.get(M);if(O)for(const R of O){const B=p.$getNodeByKey(R);Vo(B)&&B.resolveThreat(S)}})}function x(M){const S=g.get(M);!S||S.size===0||(e.update(()=>{for(const O of S){const R=p.$getNodeByKey(O);Vo(R)&&(R.deleteID(M),R.getIDs().length===0&&bi.$unwrapMarkNode(R))}}),g.delete(M))}function w(M,S){S&&x(M)}m.useEffect(()=>{if(h){for(const[M,S]of h.entries()){const O=s.current.get(M);O&&(O.resolution!==S.resolution&&y(M,S.resolution),O.deleted!==S.deleted&&w(M,S.deleted))}s.current=new Map(h)}},[h]),m.useEffect(()=>{const M=[];if(n.length!==0){for(let S=0;S<n.length;S++){const O=n[S],R=g.get(O);if(R!==void 0)for(const B of R){const _=e.getElementByKey(B);_!==null&&(_.classList.add("selected"),M.push(_))}}return()=>{for(let S=0;S<M.length;S++)M[S].classList.remove("selected")}}},[n,e,g]),m.useEffect(()=>{const M=new Map;return ve.mergeRegister(ve.registerNestedElementResolver(e,qr,S=>eb(S.getIDs()),(S,O)=>{S.getIDs().forEach(B=>{O.addID(B)})}),e.registerMutationListener(qr,S=>{e.getEditorState().read(()=>{for(const[O,R]of S){const B=p.$getNodeByKey(O);let _=[];R==="created"&&Vo(B)&&B.getIDs().forEach(D=>{var H;const z=(H=A.current)==null?void 0:H.get(D);z!=null&&z.deleted&&(f==null||f.restore(D))}),R==="destroyed"?_=M.get(O)||[]:Vo(B)&&(_=B.getIDs());for(let j=0;j<_.length;j++){const D=_[j];let z=g.get(D);if(M.set(O,_),R==="destroyed"){let H=!1;for(const[F,Z]of S)if(Z==="created"){const q=p.$getNodeByKey(F);Vo(q)&&q.getIDs().some(ee=>_.includes(ee))&&(H=!0)}H||z!==void 0&&(z.delete(O),z.size===0&&(g.delete(D),f==null||f.delete(D)))}else z===void 0&&(z=new Set,g.set(D,z)),z.has(O)||z.add(O)}}})},{skipInitialization:!1}),e.registerUpdateListener(({editorState:S})=>{S.read(()=>{const O=p.$getSelection();let R=!1;if(p.$isRangeSelection(O)){const B=O.anchor.getNode();if(In(B)){const _=bi.$getMarkIDs(B,O.anchor.offset);_!==null&&(c==null||c(_,"editor"),t(()=>_),R=!0)}}R||(c==null||c(null,"editor"),t(B=>B.length===0?B:[]))})}),e.registerCommand(Hu,()=>{e.update(()=>{const O=p.$getSelection();p.$isRangeSelection(O)&&(b.current=O.clone())});const S=window.getSelection();return S!==null&&S.removeAllRanges(),o(!0),!0},p.COMMAND_PRIORITY_EDITOR),e.registerCommand(p.COPY_COMMAND,S=>{if(!(S!=null&&S.clipboardData))return!1;S.preventDefault();const O=p.$getSelection();if(!O||!O.getNodes().some(j=>Vo(j)||Vo(j.getParent())))return!1;const _=O.getTextContent();return S.clipboardData.setData("text/plain",_),!0},p.COMMAND_PRIORITY_LOW))},[e,g]);const k=m.useCallback((M,S,O)=>{e.getEditorState().read(()=>{const R=b.current??p.$getSelection();if(p.$isRangeSelection(R)){S.current=R.clone();const B=R.anchor,_=R.focus,j=dn.createDOMRange(e,B.getNode(),B.offset,_.getNode(),_.offset);if(j!==null&&M!==null){const{left:D,bottom:z,top:H,width:F}=j.getBoundingClientRect(),Z=dn.createRectsFromDOMRange(e,j),q=M.offsetHeight||200,ee=window.pageYOffset||document.documentElement.scrollTop,Q=window.innerHeight-z>q+20;let J=Z.length===1?D+F/2-125:D-125;J<10&&(J=10),M.style.left=`${J}px`,M.style.top=Q?`${z+10+ee}px`:`${H-q-55+ee}px`;const xe=Z.length,{container:we,elements:Te}=O,Fe=Te.length;for(let se=0;se<xe;se++){const X=Z[se];let ae=Te[se];ae===void 0&&(ae=document.createElement("span"),Te[se]=ae,we.appendChild(ae));const ge=document.body.scrollHeight>window.innerHeight?0:8;ae.style.cssText=`
|
|
19
|
+
position:absolute;
|
|
20
|
+
top:${X.top+ee}px;
|
|
21
|
+
left:${X.left+ge}px;
|
|
22
|
+
height:${X.height}px;
|
|
23
|
+
width:${X.width}px;
|
|
24
|
+
background-color: var(--comment-selection-color, rgba(76, 110, 245, 0.35));
|
|
25
|
+
pointer-events:none;
|
|
26
|
+
z-index:5;
|
|
27
|
+
`}for(let se=Fe-1;se>=xe;se--){const X=Te[se];we.removeChild(X),Te.pop()}}}})},[e]);function T(M){e.update(()=>{const S=b.current??p.$getSelection();if(!p.$isRangeSelection(S))return;const O=S.isBackward();bi.$wrapSelectionInMarkNode(S,O,M,R=>new qr(R,null)),b.current=null})}function I(M){return async S=>{if(S.mode!=="create")return;let O="";e.getEditorState().read(()=>{const B=b.current??p.$getSelection();p.$isRangeSelection(B)&&(O=B.getTextContent())}),await(async()=>{const B=await(f==null?void 0:f.add({text:S.data.text,files:S.data.files},O));B&&(M(B),o(!1))})()}}const N=M=>{const{handleBlur:S,setCommentDraft:O,editorRef:R}=M;return i.jsx(D5,{initialContent:"",outputFormat:"html",debounce:1,editorRef:R,mode:"comment",placeholder:" ",shiftEnterInsertNewLine:!0,onBlur:S,onChange:B=>O(_=>({..._,text:B}))})};return st?i.jsx(Bt,{opened:r,onClose:()=>o(!1),children:r&&i.jsx(At.CommentComposer,{onSubmit:I(T),ns:"",children:N})}):i.jsx(i.Fragment,{children:r&&Br.createPortal(i.jsx(At.CommentComposer,{updateLocation:k,onSubmit:I(T),onBlur:()=>o(!1),ns:"",children:N}),document.body)})}const vn={ctrlKey:!ve.IS_APPLE,metaKey:ve.IS_APPLE};function sL(e){const{code:n}=e;return(n==="Numpad0"||n==="Digit0")&&p.isModifierMatch(e,{...vn,altKey:!0})}function iL(e){const{code:n}=e;if(!n)return!1;const t=n[n.length-1];return["1","2","3"].includes(t)&&p.isModifierMatch(e,{...vn,altKey:!0})}function aL(e){const{code:n}=e;return(n==="Numpad7"||n==="Digit7")&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function lL(e){const{code:n}=e;return(n==="Numpad8"||n==="Digit8")&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function cL(e){const{code:n}=e;return(n==="Numpad9"||n==="Digit9")&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function uL(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...vn,altKey:!0})}function dL(e){const{code:n}=e;return n==="KeyQ"&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function fL(e){const{code:n}=e;return(n==="Numpad1"||n==="Digit1")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function hL(e){const{code:n}=e;return(n==="Numpad2"||n==="Digit2")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function pL(e){const{code:n}=e;return(n==="Numpad3"||n==="Digit3")&&p.isModifierMatch(e,{ctrlKey:!0,shiftKey:!0})}function mL(e){const{code:n}=e;return n==="KeyX"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function gL(e){const{code:n}=e;return n==="BracketRight"&&p.isModifierMatch(e,vn)}function CL(e){const{code:n}=e;return n==="BracketLeft"&&p.isModifierMatch(e,vn)}function AL(e){const{code:n}=e;return n==="KeyE"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function bL(e){const{code:n}=e;return n==="KeyL"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function yL(e){const{code:n}=e;return n==="KeyR"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function xL(e){const{code:n}=e;return n==="KeyJ"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function vL(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,vn)}function wL(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,vn)}function kL(e){const{code:n}=e;return n==="KeyC"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function SL(e){const{code:n}=e;return n==="Period"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function EL(e){const{code:n}=e;return n==="Comma"&&p.isModifierMatch(e,{...vn,shiftKey:!0})}function TL(e){const{code:n}=e;return n==="Backslash"&&p.isModifierMatch(e,vn)}function ML(e){const{code:n}=e;return n==="KeyK"&&p.isModifierMatch(e,vn)}function LL(e){const{code:n}=e;return n==="KeyM"&&p.isModifierMatch(e,{...vn,altKey:!0})}var Ch=(e=>(e[e.increment=1]="increment",e[e.decrement=2]="decrement",e))(Ch||{});const Rb=(e,n)=>{if(!n)return e;let t=e;switch(n){case 2:switch(!0){case e>Tf:t=Tf;break;case e>=48:t-=12;break;case e>=24:t-=4;break;case e>=14:t-=2;break;case e>=9:t-=1;break;default:t=Ef;break}break;case 1:switch(!0){case e<Ef:t=Ef;break;case e<12:t+=1;break;case e<20:t+=2;break;case e<36:t+=4;break;case e<=60:t+=12;break;default:t=Tf;break}break}return t},G0=(e,n,t)=>{const r=o=>(o||(o=`${gh}px`),o=o.slice(0,-2),`${Rb(Number(o),t)}px`);e.update(()=>{if(e.isEditable()){const o=p.$getSelection();o!==null&&dn.$patchStyleText(o,{"font-size":n||r})}})},V0=(e,n,t)=>{if(t!==""){const r=Rb(Number(t),n);G0(e,String(r)+"px",null)}else G0(e,null,n)},Yu=e=>{e.update(()=>{const n=p.$getSelection();dn.$setBlocksType(n,()=>p.$createParagraphNode())})},NL=(e,n,t)=>{n!==t&&e.update(()=>{const r=p.$getSelection();dn.$setBlocksType(r,()=>fn.$createHeadingNode(t))})},jL=(e,n)=>{n!=="bullet"?e.dispatchCommand(g1,void 0):Yu(e)},RL=(e,n)=>{n!=="check"?e.dispatchCommand(C1,void 0):Yu(e)},IL=(e,n)=>{n!=="number"?e.dispatchCommand(Iu,void 0):Yu(e)},DL=(e,n)=>{n!=="quote"&&e.update(()=>{const t=p.$getSelection();dn.$setBlocksType(t,()=>fn.$createQuoteNode())})},OL=(e,n)=>{n!=="code"&&e.update(()=>{let t=p.$getSelection();if(t)if(!p.$isRangeSelection(t)||t.isCollapsed())dn.$setBlocksType(t,()=>Gt.$createCodeNode());else{const r=t.getTextContent(),o=Gt.$createCodeNode();t.insertNodes([o]),t=p.$getSelection(),p.$isRangeSelection(t)&&t.insertRawText(r)}})},PL=e=>{e.update(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||jn.$isTableSelection(n)){const t=n.anchor,r=n.focus,o=n.getNodes(),s=n.extract();if(t.key===r.key&&t.offset===r.offset)return;o.forEach((l,c)=>{if(p.$isTextNode(l)){let d=l;c===0&&t.offset!==0&&(d=d.splitText(t.offset)[1]||d),c===o.length-1&&(d=d.splitText(r.offset)[0]||d);const f=s[0];o.length===1&&p.$isTextNode(f)&&(d=f),d.__style!==""&&d.setStyle(""),d.__format!==0&&d.setFormat(0);const h=ve.$getNearestBlockElementAncestorOrThrow(d);h.__format!==0&&h.setFormat(""),h.__indent!==0&&h.setIndent(0),l=d}else fn.$isHeadingNode(l)||fn.$isQuoteNode(l)?l.replace(p.$createParagraphNode(),!0):eo.$isDecoratorBlockNode(l)&&l.setFormat("")})}})};function BL({editor:e,setIsLinkEditMode:n}){const{toolbarState:t}=rL();return m.useEffect(()=>{const r=o=>{if(p.isModifierMatch(o,{}))return!1;if(sL(o))Yu(e);else if(iL(o)){const{code:s}=o,l=`h${s[s.length-1]}`;NL(e,t.blockType,l)}else if(lL(o))jL(e,t.blockType);else if(aL(o))IL(e,t.blockType);else if(cL(o))RL(e,t.blockType);else if(uL(o))OL(e,t.blockType);else if(dL(o))DL(e,t.blockType);else if(mL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough");else if(fL(o))console.log("isLowercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"lowercase");else if(hL(o))console.log("isUppercase"),e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"uppercase");else if(pL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"capitalize");else if(gL(o))e.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0);else if(CL(o))e.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0);else if(AL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"center");else if(bL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"left");else if(yL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"right");else if(xL(o))e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,"justify");else if(vL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript");else if(wL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript");else if(kL(o))e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code");else if(SL(o))V0(e,Ch.increment,t.fontSizeInputValue);else if(EL(o))V0(e,Ch.decrement,t.fontSizeInputValue);else if(TL(o))PL(e);else if(ML(o))e.dispatchCommand(Tu,"create");else if(LL(o))e.dispatchCommand(Hu,void 0);else return!1;return o.preventDefault(),!0};return e.registerCommand(p.KEY_DOWN_COMMAND,r,p.COMMAND_PRIORITY_NORMAL)},[e,t.isLink,t.blockType,t.fontSizeInputValue,n]),null}const lu="/v1/me/features";let Na=null,Ns=null;function _L(){return Na?Promise.resolve(Na):Ns||(Ns=fetch(lu,{credentials:"include"}).then(e=>{if(!e.ok)throw new Error(`GET ${lu} ${e.status}`);return e.json()}).then(e=>(Na=e,Ns=null,e)).catch(e=>{throw Ns=null,e}),Ns)}function FL(e){return fetch(lu,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(n=>{if(!n.ok)throw new Error(`PATCH ${lu} ${n.status}`);return n.json()}).then(n=>(Na=n,n))}function WL(){Na=null,Ns=null}const q0="smart-paste-preference",Q0="smart_paste",Ah=15e3,Fi=1e4,Ib=400,zL=7,UL=new Set(["paragraph","heading","bullet-list","number-list","quote","code","callout","horizontal-rule"]);function KL(e,n,t){const r=()=>{var A;let o=p.$getSelection();if(p.$isRangeSelection(o)||(p.$getRoot().selectEnd(),o=p.$getSelection()),!p.$isRangeSelection(o)){const b=p.$getRoot(),y=p.$createParagraphNode(),x=p.$createTextNode(n);return y.append(x),b.append(y),y.selectEnd(),{start:{key:x.getKey(),offset:0,type:"text"},end:{key:x.getKey(),offset:n.length,type:"text"},anchorTopKey:y.getKey(),tracking:"fallback"}}const s=o.isBackward()?o.focus:o.anchor,l={key:s.key,offset:s.offset,type:s.type},c=((A=s.getNode().getTopLevelElement())==null?void 0:A.getKey())??null,d=(t==null?void 0:t.trim())||"";if(d)try{const y=new DOMParser().parseFromString(d,"text/html"),x=Ba.$generateNodesFromDOM(e,y);if(x.length>0){o.removeText(),p.$insertNodes(x);const w=x[0].getTopLevelElement()??x[0],k=x[x.length-1].getTopLevelElement()??x[x.length-1],T=Array.from(new Set(x.map(L=>(L.getTopLevelElement()??L).getKey()))),I=p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},N=p.$isTextNode(k)?{key:k.getKey(),offset:k.getTextContentSize(),type:"text"}:{key:k.getKey(),offset:p.$isElementNode(k)?k.getChildrenSize():0,type:"element"};return{start:I,end:N,anchorTopKey:w.getKey(),tracking:"exact",insertedTopLevelKeys:T}}o.insertRawText(n)}catch{o.insertRawText(n)}else o.insertRawText(n);const f=p.$getSelection();if(p.$isRangeSelection(f)){const b=f.anchor;return{start:l,end:{key:b.key,offset:b.offset,type:b.type},anchorTopKey:c,tracking:"exact"}}let h={...l};const g=p.$getNodeByKey(l.key);return p.$isTextNode(g)&&(h={key:l.key,type:"text",offset:Math.min(g.getTextContentSize(),l.offset+n.length)}),{start:l,end:h,anchorTopKey:c,tracking:"fallback"}};try{return r()}catch{let o=null;return e.update(()=>{o=r()},{discrete:!0}),o}}function Qt(e){return e.replace(/\s+/g," ").trim()}function ml(e){return e?Qt(e).slice(0,180):""}function Db(e,n,t){if(t==="fallback")return!0;const r=Qt(e);if(!r)return!0;const o=ml(n);if(o.length<=20)return!1;const s=o.slice(0,Math.min(o.length,80));return r.includes(s)}function W1(e){try{const n=p.$createRangeSelection();return n.anchor.set(e.start.key,e.start.offset,e.start.type),n.focus.set(e.end.key,e.end.offset,e.end.type),p.$setSelection(n),!0}catch{return!1}}function Ob(e,n){let t=null;const r=ml(n),o=Qt(n);return r.length<=20||!o?null:(e.read(()=>{const l=p.$getRoot().getChildren();if(l.length===0)return;const c=w=>p.$isTextNode(w)?{key:w.getKey(),offset:0,type:"text"}:{key:w.getKey(),offset:0,type:"element"},d=w=>p.$isTextNode(w)?{key:w.getKey(),offset:w.getTextContentSize(),type:"text"}:{key:w.getKey(),offset:p.$isElementNode(w)?w.getChildrenSize():0,type:"element"},f=w=>{var N;const k=w.filter(L=>L.isAttached());if(k.length===0)return null;const T=k[0],I=k[k.length-1];return{start:c(T),end:d(I),anchorTopKey:((N=T.getTopLevelElement())==null?void 0:N.getKey())??T.getKey(),tracking:"fallback",insertedTopLevelKeys:k.map(L=>L.getKey())}},h=p.$getSelection(),g=p.$isRangeSelection(h)?(h.anchor.getNode().getTopLevelElement()??h.anchor.getNode()).getKey():null;let A=g!==null?l.findIndex(w=>w.getKey()===g):-1;A>=0?!Qt(l[A].getTextContent())&&A>0&&(A-=1):A=l.length-1;const b=[];let y="";for(let w=A;w>=0;w--){const k=l[w],T=Qt(k.getTextContent());if(!T){if(b.length>0)break;continue}const I=Qt(`${T} ${y}`);if(o.endsWith(I)||o.includes(I)){if(b.unshift(k),y=I,y.length>=Math.min(o.length,220))break;continue}if(b.length>0)break}if(b.length>0&&y.length>=Math.min(o.length,40)&&(t=f(b),t))return;const x=l.find(w=>{const k=Qt(w.getTextContent());return k?k.includes(r)||r.includes(k):!1})??null;x&&(t=f([x]))}),t)}function z1(e){const n=e.exportJSON();return p.$isElementNode(e)&&(n.children=e.getChildren().map(z1)),n}function HL(e,n){let t=0;for(const r of e)if(r.kind==="paragraph"){const o=r.combinedText.split(/\s+/);if(o.length<3)continue;const s=o.slice(0,3).join(" "),l=o.slice(-3).join(" "),c=n.indexOf(s,t);if(c!==-1){const d=n.indexOf(l,c);d!==-1&&(r.combinedText=n.slice(c,d+l.length).trim(),t=d+l.length)}}else{const s=r.serializedNodes.map(l=>Wi(l).trim()).join(" ").split(/\s+/);if(s.length>=3){const l=s.slice(-3).join(" "),c=n.indexOf(l,t);c!==-1&&(t=c+l.length)}}}const U1=new Set(["table","image","inline-image","video","embed","heading","list","extend-code","code","callout-wrapper","quote","horizontalrule","excalidraw","collapsible-container","layout-container","page-break","music","file","swagger"]),YL=new Set(["paragraph","element","linebreak"]);function Wi(e){return"text"in e&&typeof e.text=="string"?e.text:"children"in e&&Array.isArray(e.children)?e.children.map(Wi).join(""):""}function Pb(e){const n=[];for(const t of e){const r=t.type;if(r==="paragraph"||U1.has(r))n.push(t);else if("children"in t&&Array.isArray(t.children)){const o=t.children;o.length>0&&n.push(...Pb(o))}else Wi(t).trim()&&n.push({...t,type:"paragraph"})}return n}const ZL=[/\n\s*\n/,/^[-*+]\s/m,/^\d+\.\s/m,/^```/m,/^#{1,6}\s/m,/^>\s/m,/\|.*\|.*\|/,/^(ВНИМАНИЕ|WARNING|ВАЖНО|NOTE|TIP):/im,/^[⚠️❗🔥💡ℹ️]/m];function GL(e){for(const n of ZL)if(n.test(e))return!0;return!1}function J0(e){const n=Pb(e),t=[];let r=null,o=[],s=[],l=[];function c(){o.length>0&&(t.push({kind:"stable",nodes:o}),o=[])}function d(){s.length>0&&(t.push({kind:"paragraph",texts:s,combinedText:s.join(`
|
|
28
|
+
`),originalNodes:l}),s=[],l=[])}for(const x of n){const w=x.type;if(w==="paragraph"||YL.has(w)){const k=Wi(x).trim();if(!k)continue;r!=="paragraph"&&(c(),r="paragraph"),s.push(k),l.push(x)}else if(U1.has(w))r!=="stable"&&(d(),r="stable"),o.push(x);else{const k=Wi(x).trim();k?(r!=="paragraph"&&(c(),r="paragraph"),s.push(k),l.push(x)):(r!=="stable"&&(d(),r="stable"),o.push(x))}}c(),d();let f=0,h="";for(const x of t)x.kind==="paragraph"&&(f+=x.combinedText.length,h+=(h?`
|
|
29
|
+
`:"")+x.combinedText);const g=t.some(x=>x.kind==="paragraph"),A=t.some(x=>x.kind==="stable"),b=g&&(A||f>=Ib),y=h?GL(h):!1;return{runs:t,hasParagraphRuns:b,totalParagraphChars:f,hasStructuralSignals:y}}const xn={text:{detail:0,format:0,mode:"normal",style:"",text:"{{TEXT}}",type:"extended-text",version:1},paragraph:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"paragraph",version:1,textFormat:0,textStyle:""},heading:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"heading",version:1,tag:"h1|h2|h3"},bulletList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"bullet",start:1,tag:"ul"},numberList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"number",start:1,tag:"ol"},checkList:{children:["{{CHECK_LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"check",start:1,tag:"ul"},listitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,value:1},checkListitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,checked:!1,value:1,opened:!0},quote:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"quote",version:1},code:{children:["{{CODE_HIGHLIGHT + LINEBREAK nodes}}"],direction:null,format:"",indent:0,type:"extend-code",version:1,language:"plain",isCollapsed:!1},codeHighlight:{detail:0,format:0,mode:"normal",style:"",text:"{{LINE}}",type:"code-highlight",version:1},linebreak:{type:"linebreak",version:1},calloutWrapper:{children:["{{CALLOUT_IMAGE}}","{{CALLOUT_CONTENT}}"],direction:null,format:"",indent:0,type:"callout-wrapper",version:1,backgroundColor:"",calloutType:""},calloutImage:{type:"callout-image",version:1,format:"",emojiCode:"e=%F0%9F%99%82",refElem:""},calloutContent:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"callout",version:1},horizontalRule:{type:"horizontalrule",version:1},table:{children:["{{TABLEROWS}}"],direction:null,format:"",indent:0,type:"table",version:1},tableRow:{children:["{{TABLECELLS}}"],direction:null,format:"",indent:0,type:"tablerow",version:1},tableCell:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"tablecell",version:1,backgroundColor:null,colSpan:1,headerState:0,rowSpan:1}},X0={default:{emoji:"e=%F0%9F%99%82",bg:""},success:{emoji:"e=%E2%9C%85",bg:"rgba(219, 242, 233, 1)"},warning:{emoji:"e=%E2%9A%A0%EF%B8%8F",bg:"rgba(254, 247, 230, 1)"},alert:{emoji:"e=%E2%9D%97",bg:"rgba(255, 224, 223, 1)"}};function Aa(e){return{...xn.text,text:e}}const $0=/[\s([{]$/,e2=/^[\s)\]}.,:;!?]/;function Ac(e){const n=[],t=/(\*\*(.+?)\*\*|`([^`]+)`)/g;let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){let s=e.slice(r,o.index);n.length>0&&s.length>0&&!e2.test(s)&&(s=" "+s),s.length>0&&!$0.test(s)&&(s+=" "),n.push(Aa(s))}else if(n.length>0){const s=n[n.length-1];s.text&&!$0.test(s.text)&&n.push(Aa(" "))}o[2]?n.push({...xn.text,text:o[2],format:1}):o[3]&&n.push({...xn.text,text:o[3],format:16}),r=o.index+o[0].length}if(r<e.length){let s=e.slice(r);n.length>0&&s.length>0&&!e2.test(s)&&(s=" "+s),n.push(Aa(s))}return n.length>0?n:[Aa(e)]}function VL(e,n){return{type:"link",version:1,url:e,rel:"noreferrer",target:null,title:null,direction:null,format:"",indent:0,children:[Aa(n)]}}function gl(e,n){if(!n.length)return Ac(e);const t=[];let r=e;for(;r.length>0;){let o=1/0,s=null;for(const l of n){const c=r.indexOf(l.text);c!==-1&&c<o&&(o=c,s=l)}s!==null&&o<1/0?(o>0&&t.push(...Ac(r.slice(0,o))),t.push(VL(s.url,s.text)),r=r.slice(o+s.text.length)):(t.push(...Ac(r)),r="")}return t.length>0?t:Ac(e)}function ja(e,n=[]){return{...xn.paragraph,children:gl(e,n)}}function qL(e,n,t=[]){return{...xn.heading,tag:e,children:gl(n,t)}}function QL(e,n,t=[]){return{...e==="bullet"?xn.bulletList:xn.numberList,children:n.map((o,s)=>({...xn.listitem,value:s+1,children:gl(o,t)}))}}function JL(e,n=[]){return{...xn.checkList,children:e.map((t,r)=>({...xn.checkListitem,value:r+1,checked:t.checked,children:gl(t.text,n)}))}}function XL(e,n=[]){return{...xn.quote,children:gl(e,n)}}function $L(e,n,t=[]){const r=X0[e]??X0.default;return{...xn.calloutWrapper,backgroundColor:r.bg,calloutType:e,children:[{...xn.calloutImage,emojiCode:r.emoji},{...xn.calloutContent,children:[ja(n,t)]}]}}const eN=new Set(["c","clike","cpp","css","html","java","js","json","markdown","objc","plain","powershell","py","rust","sql","swift","typescript","xml"]),t2={javascript:"js",python:"py","c++":"cpp","objective-c":"objc",ts:"typescript",tsx:"typescript",jsx:"js"};function tN(e){if(!e)return"plain";const n=e.toLowerCase();return eN.has(n)?n:t2[n]?t2[n]:"plain"}function nN(e,n){const t=n.split(`
|
|
30
|
+
`),r=[];return t.forEach((o,s)=>{r.push({...xn.codeHighlight,text:o}),s<t.length-1&&r.push({...xn.linebreak})}),{...xn.code,language:tN(e),children:r}}function rN(e,n,t,r){return{type:"video",version:1,format:"",platform:e,videoID:n,width:t||"inherit",height:r||"inherit"}}function oN(e,n,t,r,o){return{type:"embed",version:1,format:"",platform:n,embedId:t,src:e,width:r?parseInt(r,10)||r:560,height:o?parseInt(o,10)||o:315}}function Ra(e){switch(e.kind){case"image":return sN(e.src,e.altText,e.width,e.height);case"video":return rN(e.platform,e.mediaId,e.width,e.height);case"embed":return oN(e.src,e.platform,e.mediaId,e.width,e.height)}}function sN(e,n,t,r){return{type:"image",version:1,src:e,altText:n||"",maxWidth:t||"inherit",width:t||"inherit",height:r||"inherit",showCaption:!1,caption:{editorState:{root:{children:[],direction:null,format:"",indent:0,type:"root",version:1}}}}}function Bb(e,n){if(!n)return!1;const t=n.slice(0,60).toLowerCase().replace(/\s+/g," ").trim(),r=e.toLowerCase().replace(/\s+/g," ").trim();return t.length>5&&(r.includes(t)||t.includes(r))}function iN(e,n=[]){return{...xn.table,children:e.map((t,r)=>({...xn.tableRow,children:t.map(o=>({...xn.tableCell,headerState:r===0?1:0,children:[ja(o,n)]}))}))}}function n2(e,n){switch(e.type){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.some(r=>r.text===e.text.trim())?ja(e.text,n):qL(e.type,e.text,n);case"p":return ja(e.text,n);case"bullet":case"number":return QL(e.type,e.items,n);case"check":return JL(e.items,n);case"quote":return XL(e.text,n);case"callout":return $L(e.style,e.text||"",n);case"code":return nN(e.lang,e.text||"");case"table":return iN(e.rows,n);case"hr":return xn.horizontalRule;default:return ja(e.text??"",n)}}function aN(e){return"text"in e?e.text??"":"items"in e?e.items.map(t=>typeof t=="string"?t:t.text).join(" "):""}function _b(e,n=[],t=[]){if(!t.length)return e.map(s=>n2(s,n));const r=[],o=new Set;for(const s of e){r.push(n2(s,n));const l=aN(s);for(let c=0;c<t.length;c++)o.has(c)||Bb(l,t[c].anchorText)&&(r.push(Ra(t[c])),o.add(c))}for(let s=0;s<t.length;s++)o.has(s)||r.push(Ra(t[s]));return r}const lN=[[/^>\s*\[!WARNING\]\s*/im,"warning"],[/^>\s*\[!CAUTION\]\s*/im,"warning"],[/^>\s*\[!NOTE\]\s*/im,"default"],[/^>\s*\[!TIP\]\s*/im,"default"],[/^>\s*\[!IMPORTANT\]\s*/im,"alert"],[/^>\s*\[!ERROR\]\s*/im,"alert"],[/^>\s*\[!SUCCESS\]\s*/im,"success"],[/^ВАЖНОЕ ПРИМЕЧАНИЕ:\s*/im,"alert"],[/^ВАЖНО:\s*/im,"alert"],[/^IMPORTANT:\s*/im,"alert"],[/^ALERT:\s*/im,"alert"],[/^ВНИМАНИЕ:\s*/im,"alert"],[/^WARNING:\s*/im,"warning"],[/^CAUTION:\s*/im,"warning"],[/^NOTE:\s*/im,"default"],[/^TIP:\s*/im,"default"],[/^ПРИМЕЧАНИЕ:\s*/im,"default"],[/^SUCCESS:\s*/im,"success"]];function Fb(e){return e.split(`
|
|
31
|
+
`).map(n=>{for(const[t,r]of lN){const o=n.match(t);if(o)return`[CALLOUT:${r}] ${n.slice(o[0].length)}`}return n}).join(`
|
|
32
|
+
`)}function Wb(e){return e.map(n=>{if("text"in n&&n.text&&n.type!=="callout"){const t=n.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(t)return{type:"callout",style:t[1],text:t[2]}}if(n.type==="callout"&&"text"in n&&n.text){const t=n.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(t)return{...n,style:t[1],text:t[2]}}return n})}function cN(e,n,t){const r=e.trim();if(!r)return null;const o=h=>t.some(g=>h>=g.start&&h<g.end),s=[...new Set(r.match(/\b\w{5,}\b/g)||[])],l=h=>s.length<=2?!0:s.filter(A=>h.includes(A)).length/s.length>=.4;let c=-1,d=0,f=null;{let h=0;for(;;){const g=n.indexOf(r,h);if(g===-1)break;if(!o(g)){f={code:r,start:g,end:g+r.length},c=g;break}h=g+1}}if(c===-1){const h=r.match(/\b\w{4,}\b/g);if(!(h!=null&&h.length))return null;const g=[...new Set(h)],A=g.sort((w,k)=>k.length-w.length),b=A[0],y=[];let x=0;for(;;){const w=n.indexOf(b,x);if(w===-1)break;o(w)||y.push(w),x=w+1}if(y.length===0)for(const w of A.slice(1)){for(x=0;;){const k=n.indexOf(w,x);if(k===-1)break;if(!o(k)){c=k;break}x=k+1}if(c!==-1)break}else if(y.length===1)c=y[0];else{const w=r.length+200,k=g.slice(0,20);let T=-1;for(const I of y){const N=Math.max(0,I-100),L=Math.min(n.length,I+w),M=n.slice(N,L);let S=0;for(const O of k)M.includes(O)&&(S+=O.length);S>T&&(T=S,c=I)}}c!==-1&&(d=r.indexOf(b))}if(c===-1)return null;{const h=Math.max(0,c-300),g=Math.min(n.length,c+r.length+300),A=n.slice(h,g),b=/```\w*\s*\n?([\s\S]*?)```/g;let y;for(;(y=b.exec(A))!==null;){const x=h+y.index+y[0].indexOf(y[1]),w=x+y[1].length;if(c>=h+y.index&&c<h+y.index+y[0].length){const k=y[1].trim();if(k.length>0)return{code:k,start:x,end:w}}}}if(f)return f;{const h=Math.max(0,c-2e3);let g=0,A=-1;for(let M=c-1;M>=h;M--)if(n[M]==="}"&&g++,n[M]==="{")if(g>0)g--;else{A=M;break}const b=A!==-1?A:c,y=n.slice(Math.max(0,b-500),b),x=y.match(/(?:void|int|float|double|char|bool|def|function|class|struct|fn|func|async|module|pub|export|const|let|var)\s+\w+[^.!?]*$/i);let w;if((x==null?void 0:x.index)!==void 0)w=Math.max(0,b-500)+x.index;else if(A!==-1){const M=y.match(/\b(\w+)\s*\([^)]*\)\s*(?:=>)?\s*$/);(M==null?void 0:M.index)!==void 0?w=Math.max(0,b-500)+M.index:w=A}else w=c;let k=0,T=w,I=!1,N=-1;for(let M=w;M<n.length&&M<w+3e3;M++)if(n[M]==="{"&&(I||(N=M),k++,I=!0),n[M]==="}"&&(k--,k<=0&&I)){T=M+1;break}const L=Math.max(r.length,300);if(I&&T>w&&N-w<=L){const M=n.slice(w,T).trim(),S=M.replace(/\s/g,"").length,O=r.replace(/\s/g,"").length;if(S>=O*.7&&l(M))return{code:M,start:w,end:T}}}{const h=n.slice(Math.max(0,c-500),c),g=h.lastIndexOf(`
|
|
33
|
+
|
|
34
|
+
`),A=h.search(/(?:^|\n)\s*(?:def |class |import |from |#include|package |pub |async |module |export |const |let |var |function )[^\n]*$/m),b=h.search(/(?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b/i);let y;g!==-1?y=Math.max(0,c-500)+g+2:A!==-1?y=Math.max(0,c-500)+A+1:b!==-1?y=Math.max(0,c-500)+b:y=Math.max(0,c-d-20);const x=y+r.length+40,w=n.slice(c),k=w.search(/\n\s*\n/),T=r.length-d;let I=-1;if(k!==-1)I=k;else{const O=w.search(/[.!?]\s+[A-ZА-ЯЁ]|>\s*\[!/);O!==-1&&O>=T&&c+O<=x&&(I=O)}let N=I!==-1?c+I+1:Math.min(x,n.length);if(I===-1&&s.length>0){const O=n.slice(y,N);let R=0;for(const B of s){const _=O.lastIndexOf(B);_!==-1&&(R=Math.max(R,_+B.length))}R>0&&(N=y+R)}const L=n.slice(y,N).trim(),M=L.replace(/\s/g,"").length,S=r.replace(/\s/g,"").length;if(M>=S*.7&&l(L))return{code:L,start:y,end:N}}return f||null}const uN=new Set(["c","cpp","c++","h","hpp","java","javascript","js","jsx","typescript","ts","tsx","go","rust","rs","swift","kotlin","kt","php","scala","dart","csharp","cs","c#","css","scss","less","arduino","ino","plain"]);function dN(e){if(e.includes(`
|
|
35
|
+
`))return e;let n=e.trim();n=n.replace(/\s+(def |class |import |from )/g,`
|
|
36
|
+
$1`),n=n.replace(/([)'"a-zA-Z0-9_])\s+(while |for |with |try:|elif |else:|except|finally:|return |break\b|continue\b|pass\b|raise )/g,`$1
|
|
37
|
+
$2`),n=n.replace(/:\s+([a-zA-Z_"'(])/g,`:
|
|
38
|
+
$1`);const t=n.split(`
|
|
39
|
+
`).map(s=>s.trim()).filter(Boolean);if(t.length<=1)return e;const r=[];let o=0;for(const s of t)/^(elif\b|else:|except\b|finally:)/.test(s)&&(o=Math.max(0,o-1)),r.push(" ".repeat(o)+s),s.endsWith(":")&&o++,/^(return|break|continue|pass)\b/.test(s)&&(o=Math.max(0,o-1));return r.join(`
|
|
40
|
+
`)}function r2(e,n){if(e.includes(`
|
|
41
|
+
`))return e;const t=(n||"plain").toLowerCase();if(t==="python"||t==="py")return dN(e);if(!e.includes("{")||!uN.has(t))return e;const r=[];let o=0,s="",l=null,c=0;const d=f=>{const h=f.trim();h&&r.push(" ".repeat(o)+h)};for(let f=0;f<e.length;f++){const h=e[f];if(l){s+=h,h==="\\"&&f+1<e.length?s+=e[++f]:h===l&&(l=null);continue}if(h==='"'||h==="'"||h==="`"){l=h,s+=h;continue}if(h==="("){c++,s+=h;continue}if(h===")"){c--,s+=h;continue}if(h==="{"){s=s.trimEnd()+" {",d(s),s="",o++,f+1<e.length&&e[f+1]===" "&&f++;continue}if(h==="}"){s.trim()&&(d(s),s=""),o=Math.max(0,o-1),r.push(" ".repeat(o)+"}"),f+1<e.length&&e[f+1]===" "&&f++;continue}if(h===";"&&c<=0){s+=";";let g=f+1;for(;g<e.length&&e[g]===" ";)g++;if(g<e.length-1&&e[g]==="/"&&e[g+1]==="/"){let A=g+2;for(;A<e.length&&e[A]!=="{"&&e[A]!=="}";)A++;s+=e.slice(f+1,A).trimEnd(),f=A-1}d(s),s="",f+1<e.length&&e[f+1]===" "&&f++;continue}s+=h}return s.trim()&&d(s),r.length<=1?e:r.join(`
|
|
42
|
+
`)}function o2(e,n){if(!n)return e;const t=new RegExp(`^${n}\\s+`,"i");return e.replace(t,"")}function zb(e,n,t){const r=t??[];return e.map(o=>{var c;if(o.type!=="code"||!((c=o.text)!=null&&c.trim()))return o;const s=cN(o.text,n,r);if(s){r.push({start:s.start,end:s.end});const d=o2(s.code,o.lang);return{type:"code",lang:o.lang,text:r2(d,o.lang)}}const l=o2(o.text||"",o.lang);return{...o,text:r2(l,o.lang)}})}const fN=["h1","h2","h3","h4","h5","h6"];function Ei(e){return fN.includes(e)}function Uc(e){return parseInt(e.charAt(1),10)}function hN(e){let n=!1;const t=e.findIndex(l=>Ei(l.type));if(t!==-1&&e[t].type!=="h1"&&!e.some(c=>c.type==="h1")){const c=Uc(e[t].type);e.some(f=>Ei(f.type)&&Uc(f.type)>c)&&(e=e.map((f,h)=>h===t?{...f,type:"h1"}:f))}let r=e.map(l=>{if(l.type==="h1"){if(n)return{...l,type:"h2"};n=!0}return l});const o=new Map;let s=0;return r=r.map(l=>{if(!Ei(l.type))return l;const c=Uc(l.type);if(o.has(c)){const f=o.get(c);return s=f,{...l,type:`h${f}`}}let d=c;return s>0&&c>s+1&&(d=s+1),o.set(c,d),s=d,{...l,type:`h${d}`}}),r=pN(r),r}function Mf(e,n){for(let t=n+1;t<e.length;t++){if(Ei(e[t].type))return null;const r=e[t].type;if(r!=="p")return r}return null}function pN(e){const n=[...e];let t=0;for(;t<n.length;){if(n[t].type!=="h2"){t++;continue}const r=t,o=[t];let s=t+1;for(;s<n.length;)if(Ei(n[s].type))if(n[s].type==="h2")o.push(s),s++;else break;else s++;if(o.length>=2){const l=Mf(n,o[0]),c=o.slice(1).every(d=>Mf(n,d)==="code"||Mf(n,d)==="table");if(l!=="code"&&l!=="table"&&c)for(let d=1;d<o.length;d++)n[o[d]]={...n[o[d]],type:"h3"}}t=r+1}return n}function Ub(e){const n=e.split(`
|
|
43
|
+
`);if(e.length/Math.max(n.length,1)<200&&n.length>3)return e;let r=e;return r=r.replace(new RegExp("(\\p{L}{2,}):([A-ZА-ЯЁ])","gu"),`$1:
|
|
44
|
+
$2`),r=r.replace(/([.:!?])\s*(«[^»]+»[^.!?\n]*\.\s*—\s*[^.!?\n]+[.!?]?)\s*/g,`$1
|
|
45
|
+
$2
|
|
46
|
+
`),r=r.replace(/\s*(```\w*)\s*/g,`
|
|
47
|
+
|
|
48
|
+
$1
|
|
49
|
+
|
|
50
|
+
`),r=r.replace(/\s+(#{1,6}\s)/g,`
|
|
51
|
+
|
|
52
|
+
$1`),r=r.replace(/\s+(>\s)/g,`
|
|
53
|
+
|
|
54
|
+
$1`),r=r.replace(new RegExp('(?<=[.!?:>)\\]»"])\\s+([-*•]\\s)',"g"),`
|
|
55
|
+
$1`),r=r.replace(/\s{2,}([-*•]\s)/g,`
|
|
56
|
+
$1`),r=r.replace(/\s+(\d+\.\s)/g,`
|
|
57
|
+
$1`),r=r.split(`
|
|
58
|
+
`).flatMap(o=>{const s=o.match(/^(\d+\.\s.*?[.!?)]+)\s+(?=[A-ZА-ЯЁ])/u);if(s){const l=s[0].length-1,c=o.slice(0,l).trimEnd(),d=o.slice(l).trimStart();if(d.length>0)return[c,d]}return[o]}).join(`
|
|
59
|
+
`),r=r.split(`
|
|
60
|
+
`).flatMap(o=>{if(!/^>\s*\[!\w+\]/.test(o)||o.length<=120)return[o];const s=o.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));if(s.length<=1)return[o];let l=1;for(let f=1;f<s.length&&!(/^.{1,50}:\s*$/.test(s[f])||/^\d+\.\s/.test(s[f])||/^[A-ZА-ЯЁ]\S*(?:\s+\S+){0,4}:\s/.test(s[f])||(l=f+1,l>=3));f++);if(l>=s.length)return[o];const c=s.slice(0,l).join(" "),d=s.slice(l).join(" ");return[c,d]}).join(`
|
|
61
|
+
`),r=r.split(`
|
|
62
|
+
`).flatMap(o=>/^>\s*\[!/.test(o)?[o]:o.length<=200?[o]:o.split(new RegExp("(?<=:)\\s+(?=[A-ZА-ЯЁ][a-zа-яё])","gu"))).join(`
|
|
63
|
+
`),r=r.split(`
|
|
64
|
+
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const s=o.match(/^(.+?)\s+([A-ZА-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s*$/u);return s?[s[1],s[2]]:[o]}).join(`
|
|
65
|
+
`),r=r.split(`
|
|
66
|
+
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const s=o.match(/^(.+?[.!?])\s+([А-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s+([А-ЯЁ].+)/u);return s?[s[1],s[2],s[3]]:[o]}).join(`
|
|
67
|
+
`),r=r.split(`
|
|
68
|
+
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];const s=o.match(/^([^:\n]{5,55}:)\s+([А-ЯЁ].{30,})/u);return s?[s[1],s[2]]:[o]}).join(`
|
|
69
|
+
`),r=r.replace(/(\s)((?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b)/gi,`
|
|
70
|
+
$2`),r=r.split(`
|
|
71
|
+
`).flatMap(o=>{if(/^>\s*\[!/.test(o))return[o];if(o.length<=150)return[o];const s=o.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));return s.reduce((c,d)=>c+d.length,0)/s.length>=85?[o]:s}).join(`
|
|
72
|
+
`),r=r.replace(/\n{3,}/g,`
|
|
73
|
+
|
|
74
|
+
`),r=r.trim(),r}const Kb=`You are a text structure detector. Input is plain text. Return a JSON object {"blocks":[...]} detecting structure.
|
|
75
|
+
|
|
76
|
+
BLOCK TYPES:
|
|
77
|
+
{"type":"h1"|"h2"|"h3"|"h4"|"h5"|"h6", "text":"..."}
|
|
78
|
+
{"type":"p", "text":"..."}
|
|
79
|
+
{"type":"bullet", "items":["...", "..."]}
|
|
80
|
+
{"type":"number", "items":["...", "..."]}
|
|
81
|
+
{"type":"check", "items":[{"text":"...", "checked":true|false}]}
|
|
82
|
+
{"type":"quote", "text":"..."}
|
|
83
|
+
{"type":"callout", "style":"default"|"success"|"warning"|"alert", "text":"..."}
|
|
84
|
+
{"type":"code", "lang":"...", "text":"..."}
|
|
85
|
+
{"type":"table", "rows":[["A","B"],["C","D"]]} (first row = header)
|
|
86
|
+
{"type":"hr"}
|
|
87
|
+
|
|
88
|
+
IMPORTANT — CODE BLOCKS:
|
|
89
|
+
For code, return {"type":"code", "lang":"...", "text":"..."}.
|
|
90
|
+
Copy code VERBATIM — every character, every line. NEVER truncate, summarize or shorten code.
|
|
91
|
+
If code is inside \`\`\` fences, omit the fences, keep only the code content.
|
|
92
|
+
Text BEFORE code (intro phrases like "Вот код:", "Here is the script:", "Пример:") MUST be output as a separate p block BEFORE the code block. NEVER drop intro text.
|
|
93
|
+
|
|
94
|
+
INLINE FORMATTING:
|
|
95
|
+
- Preserve **bold** and \`code\` markers from input text EXACTLY as-is.
|
|
96
|
+
- For text without markers: add **bold** for key terms, important concepts, parameter names.
|
|
97
|
+
Add \`code\` for function names, variable names, commands, file paths, code identifiers, version strings (v1.0.0, stable-build-v2.1.0-alpha, etc.), config keys, env vars.
|
|
98
|
+
- Bold and code markers go INSIDE the "text" field of blocks. Example:
|
|
99
|
+
{"type":"p", "text":"**Important:** use \`fetchData()\` to load items"}
|
|
100
|
+
- NEVER add formatting inside code blocks (type "code").
|
|
101
|
+
|
|
102
|
+
DETECTION (priority order):
|
|
103
|
+
- \`\`\` fences → code (lang from fence label). Lines with code syntax (function, if(, while(, for(, switch(, try, catch, =>, {}, var/let/const, import, return, class, console.log, etc.) without natural language → code.
|
|
104
|
+
- "- "/"* "/"• " → bullet, "1. " → number, "[ ]"/"[x]" → check. Group consecutive items. ✅/👉/➡️ at line start are NOT list markers and NOT checkboxes — they are decorative emoji, keep them in p text.
|
|
105
|
+
- CRITICAL — CHECK TYPE: {"type":"check"} is ONLY for explicit text markers [ ] and [x]. NEVER use check type for lines starting with emoji (✅❌🟢🔴☑️⬜🎯👉 etc.). Emoji at line start = decorative, keep in heading or p text. Examples:
|
|
106
|
+
"✅ Добавляй лейбл когда:" → {"type":"h2","text":"✅ Добавляй лейбл когда:"}
|
|
107
|
+
"❌ НЕ добавляй когда:" → {"type":"h2","text":"❌ НЕ добавляй когда:"}
|
|
108
|
+
"[ ] Task not done" → {"type":"check","items":[{"text":"Task not done","checked":false}]}
|
|
109
|
+
"[x] Task done" → {"type":"check","items":[{"text":"Task done","checked":true}]}
|
|
110
|
+
- CRITICAL — NUMBER/BULLET EMOJI: 1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ at line start are NOT numbered list markers. They are decorative emoji — keep them in the text as-is. NEVER convert to {"type":"number"}. Output as p or heading with the emoji preserved.
|
|
111
|
+
"1️⃣ PR → stage (Staging окружение)" → {"type":"h2","text":"1️⃣ PR → stage (Staging окружение)"}
|
|
112
|
+
"2️⃣ PR → main (Production окружение)" → {"type":"h2","text":"2️⃣ PR → main (Production окружение)"}
|
|
113
|
+
- 3+ consecutive short lines (1-4 words each) after a line ending with ":" → bullet list (unmarked list pattern).
|
|
114
|
+
- 3+ consecutive "Key: Value" pairs (like "Framework: React 18.3.1", "Build Tool: Vite 7.0.0") → bullet list. Each pair becomes one bullet. Keep the "Key: Value" text as-is. Tech specs, configs, metadata lists — always bullet.
|
|
115
|
+
|
|
116
|
+
- QUOTES — detect ALL these patterns as {"type":"quote"}:
|
|
117
|
+
"> " at line start, «text» — Author, "text" — Author, „text" — Author.
|
|
118
|
+
Intro words BEFORE the quote are NOT part of the quote — output intro as separate p.
|
|
119
|
+
CRITICAL RULE: ANY text containing «...» followed by " — Name" or ". — Name" MUST be split into p + quote. This applies even when the quote is embedded in a longer sentence or paragraph.
|
|
120
|
+
Examples:
|
|
121
|
+
'Цитата дня: «Программирование — это искусство». — Автор' → {"type":"p","text":"Цитата дня:"} + {"type":"quote","text":"«Программирование — это искусство». — Автор"}
|
|
122
|
+
'Важные мысли садоводов (записал в интернете): «Базилик — это фермерство». — Неизвестный автор.' → {"type":"p","text":"Важные мысли садоводов (записал в интернете):"} + {"type":"quote","text":"«Базилик — это фермерство». — Неизвестный автор."}
|
|
123
|
+
'Мне понравилась фраза «Код — поэзия». — Кнут' → {"type":"p","text":"Мне понравилась фраза"} + {"type":"quote","text":"«Код — поэзия». — Кнут"}
|
|
124
|
+
ALWAYS split. NEVER leave «...» — Author inside a p block.
|
|
125
|
+
- ВАЖНОЕ ПРИМЕЧАНИЕ/NOTE/WARNING/IMPORTANT/TIP/ALERT/CAUTION/ВНИМАНИЕ/ПРИМЕЧАНИЕ: at line start → callout. Remove marker. Style: NOTE/TIP/ПРИМЕЧАНИЕ→default, SUCCESS→success, WARNING/CAUTION→warning, IMPORTANT/ALERT/ВНИМАНИЕ/ВАЖНОЕ ПРИМЕЧАНИЕ→alert.
|
|
126
|
+
- > [!WARNING], > [!NOTE], > [!TIP], > [!IMPORTANT], > [!ERROR], > [!SUCCESS], > [!CAUTION] → callout. Remove the > [!...] marker. Map: WARNING/CAUTION→warning, NOTE/TIP→default, IMPORTANT/ERROR→alert, SUCCESS→success.
|
|
127
|
+
- Emoji ⚠️❗🔥💡ℹ️ at line start → callout. REMOVE the emoji from text. Style: ⚠️→warning, ❗🔥→alert, 💡ℹ️→default. Callout = ONLY that single line, following lines are separate blocks.
|
|
128
|
+
- Any OTHER emoji at line start (🎯👉🙂💰🎮📌🚨➡️ etc.) → NOT a callout. KEEP the emoji in the text. Example: "🎯 Мой совет" → {"type":"h2","text":"🎯 Мой совет"}.
|
|
129
|
+
- SHELL WORKFLOW BLOCKS — CRITICAL: When you see a sequence of shell commands (git, npm, npx, cd, mkdir, rm, cp, mv, ls, echo, docker, curl, wget, pip, python, node, yarn, pnpm, brew, apt, sudo, chmod, ssh, make, cargo) mixed with "# comment" lines (# followed by a space), this is a SINGLE bash code block. Rules:
|
|
130
|
+
1. "# text" lines near shell commands are bash COMMENTS, NOT headings. NEVER output them as h1/h2/h3.
|
|
131
|
+
2. Group the ENTIRE consecutive sequence (commands + # comments + empty lines between them) into ONE {"type":"code", "lang":"bash", "text":"..."} block.
|
|
132
|
+
3. NEVER split a shell workflow into multiple code blocks. NEVER interleave heading/p blocks between commands.
|
|
133
|
+
4. Text BEFORE the shell sequence (intro like "Стандартный workflow:") → separate p or heading. Text AFTER → separate block.
|
|
134
|
+
5. Example input:
|
|
135
|
+
"Стандартный workflow
|
|
136
|
+
# 1. Создать ветку
|
|
137
|
+
git checkout stage
|
|
138
|
+
git pull origin stage
|
|
139
|
+
|
|
140
|
+
# 2. Разработка
|
|
141
|
+
npm start
|
|
142
|
+
|
|
143
|
+
# 3. Коммит
|
|
144
|
+
git add .
|
|
145
|
+
git commit -m \\"feat\\"
|
|
146
|
+
|
|
147
|
+
# 4. Push
|
|
148
|
+
git push origin feature/x
|
|
149
|
+
Готово!"
|
|
150
|
+
Correct output: heading "Стандартный workflow" + ONE code block (lang:"bash") containing ALL lines from "# 1. Создать ветку" through "git push origin feature/x" + p "Готово!"
|
|
151
|
+
WRONG: multiple code blocks, or h2 "1. Создать ветку" + code "git checkout stage" + h2 "2. Разработка" etc.
|
|
152
|
+
- ENV/CONFIG FILE BLOCKS — CRITICAL: When ALL or MOST lines follow UPPER_SNAKE_CASE=value format (e.g. VITE_APP_NAME=Layers, DB_HOST=localhost, NODE_ENV=production), this is a configuration/env file. Rules:
|
|
153
|
+
1. Output the ENTIRE block as ONE {"type":"code","lang":"dotenv","text":"..."} block.
|
|
154
|
+
2. "# comment" lines within the block are part of the code — NEVER output them as headings or p blocks.
|
|
155
|
+
3. Empty lines between groups of vars → keep inside the single code block (part of the text).
|
|
156
|
+
4. NEVER split env vars into multiple blocks or individual p lines.
|
|
157
|
+
5. Example: "VITE_APP=Layers
|
|
158
|
+
VITE_KEY=<secret>
|
|
159
|
+
|
|
160
|
+
# Sentry
|
|
161
|
+
VITE_DSN=<secret>" → ONE code block (lang:"dotenv") containing all lines.
|
|
162
|
+
- # through ###### → h1-h6. ONLY ONE h1 per document (the main title). All other sections → h2 or lower. ALL CAPS line (>3 chars) → h1 (only if no h1 exists yet, otherwise h2). REMEMBER: "# text" near shell commands = bash comment, NOT heading (see SHELL WORKFLOW BLOCKS above).
|
|
163
|
+
- "---"/"***" → hr. Lines with "|" → table (skip |---| separator rows).
|
|
164
|
+
- HEADINGS — CRITICAL: A short phrase (2-8 words, no ending period) followed by explanatory text, list, or code block is ALWAYS a heading, NEVER a p. Rules:
|
|
165
|
+
1. Standalone short line (10-80 chars, ≥2 words, no ending .!?) → h2.
|
|
166
|
+
2. Short phrase at START of paragraph before a longer sentence or code → split into heading + content.
|
|
167
|
+
3. Lines with decorative emoji at start that match heading criteria (10-80 chars, ≥2 words) → heading WITH the emoji in text. Example: "📘 Инструкция: «Как делать X»" → h1, "🔵 Шаг 1. Настройка" → h2.
|
|
168
|
+
4. NEVER split a single heading into multiple blocks. ALL words of a heading line MUST stay in ONE block. "🔵 Шаг 0. Подготовь гипотезу в формате H1/H0" → ONE h2, NOT two p blocks.
|
|
169
|
+
5. HEADING HIERARCHY — NOT everything is h2! Analyze semantic nesting:
|
|
170
|
+
- Top-level sections under h1 → h2 (major topics like "Монорепозиторий структура", "Path Mapping")
|
|
171
|
+
- Sub-topics that belong INSIDE an h2 section → h3 (e.g. "Основное приложение (apps/layers)" and "Модули (packages/*)" are sub-topics of "Монорепозиторий структура" → h3, not h2)
|
|
172
|
+
- Sibling sections at the same semantic level MUST have the same heading level
|
|
173
|
+
- Example: h1 "Project Architecture" → h2 "Монорепозиторий структура" → h3 "Основное приложение" + h3 "Модули" → h2 "Path Mapping" → h3 "Примеры использования:"
|
|
174
|
+
6. Examples of HEADINGS (not p!): "Монорепозиторий структура", "Основное приложение (apps/layers)", "Path Mapping", "Примеры использования:", "Переменные и функции", "Качество кода", "Системные требования", "📘 Инструкция: «Название»", "🔵 Шаг 0. Описание".
|
|
175
|
+
7. These are NOT headings → regular p: single words (<10 chars), full sentences ending with period, lines >80 chars.
|
|
176
|
+
Single words and lines <10 chars → p.
|
|
177
|
+
- Empty line (double newline) = paragraph break. Each text block separated by empty lines → separate p. NEVER merge multiple paragraphs into one.
|
|
178
|
+
- Long text without empty lines: split into separate p blocks by semantic topic. When subject changes, new argument starts, or a new idea begins → new p. Aim for 2-5 sentences per paragraph. Never output a single giant p for multi-topic text.
|
|
179
|
+
- Everything else → p
|
|
180
|
+
|
|
181
|
+
RULES:
|
|
182
|
+
1. Return ONLY {"blocks":[...]}. No markdown fences, no explanation.
|
|
183
|
+
2. EVERY line of input MUST appear in output VERBATIM. Do NOT skip, drop, summarize, shorten, paraphrase, or rewrite any text. Copy the EXACT original words. You are a formatter, NOT a summarizer.
|
|
184
|
+
3. NEVER remove emoji from text — except callout-trigger emoji (⚠️❗🔥💡ℹ️) which are replaced by the callout icon. All other emoji must stay in text as-is.
|
|
185
|
+
4. ALWAYS split heading phrases from paragraph text.
|
|
186
|
+
5. Callout = single line only. Following lines → separate blocks.
|
|
187
|
+
6. For code blocks: copy the FULL code text verbatim, never truncate.
|
|
188
|
+
7. BLOCK BOUNDARY INTEGRITY: When splitting one input line into multiple blocks (heading+p, callout+p, p+code, etc.), the concatenation of ALL resulting block texts MUST contain EVERY word from the original line. NEVER drop words at split boundaries. Example: "ВАЖНО: Версионирование Не забудьте увеличить minor версию в package.json перед созданием PR!" → callout "Версионирование" + p "Не забудьте увеличить minor версию в package.json перед созданием PR!" — ALL words preserved.`,mN="/v1/smart-paste";function gN(e,n,t=[]){let r=e.trim();const o=r.match(/```(?:json)?\s*([\s\S]*?)```/);o&&(r=o[1].trim());const s=JSON.parse(r);let l=Array.isArray(s)?s:s.blocks||s.children;if(!(l!=null&&l.length))throw new Error("Invalid AI response: empty blocks");return l=zb(l,n),l=Wb(l),l=hN(l),_b(l,[],t)}async function Hb(e,n,t=[]){const r=e.slice(0,Fi),o=Ub(r),s=Fb(o),l=JSON.stringify({messages:[{role:"system",content:Kb},{role:"user",content:s}]});return new Promise((c,d)=>{const f=setTimeout(()=>{d(new Error("AI timeout"))},Ah);n(l,h=>{clearTimeout(f);try{const g=gN(h,r,t);c(g)}catch(g){d(g)}},()=>{clearTimeout(f),d(new Error("AI request failed"))})})}function K1(e,n,t,r,o,s){let l=setTimeout(()=>s(),Ah),c=0,d=e.length>Fi;const f=new Set,h=[];let g=!1,A=0;const b=new Map,y=e.slice(0,Fi),x=Ub(y),w=Fb(x),k=I=>{clearTimeout(l),l=setTimeout(()=>s(),Ah);let N=I;if(Ei(N.type)){N.type==="h1"&&g&&(N={...N,type:"h2"}),N.type==="h1"&&(g=!0);const O=Uc(N.type);if(b.has(O)){const R=b.get(O);N={...N,type:`h${R}`},A=R}else{let R=O;A>0&&O>A+1&&(R=A+1),b.set(O,R),A=R,N={...N,type:`h${R}`}}}const[L]=zb([N],y,h),[M]=Wb([L]),S=_b([M],n);if(t.length>0){const O="text"in M?M.text??"":"";for(let R=0;R<t.length;R++)!f.has(R)&&Bb(O,t[R].anchorText)&&(S.push(Ra(t[R])),f.add(R))}r(S),c++},T=JSON.stringify({messages:[{role:"system",content:Kb},{role:"user",content:w}]});fetch(mN,{method:"POST",headers:{"Content-Type":"application/json"},body:T}).then(async I=>{if(!I.ok||!I.body){clearTimeout(l),s();return}const N=I.body.getReader(),L=new TextDecoder;let M="";for(;;){const{done:S,value:O}=await N.read();if(S)break;const R=L.decode(O,{stream:!0});M+=R;const B=M.split(`
|
|
189
|
+
`);M=B.pop()||"";for(const _ of B){const j=_.trim();if(j){if(j==="data: [DONE]"){if(clearTimeout(l),c===0){s();return}if(t.length>0){const D=t.filter((z,H)=>!f.has(H)).map(z=>Ra(z));D.length>0&&r(D)}o(d);return}if(j.startsWith("data: "))try{const D=j.slice(6),z=JSON.parse(D);if(z.error){clearTimeout(l),s({error:z.error,message:z.message});return}if(z.warning==="truncated"){d=!0;continue}k(z)}catch{}}}}if(clearTimeout(l),c===0){s();return}if(t.length>0){const S=t.filter((O,R)=>!f.has(R)).map(O=>Ra(O));S.length>0&&r(S)}o(d)}).catch(()=>{clearTimeout(l),s()})}const CN=Object.freeze(Object.defineProperty({__proto__:null,segmentByAI:Hb,segmentByAIStream:K1},Symbol.toStringTag,{value:"Module"}));function AN(e,n){if(!e||e.length===0)return{valid:!1,reason:"No segments produced"};for(const s of e)if(!UL.has(s.blockType))return{valid:!1,reason:`Unknown block type: ${s.blockType}`};const t=e.map(s=>s.rawText).join(""),r=n.replace(/\r\n/g,`
|
|
190
|
+
`);return t.replace(/\r\n/g,`
|
|
191
|
+
`)!==r?{valid:!1,reason:"Reassembled text does not match original"}:{valid:!0}}function bN(e,n,t,r){e.update(()=>{const o=!!(t&&(t.start.key!==t.end.key||t.start.offset!==t.end.offset)),s=p.$getRoot();let l=!1;o&&t&&(l=W1(t));let c=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const g=p.$getNodeByKey(t.anchorTopKey),A=(g==null?void 0:g.getTopLevelElement())??g??null;A&&A.isAttached()&&(c=A,d=!0)}if(!c&&r){const g=ml(r);g.length>20&&(c=s.getChildren().find(A=>Qt(A.getTextContent()).includes(g))??null,c&&(d=!0))}if(!c&&l){const g=p.$getSelection();if(!p.$isRangeSelection(g))return;const A=g.anchor.getNode().getTopLevelElement();if(g.removeText(),A&&A.isAttached()&&Db(A.getTextContent(),r,t==null?void 0:t.tracking))c=A,d=!0;else{const b=g.getNodes()[0];c=b?b.getTopLevelElement():s.getLastChild(),d=!!c}}c||(c=s.getLastChild());let f=c,h=!1;for(const g of n)try{const A=p.$parseSerializedNode(g);!h&&f&&f.getTextContent().trim()===""?(f.replace(A),f=A,h=!0):(f?f.insertAfter(A):s.append(A),f=A)}catch{}(!h&&d&&c&&c.isAttached()||h&&c&&c.isAttached())&&c.remove()})}function qi(e,n){return e._nodes.has(n)}function s2(e){return e.trim().replace(/^#{1,6}\s+/,"")}function i2(e){return e.trim().split(`
|
|
192
|
+
`).map(n=>n.replace(/^>\s?/,"")).join(`
|
|
193
|
+
`)}function a2(e){return e.trim().replace(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*/im,"")}function Vs(e){const n=p.$createParagraphNode();return e.trim()&&n.append(p.$createTextNode(e.trim())),n}function yN(e,n){const t=[];for(const r of e){const o=xN(r,n);t.push(...o)}return t}function xN(e,n){switch(e.blockType){case"heading":return vN(e,n);case"bullet-list":return l2(e,"bullet",n);case"number-list":return l2(e,"number",n);case"quote":return wN(e,n);case"code":return kN(e,n);case"callout":return SN(e,n);case"horizontal-rule":return EN(n);case"paragraph":default:return[Vs(e.rawText)]}}function vN(e,n){var o;const t=((o=e.meta)==null?void 0:o.headingLevel)||"h1";if(!qi(n,"heading"))return[Vs(s2(e.rawText))];const r=fn.$createHeadingNode(t);return r.append(p.$createTextNode(s2(e.rawText))),[r]}function l2(e,n,t){var s,l;if(!qi(t,"list"))return(((s=e.meta)==null?void 0:s.listItems)||[e.rawText.trim()]).map(d=>Vs(d));const r=hn(n),o=((l=e.meta)==null?void 0:l.listItems)||[e.rawText.trim()];for(const c of o){const d=_n();d.append(p.$createTextNode(c)),r.append(d)}return[r]}function wN(e,n){if(!qi(n,"quote"))return[Vs(i2(e.rawText))];const t=fn.$createQuoteNode();return t.append(p.$createTextNode(i2(e.rawText))),[t]}function kN(e,n){var l;if(!qi(n,"extend-code"))return[Vs(e.rawText)];const t=((l=e.meta)==null?void 0:l.language)||"plain";let r=e.rawText.trim();const o=r.match(/^```\w*\n([\s\S]*?)```\s*$/);o&&(r=o[1]),r.endsWith(`
|
|
194
|
+
`)&&(r=r.slice(0,-1));const s=new Qn(!1,t);return r&&s.append(p.$createTextNode(r)),[s]}function SN(e,n){var g;if(!qi(n,"callout-wrapper"))return[Vs(a2(e.rawText))];const t=((g=e.meta)==null?void 0:g.calloutType)||"default",{emoji:r,backgroundColor:o,calloutType:s}=Wu(t),l=ol(o||"#f3f3f4",s||"default"),c=dl(r||"e=%F0%9F%99%82"),d=rl(),f=p.$createParagraphNode(),h=a2(e.rawText);return h.trim()&&f.append(p.$createTextNode(h.trim())),d.append(f),l.append(c),l.append(d),[l]}function EN(e){return qi(e,"horizontalrule")?[Ds.$createHorizontalRuleNode()]:[Vs("---")]}function TN(e,n,t,r){e.update(()=>{const o=!!(t&&(t.start.key!==t.end.key||t.start.offset!==t.end.offset)),s=p.$getRoot();let l=!1;o&&t&&(l=W1(t));let c=null,d=!1;if(!l&&(t!=null&&t.anchorTopKey)){const h=p.$getNodeByKey(t.anchorTopKey),g=(h==null?void 0:h.getTopLevelElement())??h??null;g&&g.isAttached()&&(c=g,d=!0)}if(!c&&r){const h=ml(r);h.length>20&&(c=s.getChildren().find(g=>Qt(g.getTextContent()).includes(h))??null,c&&(d=!0))}if(!c&&l){const h=p.$getSelection();if(p.$isRangeSelection(h)){const g=h.anchor.getNode().getTopLevelElement();if(h.removeText(),g&&g.isAttached()&&Db(g.getTextContent(),r,t==null?void 0:t.tracking))c=g,d=!0;else{const A=h.getNodes()[0];c=A?A.getTopLevelElement():s.getLastChild(),d=!!c}}}c||(c=s.getLastChild());const f=yN(n,e);if(f.length>0){let h=c,g=!1;for(const A of f)!g&&h&&h.getTextContent().trim()===""?(h.replace(A),h=A,g=!0):(h?h.insertAfter(A):s.append(A),h=A);(!g&&d&&c&&c.isAttached()||g&&c&&c.isAttached())&&c.remove()}})}let Os=Promise.resolve();function Kc(){Os=Promise.resolve()}function Hc(e){Os=e}function Yc(e){if(!Gt.$isCodeNode(e)&&!yn(e)||!p.$isElementNode(e))return null;const n=e.getChildren();if(n.length===0)return null;const t=[];let r=[];for(const o of n){const s=o.exportJSON();p.$isLineBreakNode(o)?(r.push(s),t.push(r),r=[]):r.push(s)}return r.length>0&&t.push(r),e.clear(),{codeNodeKey:e.getKey(),lines:t}}function bh(e){const n=[],t=[];function r(o){if(p.$isTextNode(o)&&t.push(o),p.$isElementNode(o)){if(Gt.$isCodeNode(o)||yn(o))return;for(const s of o.getChildren())r(s)}}r(e);for(const o of t){const s=o.getTextContent();if(s.trim()){const l=s.split(/\s+/).filter(c=>c);n.push({textNodeKey:o.getKey(),fullText:s,words:l}),o.setTextContent(" ")}}return n}async function yh(e,n){const t=n.words;let r="";for(let o=0;o<t.length;o++)if(await new Promise(s=>setTimeout(s,50)),r+=(o>0?" ":"")+t[o],e.update(()=>{const s=p.$getNodeByKey(n.textNodeKey);s&&s.isAttached()&&(s.setTextContent(r),s.select(r.length,r.length))}),o%10===0||o===t.length-1){const s=e.getElementByKey(n.textNodeKey);s&&s.scrollIntoView({behavior:"smooth",block:"center"})}r!==n.fullText&&e.update(()=>{const o=p.$getNodeByKey(n.textNodeKey);o&&o.isAttached()&&o.setTextContent(n.fullText)})}async function Zc(e,n){for(let t=0;t<n.lines.length;t++)if(await new Promise(r=>setTimeout(r,30)),e.update(()=>{const r=p.$getNodeByKey(n.codeNodeKey);if(!(!r||!p.$isElementNode(r)))for(const o of n.lines[t])try{const s=p.$parseSerializedNode(o);r.append(s)}catch{}},{discrete:!0}),t%3===0||t===n.lines.length-1){const r=e.getElementByKey(n.codeNodeKey);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}}function qo(e){typeof window<"u"&&window.dispatchEvent(new CustomEvent("smart-paste-telemetry",{detail:e}))}const MN={note:"default",tip:"success",warning:"warning",caution:"alert",important:"alert"};function LN(e){const n=e.replace(/\r\n/g,`
|
|
195
|
+
`),t=[];let r=0;const s=n.replace(/^```(\w*)\n([\s\S]*?)^```\s*$/gm,(d,f,h)=>{const g=`\0CODE_BLOCK_${r++}\0`;return t.push({placeholder:g,content:h,language:f||"plain",fullMatch:d}),g}).split(/(\n\s*\n)/),l=[];for(let d=0;d<s.length;d++)d%2===0?l.push(s[d]):l.length>0?l[l.length-1]+=s[d]:l.push(s[d]);const c=[];for(const d of l){const f=d.trim();if(f.length===0){c.length>0&&(c[c.length-1].rawText+=d);continue}const h=t.find(b=>f===b.placeholder);if(h){c.push({blockType:"code",rawText:d.replace(h.placeholder,h.fullMatch),meta:{language:h.language}});continue}let g=d;for(const b of t)g.includes(b.placeholder)&&(g=g.replace(b.placeholder,b.fullMatch));const A=NN(f,g);c.push(A)}return jN(c)}function NN(e,n){if(/^(---|___|\*\*\*)\s*$/.test(e))return{blockType:"horizontal-rule",rawText:n};const t=e.match(/^(#{1,6})\s+(.*)$/);if(t){const o=`h${t[1].length}`;return{blockType:"heading",rawText:n,meta:{headingLevel:o}}}const r=e.match(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*([\s\S]*)$/im);if(r){const o=MN[r[1].toLowerCase()]||"default";return{blockType:"callout",rawText:n,meta:{calloutType:o}}}if(/^>\s/m.test(e)&&e.split(`
|
|
196
|
+
`).every(s=>s.trim()===""||/^>\s?/.test(s)))return{blockType:"quote",rawText:n};if(/^(\s*[-*+]\s)/m.test(e)){const o=e.split(`
|
|
197
|
+
`);if(o.every(l=>l.trim()===""||/^\s*[-*+]\s/.test(l))){const l=o.filter(c=>c.trim().length>0).map(c=>c.replace(/^\s*[-*+]\s/,""));return{blockType:"bullet-list",rawText:n,meta:{listItems:l}}}}if(/^(\s*\d+\.\s)/m.test(e)){const o=e.split(`
|
|
198
|
+
`);if(o.every(l=>l.trim()===""||/^\s*\d+\.\s/.test(l))){const l=o.filter(c=>c.trim().length>0).map(c=>c.replace(/^\s*\d+\.\s/,""));return{blockType:"number-list",rawText:n,meta:{listItems:l}}}}return{blockType:"paragraph",rawText:n}}function jN(e){var t,r;const n=[];for(const o of e){const s=n[n.length-1];s&&s.blockType===o.blockType&&(o.blockType==="bullet-list"||o.blockType==="number-list")?(s.rawText+=o.rawText,s.meta={...s.meta,listItems:[...((t=s.meta)==null?void 0:t.listItems)||[],...((r=o.meta)==null?void 0:r.listItems)||[]]}):n.push({...o})}return n}function xh(e,n,t,r,o){const s=n.current;s&&(e.setEditorState(s),n.current=null),t();const l=(o==null?void 0:o.error)==="free_trial_exceeded";A9.notifications.show({message:r(l?"editor.smartPaste.freeLimitReached":"editor.smartPaste.fallback"),color:l?"yellow":"red",autoClose:5e3}),l&&window.dispatchEvent(new CustomEvent("smart-paste-free-limit",{detail:{error:o.error,message:o.message}}))}async function RN(e,n,t,r){const{editor:o,fetchSmartPastePrompt:s,serverStreamAvailable:l}=e;let c=!1,d=!1,f;const h=[];let g=null;o.update(()=>{let x=null,w=[],k=[];for(const I of t){const N=p.$getNodeByKey(I);if(!N)continue;const L=N.getType();if(U1.has(L))x==="paragraph"&&k.length>0&&(h.push({kind:"paragraph",texts:k,combinedText:k.join(`
|
|
199
|
+
`)}),k=[]),x="stable",w.push(z1(N));else{const S=N.getTextContent().trim();if(!S)continue;x==="stable"&&w.length>0&&(h.push({kind:"stable",serializedNodes:w}),w=[]),x="paragraph",k.push(S)}}w.length>0&&h.push({kind:"stable",serializedNodes:w}),k.length>0&&h.push({kind:"paragraph",texts:k,combinedText:k.join(`
|
|
200
|
+
`)});const T=p.$getNodeByKey(t[0]);if(T!=null&&T.isAttached()){const I=T.getPreviousSibling();g=(I==null?void 0:I.getKey())??null}Ci(!0);for(const I of t){const N=p.$getNodeByKey(I);N!=null&&N.isAttached()&&N.remove()}},{discrete:!0}),HL(h,r),Kc();const A=async x=>{if(s){const{segmentByAI:w}=await Promise.resolve().then(()=>CN);return w(x.combinedText,s,e.pendingRichElementsRef.current)}throw new Error("No classic AI provider")},b=new Map;if(s)for(let x=0;x<h.length;x++){const w=h[x];if(w.kind==="paragraph"){const k={texts:w.texts,combinedText:w.combinedText};b.set(x,A(k))}}function y(x){if(g){const w=p.$getNodeByKey(g),k=w?w.getTopLevelElement()??w:null;k!=null&&k.isAttached()?k.insertAfter(x):p.$getRoot().append(x)}else{const w=p.$getRoot(),k=w.getFirstChild();k?k.insertBefore(x):w.append(x)}g=x.getKey()}for(let x=0;x<h.length;x++){const w=h[x],k=x;w.kind==="stable"?Hc(Os.then(async()=>{const T=[];o.update(()=>{for(const I of w.serializedNodes)try{const N=p.$parseSerializedNode(I);y(N);const L=Yc(N);L&&T.push(L)}catch{}},{discrete:!0});for(const I of T)await Zc(o,I)})):Hc(Os.then(async()=>{if(s){let T;try{T=await b.get(k)}catch{return}for(let I=0;I<T.length;I++){const N=T[I],L=[];let M=null;if(o.update(()=>{try{const S=p.$parseSerializedNode(N);y(S),M=Yc(S),M||L.push(...bh(S))}catch{}},{discrete:!0}),await new Promise(S=>requestAnimationFrame(S)),M)await Zc(o,M);else for(const S of L)await yh(o,S)}}else if(l){const I=w.combinedText.slice(0,Fi),N=[];let L=!1,M=null;for(K1(I,e.pendingLinksRef.current,e.pendingRichElementsRef.current,S=>{N.push(S),M&&(M(),M=null)},S=>{S&&(c=!0),L=!0,M&&(M(),M=null)},S=>{d=!0,f=S,L=!0,M&&(M(),M=null)});!L||N.length>0;){if(N.length===0){await new Promise(O=>{M=O});continue}const S=N.shift();for(const O of S){const R=[];let B=null;if(o.update(()=>{try{const _=p.$parseSerializedNode(O);y(_),B=Yc(_),B||R.push(...bh(_))}catch{}},{discrete:!0}),await new Promise(_=>requestAnimationFrame(_)),B)await Zc(o,B);else for(const _ of R)await yh(o,_)}}}}))}return Hc(Os.then(()=>{if(Ci(!1),e.setIsProcessing(!1),d){xh(o,e.preAIEditorStateRef,()=>{e.resetPendingRefs(),e.setPopupMode(null),e.setPendingText("")},e.t,f),Kc();return}e.setPopupMode("confirm"),Kc()})),c}function bc(e){e.setPopupMode(null),e.setPendingText(""),e.pendingLinksRef.current=[],e.pendingRichElementsRef.current=[],e.pendingRangeRef.current=null,e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[]}async function IN(e,n,t){const{editor:r,fetchSmartPastePrompt:o,serverStreamAvailable:s,onTrack:l}=e,c=performance.now();if(l==null||l("smart_paste_processing_started",{choice:n,textLength:t.length}),n==="plain"){bc(e),qo({choice:"plain",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c});return}try{if(n==="ai"){if(e.pendingClassificationRef.current&&e.pendingInsertedKeysRef.current.length>0){const b=e.pendingClassificationRef.current,y=[...e.pendingInsertedKeysRef.current];e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[];try{const x=await RN({editor:r,fetchSmartPastePrompt:o,pendingLinksRef:e.pendingLinksRef,pendingRichElementsRef:e.pendingRichElementsRef,setIsProcessing:e.setIsProcessing,setPendingText:e.setPendingText,setPopupMode:e.setPopupMode,resetPendingRefs:()=>{e.pendingLinksRef.current=[],e.pendingRichElementsRef.current=[],e.pendingRangeRef.current=null,e.pendingClassificationRef.current=null,e.pendingInsertedKeysRef.current=[]},serverStreamAvailable:s,preAIEditorStateRef:e.preAIEditorStateRef,t:e.t},b,y,t);qo({choice:"ai",textLength:t.length,segmentCount:b.runs.length,processingTimeMs:performance.now()-c,wasTruncated:x}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:b.runs.length})}catch(x){console.warn("[SmartPaste] processNodeBasedAI failed, restoring state",x),Ci(!1),e.setIsProcessing(!1),xh(r,e.preAIEditorStateRef,()=>bc(e),e.t)}return}let g=e.pendingRangeRef.current;if(!g){const b=Ob(r,t);b&&(e.pendingRangeRef.current=b,g=b)}const A=!!o&&(!g||g.tracking==="fallback");if(s&&!A){let b=0,y=null,x=null,w=null,k=!1,T=Promise.resolve();const I=[],N=ml(t),L=N.slice(0,Math.min(N.length,80));r.update(()=>{const M=p.$getRoot(),S=e.pendingRangeRef.current;e.pendingRangeRef.current=null;let O=!1;if(S){const R=(S.insertedTopLevelKeys||[]).map(_=>{const j=p.$getNodeByKey(_);return(j==null?void 0:j.getTopLevelElement())??j??null}).filter(_=>!!(_&&_.isAttached()));if(R.length>0){const[_,...j]=R;x=_,w=_.getKey(),k=!0,O=!0,j.forEach(D=>{D.isAttached()&&D.remove()})}if(!x&&W1(S)){const j=p.$getSelection();p.$isRangeSelection(j)&&j.removeText()}const B=S.anchorTopKey?p.$getNodeByKey(S.anchorTopKey):null;if(B&&B.isAttached()){if(!x){x=B,w=x.getKey();const _=Qt(x.getTextContent());k=S.tracking==="fallback"||L.length>20&&_.includes(L),p.$isElementNode(x)&&S.start.offset===0&&S.end.key===S.start.key&&x.clear()}}else{const _=p.$getSelection(),j=_==null?void 0:_.getNodes()[0];if(x=(j==null?void 0:j.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const D=Qt(x.getTextContent());k=L.length>20&&D.includes(L)}}y=x??M.getLastChild()}else{const R=p.$getSelection();p.$isRangeSelection(R)&&R.removeText();const B=R==null?void 0:R.getNodes()[0];if(x=(B==null?void 0:B.getTopLevelElement())??null,w=(x==null?void 0:x.getKey())??null,x){const _=Qt(x.getTextContent());k=L.length>20&&_.includes(L)}else if(L.length>20){const _=M.getChildren().find(j=>Qt(j.getTextContent()).includes(L))??null;_&&(x=_,w=_.getKey(),k=!0)}y=x??M.getLastChild()}if((S==null?void 0:S.tracking)==="fallback"&&x&&x.isAttached()){const R=x.getTopLevelElement()??x,B=M.getChildren(),_=B.findIndex(j=>j.getKey()===R.getKey());if(_>=0){const j=Qt(t);let D=Qt(R.getTextContent());const z=[];if(D&&j.startsWith(D))for(let H=_+1;H<B.length;H+=1){const F=B[H],Z=Qt(F.getTextContent());if(!Z)continue;const q=Qt(`${D} ${Z}`);if(j.startsWith(q)){z.push(F),D=q;continue}break}z.length>0&&z.forEach(H=>{H.isAttached()&&H.remove()})}}if((S==null?void 0:S.tracking)==="fallback"&&L.length>20&&x&&x.isAttached()){const R=x.getTopLevelElement()??x,B=M.getChildren(),_=B.findIndex(j=>j.getKey()===R.getKey());if(_>0){const j=B.slice(0,_),D=Qt(t);let z=j.findIndex(H=>Qt(H.getTextContent()).includes(L));if(z<0&&j.length>0){const H=Qt(j[0].getTextContent());H&&D.startsWith(H)&&(z=0)}if(z>=0){const H=[];let F="";for(let Z=z;Z<j.length;Z+=1){const q=Qt(j[Z].getTextContent()),ee=Qt(`${F} ${q}`);if(D.startsWith(ee)||D.includes(ee)){H.push(j[Z]),F=ee;continue}break}H.length>0&&H.forEach(Z=>{Z.isAttached()&&Z.remove()})}}}O&&x&&x.isAttached()&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""))}),Ci(!0),K1(t,e.pendingLinksRef.current,e.pendingRichElementsRef.current,M=>{Hc(Os.then(async()=>{const S=[],O=[],R=[];let B=b===0;if(r.update(()=>{B&&k&&x&&x.isAttached()&&x.getTextContent().trim()!==""&&(p.$isElementNode(x)?x.clear():p.$isTextNode(x)&&x.setTextContent(""));for(const _ of M)try{const j=p.$parseSerializedNode(_);if(B&&x&&x.isAttached()&&x.getTextContent().trim()==="")x.replace(j),y=j,x=null,B=!1;else{const H=y?y.getTopLevelElement()??y:null;H&&H.isAttached()?H.insertAfter(j):p.$getRoot().append(j),y=j,B=!1}b++;const D=j.getKey();S.push(D);const z=Yc(j);if(z)R.push(z);else{const H=bh(j);O.push(...H)}}catch{}p.$getRoot().selectEnd()},{discrete:!0}),I.push(...S),await new Promise(_=>requestAnimationFrame(_)),await new Promise(_=>requestAnimationFrame(_)),S.length>0){const _=S[0],j=r.getElementByKey(_);j&&j.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}for(const _ of R)await Zc(r,_);for(const _ of O)await yh(r,_)})),T=Os},async M=>{await T,Kc(),r.update(()=>{var R,B;let S=!1;if(L.length>20&&I.length>0){const _=p.$getRoot(),j=(R=I.map(D=>{const z=p.$getNodeByKey(D);return(z==null?void 0:z.getTopLevelElement())??z??null}).find(Boolean))==null?void 0:R.getKey();if(j){const D=_.getChildren(),z=D.findIndex(H=>H.getKey()===j);if(z>0){const H=D.slice(0,z),F=Qt(t);let Z=H.findIndex(q=>Qt(q.getTextContent()).includes(L));if(Z<0&&H.length>0){const q=Qt(H[0].getTextContent());q&&F.startsWith(q)&&(Z=0)}if(Z>=0){const q=[];let ee="";for(let Q=Z;Q<H.length;Q++){const J=Qt(H[Q].getTextContent()),xe=Qt(`${ee} ${J}`);if(F.startsWith(xe)||F.includes(xe)){q.push(H[Q]),ee=xe;continue}break}q.forEach(Q=>{Q.isAttached()&&Q.remove()}),S=!0}}}}const O=w?((B=p.$getNodeByKey(w))==null?void 0:B.getTopLevelElement())??p.$getNodeByKey(w):null;if(!S&&O&&O.isAttached()&&b>0&&k){O.remove();return}O&&O.isAttached()&&O.getTextContent().trim()===""&&p.$getRoot().getChildrenSize()>1&&O.remove()}),qo({choice:"ai",textLength:t.length,segmentCount:b,processingTimeMs:performance.now()-c,wasTruncated:M}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:b}),Ci(!1),e.setIsProcessing(!1),e.setPopupMode("confirm"),l==null||l("smart_paste_popup_shown",{mode:"confirm"})},M=>{const S=(M==null?void 0:M.error)??"AI stream failed";qo({choice:"ai",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:S}),l==null||l("smart_paste_processing_failed",{choice:"ai",fallbackReason:S}),Ci(!1),e.setIsProcessing(!1),xh(r,e.preAIEditorStateRef,()=>bc(e),e.t,M)});return}if(o){const b=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const y=await Hb(t,o,e.pendingRichElementsRef.current);bN(r,y,b,t),qo({choice:"ai",textLength:t.length,segmentCount:y.length,processingTimeMs:performance.now()-c}),l==null||l("smart_paste_processing_completed",{choice:"ai",processingTimeMs:Math.round(performance.now()-c),segmentCount:y.length}),e.setIsProcessing(!1),e.setPopupMode("confirm"),l==null||l("smart_paste_popup_shown",{mode:"confirm"});return}}const d=e.pendingRangeRef.current;e.pendingRangeRef.current=null;const f=LN(t);AN(f,t).valid?(TN(r,f,d,t),qo({choice:"rules",textLength:t.length,segmentCount:f.length,processingTimeMs:performance.now()-c}),l==null||l("smart_paste_processing_completed",{choice:"rules",processingTimeMs:Math.round(performance.now()-c),segmentCount:f.length})):(qo({choice:"rules",textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:"Validation failed for rules engine"}),l==null||l("smart_paste_processing_failed",{choice:"rules",fallbackReason:"Validation failed for rules engine"}))}catch(d){const f=`Error: ${d instanceof Error?d.message:String(d)}`;qo({choice:n,textLength:t.length,segmentCount:0,processingTimeMs:performance.now()-c,fallback:!0,fallbackReason:f}),l==null||l("smart_paste_processing_failed",{choice:n,fallbackReason:f})}finally{n!=="ai"&&(e.setIsProcessing(!1),bc(e))}}m.createContext(null);const DN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},ON=m.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t,absoluteStrokeWidth:r=!1,className:o="",altIcon:s,showAlt:l=!1,icon:c,primaryColor:d,secondaryColor:f,disableSecondaryOpacity:h=!1,...g},A)=>{const b=t!==void 0?r?Number(t)*24/Number(n):t:void 0,y=b!==void 0?{strokeWidth:b,stroke:"currentColor"}:{},x={ref:A,...DN,width:n,height:n,color:d||e,className:o,...y,...g},k=[...l&&s?s:c].sort(([,T],[,I])=>{const N=T.opacity!==void 0;return I.opacity!==void 0?1:N?-1:0}).map(([T,I])=>{const N=I.opacity!==void 0,L=N&&!h?I.opacity:void 0,M=f?{...I.stroke!==void 0?{stroke:N?f:d||e}:{fill:N?f:d||e}}:{};return m.createElement(T,{...I,...y,...M,opacity:L,key:I.key})});return m.createElement("svg",x,k)});ON.displayName="HugeiconsIcon";p.createCommand("INSERT_VIDEO_COMMAND");p.createCommand("UPLOAD_VIDEO_COMMAND");function PN(e,n=!1){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(t&&t[2].length===11)return{platform:"youtube",id:t[2]};const r=e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const c=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${c}-${d}`}}const o=e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(o)return{platform:"rutube",id:o[1]};if(e==="upload")return{platform:"upload",id:null};if(n)return{platform:"link",id:e};const s=e.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);if(s)return{platform:"download",id:s[1]};const l=e.split("/").pop();return l?{platform:"download",id:l}:{platform:"unknown",id:null}}const BN=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"de",label:"Deutsch"},{value:"it",label:"Italiano"},{value:"pt",label:"Português"},{value:"ru",label:"Русский"},{value:"uk",label:"Українська"},{value:"pl",label:"Polski"},{value:"nl",label:"Nederlands"},{value:"sv",label:"Svenska"},{value:"no",label:"Norsk"},{value:"da",label:"Dansk"},{value:"fi",label:"Suomi"},{value:"tr",label:"Türkçe"},{value:"ar",label:"العربية"},{value:"he",label:"עברית"},{value:"hi",label:"हिन्दी"},{value:"ja",label:"日本語"},{value:"ko",label:"한국어"},{value:"zh",label:"中文"},{value:"ro",label:"Română"}];BN.reduce((e,n)=>(e[n.value]=n.label,e),{});function _N(e){var r,o;let n=e.previousSibling;for(;n;){const s=(r=n.textContent)==null?void 0:r.trim();if(s)return s;n=n.previousSibling}let t=e.parentElement;for(;t&&t!==t.ownerDocument.body;){let s=t.previousElementSibling;for(;s;){const l=(o=s.textContent)==null?void 0:o.trim();if(l)return l;s=s.previousElementSibling}t=t.parentElement}return""}function FN(e){if(!e)return[];try{const t=new DOMParser().parseFromString(e,"text/html"),r=[];return t.querySelectorAll("img, iframe").forEach(o=>{const s=_N(o);if(o.tagName==="IMG"){const l=o,c=l.src;if(!c||c.startsWith("file:///")||c===window.location.href)return;r.push({kind:"image",src:c,altText:l.alt||"",width:l.getAttribute("width")||void 0,height:l.getAttribute("height")||void 0,anchorText:s});return}if(o.tagName==="IFRAME"){const l=o,c=l.getAttribute("src")||"";if(!c)return;const d=l.getAttribute("width")||void 0,f=l.getAttribute("height")||void 0,h=PN(c);if(h.id&&h.platform!=="download"&&h.platform!=="upload"&&h.platform!=="unknown"&&h.platform!=="link"){r.push({kind:"video",src:c,platform:h.platform,mediaId:h.id,width:d,height:f,anchorText:s});return}const g=Ab(c);g.id&&g.platform!=="unknown"&&r.push({kind:"embed",src:c,platform:g.platform,mediaId:g.id,width:d,height:f,anchorText:s})}}),r}catch{return[]}}function WN(e){if(!e)return[];try{const r=new DOMParser().parseFromString(e,"text/html").querySelectorAll("a[href]"),o=[];return r.forEach(s=>{var d;const l=(d=s.textContent)==null?void 0:d.trim(),c=s.getAttribute("href");l&&c&&o.push({text:l,url:c})}),o}catch{return[]}}function zN(){const[e]=it.useLexicalComposerContext(),{fetchSmartPastePrompt:n,onTrack:t}=m.useContext(ft),{t:r}=Ke.useTranslation(),o=!0,s=m.useRef(null);m.useEffect(()=>{WL(),_L().then(ee=>{s.current=ee.smartPasteEnabled}).catch(()=>{s.current=!0})},[]);const[l,c]=m.useState(null),[d,f]=m.useState(""),[h,g]=m.useState(!1),[A,b]=m.useState(null),y=m.useRef(null),x=m.useRef([]),w=m.useRef([]),k=m.useRef(null),T=m.useRef(null),I=m.useRef([]),N=m.useRef(!1),L=m.useCallback(()=>{y.current=null,f(""),x.current=[],w.current=[],k.current=null,T.current=null,I.current=[]},[]),M=m.useCallback(()=>({editor:e,fetchSmartPastePrompt:n,serverStreamAvailable:o,onTrack:t,pendingLinksRef:x,pendingRichElementsRef:w,pendingRangeRef:k,pendingClassificationRef:T,pendingInsertedKeysRef:I,preAIEditorStateRef:y,setPendingText:f,setIsProcessing:g,setPopupMode:c,t:r}),[e,n,o,t,r]),S=m.useCallback((ee,Q)=>{IN(M(),ee,Q)},[M]),O=m.useCallback(()=>{var xe;const ee=we=>{let Te=e.getElementByKey(we);return Te||e.read(()=>{var X;const Fe=p.$getNodeByKey(we),se=(X=Fe==null?void 0:Fe.getTopLevelElement)==null?void 0:X.call(Fe);se&&(Te=e.getElementByKey(se.getKey()))}),Te},Q=I.current.at(-1)??((xe=k.current)==null?void 0:xe.end.key);if(Q){const we=ee(Q);if(we)return we}let J=null;return e.read(()=>{const we=p.$getRoot().getChildren();for(let Te=we.length-1;Te>=0;Te--){const Fe=e.getElementByKey(we[Te].getKey());if(Fe){J=Fe;break}}}),J},[e]),R=m.useCallback(()=>{const ee=O();ee&&ee.scrollIntoView({block:"end",inline:"nearest"})},[O]),B=m.useCallback(()=>{const ee=O();if(ee){const xe=ee.getBoundingClientRect();return{left:xe.left,top:xe.bottom}}const Q=window.getSelection();if(Q&&Q.rangeCount>0){const xe=Q.getRangeAt(0).getBoundingClientRect();if(xe.width||xe.height)return{left:xe.left,top:xe.bottom}}const J=e.getRootElement();if(J){const xe=J.getBoundingClientRect();return{left:xe.left,top:xe.bottom}}return{left:100,top:100}},[e,O]),_=m.useCallback(()=>{const ee=B();b(ee),c("choose"),t==null||t("smart_paste_popup_shown",{mode:"choose"}),requestAnimationFrame(()=>{const Q=B();b(Q)})},[B,t]);m.useEffect(()=>{const ee=e.registerCommand(p.PASTE_COMMAND,Q=>{var pe,ge,G,he,oe;if(!s.current||(pe=Q.clipboardData)!=null&&pe.files&&Q.clipboardData.files.length>0)return!1;const J=(ge=Q.clipboardData)==null?void 0:ge.getData("application/x-lexical-editor");if(J){try{const K=JSON.parse(J),Y=K.nodes??K;if(Array.isArray(Y)&&Y.length>0){const ne=J0(Y);if(!ne.hasParagraphRuns||!ne.hasStructuralSignals)return!1;Q.preventDefault();const fe=[];e.update(()=>{const Le=p.$getSelection();p.$isRangeSelection(Le)&&Le.removeText();for(const Ue of Y)try{const ce=p.$parseSerializedNode(Ue);p.$getRoot().append(ce),fe.push(ce.getKey())}catch{}},{discrete:!0}),T.current=ne,I.current=fe;const Ce=((G=Q.clipboardData)==null?void 0:G.getData("text/plain"))||"";return f(Ce||Y.map(Le=>Wi(Le)).join(`
|
|
201
|
+
`)),R(),_(),!0}}catch{}return!1}const xe=p.$getSelection();if(p.$isRangeSelection(xe)){const K=xe.anchor.getNode();if(ve.$findMatchingParent(K,ne=>Gt.$isCodeNode(ne)||yn(ne))!==null)return!1}const we=((he=Q.clipboardData)==null?void 0:he.getData("text/plain"))||"";if(!we.trim())return!1;const Te=we.trim(),Fe=Te.split(`
|
|
202
|
+
`).filter(K=>K.trim()).length;if(Te.length<Ib&&Fe<zL)return!1;const se=((oe=Q.clipboardData)==null?void 0:oe.getData("text/html"))||"";x.current=WN(se),w.current=FN(se),Q.preventDefault();try{const K=KL(e,we,se);if(K){if(k.current=K,se&&K.insertedTopLevelKeys&&K.insertedTopLevelKeys.length>0&&(n||o))try{let Y=[];for(const ne of K.insertedTopLevelKeys){const fe=p.$getNodeByKey(ne);fe&&Y.push(z1(fe))}if(Y.length>0){const ne=J0(Y);ne.hasParagraphRuns&&(T.current=ne,I.current=[...K.insertedTopLevelKeys])}}catch{}}else{const Y=Ob(e,we);k.current=Y}}catch{}f(we),R();let X=null;try{const K=localStorage.getItem(q0);K==="ai"||K==="plain"?X=K:K==="rules"&&localStorage.removeItem(q0)}catch{}const ae=we.length>Fi;return X&&!(X==="ai"&&ae)?(X==="ai"&&(y.current=e.getEditorState().clone(),g(!0)),S(X,we),!0):(_(),!0)},p.COMMAND_PRIORITY_HIGH);return()=>{ee(),x.current=[],k.current=null,T.current=null,I.current=[]}},[e,n,o,S,_,R]),m.useEffect(()=>{if(l!=="confirm")return;const ee=B();b(ee),requestAnimationFrame(()=>{b(B())})},[e,l,B]),m.useEffect(()=>{if(!l||h)return;const ee=e.registerCommand(p.KEY_DOWN_COMMAND,Q=>(Q.defaultPrevented||Q.ctrlKey||Q.metaKey||Q.altKey||!(Q.isComposing||Q.key.length===1||Q.key==="Enter"||Q.key==="Backspace"||Q.key==="Delete"||Q.key==="Tab")||(c(null),L()),!1),p.COMMAND_PRIORITY_HIGH);return()=>{ee()}},[e,h,l,L]);const j=m.useCallback(()=>{if(!h){if(N.current){N.current=!1;return}t==null||t("smart_paste_popup_dismissed",{mode:l}),c(null),L()}},[h,l,t,L]),D=m.useCallback(()=>{d&&(N.current=!0,t==null||t("smart_paste_choice_made",{choice:"ai"}),y.current=e.getEditorState().clone(),g(!0),c(null),S("ai",d))},[e,d,S,t]),z=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_choice_made",{choice:"plain"}),c(null),S("plain",d)},[d,S,t]),H=m.useCallback(()=>{t==null||t("smart_paste_choice_made",{choice:"disabled"}),s.current=!1,FL({smartPasteEnabled:!1}).catch(()=>{}),z()},[z,t]),F=m.useCallback(()=>{At.isFeatureRated(Q0)||At.showFeatureFeedback({feature:Q0,title:r("editor.smartPaste.feedbackTitle"),delay:5})},[r]),Z=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_result_accepted"),c(null),L(),F()},[L,t,F]),q=m.useCallback(()=>{N.current=!0,t==null||t("smart_paste_result_discarded");const ee=y.current;ee&&e.setEditorState(ee),c(null),L(),F()},[e,L,t,F]);return{popupMode:l,isProcessing:h,anchorPosition:A,excessChars:Math.max(0,d.length-Fi),onClose:j,onApply:D,onDismiss:z,onDontShowAgain:H,onAccept:Z,onDiscard:q}}function UN({visible:e,containerSelector:n}){const[t]=it.useLexicalComposerContext(),[r,o]=m.useState(null);return m.useEffect(()=>{if(!e){o(null);return}const s=t.getRootElement();if(!s)return;const l=h=>s.closest(h)??document.querySelector(h),c=n&&l(n)||l(".editor-scroller");if(!c)return;const d=()=>o(c.getBoundingClientRect());d();const f=new ResizeObserver(d);return f.observe(c),window.addEventListener("scroll",d,!0),window.addEventListener("resize",d),()=>{f.disconnect(),window.removeEventListener("scroll",d,!0),window.removeEventListener("resize",d)}},[t,e,n]),!e||!r?null:i.jsxs("div",{className:"smart-paste-gradient-border",style:{left:r.left,top:r.top,width:r.width,height:r.height},children:[i.jsx("div",{className:"smart-paste-border"}),i.jsx("div",{className:"smart-paste-glow"})]})}const KN=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[i.jsx("path",{d:"M13.666 2.5L13.666 3.51302C13.666 5.77556 13.6666 6.18491 13.5026 7.53646C13.3375 8.8974 12.9983 9.93817 12.2617 10.7546C11.5184 11.5783 10.5594 11.9646 9.30794 12.151C8.07654 12.3345 6.4926 12.3333 4.45508 12.3333L3.83268 12.3333C3.55654 12.3333 3.33268 12.1095 3.33268 11.8333C3.33268 11.5572 3.55654 11.3333 3.83268 11.3333L4.45508 11.3333C6.52366 11.3333 8.0195 11.332 9.16016 11.1621C10.2807 10.9952 10.9866 10.6745 11.5189 10.0846C12.0578 9.48738 12.3566 8.68359 12.5104 7.41602C12.6654 6.13877 12.666 5.80113 12.666 3.51302L12.666 2.5C12.666 2.22386 12.8899 2 13.166 2C13.4422 2 13.666 2.22386 13.666 2.5Z",fill:"#868E96"}),i.jsx("path",{d:"M5.52484 14.1817C5.33243 14.3796 5.01583 14.3843 4.8178 14.1921C4.74012 14.1166 4.58915 13.996 4.37379 13.8268C4.16984 13.6666 3.9241 13.475 3.69085 13.2774C3.45977 13.0815 3.22345 12.8651 3.04111 12.6511C2.94976 12.5438 2.86148 12.4255 2.79437 12.3001C2.72937 12.1787 2.66611 12.0172 2.66611 11.8333C2.66611 11.6495 2.72937 11.488 2.79437 11.3666C2.86148 11.2412 2.94976 11.1229 3.04111 11.0156C3.22345 10.8016 3.45977 10.5852 3.69085 10.3893C3.9241 10.1917 4.16984 10.0001 4.37379 9.83986C4.58915 9.6707 4.74012 9.55014 4.81781 9.47462C5.01583 9.28235 5.33243 9.2871 5.52484 9.48504C5.71711 9.68306 5.71236 9.99966 5.51442 10.1921C5.38982 10.3131 5.18909 10.4712 4.99163 10.6263C4.78276 10.7904 4.55337 10.9693 4.33734 11.1524C4.11917 11.3372 3.93152 11.5122 3.80218 11.6641C3.74074 11.7362 3.70275 11.7931 3.68044 11.8333C3.70275 11.8736 3.74074 11.9305 3.80218 12.0026C3.93152 12.1545 4.11917 12.3295 4.33734 12.5143C4.55337 12.6974 4.78276 12.8763 4.99163 13.0404C5.18909 13.1955 5.38982 13.3535 5.51442 13.4746C5.71236 13.667 5.71711 13.9836 5.52484 14.1817Z",fill:"#868E96"})]}),HN=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:[i.jsx("path",{d:"M9.65765 4.62598C9.99776 4.45762 10.3977 4.45755 10.7377 4.62598C10.9348 4.72374 11.1005 4.89892 11.267 5.06543C11.4128 5.2112 11.5652 5.35646 11.6664 5.52246L11.7065 5.5957L11.7621 5.72559C11.8727 6.03457 11.8539 6.37814 11.7065 6.67578C11.6331 6.82375 11.5161 6.95393 11.392 7.08008L4.07952 14.3926C3.95337 14.5167 3.82318 14.6337 3.67523 14.707C3.33507 14.8755 2.93529 14.8755 2.59515 14.707C2.39802 14.6093 2.23243 14.4341 2.06585 14.2676C1.89922 14.1009 1.72419 13.9346 1.6264 13.7373C1.45793 13.3971 1.45781 12.9974 1.6264 12.6572C1.6998 12.5094 1.81686 12.3789 1.94085 12.2529L9.25335 4.94043C9.37936 4.81646 9.50975 4.69929 9.65765 4.62598ZM2.77288 12.835C2.67136 12.9365 2.60954 12.9989 2.56585 13.0479C2.53594 13.0814 2.52559 13.0972 2.52288 13.1016C2.49294 13.162 2.49288 13.2334 2.52288 13.2939C2.52568 13.2985 2.53592 13.3151 2.56585 13.3486C2.60957 13.3976 2.6715 13.4591 2.77288 13.5605C2.87416 13.6618 2.93591 13.7229 2.9848 13.7666C3.01794 13.7962 3.03379 13.8076 3.03851 13.8105C3.08378 13.833 3.13577 13.8383 3.18402 13.8271L3.23187 13.8105C3.23651 13.8076 3.2523 13.7963 3.28558 13.7666C3.33446 13.7229 3.39622 13.6618 3.49749 13.5605L8.6264 8.43262L7.90081 7.70703L2.77288 12.835ZM12.9994 7.83301C13.2087 7.83301 13.3956 7.96395 13.4682 8.16016L13.5414 8.3584C13.5924 8.4961 13.6216 8.57182 13.6469 8.62598C13.6684 8.67195 13.6739 8.67346 13.6664 8.66602L13.7065 8.68652C13.7606 8.7118 13.8363 8.74001 13.9741 8.79102L14.1723 8.86426C14.3684 8.93682 14.4993 9.1239 14.4994 9.33301C14.4994 9.54224 14.3685 9.72916 14.1723 9.80176L13.9741 9.87598C13.8363 9.92696 13.7606 9.9552 13.7065 9.98047L13.6664 10.001C13.6739 9.99355 13.6683 9.99439 13.6469 10.04C13.6216 10.0942 13.5924 10.1698 13.5414 10.3076L13.4682 10.5068C13.3955 10.7029 13.2086 10.833 12.9994 10.833C12.7904 10.8329 12.6033 10.7029 12.5307 10.5068L12.4575 10.3076C12.4065 10.1699 12.3773 10.0942 12.352 10.04L12.3325 10.001C12.3396 10.008 12.3379 10.0017 12.2924 9.98047C12.2383 9.9552 12.1626 9.92698 12.0248 9.87598L11.8266 9.80176C11.6304 9.72916 11.4994 9.54224 11.4994 9.33301C11.4996 9.1239 11.6305 8.93682 11.8266 8.86426L12.0248 8.79102C12.1625 8.74006 12.2383 8.71178 12.2924 8.68652C12.3382 8.66513 12.3398 8.6587 12.3325 8.66602L12.352 8.62598C12.3773 8.57181 12.4064 8.49621 12.4575 8.3584L12.5307 8.16016L12.5629 8.08887C12.6503 7.93274 12.8166 7.83307 12.9994 7.83301ZM10.2465 5.50586C10.1981 5.49453 10.1464 5.49996 10.101 5.52246C10.0969 5.52496 10.0815 5.53587 10.0473 5.56641C9.99843 5.61004 9.93666 5.67117 9.83538 5.77246L8.60784 7L9.33343 7.72559L10.56 6.49805C10.6615 6.39655 10.7233 6.33507 10.767 6.28613C10.7974 6.25207 10.8074 6.23564 10.81 6.23145L10.8276 6.18457C10.8387 6.13639 10.8323 6.08527 10.81 6.04004V6.03906C10.8071 6.03443 10.7964 6.01834 10.767 5.98535C10.7233 5.93641 10.6615 5.87393 10.56 5.77246C10.4587 5.67122 10.397 5.61008 10.3481 5.56641C10.3131 5.53521 10.2971 5.5248 10.2934 5.52246L10.2465 5.50586ZM6.99945 1.16699C7.20857 1.16699 7.39551 1.29711 7.4682 1.49316L7.54144 1.69238C7.59245 1.83019 7.62163 1.90582 7.64691 1.95996C7.66825 2.00558 7.67386 2.00645 7.66644 1.99902C7.65945 1.99221 7.66154 1.99853 7.70648 2.01953C7.76059 2.04479 7.83634 2.07306 7.97405 2.12402L8.17327 2.19824C8.36931 2.27094 8.49945 2.45789 8.49945 2.66699C8.49931 2.87596 8.36921 3.06309 8.17327 3.13574L7.97405 3.20898C7.83627 3.25997 7.7606 3.28821 7.70648 3.31348C7.66107 3.33469 7.65925 3.34106 7.66644 3.33398C7.67388 3.32654 7.66837 3.32808 7.64691 3.37402C7.62165 3.42816 7.59241 3.50389 7.54144 3.6416L7.4682 3.83984C7.39559 4.03606 7.20867 4.16699 6.99945 4.16699C6.79027 4.16692 6.60327 4.03604 6.5307 3.83984L6.45745 3.6416C6.40644 3.50378 6.37726 3.42817 6.35198 3.37402C6.33052 3.32808 6.32501 3.32654 6.33245 3.33398C6.3398 3.3413 6.33815 3.33485 6.29241 3.31348C6.2383 3.28824 6.16249 3.25992 6.02484 3.20898L5.82562 3.13574C5.62971 3.06308 5.49958 2.87595 5.49945 2.66699C5.49945 2.45798 5.62972 2.271 5.82562 2.19824L6.02484 2.12402C6.1626 2.07305 6.23829 2.04478 6.29241 2.01953C6.33781 1.99832 6.33962 1.99197 6.33245 1.99902C6.32504 2.00644 6.33069 2.00546 6.35198 1.95996C6.37725 1.90584 6.40647 1.83012 6.45745 1.69238L6.5307 1.49316L6.56292 1.42285C6.65022 1.26655 6.81646 1.16705 6.99945 1.16699ZM12.9994 1.16699C13.2086 1.16699 13.3955 1.29711 13.4682 1.49316L13.5414 1.69238C13.5924 1.83019 13.6216 1.90582 13.6469 1.95996C13.6682 2.00558 13.6739 2.00645 13.6664 1.99902C13.6595 1.99221 13.6615 1.99853 13.7065 2.01953C13.7606 2.04479 13.8363 2.07306 13.9741 2.12402L14.1733 2.19824C14.3693 2.27094 14.4994 2.45789 14.4994 2.66699C14.4993 2.87596 14.3692 3.06309 14.1733 3.13574L13.9741 3.20898C13.8363 3.25997 13.7606 3.28821 13.7065 3.31348C13.6611 3.33469 13.6593 3.34106 13.6664 3.33398C13.6739 3.32654 13.6684 3.32808 13.6469 3.37402C13.6216 3.42816 13.5924 3.50389 13.5414 3.6416L13.4682 3.83984C13.3956 4.03606 13.2087 4.16699 12.9994 4.16699C12.7903 4.16692 12.6033 4.03604 12.5307 3.83984L12.4575 3.6416C12.4064 3.50378 12.3773 3.42817 12.352 3.37402C12.3305 3.32808 12.325 3.32654 12.3325 3.33398C12.3398 3.3413 12.3382 3.33485 12.2924 3.31348C12.2383 3.28824 12.1625 3.25992 12.0248 3.20898L11.8256 3.13574C11.6297 3.06308 11.4996 2.87595 11.4994 2.66699C11.4994 2.45798 11.6297 2.271 11.8256 2.19824L12.0248 2.12402C12.1626 2.07305 12.2383 2.04479 12.2924 2.01953C12.3378 1.99831 12.3396 1.99194 12.3325 1.99902C12.325 2.00644 12.3307 2.00546 12.352 1.95996C12.3773 1.90584 12.4065 1.83012 12.4575 1.69238L12.5307 1.49316L12.5629 1.42285C12.6502 1.26655 12.8165 1.16705 12.9994 1.16699Z",fill:"url(#smartPasteAiGrad)"}),i.jsx("defs",{children:i.jsxs("linearGradient",{id:"smartPasteAiGrad",x1:"1.5",y1:"8.00019",x2:"14.4994",y2:"8.00019",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{stopColor:"#BE4BDB"}),i.jsx("stop",{offset:"0.360577",stopColor:"#E64980"}),i.jsx("stop",{offset:"0.990385",stopColor:"#FAB005"})]})})]});function YN({mode:e,anchorPosition:n,excessChars:t=0,onClose:r,onApply:o,onDismiss:s,onDontShowAgain:l,onAccept:c,onDiscard:d}){const{t:f}=Ke.useTranslation(),h=t>0,g=i.jsx(v.Menu.Item,{onClick:h?void 0:o,leftSection:i.jsx(HN,{}),disabled:h,className:"smart-paste-ai-gradient-item",children:i.jsx("span",{className:"smart-paste-ai-gradient",children:f("editor.smartPaste.aiButton")})});return i.jsxs(v.Menu,{opened:e!==null&&n!==null,onClose:r,position:"bottom-start",offset:8,transitionProps:Fn,zIndex:999,shadow:"0px 10px 10px -5px rgba(0,0,0,0.15), 0px 0px 40px 0px rgba(0,0,0,0.1)",radius:12,styles:{dropdown:{minWidth:e==="confirm"?200:176,padding:5},item:{padding:"6px 12px",lineHeight:1.45,height:32},divider:{margin:"3.5px 0"}},children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{style:{position:"fixed",left:(n==null?void 0:n.left)??0,top:(n==null?void 0:n.top)??0,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),i.jsxs(v.Menu.Dropdown,{children:[e==="choose"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onClick:s,leftSection:i.jsx(KN,{}),children:f("editor.smartPaste.plainButton")}),h?i.jsx(v.Tooltip,{label:f("editor.smartPaste.textTooLong",{max:"10,000",excess:t.toLocaleString()}),position:"left",multiline:!0,maw:250,withArrow:!0,children:g}):g,i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{onClick:l,leftSection:i.jsx($,{icon:c1,size:16,color:"var(--gray-gray-text, #868E96)"}),style:{color:"var(--gray-gray-text, #868E96)"},children:f("editor.smartPaste.dontShowAgain")})]}),e==="confirm"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onClick:c,leftSection:i.jsx($,{icon:Jn,size:16}),children:f("editor.smartPaste.accept")}),i.jsx(v.Menu.Item,{onClick:d,leftSection:i.jsx($,{icon:i1,size:16}),children:f("editor.smartPaste.discard")})]})]})]})}function ZN({containerSelector:e}){const n=zN();return i.jsxs(i.Fragment,{children:[i.jsx(UN,{visible:n.isProcessing,containerSelector:e}),i.jsx(YN,{mode:n.popupMode,anchorPosition:n.anchorPosition,excessChars:n.excessChars,onClose:n.onClose,onApply:n.onApply,onDismiss:n.onDismiss,onDontShowAgain:n.onDontShowAgain,onAccept:n.onAccept,onDiscard:n.onDiscard})]})}const GN=1,VN=100;let Yb=0,c2=!1;function qN(e){e.addEventListener("keydown",n=>{n.key==="Tab"&&(n.preventDefault(),Yb=n.timeStamp)},!0)}function QN(e){if(!c2){const n=e.getRootElement();n&&qN(n),c2=!0}return e.registerCommand(p.FOCUS_COMMAND,n=>{const t=p.$getSelection();return p.$isRangeSelection(t)&&Yb+VN>n.timeStamp&&p.$setSelection(t.clone()),!1},GN)}function JN(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>QN(e),[e]),null}function XN(e,n){const t=e.anchor,r=e.focus,s=(r.isBefore(t)?r:t).getNode(),l=ve.$getNearestBlockElementAncestorOrThrow(s);if(!n&&l.__prev===null)return!0;l instanceof On&&!l.__opened&&l.setOpened(!0);const c=d=>{const f=d.getNextSibling(),h=f==null?void 0:f.getFirstChild();(h==null?void 0:h.__type)==="list"&&h.getChildren().forEach(A=>{A instanceof On&&(c(A),A.setIndent(Math.max(0,A.getIndent()-1)))})};return n&&c(l),!1}function $N(e){return e.registerCommand(p.KEY_TAB_COMMAND,n=>{const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;try{if(XN(t,n.shiftKey))return!1;n.preventDefault();const o=n.shiftKey?p.OUTDENT_CONTENT_COMMAND:p.INDENT_CONTENT_COMMAND;return e.dispatchCommand(o,void 0)}catch{return!1}},p.COMMAND_PRIORITY_EDITOR)}function ej(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>$N(e)),null}const H1=()=>!!document.querySelector(".selected-all-document");function tj(){const[e]=it.useLexicalComposerContext(),{imperativeHandleRef:n}=m.useContext(ft),t=m.useCallback(()=>{const r=en(),{lexicalNode:o}=Ri(r,e,{"callout-wrapper":!0});return o&&p.$isElementNode(o)&&o.getChildren().length===1&&e.update(()=>{const s=p.$createParagraphNode();s.append(p.$createTextNode(""));const l=o.getParent();l&&(l.replace(s),s.selectStart())}),!1},[e]);m.useEffect(()=>{n!=null&&n.current&&(n.current.onDeleteCallout=t)},[n,t]),m.useEffect(()=>{if(!e.hasNodes([Ys,Ro,Qr]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return ve.mergeRegister(e.registerMutationListener(Qr,r=>{e.getEditorState().read(()=>{for(const[o,s]of r)if(s==="destroyed"){const l=Number(o),c=String(l-1);e.update(()=>{const d=p.$getNodeByKey(c);if(d&&fo(d)){const f=d.getChildren();for(const h of f)d==null||d.insertBefore(h);d.remove()}},{tag:p.HISTORY_MERGE_TAG})}})}),e.registerCommand(Eu,r=>{const{emoji:o,backgroundColor:s,calloutType:l}=Wu(r);let c=p.$getSelection();if(p.$isNodeSelection(c)&&(Ou(c),c=p.$getSelection()),!p.$isRangeSelection(c))return!1;const d=nb(c);if(d.length===0)return!1;const f=d[0],h=f.getParent();return fn.$isQuoteNode(f)||h!=null&&fn.$isQuoteNode(h)?(dn.$setBlocksType(c,KS(o,s,l),ZS),!0):YS(c,o,s,l)},p.COMMAND_PRIORITY_EDITOR),e.registerCommand(p.KEY_DELETE_COMMAND,t,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CONTROLLED_TEXT_INSERTION_COMMAND,()=>H1()&&e._keyToDOMMap.size>2,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.COPY_COMMAND,r=>{if(!r.clipboardData)return!1;const o=p.$getSelection();if(!p.$isRangeSelection(o))return!1;const s=uo(o.anchor.getNode()),l=uo(o.focus.getNode());if(!s||!l||s.__key!==l.__key)return!1;const{hasSelectedBlock:c,selectedAllDocument:d}=$o(),f=w0(o.getTextContent()),h=w0(s.getTextContent());if(!(f===h&&(c||d)))return!1;r.preventDefault();const y=s.__calloutType??"default",x=_a.$getClipboardDataFromSelection(o)["text/html"],w=s.getTextContent(),k=`<div class="dsd__theme__callout-wrapper" style="background-color: ${s.__backgroundColor}" data-type="${y}">${x}</div>`;return r.clipboardData.setData("text/html",k),r.clipboardData.setData("text/plain",w),!0},p.COMMAND_PRIORITY_LOW))},[e,t])}function nj(){return tj(),null}function Y1(e,n){if(!e.parentElement)return null;if(e.parentElement.classList.contains("ContentEditable__root")){let t=[];if(!CSS.supports("selector(:has(*))"))t=e.querySelectorAll("li:has(+ .dsd__theme__nestedListItem)");else{const r=e.querySelectorAll("li");t=Array.from(r).filter(o=>{const s=o.nextElementSibling;return s&&s.classList.contains("dsd__theme__nestedListItem")})}return setTimeout(()=>{for(let r=0;r<t.length;r++){const o=t[r],s=o.nextElementSibling;if(!s)return;let l=!1,c=!0;Array.from(s.querySelectorAll("li:not(.dsd__theme__nestedListItem):not(:has(+ .dsd__theme__nestedListItem))")).forEach(f=>{const h=f.getAttribute("aria-checked");(h===null||h==="false")&&(c=!1),h==="true"&&(l=!0)}),n.update(()=>{const f=p.$getNearestNodeFromDOMNode(o);f instanceof On&&(!c&&l?(f.setChecked(!1),f.setIndeterminate(!0)):!l&&!c?(f.setChecked(!1),f.setIndeterminate(!1)):c&&(f.setChecked(!0),f.setIndeterminate(!1)))}),l=!1,c=!0}},0),null}return Y1(e.parentElement,n)}const rj=()=>{const e=en();if(!e)return!1;try{const n=ve.$getNearestBlockElementAncestorOrThrow(e);n instanceof On&&!n.__opened&&n.setOpened(!0)}catch{return!1}return!1};function Zb(e,n,t=!1){const r=e.target;if(r===null||!ve.isHTMLElement(r))return;const o=r.firstChild;if(o!=null&&ve.isHTMLElement(o)&&(o.tagName==="UL"||o.tagName==="OL"))return;const s=r.parentNode,l=r.getBoundingClientRect(),c=e.pageX/ve.calculateZoomLevel(r);if(s&&c>l.right){if(t){n();return}if(e.target instanceof HTMLElement){const d=p.getNearestEditorFromDOMNode(s);d!=null&&d.update(()=>{const f=p.$getNearestNodeFromDOMNode(s);f instanceof On&&f.toggleOpen()})}}!s||s.__lexicalListType!=="check"||(r.dir==="rtl"?c<l.right&&c>l.right-20:c>l.left&&c<l.left+20)&&n()}const oj=xu.debounce((e,n)=>{const t=n.getElementByKey(e);t&&Y1(t,n)},100);function u2(e){Zb(e,()=>{if(e.target instanceof HTMLElement){const n=e.target,t=p.getNearestEditorFromDOMNode(n);t!=null&&t.isEditable()&&(t.update(()=>{const r=p.$getNearestNodeFromDOMNode(n);if(It(r)&&(r.selectEnd(),r.toggleChecked()),n.getAttribute("data-list")&&n.getAttribute("aria-checked")==="false"&&n.nextElementSibling){Array.from(n.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(o=>{const s=p.$getNearestNodeFromDOMNode(o);s instanceof On&&s.setChecked(!0)});return}if(n.getAttribute("data-list")&&n.getAttribute("aria-checked")==="true"&&n.nextElementSibling){Array.from(n.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(o=>{const s=p.$getNearestNodeFromDOMNode(o);s instanceof On&&s.setChecked(!1)});return}}),Y1(n,t))}})}function d2(e){Zb(e,()=>{e.preventDefault()},!0)}function sj(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>{const n=e.registerMutationListener(br,t=>{for(const[r,o]of t)o==="updated"&&oj(r,e)},{skipInitialization:!0});return()=>{n()}},[e]),m.useEffect(()=>ve.mergeRegister(e.registerCommand(C1,()=>(ch(e,"check"),!0),p.COMMAND_PRIORITY_LOW),e.registerRootListener((n,t)=>{n!==null&&(n.addEventListener("click",u2),n.addEventListener("pointerdown",d2)),t!==null&&(t.removeEventListener("click",u2),t.removeEventListener("pointerdown",d2))})),[e])}function ij(){return sj(),null}const cu=p.createCommand("INSERT_EMBED_INTEGRATION_COMMAND ");function aj(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([Vi]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return e.registerCommand(cu,n=>{const t=j1("","100%","100%","",!0,n),r=en();return r&&r.getParent()&&(r==null||r.replace(t)),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function lj(e){m.useEffect(()=>{const n=e.hasNodes([Dn,to]),t=e.registerNodeTransform(Ki,o=>{if(!n)return;const s=o.getParent();if(!s||Ru(s)||o.isInline())return;const l=o.getNextSibling(),c=ul(o);l?l.insertBefore(c):s.append(c)}),r=n?e.registerNodeTransform(Dn,o=>{const s=o.getChildren();if(s.some(yn))return;const l=s.some(f=>Yi(f)),c=s.find(Po);if(l||!c)return;const d=Bo();c.insertBefore(d)}):()=>{};return ve.mergeRegister(t,r,e.registerCommand(Ha,o=>{const s=p.$getSelection();if(!p.$isRangeSelection(s))return!1;if(o==="inline")e.update(()=>{const c=p.$getSelection();if(!p.$isRangeSelection(c))return;const d=c.getTextContent().trim(),f=za(d,!0);c.insertNodes([f]),setTimeout(()=>{e.dispatchCommand(Xc,f.getKey())},0)});else if(n)Vk(e);else return!1;return!0},p.COMMAND_PRIORITY_EDITOR))},[e])}function cj(){const[e]=it.useLexicalComposerContext();return lj(e),null}const uj=()=>{var c;const e=p.$getSelection(),n=e.anchor,t=e.focus,r=n.getNode(),o=t.getNode(),s=(c=r.getParent())==null?void 0:c.getIndexWithinParent();return(o instanceof Qn||o.getParent()instanceof Qn)&&(s===0||s||-1)&&n.key!==t.key?(e.removeText(),!0):!1};function uu(e){for(;e;){if(ls(e))return e;const n=e.getParent();if(!n)break;e=n}return null}const f2=e=>e.replace(/\s+/g," ").trim();function dj(e){const n=e.getTextContent();return`<pre data-highlight-language="${e.__language}" data-language="${e.__language}" data-collapsed="${e.__isCollapsed}"><code>${n}</code></pre>`}function fj(e){const n=p.$getSelection();if(!n||!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode(),r=uu(t);if(!r)return!1;const o=r.getChildren().find(yn);return!o||o.getTextContent()!==""?!1:(e.update(()=>{const s=p.$createParagraphNode();r.insertBefore(s),r.remove(),s.selectStart()}),!0)}const hj=e=>{e.update(()=>{let n=p.$getSelection();if(!n||p.$isNodeSelection(n)&&(Ou(n),n=p.$getSelection(),!n))return;if(!p.$isRangeSelection(n)||n.isCollapsed()){dn.$setBlocksType(n,()=>Za(()=>{const s=$f(!1);return s.setLanguage("plain"),s})());return}const t=n.getTextContent(),r=Za(()=>{const s=$f(!1);return s.setLanguage("plain"),s})(),o=r.getChildren().find(s=>yn(s));n.insertNodes([r]),n=p.$getSelection(),p.$isRangeSelection(n)&&o&&yn(o)&&o.append(is(t))})},Gb=p.createCommand("INSERT_CODE_COMMAND");function pj(e){m.useEffect(()=>{const n=e.hasNodes([Dn,to]),t=e.registerNodeTransform(Qn,o=>{if(!n)return;const s=o.getParent();if(!s||ls(s))return;const l=o.getNextSibling(),c=ul(o);l?l.insertBefore(c):s.append(c)}),r=n?e.registerNodeTransform(Dn,o=>{const s=o.getChildren();if(s.some(Po))return;const l=s.some(f=>Yi(f)),c=s.find(yn);if(l||!c)return;const d=Bo();c.insertBefore(d)}):()=>{};return ve.mergeRegister(t,r,e.registerCommand(Gb,()=>n?(e.update(()=>{const o=en(),s=p.$getRoot();if(o){const l=Za(()=>{const d=$f(!1);return d.setLanguage("plain"),d})(),c=l.getLastChild();c&&yn(c)&&c.append(is(o.getTextContent()||"")),o.replace(l),s.getChildrenSize()===1&&l.insertAfter(p.$createParagraphNode())}}),!0):!1,p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_DOWN_COMMAND,o=>{const s=p.$getSelection();let l=null;if(o.shiftKey&&o.code==="Enter"&&p.$isRangeSelection(s)&&(yn(s.anchor.getNode())?l=s.anchor.getNode():Gt.$isCodeHighlightNode(s.anchor.getNode())&&(l=s.anchor.getNode().getParent()),l)){const c=e.registerCommand(p.INSERT_LINE_BREAK_COMMAND,()=>(c(),!0),p.COMMAND_PRIORITY_NORMAL);return e.update(()=>{const d=l==null?void 0:l.getParent(),f=d==null?void 0:d.getNextSibling();f instanceof p.ParagraphNode&&!f.getTextContent()?f.selectStart():d&&d.insertAfter(p.$createParagraphNode()).selectStart()}),!0}return!1},0),e.registerCommand(p.COPY_COMMAND,o=>{if(!o.clipboardData)return!1;const s=p.$getSelection();if(!p.$isRangeSelection(s))return!1;const l=uu(s.anchor.getNode()),c=uu(s.focus.getNode());if(!l||!c||l.getKey()!==c.getKey())return!1;const{hasSelectedBlock:d,selectedAllDocument:f}=$o(),h=f2(s.getTextContent()),g=l.getChildren().find(yn);if(!g)return!1;const A=f2(g.getTextContent());return h===A&&(d||f)?(o.preventDefault(),o.clipboardData.setData("text/html",dj(g)),o.clipboardData.setData("text/plain",g.getTextContent()),!0):!1},p.COMMAND_PRIORITY_LOW))},[e])}function mj(){const[e]=it.useLexicalComposerContext();return pj(e),null}const gj=p.createCommand("INSERT_FORM_COMMAND");function Cj(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!e.hasNodes([fl]))throw new Error("FormPlugin: FormNode not registered on editor");return e.registerCommand(gj,n=>{const t=I1(n);return ve.$insertNodeToNearestRoot(t),!0},p.COMMAND_PRIORITY_EDITOR)},[e]),null}function Aj(e,n){const t=document.createElement("a");t.href=e,t.download=n,t.rel="noopener",document.body.appendChild(t),t.click(),t.remove()}function Vb(e){try{const t=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return t.includes(".")?t:`${t}.png`}catch{return"image"}}async function qb(e,n){const t=await fetch(e);if(!t.ok)throw new Error("fetch failed");const r=await t.blob(),o=URL.createObjectURL(r);try{Aj(o,n)}finally{setTimeout(()=>URL.revokeObjectURL(o),0)}}const Zu=(e,n,t)=>{const r=e.target;if(r&&(r instanceof HTMLElement||r instanceof SVGElement)){let o=null;const s=r.closest(n);for(const c of t)if(o=r.closest(c),o)break;return{lexicalDOMNode:s,isOutside:!(s||o)}}else return{lexicalDOMNode:null,isOutside:!0}};function Qi(e,n,t){const r=m.useRef(null);return r.current=e,m.useMemo(()=>xu.debounce((...o)=>{r.current&&r.current(...o)},n,{maxWait:t}),[n,t])}function h2(e){return e!==null&&"setAlignment"in e&&typeof e.setAlignment=="function"}const Z1=({editor:e,nodeKey:n,opened:t,setOpened:r,t:o,setShown:s,flexBorder:l})=>{var A;const[c,d]=m.useState("left");m.useEffect(()=>{if(!n)return;const b=()=>{e.getEditorState().read(()=>{const y=p.$getNodeByKey(n);h2(y)&&d(y.__alignment||"left")})};return b(),e.registerUpdateListener(()=>{b()})},[e,n]);const f=b=>{n&&e.update(()=>{const y=p.$getNodeByKey(n);h2(y)&&(y.setAlignment(b),s&&s(!1))})},h=i.jsx("span",{style:{color:"var(--mantine-primary-color-filled)",display:"flex",alignItems:"center"},children:i.jsx($,{icon:Jn,size:16})}),g=[{value:"left",icon:XC,label:o("editor.toolbar.left")},{value:"center",icon:Vc,label:o("editor.toolbar.center")},{value:"right",icon:$C,label:o("editor.toolbar.right")}];return i.jsxs(v.Menu,{opened:t,shadow:"md",onChange:r,transitionProps:Fn,children:[i.jsx(v.Menu.Target,{children:i.jsx(Jt,{label:o("editor.toolbar.align"),tooltipDisabled:t,flexBorder:l,icon:((A=g.find(b=>b.value===c))==null?void 0:A.icon)??Vc,iconColor:"var(--mantine-color-gray-text)","aria-label":"Alignment"})}),i.jsx(v.Menu.Dropdown,{p:4,children:g.map(b=>i.jsx(v.Menu.Item,{onClick:()=>f(b.value),leftSection:i.jsx("span",{style:{color:"var(--mantine-color-gray-text)",display:"flex",alignItems:"center"},children:i.jsx($,{icon:b.icon,size:16})}),rightSection:c===b.value?h:void 0,children:b.label},b.value))})]})};function Qb({opened:e,onOpenChange:n,t,onDownload:r,onDelete:o}){return i.jsxs(v.Menu,{opened:e,onChange:n,transitionProps:Fn,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[i.jsx(v.Menu.Target,{children:i.jsx(Jt,{label:t("editor.toolbar.more"),icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":t("editor.toolbar.more")})}),i.jsxs(v.Menu.Dropdown,{p:4,w:164,onMouseDown:s=>s.preventDefault(),children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:i.jsx($,{icon:Ni,size:16})}),onClick:s=>{s.stopPropagation(),r()},children:t("editor.gallery.download")}),i.jsx(v.Menu.Item,{color:"red",leftSection:i.jsx(v.Flex,{align:"center",justify:"center",c:"red.6",children:i.jsx($,{icon:sn,size:16})}),onClick:s=>{s.stopPropagation(),o()},children:t("editor.contextMenu.delete")})]})]})}const Jb=({t:e,src:n,setShown:t,id:r})=>{const[o,{open:s,close:l}]=Ft.useDisclosure(!1),c=m.useMemo(()=>[{id:!r||r==="0"?"":r,Url:n??"",contentType:"",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[n,r]),d=f=>{f?s():l()};return i.jsxs(i.Fragment,{children:[i.jsx(At.AttachmentsGalleryModal,{opened:o,onOpenChange:d,attachments:c}),i.jsx(Jt,{label:e("editor.image.preview"),icon:eA,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{t(!1),s()}})]})},p2=8,bj=({anchorElem:e=document.body})=>{var N;const[n]=it.useLexicalComposerContext(),t=MC.useLexicalEditable(),[r,o]=m.useState(!1),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(null),g=m.useRef(null),[A,b]=m.useState({right:"0",top:"0"}),{t:y}=Ke.useTranslation(),x=Qi(L=>{if(s||L.target instanceof HTMLElement&&L.target.clientWidth<100)return;const{lexicalDOMNode:S,isOutside:O}=Zu(L,"img",["div.media-actions"]);if(O){d(!1);return}if(g.current=S,S){n.update(()=>{const H=p.$getNearestNodeFromDOMNode(S);H&&h({key:H.__key,src:H.__src})});const{y:R,right:B}=e.getBoundingClientRect(),{y:_,right:j}=S.getBoundingClientRect();d(!0);const D=_-R+p2,z=B-j+p2;b(()=>({right:`${z}px`,top:`${D}px`}))}},50,500);m.useEffect(()=>(document.addEventListener("mousemove",x),document.addEventListener("touchstart",x),()=>{d(!1),x.cancel(),document.removeEventListener("mousemove",x),document.removeEventListener("touchstart",x)}),[x]);const w=(L,M)=>{{L();return}},k=m.useCallback(()=>{w(()=>{n.update(()=>{if(!(f!=null&&f.key))return!1;const L=p.$getNodeByKey(f.key);return Pr(L)&&L.remove(),!1})})},[n,f==null?void 0:f.key]),T=m.useCallback(async()=>{const L=f==null?void 0:f.src;if(L)try{await qb(L,Vb(L))}catch{}},[f==null?void 0:f.src]),I=c||!ps?"auto":"none";return Br.createPortal(i.jsxs("div",{className:`media-actions ${c?"visible":""} ${t?"":"media-actions--readonly"}`,style:{right:A.right,top:A.top,pointerEvents:I},children:[i.jsx(Jb,{setShown:d,t:y,src:f==null?void 0:f.src,id:(N=g.current)==null?void 0:N.getAttribute("data-id")}),t&&i.jsxs(i.Fragment,{children:[i.jsx(Z1,{opened:r,setOpened:o,t:y,editor:n,nodeKey:f==null?void 0:f.key,setShown:d}),i.jsx(Qb,{opened:s,onOpenChange:l,t:y,onDownload:()=>void T(),onDelete:k})]})]}),e)};function Xb(e,n){var s,l;const t=(s=n.exportDOM)==null?void 0:s.call(n,e),r=(t==null?void 0:t.element)??null;if(p.$isElementNode(n)){const c=r??document.createElement("div"),d=((l=n.getChildren)==null?void 0:l.call(n))??[];for(const f of d){const h=Xb(e,f);if(h)c.appendChild(h);else{const g=typeof f.getTextContent=="function"?f.getTextContent():"";g&&c.appendChild(document.createTextNode(g))}}return typeof(t==null?void 0:t.after)=="function"&&t.after(c),c}if(r)return typeof(t==null?void 0:t.after)=="function"&&t.after(r),r;const o=typeof n.getTextContent=="function"?n.getTextContent():"";return o?document.createTextNode(o):null}function m2(e,n){const t=e.getRootElement(),r=Array.from(t.querySelectorAll(".selected-block"));if(!r.length)return;let o="",s="";e.getEditorState().read(()=>{e.update(()=>{let l=r.map(d=>p.$getNearestNodeFromDOMNode(d)).filter(d=>!!d);o=l.map(d=>typeof d.getTextContent=="function"?d.getTextContent():"").filter(Boolean).join(`
|
|
203
|
+
`);const c=document.createElement("div");l.forEach(d=>{const f=Xb(e,d);n==="cut"&&d.remove(),f&&c.appendChild(f)}),s=c.innerHTML})}),(o||s)&&yj(o,s)}function yj(e,n){const t=o=>{var s,l;(s=o.clipboardData)==null||s.setData("text/plain",e||" "),n&&((l=o.clipboardData)==null||l.setData("text/html",n)),o.preventDefault()},r=document.createElement("textarea");r.value=e||" ",r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t),document.body.removeChild(r)}const du=(e,n,t,r)=>{if(t==null)return;const o=typeof t=="string"?t:t.getKey();e.update(()=>{const s=p.$getNodeByKey(o);if(s)if(r==="layout"){const l=s.getParent(),c=l.getParent();Bi(e,l,c),n("delete")}else{const l=s.getParent();if(l instanceof Mn&&l.getChildren().length===2){const c=l,d=l.getParent();if(s.__type==="image"){c.append(p.$createParagraphNode());return}Bi(e,c,d)}Su(e,s),n("delete")}})},xj=e=>{const n=e._rootElement;return Array.from(n.querySelectorAll(".selected-block"))},fu=(e,n,t,r=!1)=>{if(n==null)return;const o=typeof n=="string"?n:n.getKey();e.update(()=>{const s=p.$getNodeByKey(o);if(!s)return;const l=s.getParent();if(!l)return;const c=e.getElementByKey(l.getKey());c&&wE(e,c,t,r)})},G1=(e,n,t,r)=>{if(r==="layout")fu(e,t,"right",!0);else{const o=e._rootElement,s=Array.from(o.querySelectorAll(".selected-block")).reverse();s.length&&(e.update(()=>{const l=p.$getNearestNodeFromDOMNode(s[0]);s.forEach(c=>{let d=p.$getNearestNodeFromDOMNode(c);d&&(l==null||l.insertAfter(Ir(d))),Do(c)})}),n())}},Ti=({label:e,icon:n,dataNameAttribute:t})=>i.jsxs("div",{className:"custom-menu-item","data-test-id":t||"color-picker",children:[i.jsxs("div",{children:[n,i.jsx("span",{children:e})]}),i.jsx($,{className:"custom-menu-item__chevron",icon:Bs,size:16})]}),vj=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],wj=16;function kj({color:e,onChange:n}){const{t}=Ke.useTranslation(),r=e===""?"inherit":e,o=m.useMemo(()=>vj.map(({value:l,nameKey:c,border:d})=>({value:l,label:t(`editor.toolbar.colorPicker.names.${c}`),border:d})),[t]),s=m.useMemo(()=>[{key:"columnBackground",label:t("editor.toolbar.colorPicker.background"),type:"highlight",colors:o,value:r}],[r,t,o]);return i.jsxs(v.Menu,{trigger:ps?"hover":"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},shadow:"md",children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{children:i.jsx(Ti,{label:t("editor.column.changeColor"),dataNameAttribute:"layout-column-color",icon:i.jsx($,{icon:ss,size:wj,color:"var(--mantine-color-gray-6)"})})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:l=>l.preventDefault(),style:{width:232},children:i.jsx(At.ColorPicker.List,{sections:s,onChange:n})})]})}function Sj({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:s,t:l,onClose:c}){const{onTrack:d}=m.useContext(ft),f=()=>{},h=m.useCallback(A=>{const y=A===(t===""?"inherit":t)?"inherit":A;e.update(()=>{const x=p.$getNodeByKey(n);if(!x)return;const w=x.getParent();w instanceof Mn&&w.setLayoutBackground(y)}),r(y)},[e,n,t,r]),g=()=>{e.update(()=>{const A=p.$getNodeByKey(n);if(!A)return;const b=A.getParent();if(!(b instanceof Mn))return;for(const x of[...b.getChildren()])x.remove();const y=p.$createParagraphNode();b.append(y),b.append(mr()),y.selectStart()})};return i.jsxs(i.Fragment,{children:[i.jsx(kj,{color:t,onChange:h}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{disabled:o.left,onClick:()=>{Pi(e,n,"left"),Fs(e),c()},leftSection:i.jsx($,{icon:Xh,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-left",children:l("editor.column.moveLeft")}),i.jsx(v.Menu.Item,{disabled:o.right,onClick:()=>{Pi(e,n,"right"),Fs(e),c()},leftSection:i.jsx($,{icon:$h,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-move-right",children:l("editor.column.moveRight")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{disabled:s,onClick:()=>{d==null||d("block_duplicated"),G1(e,f,n,"layout"),c()},leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-duplicate",children:l("editor.column.duplicate")}),i.jsx(v.Menu.Item,{onClick:()=>{g(),c()},leftSection:i.jsx($,{icon:l1,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"layout-column-menu-clear-content",children:l("editor.column.clearContent")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{onClick:()=>{d==null||d("block_deleted"),du(e,f,n,"layout"),c()},color:"var(--mantine-color-red-6)",leftSection:i.jsx($,{icon:sn,size:16}),"data-test-id":"layout-column-menu-delete",children:l("editor.column.deleteColumn")})]})}const fi="#ced4da0d",Ej=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],Tj=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],Ts=16,Mj=({editor:e,anchorChildKey:n,layoutColor:t,setLayoutColor:r,disabledMoveColumnButtons:o,duplicateDisabled:s,onClose:l,children:c})=>{const{t:d}=Ke.useTranslation(),{onTrack:f}=m.useContext(ft),[h,g]=Ft.useDisclosure(!1),[A,b]=Ft.useDisclosure(!1),y=t===""?"inherit":t,x=m.useMemo(()=>Ej.map(({value:O,nameKey:R})=>({value:O,label:d(`editor.toolbar.colorPicker.names.${R}`)})),[d]),w=m.useMemo(()=>Tj.map(({value:O,nameKey:R,border:B})=>({value:O,label:d(`editor.toolbar.colorPicker.names.${R}`),border:B})),[d]),k=m.useMemo(()=>[{key:"textColor",label:d("editor.toolbar.colorPicker.textColors"),type:"text",colors:x,value:"inherit"},{key:"columnBackground",label:d("editor.toolbar.colorPicker.textHighlights"),type:"highlight",colors:w,value:y}],[y,d,x,w]),T=m.useCallback((O,R)=>{if(R==="columnBackground"){const B=O===y?"inherit":O;e.update(()=>{const _=p.$getNodeByKey(n);if(!_)return;const j=_.getParent();j instanceof Mn&&j.setLayoutBackground(B)}),r(B)}},[e,n,y,r]),I=m.useCallback(()=>{e.update(()=>{const O=p.$getNodeByKey(n);if(!O)return;const R=O.getParent();if(!(R instanceof Mn))return;for(const _ of[...R.getChildren()])_.remove();const B=p.$createParagraphNode();R.append(B),R.append(mr()),B.selectStart()})},[e,n]),N=()=>{},L=m.useCallback(()=>{g.open()},[g]),M=m.useCallback(()=>{g.close(),b.open()},[g,b]),S=m.useCallback(()=>{b.close()},[b]);return i.jsxs(i.Fragment,{children:[i.jsx("div",{onClick:L,style:{display:"contents"},children:c}),i.jsx(Bt,{opened:h,onClose:g.close,title:d("editor.column.mobile.columnActions","Actions"),children:i.jsxs(v.Stack,{gap:16,p:0,children:[i.jsx(v.Stack,{gap:0,style:{borderRadius:8,overflow:"hidden"},children:i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:fi,radius:8,leftSection:i.jsx($,{icon:ss,size:Ts}),rightSection:i.jsx($,{icon:Bs,size:Ts}),onClick:M,children:d("editor.column.changeColor")})}),i.jsxs(v.Stack,{gap:2,style:{borderRadius:8,overflow:"hidden"},children:[i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:fi,radius:8,leftSection:i.jsx($,{icon:Xh,size:Ts}),disabled:o.left,onClick:()=>{Pi(e,n,"left"),Fs(e),g.close(),l()},children:d("editor.column.moveLeft")}),i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:fi,radius:8,leftSection:i.jsx($,{icon:$h,size:Ts}),disabled:o.right,onClick:()=>{Pi(e,n,"right"),Fs(e),g.close(),l()},children:d("editor.column.moveRight")})]}),i.jsxs(v.Stack,{gap:2,style:{borderRadius:8,overflow:"hidden"},children:[i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:fi,radius:8,leftSection:i.jsx($,{icon:sr,size:Ts}),disabled:s,onClick:()=>{f==null||f("block_duplicated"),G1(e,N,n,"layout"),g.close(),l()},children:d("editor.column.duplicate")}),i.jsx(v.Button,{variant:"subtle",color:"var(--mantine-color-text)",justify:"flex-start",fullWidth:!0,bg:fi,radius:8,leftSection:i.jsx($,{icon:l1,size:Ts}),onClick:()=>{I(),g.close(),l()},children:d("editor.column.clearContent")})]}),i.jsx(v.Stack,{gap:0,style:{borderRadius:8,overflow:"hidden"},children:i.jsx(v.Button,{variant:"subtle",color:"red",justify:"flex-start",fullWidth:!0,bg:fi,radius:8,leftSection:i.jsx($,{icon:sn,size:Ts}),onClick:()=>{f==null||f("block_deleted"),du(e,N,n,"layout"),g.close(),l()},children:d("editor.column.deleteColumn")})})]})}),i.jsx(Bt,{opened:A,onClose:S,title:d("editor.toolbar.colorPicker.textColor","Text color"),children:i.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:i.jsx(At.ColorPicker.List,{sections:k,onChange:T})})})]})},$b=-16,vh=31,Lj=6,Nj=8;function jj(e){if("clientX"in e)return{x:e.clientX,y:e.clientY};const n=e.touches[0];return n?{x:n.clientX,y:n.clientY}:null}function Rj(e,n){const t=jj(e);if(!t)return!1;const r=n.getBoundingClientRect(),o=r.top+$b-Lj,s=r.right+vh+Nj;return t.x>=r.left&&t.x<=s&&t.y>=o&&t.y<=r.bottom}function Ij({anchorElem:e}){const[n]=it.useLexicalComposerContext(),{disable:t}=m.useContext(ft),{t:r}=Ke.useTranslation(),[o,s]=m.useState(!1),[l,c]=m.useState(null),[d,f]=m.useState(null),[h,g]=m.useState(!1),[A,b]=m.useState("inherit"),[y,x]=m.useState({left:"0px",top:"0px",width:"0px"}),w=m.useRef(null);m.useEffect(()=>{w.current=l},[l]);const k=d??l,T=m.useCallback(B=>{if(!e)return;const{left:_,top:j}=e.getBoundingClientRect(),{left:D,top:z,width:H}=B.getBoundingClientRect();x({left:`${D-_}px`,top:`${z-j+$b}px`,width:`${H+vh}px`})},[e]);m.useEffect(()=>{k&&n.read(()=>{const B=p.$getNearestNodeFromDOMNode(k);B instanceof Mn&&b(B.__backgroundColor||"inherit")})},[k,n]),m.useEffect(()=>{h||f(null)},[h]);const I=m.useMemo(()=>{if(!k)return null;let B=null;return n.read(()=>{var j;const _=p.$getNearestNodeFromDOMNode(k);_ instanceof Mn&&(B=((j=_.getFirstChild())==null?void 0:j.getKey())??null)}),B},[k,n]),N=Qi(B=>{if(h||!e)return;const{lexicalDOMNode:_,isOutside:j}=Zu(B,".dsd__theme__layoutItem",["div.editor-layout-column-hover","div.editor-layout-column-hover__dropdown","div.mantine-Menu-dropdown","div.mantine-Popover-dropdown","div.mobile-drawer","section.mantine-Drawer-content"]);if(j){if(w.current&&Rj(B,w.current))return;s(!1),c(null);return}if(!_)return;const D=n.getRootElement();if(!(D!=null&&D.contains(_))||!_.closest(".dsd__theme__layoutContainer")){s(!1),c(null);return}let z=!1;if(n.read(()=>{z=p.$getNearestNodeFromDOMNode(_)instanceof Mn}),!z){s(!1),c(null);return}c(_),s(!0),T(_)},50,500);m.useEffect(()=>{if(t||!e){s(!1),c(null),g(!1),f(null);return}return document.addEventListener("mousemove",N),document.addEventListener("touchstart",N),()=>{s(!1),N.cancel(),document.removeEventListener("mousemove",N),document.removeEventListener("touchstart",N)}},[e,N,t]);const L=m.useMemo(()=>{const B={isDisabledAddColumnButton:!0,isMaxColumns:!1,disabledMoveColumnButtons:{left:!0,right:!0}};if(!k)return B;const _=k.parentElement;if(!(_!=null&&_.classList.contains("dsd__theme__layoutContainer")))return B;const j=_.children,D=Array.from(j).indexOf(k);return{isDisabledAddColumnButton:j.length>=4,isMaxColumns:j.length>=4,disabledMoveColumnButtons:{left:D<=0,right:D>=j.length-1}}},[k]),M=m.useCallback(()=>{!I||L.isDisabledAddColumnButton||(fu(n,I,"right"),s(!1))},[I,L.isDisabledAddColumnButton,n]),S=o?"auto":"none";if(t||!e)return null;const O=["editor-layout-column-hover",o?"editor-layout-column-hover--visible":""].filter(Boolean).join(" "),R={left:y.left,top:y.top,width:y.width,pointerEvents:S,"--editor-layout-column-hover-add-outset":`${vh}px`};return Br.createPortal(i.jsx(v.Box,{className:O,style:R,children:o&&k?i.jsxs(v.Box,{className:"editor-layout-column-hover__inner",children:[i.jsx(v.Box,{className:"editor-layout-column-hover__menu-slot",children:st&&I?i.jsx(Mj,{editor:n,anchorChildKey:I,layoutColor:A,setLayoutColor:b,disabledMoveColumnButtons:L.disabledMoveColumnButtons,duplicateDisabled:L.isDisabledAddColumnButton,onClose:()=>s(!1),children:i.jsx(v.ActionIcon,{variant:"transparent",type:"button",className:"editor-layout-column-hover__menu-trigger","aria-label":r("editor.hoverOptions.clickAction"),radius:"sm",p:0,children:i.jsx($,{icon:qn,size:18})})}):i.jsxs(v.Menu,{opened:h,onChange:g,onOpen:()=>{w.current&&f(w.current)},position:"bottom",shadow:"md",withinPortal:!0,transitionProps:Fn,closeOnItemClick:!1,classNames:{dropdown:"editor-layout-column-hover__dropdown"},children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{variant:"transparent",type:"button",className:"editor-layout-column-hover__menu-trigger","aria-label":r("editor.hoverOptions.clickAction"),radius:"sm",p:0,children:i.jsx($,{icon:qn,size:18})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:B=>B.stopPropagation(),children:I?i.jsx(Sj,{editor:n,anchorChildKey:I,layoutColor:A,setLayoutColor:b,disabledMoveColumnButtons:L.disabledMoveColumnButtons,duplicateDisabled:L.isDisabledAddColumnButton,t:r,onClose:()=>g(!1)}):null})]})}),i.jsx(v.Tooltip,{label:L.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),children:i.jsx(v.Box,{component:"span",className:"editor-layout-column-hover__add-column-wrap",children:i.jsx(v.ActionIcon,{variant:"transparent",type:"button",size:16,radius:"sm",className:"editor-layout-column-hover__add-column","aria-label":L.isMaxColumns?r("editor.column.addRightMaxReached"):r("editor.column.addRight"),disabled:L.isDisabledAddColumnButton,p:0,onMouseDown:B=>{B.stopPropagation(),B.preventDefault()},onClick:M,children:i.jsx($,{icon:_8,size:16})})})})]}):null}),e)}const V1=p.createCommand(),Dj=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ve.$findMatchingParent(t,au),o=ve.$findMatchingParent(t,jr),{lexicalNode:s}=Ri(t,e,{"layout-item":!0});if(s&&!s.getTextContent()&&r)return Fu(e,r,o)&&jr(s)}return!0},Oj=e=>{const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.focus.getNode().getParent(),r=t==null?void 0:t.getParent();if((t==null?void 0:t.getTextContent())===`
|
|
204
|
+
|
|
205
|
+
`&&(p.$isParagraphNode(t==null?void 0:t.getChildren()[0])||p.$isParagraphNode(t==null?void 0:t.getChildren()[1])))return Bi(e,t,r)}return!1};p.createCommand();function Pj(e,n,t){const r=e.trim().split(/\s+/).filter(Boolean);if(r.length!==t)return e;const o=[];for(const l of r){const c=l.match(/^([\d.]+)px$/i);if(!c)return e;o.push(parseFloat(c[1]))}if(o.some(l=>!Number.isFinite(l)))return e;const s=n>0?n:1;return o.map((l,c)=>{const d=l/s*100;return`minmax(${c?100:50}px,${cb(d)}%)`}).join(" ")}function Bj(e){const n=getComputedStyle(e),t=n.columnGap;if(t&&t!=="normal"){const o=parseFloat(t);if(Number.isFinite(o))return o}const r=n.gap;if(r&&r!=="normal"){const o=r.trim().split(/\s+/),s=o.length>1?o[1]:o[0],l=parseFloat(s);if(Number.isFinite(l))return l}return 0}function _j({anchorElem:e}={}){const[n]=it.useLexicalComposerContext();return m.useEffect(()=>{if(!n.hasNodes([Or,Mn,$r]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return ve.mergeRegister(n.registerCommand(V1,t=>(n.update(()=>{const r=zu(t),o=Fj(t);for(let l=0;l<o;l++)r.append(lo().append(p.$createParagraphNode()).append(mr()));const s=en();s&&(s==null||s.replace(r),r.selectStart())}),!0),p.COMMAND_PRIORITY_EDITOR),n.registerCommand(p.KEY_BACKSPACE_COMMAND,()=>{var l,c;const t=p.$getSelection();if(!p.$isRangeSelection(t))return!1;const r=(l=t.focus)==null?void 0:l.getNode(),o=(c=ve.$findMatchingParent(r,jr))==null?void 0:c.getKey(),s=r==null?void 0:r.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(s instanceof Or){const f=mr(),h=s.getLastChild();h==null||h.append(f)}const d=o?p.$getNodeByKey(o):null;if(d!=null&&d.getChildren&&d.getChildren().length===1){const f=p.$createParagraphNode();d.append(f),f.selectStart()}})},50),!1},p.COMMAND_PRIORITY_CRITICAL),n.registerNodeTransform(Mn,t=>{if(!t.isAttached())return;const r=t.getParent();if(!au(r)){for(const o of t.getChildren())t.insertBefore(o);t.remove()}}),n.registerNodeTransform(Or,t=>{if(!t.isAttached())return;const r=t.getChildren();if(!r.every(jr)){for(const o of r)t.insertBefore(o);t.remove()}}))},[n]),m.useEffect(()=>{let t=!1,r=0,o=null,s=0,l=[],c=0,d=null,f=null;const h=b=>{const y=b.target.closest(".dsd__theme__layoutItem"),x=b.target.closest(".dsd__theme__layoutDivider");if(y&&x){b.preventDefault(),n.update(()=>{const w=p.$getNearestNodeFromDOMNode(y);w&&w.selectStart()}),g(y,b),x.classList.add("dragging"),d=b.pointerId,f=x;try{x.setPointerCapture(b.pointerId)}catch{}}};function g(b,y){t=!0;const x=document.querySelector("code");x&&(x.style.pointerEvents="none"),r=y.clientX,o=b.closest(".dsd__theme__layoutContainer");const w=o.querySelectorAll(".dsd__theme__layoutItem");c=w.length;const k=Bj(o);s=o.clientWidth-k*Math.max(0,w.length-1);const T=Array.from(w).map(B=>B.getBoundingClientRect().width),I=T.reduce((B,_)=>B+_,0),N=I>0?s/I:1,L=T.map(B=>B*N),M=s-L.reduce((B,_)=>B+_,0);L.length>0&&(L[L.length-1]+=M),l=L,o.style.gridTemplateColumns=l.map(B=>`${B}px`).join(" ");const S=Array.from(w).indexOf(b),O=B=>A(B,S),R=B=>{var D;t=!1,n.dispatchCommand(nh,"up"),x&&x.style.pointerEvents==="none"&&(x.style.pointerEvents="auto");const _=document.querySelector(".dsd__theme__layoutDivider.dragging");if(_==null||_.classList.remove("dragging"),d!==null&&f)try{f.releasePointerCapture(d)}catch{}d=null,f=null;const j=o??((D=B.target)==null?void 0:D.closest(".dsd__theme__layoutContainer"));if(j&&c>0){const z=Pj(j.style.gridTemplateColumns,j.clientWidth,c);j.style.gridTemplateColumns=z,n.update(()=>{p.$getNearestNodeFromDOMNode(j).setTemplateColumns(z)})}o=null,l=[],c=0,document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",R),document.removeEventListener("pointercancel",R)};document.addEventListener("pointermove",O),document.addEventListener("pointerup",R),document.addEventListener("pointercancel",R)}function A(b,y,x){if(!t||!y)return;n.dispatchCommand(nh,"move");const w=b.clientX-r;if(Math.abs(w)<1)return;const k=y===1?50:100,T=l[y-1]+l[y],I=Math.max(k,Math.min(T-100,l[y-1]+w)),N=T-I,L=[...l];L[y-1]=I,L[y]=N;const M=document.querySelector(".dsd__theme__layoutDivider.dragging");if(M&&o){const S=o.clientHeight+"px";M.style.getPropertyValue("--height-column")!==S&&requestAnimationFrame(()=>{M.style.setProperty("--height-column",S)})}o.style.gridTemplateColumns=L.map(S=>`${S}px`).join(" ")}return document.body.addEventListener("pointerdown",h),()=>document.body.removeEventListener("pointerdown",h)},[n]),i.jsx(Ij,{anchorElem:e??null})}function Fj(e){return e.replace(/\(([^)]+)\)/g,t=>t.replace(/\s+/g,"")).trim().split(/\s+/).length}function Wj(){const[e]=it.useLexicalComposerContext(),{t:n}=Ke.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,disable:o}=m.useContext(ft);return y7(e,!o),m.useEffect(()=>{if(!e.hasNodes([Gs]))throw new Error("MusicPlugin: MusicNode not registered on editor");const s=l=>{const c=l.filter(d=>d.type.includes("audio/"));if(c.length){if(l.length>1){At.showMessageNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}if(c[0].size>r*1024*1024){At.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}e.dispatchCommand(zc,"upload"),setTimeout(()=>{e.dispatchCommand(IA,c)})}};return t!=null&&t.current&&(t.current.insertMusics=s),ve.mergeRegister(e.registerCommand(zc,l=>{const d=p1(l==="upload"?"":l,l!=="upload");return _i(d),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.PASTE_COMMAND,l=>{var f,h,g,A;if(o||e.getEditorState().read(()=>{const b=p.$getSelection();if(!p.$isRangeSelection(b))return!1;const y=b.anchor.getNode();return Gt.$isCodeNode(y)||Gt.$isCodeNode(y.getParent())}))return!1;const d=((h=(f=l.clipboardData)==null?void 0:f.getData("text/plain"))==null?void 0:h.trim())||((A=(g=l.clipboardData)==null?void 0:g.getData("text"))==null?void 0:A.trim());return!d||!OA(d)?!1:(l.preventDefault(),l.stopPropagation(),e.dispatchCommand(zc,d),!0)},p.COMMAND_PRIORITY_CRITICAL))},[o,e,t,r,n]),null}const wh=p.createCommand("INSERT_PAGE_LINK_COMMAND");function kh(e,n){var r,o;if(!n)return e;const t=[];for(const s of e){if(s.id===n){(r=s.children)!=null&&r.length&&t.push(...kh(s.children,n));continue}t.push({...s,children:(o=s.children)!=null&&o.length?kh(s.children,n):void 0})}return t}function e5(e,n){var o;const t=n.trim().toLowerCase();if(!t)return e;const r=[];for(const s of e){const l=s.title.toLowerCase().includes(t)||s.id.toLowerCase().includes(t),c=(o=s.children)!=null&&o.length?e5(s.children,n):[];(l||c.length>0)&&r.push({...s,children:c.length>0?c:void 0})}return r}function zj(e){const{linkablePages:n,pages:t,pageId:r,disable:o}=m.useContext(ft),[s,l]=m.useState(!1),[c,d]=m.useState(null),[f,h]=m.useState(""),g=m.useRef(null),A=m.useRef(null),b=m.useRef(null),y=m.useRef(null),x=n??t,w=m.useMemo(()=>kh(x,r),[x,r]),k=!f.trim(),T=m.useMemo(()=>k?w:e5(w,f),[w,f,k]),I=()=>{if(g.current&&A.current===!1){const L=g.current;e.update(()=>{const M=p.$getNodeByKey(L);if(!M||!(M instanceof No))return;const S=M;S.__placeholder&&S.remove()})}l(!1),d(null),g.current=null,A.current=null};return m.useEffect(()=>{if(s)return ll(),()=>{cl()}},[s]),m.useEffect(()=>{if(!s||!c)return;const L=y.current;if(!L)return;const M=L.value.length;L.focus(),L.setSelectionRange(M,M)},[s,c]),m.useEffect(()=>{if(!e.hasNodes([No]))throw new Error("PageLinkPlugin: PageLinkNode not registered on editor");return e.registerCommand(wh,L=>L==="inline"?(e.update(()=>{const M=p.$getSelection();if(!p.$isRangeSelection(M))return;const S=mi({id:"",title:"",icon:null,inlineElement:!0,placeholder:!1});M.insertNodes([S]),g.current=S.getKey()}),A.current=!0,h(""),l(!0),!0):L!==void 0?(e.update(()=>{const M=mi({id:L.id,title:L.title,icon:L.icon}),S=en();S==null||S.replace(M)}),!0):(e.update(()=>{const M=p.$getSelection();if(!p.$isRangeSelection(M))return;const S=mi({id:"",title:"",icon:null,inlineElement:!0,placeholder:!0});M.insertNodes([S]),g.current=S.getKey()}),A.current=!1,h(""),l(!0),!0),p.COMMAND_PRIORITY_EDITOR)},[e]),m.useEffect(()=>{if(!s||!g.current)return;const L=g.current;let M=0,S=0;const O=()=>{const R=e.getElementByKey(L);if(R){const B=R.querySelector('[data-page-link-anchor="true"]')||R;return d(B.getBoundingClientRect()),!0}return!1};return M=requestAnimationFrame(()=>{O()||(S=window.setTimeout(()=>O(),50))}),()=>{M&&cancelAnimationFrame(M),S&&window.clearTimeout(S)}},[s,e]),m.useEffect(()=>{if(!s||!g.current)return;const L=g.current,M=()=>{const O=e.getElementByKey(L);if(!O)return;const R=O.querySelector('[data-page-link-anchor="true"]')||O;d(R.getBoundingClientRect())};M(),window.addEventListener("scroll",M,!0);const S=window.visualViewport;return S==null||S.addEventListener("scroll",M),S==null||S.addEventListener("resize",M),()=>{window.removeEventListener("scroll",M,!0),S==null||S.removeEventListener("scroll",M),S==null||S.removeEventListener("resize",M)}},[e,s]),m.useEffect(()=>{if(!s||st)return;const L=M=>{var O;const S=M.target;(O=b.current)!=null&&O.contains(S)||I()};return document.addEventListener("mousedown",L,!0),()=>document.removeEventListener("mousedown",L,!0)},[s]),m.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,L=>(s||o||e.update(()=>{const M=L.target;if(!M)return;const S=p.$getNearestNodeFromDOMNode(M);if(!S||!B0(S))return;const O=S;if(O.__placeholder)A.current=!1;else if(O.isInline()){if(O.getPageId().trim()!=="")return;A.current=!0}else return;g.current=S.getKey(),h(""),l(!0)}),!1),p.COMMAND_PRIORITY_LOW),[e,s,h]),m.useEffect(()=>{if(!n||n.length===0)return;const L={},M=[...n];for(;M.length;){const S=M.pop();L[S.id]={title:S.title,icon:S.icon},S.children&&S.children.length&&M.push(...S.children)}e.update(()=>{const O=[...p.$getRoot().getChildren()];for(;O.length;){const R=O.pop();if(B0(R)){const B=R.getPageId(),_=L[B];if(_){const j=R.getMeta();(j.title!==_.title||j.icon!==_.icon)&&R.setMeta(_.title,_.icon)}}p.$isElementNode(R)&&O.push(...R.getChildren())}})},[e,n]),{pickerOpen:s,anchorRect:c,searchQuery:f,setSearchQuery:h,filteredPages:T,showAsTree:k,dropdownRef:b,inputRef:y,handleSelectPage:L=>{const M=g.current;if(!M){I();return}e.update(()=>{const S=p.$getNodeByKey(M);if(!S)return;if(S instanceof No){if(A.current){const B=S.getWritable();B.__pageId=L.id,B.setMeta(L.title,L.icon)}else{const B=S,_=B.getTopLevelElementOrThrow(),j=mi({id:L.id,title:L.title,icon:L.icon,inlineElement:!1}),D="getChildren"in _?_.getChildren():[];D.length===1&&D[0]===B?_.replace(j):(_.insertAfter(j),B.remove())}return}const O=mi({id:L.id,title:L.title,icon:L.icon,inlineElement:!1});S.getTopLevelElementOrThrow().insertAfter(O)}),I()},closePicker:I}}function t5(e){const{onConfirm:n,onCancel:t}=e;return r=>{if(r.stopPropagation(),r.key==="Enter"&&!r.shiftKey&&!r.ctrlKey&&!r.metaKey&&n){r.preventDefault(),n();return}r.key==="Escape"&&t&&(r.preventDefault(),t())}}const Uj="_dropdown_pjj0g_1",Kj="_searchInput_pjj0g_39",Hj="_textInputRoot_pjj0g_49",Yj="_mobileBody_pjj0g_57",Zj="_mobileList_pjj0g_71",Gj="_scrollViewport_pjj0g_81",Vj="_item_pjj0g_107",qj="_itemNested_pjj0g_109",Qj="_treeChildren_pjj0g_133",Jj="_pageLinkItemTitle_pjj0g_167",Xj="_listWrap_pjj0g_217",$j="_empty_pjj0g_251",rr={dropdown:Uj,searchInput:Kj,textInputRoot:Hj,mobileBody:Yj,mobileList:Zj,scrollViewport:Gj,item:Vj,itemNested:qj,treeChildren:Qj,pageLinkItemTitle:Jj,listWrap:Xj,empty:$j};function eR({page:e,onSelect:n,level:t}){const r=t>0;return i.jsx(v.Box,{className:r?rr.itemNested:rr.item,style:{paddingLeft:r?t*10:void 0},role:"button",tabIndex:0,"aria-label":e.title||void 0,onClick:()=>n(e),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),n(e))},children:i.jsx(iu,{page:{...e,onClick:void 0},titleClassName:rr.pageLinkItemTitle})})}function n5({pages:e,onSelect:n,level:t=0}){const r=[...e].sort((o,s)=>(o.order??0)-(s.order??0));return i.jsx(i.Fragment,{children:r.map(o=>i.jsxs(m.Fragment,{children:[i.jsx(eR,{page:o,onSelect:n,level:t}),o.children&&o.children.length>0&&i.jsx("div",{className:rr.treeChildren,"data-level":t,children:i.jsx(n5,{pages:o.children,onSelect:n,level:t+1})})]},o.id))})}const g2=35,Lf=5,tR=8,nR=8;function rR(e){const{pickerOpen:n,anchorRect:t,searchQuery:r,setSearchQuery:o,filteredPages:s,dropdownRef:l,inputRef:c,handleSelectPage:d,closePicker:f}=e,{t:h}=Ke.useTranslation(),[g,A]=m.useState(null);m.useLayoutEffect(()=>{if(st)return;if(!n||!t){A(null);return}const I=l.current;if(!I)return;const N=()=>{const S=t,O=I.getBoundingClientRect(),R=O.height,B=O.width,_=window.visualViewport,j=(_==null?void 0:_.height)??window.innerHeight,D=(_==null?void 0:_.width)??window.innerWidth,z=nR,H=tR,F=S.top+g2,Z=S.top-H-R,q=F+Lf,ee=q+R<=j-z,Q=Z>=z;let J,xe;if(ee)J=F,xe=!0;else if(Q)J=Z,xe=!1;else{const Te=j-z-q,Fe=S.top-H-z;xe=Te>=Fe,J=xe?F:Z,J=Math.max(z,Math.min(J,j-R-z))}xe&&(J+=Lf);let we=S.left;we+B>D-z&&(we=D-B-z),we=Math.max(z,we),A({top:J,left:we})},L=window.visualViewport;N();const M=new ResizeObserver(N);return M.observe(I),window.addEventListener("scroll",N,!0),L==null||L.addEventListener("resize",N),L==null||L.addEventListener("scroll",N),()=>{M.disconnect(),window.removeEventListener("scroll",N,!0),L==null||L.removeEventListener("resize",N),L==null||L.removeEventListener("scroll",N)}},[t,s,n]);const b=I=>{d(I)},y=t5({onCancel:f}),x=s.length===0?i.jsx(v.Box,{component:"div",className:rr.empty,children:i.jsx(v.Text,{size:"sm",c:"dimmed",children:h("editor.menu.other.pageLink.empty")})}):i.jsx(n5,{pages:s,onSelect:b});if(st)return i.jsx(Bt,{opened:n,onClose:f,title:h("editor.menu.other.pageLink.drawerTitle","Add content"),children:i.jsxs(v.Box,{className:rr.mobileBody,children:[i.jsx(v.TextInput,{placeholder:h("editor.menu.other.pageLink.searchPlaceholder"),value:r,onChange:I=>o(I.currentTarget.value),onKeyDown:y,leftSection:i.jsx($,{size:16,icon:Jc}),ref:c,classNames:{input:rr.searchInput,root:rr.textInputRoot}}),i.jsx(v.Box,{className:rr.mobileList,children:x})]})});if(!n||!t)return null;const w=(g==null?void 0:g.top)??t.top+g2+Lf,k=(g==null?void 0:g.left)??t.left,T=i.jsxs(v.Paper,{ref:l,className:rr.dropdown,style:{position:"fixed",top:w,left:k,width:400,maxWidth:"100%"},shadow:"md",withBorder:!1,children:[i.jsx(v.TextInput,{placeholder:h("editor.menu.other.pageLink.searchPlaceholder"),value:r,onChange:I=>o(I.currentTarget.value),onKeyDown:y,leftSection:i.jsx($,{size:16,icon:Jc}),ref:c,classNames:{input:rr.searchInput,root:rr.textInputRoot}}),i.jsx(v.ScrollArea.Autosize,{mah:250,viewportProps:{tabIndex:-1},scrollbars:"y",offsetScrollbars:"y",classNames:{viewport:rr.scrollViewport},children:i.jsx(v.Box,{className:rr.listWrap,children:x})})]});return Br.createPortal(T,document.body)}function oR(){const[e]=it.useLexicalComposerContext(),n=zj(e);return i.jsx(rR,{...n})}const r5=p.createCommand("INSERT_SWAGGER_COMMAND");function sR(e){if(!e.hasNodes([pl]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return e.registerCommand(r5,n=>{const t=en();if(t&&t.getParent()){const r=D1(n,"",!0);t==null||t.replace(r)}return!0},p.COMMAND_PRIORITY_EDITOR)}function iR(){const[e]=it.useLexicalComposerContext();return m.useEffect(()=>sR(e),[e]),null}function aR(e){const n=p.$getSelection();if(p.$isRangeSelection(n)&&n.isCollapsed()){const t=n.anchor.getNode(),r=ve.$findMatchingParent(t,St),o=ve.$findMatchingParent(t,Pe);return Fu(e,r,o)}return!0}function C2(e){return(e==null?void 0:e.tagName)==="TABLE"}function A2(e){let n=1;for(;e;)n*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return n}function b2(e){const n=e.getShape();return{columns:n.toX-n.fromX+1,rows:n.toY-n.fromY+1}}function lR(e){const n=e.getNodes(),t=[];let r=null,o=null,s=0;for(let l=0;l<n.length;l++){const c=n[l];if(Pe(c)){const d=c.getParentOrThrow();if(fR(_t(d),"Expected CellNode to have a RowNode parent"),r!==d){if(o!==null&&s!==o)return!1;r!==null&&(o=s),r=d,s=0}const f=c.__colSpan;for(let h=0;h<f;h++)t[s+h]===void 0&&(t[s+h]=0),t[s+h]+=c.__rowSpan;s+=f}}return(o===null||s===o)&&t.every(l=>l===t[0])}function cR(){const e=p.$getSelection();if(p.$isRangeSelection(e)&&!e.isCollapsed()||xt(e)&&!e.anchor.is(e.focus)||!p.$isRangeSelection(e)&&!xt(e))return!1;const[n]=Tn(e.anchor);return n.__colSpan>1||n.__rowSpan>1}function yc(e){if(e.getChildrenSize()!==1)return!1;const n=e.getFirstChildOrThrow();return!(!p.$isParagraphNode(n)||!n.isEmpty())}function y2(e){const n=e.getLastDescendant();In(n)?n.select():p.$isElementNode(n)?n.selectEnd():n!==null&&n.selectNext()}function x2(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||xt(n)){const[t]=Tn(n.anchor);if(Pe(t))return t.getBackgroundColor()}return null})}function uR(e,n){const t=n.querySelectorAll("tr");let r=!1;return Array.from(t).forEach((o,s)=>{s&&o.children[0].tagName==="TH"&&(r=!0)}),r}function dR(e){const n=e.querySelector("tr");let t=!1;return n&&Array.from(n.children).forEach((r,o)=>{o&&r.tagName==="TH"&&(t=!0)}),t}function fR(e,n){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+n)}const hR=(e,n)=>{window.matchMedia("(pointer: coarse)").matches&&n&&setTimeout(()=>{n.scrollBy({left:e+25,behavior:"smooth"})},100)};function v2(e){return e.getEditorState().read(()=>{const n=p.$getSelection();if(p.$isRangeSelection(n)||xt(n)){const[t]=Tn(n.anchor);if(Pe(t)){let r=function(s){if(p.$isTextNode(s))o.push(s);else if(p.$isElementNode(s))for(const l of s.getChildren())r(l)};const o=[];for(const s of t.getChildren())r(s);if(o.length>0){const l=o[0].getStyle().match(/color\s*:\s*([^;]+)/);if(l)return l[1].trim()}}}return""})}function Nf(e,n){function t(r){if(p.$isTextNode(r)){const o=r.getStyle(),s={};o&&o.split(";").forEach(l=>{const c=l.indexOf(":");if(c===-1)return;const d=l.slice(0,c).trim(),f=l.slice(c+1).trim();d&&f&&(s[d]=f)}),n===null?delete s.color:s.color=n,r.setStyle(Object.entries(s).map(([l,c])=>`${l}: ${c}`).join("; "))}else if(p.$isElementNode(r))for(const o of r.getChildren())t(o)}for(const r of e.getChildren())t(r)}p.createCommand("INSERT_NEW_TABLE_COMMAND");const pR=m.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function mR({hasCellMerge:e=!0,hasCellBackgroundColor:n=!0,hasTabHandler:t=!0,hasHorizontalScroll:r=!0}){const[o]=it.useLexicalComposerContext();m.useEffect(()=>{NS(o,r)},[o,r]),m.useEffect(()=>(o.hasNodes([Vr,Zr,Zi])||lt(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),ve.mergeRegister(o.registerCommand(Du,({columns:s,rows:l,includeHeaders:c})=>{const d=hS(Number(l),Number(s),c),f=en();f&&f.replace(d);const h=d.getFirstDescendant();return In(h)&&h.select(),!0},p.COMMAND_PRIORITY_EDITOR),o.registerNodeTransform(Vr,s=>{const[l]=YA(s,null,null),c=l.reduce((f,h)=>Math.max(f,h.length),0),d=s.getChildren();for(let f=0;f<l.length;++f){const h=d[f];if(!h)continue;const g=l[f].reduce((A,b)=>b?1+A:A,0);if(g!==c)for(let A=g;A<c;++A){const b=Gr(0);b.append(p.$createParagraphNode()),h.append(b)}}}))),[o]),m.useEffect(()=>{const s=new Map,l=(d,f,h)=>{const g=zs(d,h),A=AS(d,g,o,t);s.set(f,[A,g])},c=o.registerMutationListener(Vr,d=>{o.getEditorState().read(()=>{for(const[f,h]of d){const g=s.get(f);if(h==="created"||h==="updated"){const{tableNode:A,tableElement:b}=ZA(f);g===void 0?l(A,f,b):b!==g[1]&&(g[0].removeListeners(),s.delete(f),l(A,f,b))}else h==="destroyed"&&g!==void 0&&(g[0].removeListeners(),s.delete(f))}},{editor:o})},{skipInitialization:!1});return()=>{c();for(const[,[d]]of s)d.removeListeners()}},[o,t]),m.useEffect(()=>{if(!e)return o.registerNodeTransform(Zr,s=>{if(s.getColSpan()>1||s.getRowSpan()>1){const[,,l]=Tn(s),[c]=Dr(l,s,s),d=c.length,f=c[0].length;let h=l.getFirstChild();lt(_t(h),"Expected TableNode first child to be a RowNode");const g=[];for(let A=0;A<d;A++){A!==0&&(h=h.getNextSibling(),lt(_t(h),"Expected TableNode first child to be a RowNode"));let b=null;for(let y=0;y<f;y++){const x=c[A][y],w=x.cell;if(x.startRow===A&&x.startColumn===y)b=w,g.push(w);else if(w.getColSpan()>1||w.getRowSpan()>1){lt(Pe(w),"Expected TableNode cell to be a TableCellNode");const k=Gr(w.__headerState);b!==null?b.insertAfter(k):ve.$insertFirst(h,k)}}}for(const A of g)A.setColSpan(1),A.setRowSpan(1)}})},[o,e]),m.useEffect(()=>{if(!n)return o.registerNodeTransform(Zr,s=>{s.getBackgroundColor()!==null&&s.setBackgroundColor(null)})},[o,n,e])}function gR(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>ve.mergeRegister(e.registerCommand(p.PASTE_COMMAND,n=>{var s,l;try{const c=n.clipboardData||window.clipboardData;if(!c)return!1;const d=c.getData("text/html"),f=document.createElement("div");f.innerHTML=d;let h=null;f.childNodes.length===1&&C2(f.firstChild)&&(h=f.firstChild),f.childNodes.length===2&&C2(f.childNodes[1])&&(h=f.childNodes[1]);const g=_s?1:2;if(f.childNodes.length===(_s?2:5)&&((s=f.childNodes[g].className)!=null&&s.includes("table-scrollable-wrapper"))&&(h=f.childNodes[g].firstChild),h){n.preventDefault();const A=en();if(A){const b=ve.$findMatchingParent(A,Pe),y=ve.$findMatchingParent(A,_t),x=ve.$findMatchingParent(A,St);if(!x||!y||!b)return!1;const w=h.querySelectorAll("tr"),k=w[0].childNodes,T=x.getChildren();let I=null,N=0;for(let S=0;S<x.getChildren().length;S++)if(x.getChildren()[S].__key===(y==null?void 0:y.__key)&&(N=S,S+w.length>T.length)){let R=S+w.length-T.length;(l=x==null?void 0:x.getLastChild())==null||l.selectStart();for(let B=0;B<R;B++)Va(!0);break}let L=0;x.getChildren().forEach((S,O)=>{if(O>=N&&w[L]){let R=0;S.getChildren().forEach((_,j)=>{var D,z;if(Pe(_)&&(_.__key===(b==null?void 0:b.__key)&&(I=j,_==null||_.selectStart()),I!==null&&j>=I&&j<k.length+I)){const H=((z=(D=w[L])==null?void 0:D.childNodes[R])==null?void 0:z.innerText)||"";_.clear();const F=p.$createParagraphNode(),Z=is(H||"");F.append(Z),_.append(F),R++}}),L++}})}return!0}}catch(c){console.error("TABLE PASTE",c)}const t=p.$getSelection(),r=t==null?void 0:t.getNodes();return(r==null?void 0:r.length)>1&&Pe(r[1])&&e.update(()=>{r.forEach(c=>{St(c)&&c.remove()})}),!1},p.COMMAND_PRIORITY_LOW)),[e])}const CR=33,AR=50;function bR({editor:e}){const n=m.useRef(null),t=m.useRef(null),r=m.useRef(null),[o,s]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),[h,g]=m.useState(null),[A,b]=m.useState({right:!1,bottom:!1});m.useEffect(()=>e.registerCommand(p.SELECTION_CHANGE_COMMAND,M=>{const S=p.$getSelection(),O=xt(S);return d!==O&&f(O),!1},p.COMMAND_PRIORITY_HIGH));const y=m.useCallback(()=>{c(null),g(null),r.current=null,t.current=null,b({right:!1,bottom:!1})},[]);m.useEffect(()=>{const M=S=>{setTimeout(()=>{var z,H;const O=S.target;if(h){s({x:S.clientX,y:S.clientY});return}if(n.current&&n.current.contains(O))return;if(O instanceof Element&&O.closest(".table-cell-action-button-container")){c(null);return}const R=5;let B=null,_=null,j=1/0,D=null;if(l){const F=l.elem.closest("table");if(F){const Z=F.getBoundingClientRect();S.clientX>=Z.left-R&&S.clientX<=Z.right+R&&S.clientY>=Z.top-R&&S.clientY<=Z.bottom+R&&(D=F)}}if(!D&&O instanceof Element){const F=su(O);if(F?D=F.elem.closest("table"):D=(z=O.closest)==null?void 0:z.call(O,"table"),!D){const Z=document.elementsFromPoint(S.clientX,S.clientY);for(const q of Z){const ee=(H=q.closest)==null?void 0:H.call(q,"table");if(ee){D=ee;break}}}}if(D&&D.querySelectorAll("td, th").forEach((Z,q)=>{var Fe,se;const ee=Z.getBoundingClientRect();let Q=su(Z);if(!Q){const X=Z.closest("tr"),ae=X?Array.from(((Fe=X.parentElement)==null?void 0:Fe.children)||[]).indexOf(X):0,pe=Array.from(((se=Z.parentElement)==null?void 0:se.children)||[]).indexOf(Z);Q={elem:Z,highlighted:!1,hasBackgroundColor:!1,x:pe,y:ae}}const J=Math.abs(S.clientX-ee.right),xe=S.clientY>=ee.top-R&&S.clientY<=ee.bottom+R;J<=R&&xe&&J<j&&(j=J,B=Q,_="right");const we=Math.abs(S.clientY-ee.bottom),Te=S.clientX>=ee.left-R&&S.clientX<=ee.right+R;we<=R&&Te&&we<j&&(j=we,B=Q,_="bottom")}),B&&_)b({right:_==="right",bottom:_==="bottom"}),l!==B&&e.update(()=>{const F=p.$getNearestNodeFromDOMNode(B.elem);if(!F)return;const Z=Hn(F),q=e.getElementByKey(Z.getKey());q&&(t.current=q.children[0].getBoundingClientRect(),c(B))});else{if(l){const F=l.elem.getBoundingClientRect(),Z=Math.abs(S.clientX-F.right),q=Math.abs(S.clientY-F.bottom),ee=Math.abs(S.clientY-F.top),Q=Math.abs(S.clientX-F.left),J=Math.min(Z,q,ee,Q);b({right:Z<=R&&Z===J,bottom:q<=R&&q===J})}else b({right:!1,bottom:!1});l&&!D&&y()}},0)};return document.addEventListener("mousemove",M),()=>{document.removeEventListener("mousemove",M)}},[l,h,e,y]);const x=M=>M==="bottom",w=m.useCallback(M=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const S=p.$getNearestNodeFromDOMNode(l.elem);if(!Pe(S))throw new Error("TableCellResizer: Table cell node not found.");const O=Hn(S),R=Qo(S),B=O.getChildren();if(R>=B.length||R<0)throw new Error("Expected table cell to be inside of table row.");const _=B[R];if(!_t(_))throw new Error("Expected table row");_.setHeight(M)})},[l,e]),k=m.useCallback((M,S)=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");e.update(()=>{const O=p.$getNearestNodeFromDOMNode(l.elem);if(!Pe(O))throw new Error("TableCellResizer: Table cell node not found.");const R=Hn(O),B=Jo(O),_=R.getChildren();for(let j=0;j<_.length;j++){const D=_[j];if(!_t(D))throw new Error("Expected table row");const z=D.getChildren(),Z=z.map(ee=>ee.getColSpan()).reduce((ee,Q)=>{const J=ee[ee.length-1]??0;return ee.push(J+Q),ee},[]).findIndex(ee=>ee>B);if(Z>=z.length||Z<0)throw new Error("Expected table cell to be inside of table row.");const q=z[Z];if(!Pe(q))throw new Error("Expected table cell");q.setWidth(M)}})},[l,e]),T=m.useCallback(M=>{const S=O=>{if(O.preventDefault(),O.stopPropagation(),e.dispatchCommand(ns,!0),!l)throw new Error("TableCellResizer: Expected active cell.");if(r.current){const{x:R,y:B}=r.current;if(l===null)return;const _=A2(O.target);if(x(M)){const j=l.elem.getBoundingClientRect().height,D=Math.abs(O.clientY-B)/_,z=M==="bottom"&&B>O.clientY;w(Math.max(z?j-D:D+j,CR))}else{const j=getComputedStyle(l.elem);let D=l.elem.clientWidth;D-=parseFloat(j.paddingLeft)+parseFloat(j.paddingRight);const z=Math.abs(O.clientX-R)/_,H=M==="right"&&R>O.clientX;k(Math.max(H?D-z:z+D,AR),D),e.update(()=>{p.$setSelection(null)})}y(),document.body.classList.remove("table-resize-active"),document.removeEventListener("mouseup",S)}};return S},[l,y,k,w]),I=m.useCallback(M=>S=>{const O=e.getRootElement();if(O&&O.contains(document.activeElement)&&Fs(e),S.preventDefault(),S.stopPropagation(),e.dispatchCommand(ns,!0),!l)throw new Error("TableCellResizer: Expected active cell.");r.current={x:S.clientX,y:S.clientY},s(r.current),g(M),document.body.classList.add("table-resize-active"),document.addEventListener("mouseup",T(M))},[l,T]),L=m.useCallback(()=>{if(l){const{height:M,width:S,top:O,left:R,right:B}=l.elem.getBoundingClientRect(),{right:_}=e._rootElement.getBoundingClientRect(),j=A2(l.elem),D=B>_?B-_+20:0,z={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${R+5}px`,top:`${O+M-5}px`,width:`${S-D}px`,opacity:h==="bottom"||A.bottom?1:0,pointerEvents:h==="bottom"||A.bottom?"auto":"none"},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${M-7}px`,left:`${R+S-5}px`,display:D?"none":"block",top:`${O+7}px`,width:"12px",opacity:h==="right"||A.right?1:0,pointerEvents:h==="right"||A.right?"auto":"none"}},H=t.current;return h&&o&&H&&(x(h)?(z[h].left=`${H.left}px`,z[h].top=`${o.y/j}px`,z[h].height="3px",z[h].width=`${H.width}px`):(z[h].top=`${H.top}px`,z[h].left=`${o.x/j}px`,z[h].width="3px",z[h].height=`${H.height}px`),z[h].backgroundColor="#adf"),z}return{bottom:null,left:null,right:null,top:null}},[l,h,o,A])();return i.jsx("div",{ref:n,children:l!=null&&!d&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:L.right||void 0,onMouseDown:I("right")}),i.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:L.bottom||void 0,onMouseDown:I("bottom")})]})})}function yR({}){var r,o;const[e]=it.useLexicalComposerContext(),n=MC.useLexicalEditable(),t=((o=(r=e.getRootElement())==null?void 0:r.ownerDocument)==null?void 0:o.body)||document.body;return m.useMemo(()=>n?Br.createPortal(i.jsx(bR,{editor:e}),t):null,[e,n,t])}const o5=[{format:"left",icon:_c,shortcutApple:"(⌘⇧L)",shortcutOther:"(Ctrl+Shift+L)",testIdToolbar:"toolbar-align-left",testIdTable:"table-align-left"},{format:"center",icon:fA,shortcutApple:"(⌘⇧E)",shortcutOther:"(Ctrl+Shift+E)",testIdToolbar:"toolbar-align-center",testIdTable:"table-align-center"},{format:"right",icon:pA,shortcutApple:"(⌘⇧R)",shortcutOther:"(Ctrl+Shift+R)",testIdToolbar:"toolbar-align-right",testIdTable:"table-align-right"},{format:"justify",icon:hA,shortcutApple:"(⌥⌘J)",shortcutOther:"(Ctrl+Alt+J)",testIdToolbar:"toolbar-align-justify",testIdTable:"table-align-justify"}];function s5(e){return{center:{icon:fA,name:e("editor.toolbar.center")},end:{icon:_c,name:"End Align"},justify:{icon:hA,name:e("editor.toolbar.justify")},left:{icon:_c,name:e("editor.toolbar.left")},right:{icon:pA,name:e("editor.toolbar.right")},start:{icon:_c,name:"Start Align"}}}function xR({shortcut:e,trailingIcon:n}){return i.jsxs(v.Flex,{align:"center",gap:8,c:"dimmed",children:[i.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:e}),n]})}function i5({effectiveValue:e,onAlignmentSelect:n,showShortcuts:t,testScope:r,renderLeftSection:o,renderTrailingWhenSelected:s}){const{t:l,i18n:c}=Ke.useTranslation(),d=m.useMemo(()=>s5(l),[c.language]),h=s??i.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"});return i.jsx(i.Fragment,{children:o5.map(g=>{const A=e===g.format,b=r==="toolbar"?g.testIdToolbar:g.testIdTable,y=o?o(g):i.jsx($,{icon:g.icon,size:16});return i.jsx(v.Menu.Item,{leftSection:y,rightSection:t?i.jsx(xR,{shortcut:_s?g.shortcutApple:g.shortcutOther,trailingIcon:A?h:void 0}):A?h:void 0,onClick:()=>n(g.format),"data-test-id":b,children:d[g.format].name},g.format)})})}const vR=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],wR=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],kR=16;function SR({textColor:e,backgroundColor:n,onTextColorChange:t,onBackgroundColorChange:r}){const{t:o}=Ke.useTranslation(),s=e||"inherit",l=n||"inherit",c=m.useMemo(()=>vR.map(({value:g,nameKey:A})=>({value:g,label:o(`editor.toolbar.colorPicker.names.${A}`)})),[o]),d=m.useMemo(()=>wR.map(({value:g,nameKey:A,border:b})=>({value:g,label:o(`editor.toolbar.colorPicker.names.${A}`),border:b})),[o]),f=m.useMemo(()=>[{key:"textColor",label:o("editor.toolbar.colorPicker.textColors"),type:"text",colors:c,value:s},{key:"cellBackground",label:o("editor.table.colorPicker.cellBackground"),type:"highlight",colors:d,value:l}],[s,l,o,c,d]),h=(g,A)=>{A==="textColor"?t(g):r(g)};return i.jsxs(v.Menu,{trigger:ps?"hover":"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},shadow:"md",children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{children:i.jsx(Ti,{label:o("editor.table.menu.color"),dataNameAttribute:"table-cell-color",icon:i.jsx($,{icon:ss,size:kR,color:"var(--mantine-color-gray-6)"})})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:g=>g.preventDefault(),style:{width:232},children:i.jsx("div",{style:{maxHeight:388,overflowY:"auto"},children:i.jsx(At.ColorPicker.List,{sections:f,onChange:h})})})]})}function a5({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:s,tableDom:l,menuContext:c="cell"}){const[d]=it.useLexicalComposerContext(),{onTrack:f}=m.useContext(ft),[h,g]=m.useState(e),[A,b]=m.useState({columns:1,rows:1}),[y,x]=m.useState(!1),[w,k]=m.useState(!1),[T,I]=m.useState(!1),[N,L]=m.useState(""),[M,S]=m.useState(""),[O,R]=m.useState("left");m.useEffect(()=>d.registerMutationListener(Zr,K=>{K.get(h.getKey())==="updated"&&(d.getEditorState().read(()=>{g(h.getLatest())}),L(x2(d)||""),S(v2(d)))}),[d,h]),m.useEffect(()=>{t?(L(x2(d)||""),S(v2(d)),d.getEditorState().read(()=>{var Y;const K=r.current;try{const fe=h.getLatest().getFirstChild();fe&&"getFormatType"in fe&&R(fe.getFormatType()||"left")}catch{}if(K&&xt(K)){let ne;try{ne=b2(K)}catch{return}b(ne);const fe=Hn(K.anchor.getNode()),Ce=fe.getChildrenSize(),Le=(Y=fe.getChildAtIndex(0))==null?void 0:Y.getChildrenSize(),Ue=ne.columns>=Le&&ne.rows>=Ce;I(Ue),x(lR(K)&&(ne.columns>1||ne.rows>1))}try{k(cR())}catch{}})):d.update(()=>{p.$getSelection()!==null&&setTimeout(()=>{x(!1),r.current=null,b({columns:1,rows:1});try{h.getParent(),B()}catch{}},200)})},[t]);const B=m.useCallback(()=>{d.update(()=>{if(h.isAttached()){const K=Hn(h),Y=d.getElementByKey(K.getKey());if(!Y)throw new Error("Expected to find tableElement in DOM");const ne=x1(Y);ne!==null&&ne.clearHighlight(),K.markDirty(),g(h.getLatest()),h.getLatest().select(0,0)}else p.$getRoot().selectStart()})},[d,h]),_=m.useCallback(()=>{const Y=Hn(h).getChildren();if(c==="row"&&s!==null){const ne=Y[s];if(_t(ne))return ne.getChildren().filter(Pe)}if(c==="column"&&o!==null){const ne=[];for(const fe of Y)if(_t(fe)){const Ce=fe.getChildAtIndex(o);Pe(Ce)&&ne.push(Ce)}return ne}return[h]},[h,c,s,o]),j=()=>{d.update(()=>{var Y;if(c==="row"||c==="column"){const ne=_();if(ne.length<=1)return;const fe=ne[0];c==="row"?fe.setColSpan(ne.length):fe.setRowSpan(ne.length);const Ce=yc(fe);let Le;Ce&&p.$isParagraphNode(Le=fe.getFirstChild())&&Le.remove();for(let Ue=1;Ue<ne.length;Ue++)yc(ne[Ue])||fe.append(...ne[Ue].getChildren()),ne[Ue].remove();fe.getChildrenSize()===0&&fe.append(p.$createParagraphNode()),y2(fe);return}const K=r.current;if(xt(K)){let ne;try{ne=b2(K)}catch{return}const{columns:fe,rows:Ce}=ne,Le=Hn(K.anchor.getNode()),Ue=Le.getChildrenSize(),ce=(Y=Le.getChildAtIndex(0))==null?void 0:Y.getChildrenSize();if(fe>=ce&&Ce>=Ue)return;const je=K.getNodes();let Ze=null;for(let dt=0;dt<je.length;dt++){const Ct=je[dt];if(Pe(Ct))if(Ze===null){Ct.setColSpan(fe).setRowSpan(Ce),Ze=Ct;const Wt=yc(Ct);let Dt;Wt&&p.$isParagraphNode(Dt=Ct.getFirstChild())&&Dt.remove()}else Pe(Ze)&&(yc(Ct)||Ze.append(...Ct.getChildren()),Ct.remove())}Ze!==null&&(Ze.getChildrenSize()===0&&Ze.append(p.$createParagraphNode()),y2(Ze))}})},D=()=>{d.update(()=>{if(c==="row"||c==="column"){const K=_();for(const Y of K)if(Y.getColSpan()>1||Y.getRowSpan()>1){Y.selectStart(),m0();break}return}m0()})},z=m.useCallback(K=>{f==null||f("table_row_added",{position:K?"after":"before"}),d.update(()=>{const Y=!K&&h.getHeaderStyles()&Tt.ROW;for(let ne=0;ne<A.rows;ne++)Va(K);if(Y){const fe=Hn(h).getChildren(),Ce=fe[0],Le=fe[1];_t(Ce)&&_t(Le)&&(Ce.getChildren().forEach(Ue=>{Pe(Ue)&&Ue.setHeaderStyles(Tt.ROW,Tt.ROW)}),Le.getChildren().forEach(Ue=>{Pe(Ue)&&Ue.setHeaderStyles(Tt.NO_STATUS,Tt.ROW)}))}})},[d,A.rows,h]),H=m.useCallback(K=>{f==null||f("table_column_added",{position:K?"after":"before"}),d.update(()=>{const Y=!K&&h.getHeaderStyles()&Tt.COLUMN;for(let ne=0;ne<A.columns;ne++)ou(K);if(Y){const fe=Hn(h).getChildren();for(const Ce of fe){if(!_t(Ce))continue;const Le=Ce.getChildAtIndex(0),Ue=Ce.getChildAtIndex(1);Pe(Le)&&Le.setHeaderStyles(Tt.COLUMN,Tt.COLUMN),Pe(Ue)&&Ue.setHeaderStyles(Tt.NO_STATUS,Tt.COLUMN)}}})},[d,A.columns]),F=m.useCallback(()=>{f==null||f("table_row_deleted"),d.update(()=>{KA()})},[d]),Z=m.useCallback(()=>{d.update(()=>{Hn(e).remove(),B()})},[d,e,B]),q=m.useCallback(()=>{f==null||f("table_column_deleted"),d.update(()=>{HA()})},[d]),ee=m.useCallback(()=>{d.update(()=>{const K=Hn(h),Y=Qo(h),ne=K.getChildren();if(Y>=ne.length||Y<0)throw new Error("Expected table cell to be inside of table row.");const fe=ne[Y];if(!_t(fe))throw new Error("Expected table row");const Ce=h.getHeaderStyles()^Tt.ROW;fe.getChildren().forEach(Le=>{if(!Pe(Le))throw new Error("Expected table cell");Le.setHeaderStyles(Ce,Tt.ROW)}),B()})},[d,h,B]),Q=m.useCallback(K=>{d.update(()=>{const Y=Hn(h),ne=Jo(h),fe=Y.getChildren(),Ce=Math.max(...fe.map(Ue=>Ue.getChildren().length));if(ne>=Ce||ne<0)throw new Error("Expected table cell to be inside of table row.");const Le=h.getHeaderStyles()^Tt.COLUMN;for(let Ue=0;Ue<fe.length;Ue++){const ce=fe[Ue];if(!_t(ce))throw new Error("Expected table row");const je=ce.getChildren();if(ne>=je.length)continue;const Ze=je[ne];if(!Pe(Ze))throw new Error("Expected table cell");K?Ze.setHeaderStyles(0,3):Ze.setHeaderStyles(Le,Tt.COLUMN)}B()})},[d,h,B]),J=m.useCallback(K=>{d.update(()=>{if(c==="row"||c==="column"){const ne=_();for(const fe of ne)fe.setBackgroundColor(K);return}const Y=r.current;if(p.$isRangeSelection(Y)||xt(Y)){const[ne]=Tn(Y.anchor);if(Pe(ne)&&ne.setBackgroundColor(K),xt(Y)){const fe=Y.getNodes();for(let Ce=0;Ce<fe.length;Ce++){const Le=fe[Ce];Pe(Le)&&Le.setBackgroundColor(K)}}}})},[d,c,_]),xe=m.useCallback(K=>{d.update(()=>{const Y=K==="inherit"||!K?null:K;if(c==="row"||c==="column"){const fe=_();for(const Ce of fe)Nf(Ce,Y);return}const ne=r.current;if(p.$isRangeSelection(ne)||xt(ne)){const[fe]=Tn(ne.anchor);if(Pe(fe)&&Nf(fe,Y),xt(ne)){const Ce=ne.getNodes();for(let Le=0;Le<Ce.length;Le++){const Ue=Ce[Le];Pe(Ue)&&Nf(Ue,Y)}}}})},[d,c,_,r]),we=m.useCallback(()=>{function K(Y){const ne=Y.exportJSON();return typeof Y.getChildren=="function"&&(ne.children=Y.getChildren().map(fe=>K(fe))),ne}d.update(()=>{const Y=Hn(h);if(c==="row"&&s!==null){const fe=Y.getChildren()[s];if(!_t(fe))return;const Ce=fe.getChildren().filter(Pe).map(je=>K(je));Va(!0);const Ue=Y.getChildren()[s+1];if(!_t(Ue))return;const ce=Ue.getChildren().filter(Pe);for(let je=0;je<Math.min(Ce.length,ce.length);je++){ce[je].getChildren().forEach(dt=>dt.remove());for(const dt of Ce[je].children)ce[je].append(p.$parseSerializedNode(dt));ce[je].setBackgroundColor(Ce[je].backgroundColor||"");const Ze=Ce[je].headerState&Tt.COLUMN;ce[je].setHeaderStyles(Ze?Tt.COLUMN:Tt.NO_STATUS,Tt.ROW|Tt.COLUMN)}}else if(c==="column"&&o!==null){const fe=Y.getChildren().filter(_t).map(Ue=>{const ce=Ue.getChildAtIndex(o);return Pe(ce)?K(ce):null});ou(!0);const Ce=Y.getChildren();let Le=0;for(const Ue of Ce){if(!_t(Ue))continue;const ce=fe[Le];if(Le++,!ce)continue;const je=Ue.getChildAtIndex(o+1);if(!Pe(je))continue;je.getChildren().forEach(dt=>dt.remove());for(const dt of ce.children)je.append(p.$parseSerializedNode(dt));je.setBackgroundColor(ce.backgroundColor||"");const Ze=ce.headerState&Tt.ROW;je.setHeaderStyles(Ze?Tt.ROW:Tt.NO_STATUS,Tt.ROW|Tt.COLUMN)}}})},[d,c,h,s,o]),Te=m.useCallback(()=>{d.update(()=>{if(c==="row"||c==="column"){const Y=_();for(const ne of Y)ne.getChildren().forEach(fe=>fe.remove()),ne.append(p.$createParagraphNode());return}const K=r.current;if(xt(K)){const Y=K.getNodes();for(const ne of Y)Pe(ne)&&(ne.getChildren().forEach(fe=>fe.remove()),ne.append(p.$createParagraphNode()))}else{const Y=p.$getSelection()||K;if(!Y||!p.$isRangeSelection(Y)&&!xt(Y))return;const[ne]=Tn(Y.anchor);Pe(ne)&&(ne.getChildren().forEach(fe=>fe.remove()),ne.append(p.$createParagraphNode()),ne.selectStart())}})},[d,r,c,_]),Fe=m.useCallback(()=>{c==="row"?F():c==="column"?q():Z()},[c,F,q,Z]),se=m.useCallback(K=>{c==="row"||c==="column"?d.update(()=>{const Y=_();for(const ne of Y)ne.getChildren().forEach(fe=>{p.$isElementNode(fe)&&fe.setFormat(K)})}):d.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,K)},[d,c,_]),X=m.useCallback(()=>{d.dispatchCommand(p.INDENT_CONTENT_COMMAND,void 0)},[d]),ae=m.useCallback(()=>{d.dispatchCommand(p.OUTDENT_CONTENT_COMMAND,void 0)},[d]),pe=s===0&&dR(l),ge=o===0&&uR(o||0,l),G=c==="row"||c==="column",he=(()=>{if(!G)return!1;try{return d.getEditorState().read(()=>_().some(Y=>Y.getColSpan()>1||Y.getRowSpan()>1))}catch{return!1}})();return{tableCellNode:h,selectionCounts:A,canMergeCells:y,canUnmergeCell:w,isAllCellsSelected:T,backgroundColor:N,textColor:M,cellAlignment:O,isTableRowHeader:pe,isTableCollHeader:ge,isFullMenu:G,isMerged:G?he:w,cellMerge:n,menuContext:c,currentIndexRow:s,currentIndexColumn:o,mergeTableCellsAtSelection:j,unmergeTableCellsAtSelection:D,insertTableRowAtSelection:z,insertTableColumnAtSelection:H,toggleTableRowIsHeader:ee,toggleTableColumnIsHeader:Q,duplicateRowOrColumn:we,clearCellContent:Te,handleDelete:Fe,handleCellBackgroundColor:J,handleCellTextColor:xe,handleAlignment:se,handleIndentIncrease:X,handleIndentDecrease:ae}}const Kn=16,nr=({children:e,color:n})=>i.jsx("span",{style:{color:n||"var(--mantine-color-gray-6)",display:"flex",alignItems:"center"},children:e}),ER=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:Kn,height:Kn,viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M13.4935 7.72982C13.4625 7.09985 13.3233 6.47914 13.0814 5.89518C12.8689 5.38224 12.58 4.90562 12.2259 4.48047L4.48047 12.2259C4.90562 12.58 5.38224 12.8689 5.89518 13.0814C6.56247 13.3578 7.27773 13.5 8 13.5L8.27018 13.4935C8.90015 13.4625 9.52086 13.3233 10.1048 13.0814C10.7721 12.805 11.3786 12.4 11.8893 11.8893C12.4 11.3786 12.805 10.7721 13.0814 10.1048C13.3578 9.43753 13.5 8.72227 13.5 8L13.4935 7.72982ZM2.50651 8.27018C2.53749 8.90015 2.67674 9.52086 2.91862 10.1048C3.13097 10.6175 3.41962 11.0939 3.77344 11.5189L11.5189 3.77344C11.0939 3.41962 10.6175 3.13097 10.1048 2.91862C9.43753 2.64222 8.72227 2.5 8 2.5C7.27773 2.5 6.56247 2.64222 5.89518 2.91862C5.22791 3.19502 4.62139 3.59996 4.11068 4.11068C3.59996 4.62139 3.19502 5.22791 2.91862 5.89518C2.64222 6.56247 2.5 7.27773 2.5 8L2.50651 8.27018ZM14.4922 8.31966C14.4555 9.06405 14.291 9.79761 14.0052 10.4876C13.6786 11.2762 13.1999 11.9928 12.5964 12.5964C11.9928 13.1999 11.2762 13.6786 10.4876 14.0052C9.79761 14.291 9.06405 14.4555 8.31966 14.4922L8 14.5C7.14641 14.5 6.30099 14.3319 5.51237 14.0052C4.72382 13.6786 4.00718 13.1999 3.40365 12.5964C2.80011 11.9928 2.32145 11.2762 1.99479 10.4876C1.70897 9.79761 1.54446 9.06405 1.50781 8.31966L1.5 8C1.5 7.14641 1.66814 6.30099 1.99479 5.51237C2.32145 4.72382 2.80011 4.00719 3.40365 3.40365C4.00719 2.80011 4.72382 2.32145 5.51237 1.99479C6.30099 1.66814 7.14641 1.5 8 1.5C8.85359 1.5 9.69901 1.66814 10.4876 1.99479C11.2762 2.32145 11.9928 2.80011 12.5964 3.40365C13.1999 4.00718 13.6786 4.72382 14.0052 5.51237C14.3319 6.30099 14.5 7.14641 14.5 8L14.4922 8.31966Z",fill:"currentColor"})}),TR=({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:s,tableDom:l,menuContext:c="cell"})=>{const{t:d}=Ke.useTranslation(),{canMergeCells:f,canUnmergeCell:h,isAllCellsSelected:g,backgroundColor:A,textColor:b,cellAlignment:y,isTableRowHeader:x,isTableCollHeader:w,isFullMenu:k,isMerged:T,mergeTableCellsAtSelection:I,unmergeTableCellsAtSelection:N,insertTableRowAtSelection:L,insertTableColumnAtSelection:M,toggleTableRowIsHeader:S,toggleTableColumnIsHeader:O,duplicateRowOrColumn:R,clearCellContent:B,handleDelete:_,handleCellBackgroundColor:j,handleCellTextColor:D,handleAlignment:z,handleIndentIncrease:H,handleIndentDecrease:F}=a5({tableCellNode:e,cellMerge:n,isMenuOpen:t,selectionBeforeMenuOpenedRef:r,currentIndexColumn:o,currentIndexRow:s,tableDom:l,menuContext:c});return i.jsxs(i.Fragment,{children:[i.jsx(SR,{textColor:b,backgroundColor:A,onTextColorChange:D,onBackgroundColorChange:j}),i.jsxs(v.Menu,{trigger:ps?"hover":"click",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},shadow:"md",children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{children:i.jsx(Ti,{label:d("editor.toolbar.align"),dataNameAttribute:"table-alignment",icon:i.jsx($,{icon:U8,size:Kn,color:"var(--mantine-color-gray-6)"})})})}),i.jsxs(v.Menu.Dropdown,{children:[i.jsx(i5,{effectiveValue:y||"left",onAlignmentSelect:z,showShortcuts:!0,testScope:"table",renderLeftSection:Z=>i.jsx(nr,{children:i.jsx($,{icon:Z.icon,size:Kn})}),renderTrailingWhenSelected:i.jsx(nr,{color:"var(--mantine-primary-color-filled)",children:i.jsx($,{icon:Jn,size:Kn})})}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:Sk,size:Kn})}),onClick:H,"data-test-id":"table-indent-increase",children:d("editor.table.menu.increaseIndent")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:kk,size:Kn})}),onClick:F,"data-test-id":"table-indent-decrease",children:d("editor.table.menu.decreaseIndent")})]})]}),k&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),(c==="row"&&s===0||c==="column"&&o===0)&&i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:dA,size:Kn})}),rightSection:i.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:c==="row"?x:w,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{c==="row"?S():O(w)},"data-test-id":c==="row"?"table-row-header":"table-column-header",children:d(c==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:qc,size:Kn})}),rightSection:i.jsx(v.Switch,{size:"xs",checked:T,onChange:()=>{},styles:{root:{pointerEvents:"none"}},withThumbIndicator:!1}),onClick:()=>{T?N():I()},"data-test-id":"table-merge-cells",children:d("editor.table.menu.mergeCells")}),c==="row"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:aA,size:Kn})}),"data-test-id":"table-insert-row-above",onClick:()=>L(!1),children:d("editor.table.menu.insertAbove")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:iA,size:Kn})}),"data-test-id":"table-insert-row-below",onClick:()=>L(!0),children:d("editor.table.menu.insertBelow")})]}),c==="column"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:oA,size:Kn})}),"data-test-id":"table-insert-column-before",onClick:()=>M(!1),children:d("editor.table.menu.insertLeft")}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:sA,size:Kn})}),"data-test-id":"table-insert-column-after",onClick:()=>M(!0),children:d("editor.table.menu.insertRight")})]}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx($,{icon:sr,size:Kn})}),"data-test-id":"table-duplicate",onClick:R,children:d("editor.table.menu.duplicate")})]}),!k&&n&&(f||h)&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{disabled:g&&!h,leftSection:i.jsx(nr,{children:i.jsx($,{icon:qc,size:Kn})}),rightSection:i.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:T,readOnly:!0,disabled:g&&!h,styles:{track:{cursor:"pointer"}}}),onClick:()=>{h?N():f&&I()},"data-test-id":"table-merge-cells",children:d("editor.table.menu.mergeCells")})]}),!k&&i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{leftSection:i.jsx(nr,{children:i.jsx(ER,{})}),"data-test-id":"table-clear-content",onClick:B,children:d("editor.table.menu.clearContent")}),k&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Item,{color:"red",leftSection:i.jsx(nr,{color:"var(--mantine-color-red-6)",children:i.jsx($,{icon:sn,size:Kn})}),"data-test-id":c==="row"?"table-delete-rows":"table-delete-columns",onClick:_,children:d("editor.table.menu.delete")})]})]})},io="light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",MR=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],LR=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}],NR=({tableCellNode:e,setIsMenuOpen:n,cellMerge:t,isMenuOpen:r,selectionBeforeMenuOpenedRef:o,currentIndexColumn:s,currentIndexRow:l,tableDom:c,menuContext:d="cell",onOpen:f,children:h})=>{const{t:g}=Ke.useTranslation(),[A,{open:b,close:y}]=Ft.useDisclosure(!1),[x,{open:w,close:k}]=Ft.useDisclosure(!1),{backgroundColor:T,textColor:I,isFullMenu:N,isMerged:L,isTableRowHeader:M,isTableCollHeader:S,mergeTableCellsAtSelection:O,unmergeTableCellsAtSelection:R,insertTableRowAtSelection:B,insertTableColumnAtSelection:_,toggleTableRowIsHeader:j,toggleTableColumnIsHeader:D,duplicateRowOrColumn:z,clearCellContent:H,handleDelete:F,handleCellBackgroundColor:Z,handleCellTextColor:q}=a5({tableCellNode:e,cellMerge:t,isMenuOpen:A||x,selectionBeforeMenuOpenedRef:o,currentIndexColumn:s,currentIndexRow:l,tableDom:c,menuContext:d}),ee=m.useMemo(()=>MR.map(({value:X,nameKey:ae})=>({value:X,label:g(`editor.toolbar.colorPicker.names.${ae}`)})),[g]),Q=m.useMemo(()=>LR.map(({value:X,nameKey:ae,border:pe})=>({value:X,label:g(`editor.toolbar.colorPicker.names.${ae}`),border:pe})),[g]),J=m.useMemo(()=>[{key:"textColor",label:g("editor.toolbar.colorPicker.textColors"),type:"text",colors:ee,value:I||"inherit"},{key:"cellBackground",label:g("editor.table.colorPicker.cellBackground"),type:"highlight",colors:Q,value:T||"inherit"}],[I,T,g,ee,Q]),xe=(X,ae)=>{ae==="textColor"?q(X):Z(X)},we=()=>{f(),n(!0),b()},Te=()=>{y(),n(!1)},Fe=()=>{k(),n(!1)},se=g(d==="column"?"editor.table.mobile.columnActions":"editor.table.mobile.rowActions");return i.jsxs(i.Fragment,{children:[i.jsx("div",{onClick:we,style:{display:"contents"},children:h}),i.jsx(Bt,{opened:A,onClose:Te,title:se,children:i.jsxs(v.Stack,{gap:2,p:0,children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:io,leftSection:i.jsx($,{icon:ss,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx($,{icon:Bs,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{y(),w()},"data-test-id":"table-mobile-color",children:g("editor.table.menu.color")}),N&&i.jsxs(i.Fragment,{children:[(d==="row"&&l===0||d==="column"&&s===0)&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:io,leftSection:i.jsx($,{icon:dA,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:d==="row"?M:S,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{d==="row"?j():D(S),Te()},"data-test-id":d==="row"?"table-mobile-row-header":"table-mobile-column-header",children:g(d==="row"?"editor.table.menu.headerRow":"editor.table.menu.headerColumn")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",styles:{inner:{width:"100%"},label:{flex:1}},bg:io,leftSection:i.jsx($,{icon:qc,size:16,color:"var(--mantine-color-dimmed)"}),rightSection:i.jsx(v.Switch,{size:"xs",withThumbIndicator:!1,checked:L,onChange:()=>{},styles:{root:{pointerEvents:"none"}}}),onClick:()=>{L?R():O(),Te()},"data-test-id":"table-mobile-merge",children:g("editor.table.menu.mergeCells")}),d==="row"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx($,{icon:aA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{B(!1),Te()},"data-test-id":"table-mobile-insert-row-above",children:g("editor.table.menu.insertAbove")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx($,{icon:iA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{B(!0),Te()},"data-test-id":"table-mobile-insert-row-below",children:g("editor.table.menu.insertBelow")})]}),d==="column"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx($,{icon:oA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{_(!1),Te()},"data-test-id":"table-mobile-insert-column-left",children:g("editor.table.menu.insertLeft")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx($,{icon:sA,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{_(!0),Te()},"data-test-id":"table-mobile-insert-column-right",children:g("editor.table.menu.insertRight")})]}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-dimmed)"}),onClick:()=>{z(),Te()},"data-test-id":"table-mobile-duplicate",children:g("editor.table.menu.duplicate")})]}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",style:{color:"var(--mantine-color-dimmed)"},children:i.jsx("path",{d:"M13.4935 7.72982C13.4625 7.09985 13.3233 6.47914 13.0814 5.89518C12.8689 5.38224 12.58 4.90562 12.2259 4.48047L4.48047 12.2259C4.90562 12.58 5.38224 12.8689 5.89518 13.0814C6.56247 13.3578 7.27773 13.5 8 13.5L8.27018 13.4935C8.90015 13.4625 9.52086 13.3233 10.1048 13.0814C10.7721 12.805 11.3786 12.4 11.8893 11.8893C12.4 11.3786 12.805 10.7721 13.0814 10.1048C13.3578 9.43753 13.5 8.72227 13.5 8L13.4935 7.72982ZM2.50651 8.27018C2.53749 8.90015 2.67674 9.52086 2.91862 10.1048C3.13097 10.6175 3.41962 11.0939 3.77344 11.5189L11.5189 3.77344C11.0939 3.41962 10.6175 3.13097 10.1048 2.91862C9.43753 2.64222 8.72227 2.5 8 2.5C7.27773 2.5 6.56247 2.64222 5.89518 2.91862C5.22791 3.19502 4.62139 3.59996 4.11068 4.11068C3.59996 4.62139 3.19502 5.22791 2.91862 5.89518C2.64222 6.56247 2.5 7.27773 2.5 8L2.50651 8.27018ZM14.4922 8.31966C14.4555 9.06405 14.291 9.79761 14.0052 10.4876C13.6786 11.2762 13.1999 11.9928 12.5964 12.5964C11.9928 13.1999 11.2762 13.6786 10.4876 14.0052C9.79761 14.291 9.06405 14.4555 8.31966 14.4922L8 14.5C7.14641 14.5 6.30099 14.3319 5.51237 14.0052C4.72382 13.6786 4.00718 13.1999 3.40365 12.5964C2.80011 11.9928 2.32145 11.2762 1.99479 10.4876C1.70897 9.79761 1.54446 9.06405 1.50781 8.31966L1.5 8C1.5 7.14641 1.66814 6.30099 1.99479 5.51237C2.32145 4.72382 2.80011 4.00719 3.40365 3.40365C4.00719 2.80011 4.72382 2.32145 5.51237 1.99479C6.30099 1.66814 7.14641 1.5 8 1.5C8.85359 1.5 9.69901 1.66814 10.4876 1.99479C11.2762 2.32145 11.9928 2.80011 12.5964 3.40365C13.1999 4.00718 13.6786 4.72382 14.0052 5.51237C14.3319 6.30099 14.5 7.14641 14.5 8L14.4922 8.31966Z",fill:"currentColor"})}),onClick:()=>{H(),Te()},"data-test-id":"table-mobile-clear-content",children:g("editor.table.menu.clearContent")}),N&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:io,leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),onClick:()=>{F(),Te()},"data-test-id":d==="row"?"table-mobile-delete-row":"table-mobile-delete-column",children:g("editor.table.menu.delete")})]})}),i.jsx(Bt,{opened:x,onClose:Fe,title:g("editor.table.menu.color"),children:i.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:i.jsx(At.ColorPicker.List,{sections:J,onChange:xe})})})]})},jf=({tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,children:o,tableDom:s,isMenuOpen:l,menuContext:c="cell"})=>{const[d]=it.useLexicalComposerContext(),f=m.useRef(null),h=m.useRef(null),g=m.useRef(null),A=()=>{n(!0),d.read(()=>{const b=Jo(e),y=Qo(e);h.current=b,g.current=y;const x=p.$getSelection();xt(x)?f.current=x.clone():(Yk(e,d),setTimeout(()=>{d.read(()=>{const w=p.$getSelection();f.current=w})},200))})};return st?i.jsx(NR,{tableCellNode:e,setIsMenuOpen:n,contextRef:t,cellMerge:r,isMenuOpen:l,tableDom:s,currentIndexColumn:h.current,currentIndexRow:g.current,selectionBeforeMenuOpenedRef:f,menuContext:c,onOpen:A,children:o}):i.jsxs(v.Menu,{onOpen:A,onClose:()=>n(!1),shadow:"md",position:"right",opened:l,clickOutsideEvents:["mousedown"],transitionProps:Fn,classNames:{dropdown:"table-menu-dropdown"},children:[i.jsx(v.Menu.Target,{children:o}),i.jsx(v.Menu.Dropdown,{children:i.jsx(TR,{isMenuOpen:l,contextRef:t,tableCellNode:e,cellMerge:r,setIsMenuOpen:n,tableDom:s,currentIndexColumn:h.current,currentIndexRow:g.current,selectionBeforeMenuOpenedRef:f,menuContext:c})})]})},xc=12;function jR({anchorElem:e,isShowTableOptions:n,cellMerge:t}){var ke,_e;const[r]=it.useLexicalComposerContext(),[o,s]=m.useState(!1),[l,c]=m.useState({}),[d,f]=m.useState({}),[h,g]=m.useState({}),[A,b]=m.useState({}),[y,x]=m.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),w=m.useRef(null),k=m.useCallback(me=>{x(ie=>{const Ae=typeof me=="function"?me(ie):me,Oe=ie.row&&!Ae.row,He=ie.column&&!Ae.column;return(Oe||He)&&document.body.classList.contains("table-drag-active")?ie:Oe||He?(w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{document.body.classList.contains("table-drag-active")||x($e=>({...$e,row:Oe?!1:$e.row,column:He?!1:$e.column}))},150),{...Ae,row:Oe?ie.row:Ae.row,column:He?ie.column:Ae.column}):(w.current&&(Ae.row||Ae.column)&&(clearTimeout(w.current),w.current=null),Ae)})},[]),[T,I]=m.useState(!1),[N,L]=m.useState(!1),[M,S]=m.useState({}),[O,R]=m.useState({}),[B,_]=m.useState({}),[j,D]=m.useState(!1),[z,H]=m.useState(!1),[F,Z]=m.useState(!1),[q,ee]=m.useState(!1),[Q,J]=m.useState(!1),[xe,we]=m.useState(null),[Te,Fe]=m.useState(null),[se,X]=m.useState(null),ae=m.useRef(null),pe=m.useRef(null),ge=m.useRef(null),G=m.useRef(!1),he=m.useRef(null),oe=m.useRef(!1),K=m.useRef(null),Y=m.useRef(new Set),ne=m.useRef(null),fe=m.useRef(null),Ce=m.useRef(null),Le=m.useRef(null),Ue=m.useRef(null),ce=m.useRef(null),{t:je}=Ke.useTranslation();G.current=j||T||N;const Ze=Qi(me=>{if(document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const{isOutside:ie,tableDOMNode:Ae,edgeDirection:Oe}=RR(me,r,y.row);K.current=Oe;const He=me.target;if(He!=null&&He.closest(".table-cell-add-container")||He!=null&&He.closest(".table-row-add-container")||G.current)return;if(ie&&(y.row||y.column)){const ct=e.querySelectorAll("table.dsd__theme__table");for(const be of ct){const Se=be.getBoundingClientRect(),We=me.clientY>Se.bottom-10&&me.clientY<Se.bottom+25,Be=me.clientX>Se.right-10&&me.clientX<Se.right+25;if(We&&Be)return}}if(ie&&(y.top||y.bottom||y.left||y.right||y.column||y.row)){if(oe.current){k(ct=>({...ct,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),ce.current=null;return}if(he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),Q){if(r.getEditorState().read(()=>xt(p.$getSelection()))){k(be=>({...be,top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1})),ce.current=null;return}J(!1),Fe(null),we(null),ha(!1)}k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),ce.current=null;return}if(!Ae)return;Ce.current=Ae;let $e=null,rt=null,Je=null;r.update(()=>{var We,Be,Xe,Ye,et,ze;const ct=p.$getSelection();if(xt(ct))return;Q&&(J(!1),Fe(null),we(null));const be=p.$getNearestNodeFromDOMNode(Ae),Se=K.current;if(!(((We=ce.current)==null?void 0:We.__key)===(be==null?void 0:be.__key)&&y.options)&&(((Be=ce.current)==null?void 0:Be.__key)!==(be==null?void 0:be.__key)&&(k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),H(!1),Z(!1),ee(!1)),ce.current=be,Pe(be))){const at=ve.$findMatchingParent(be,tt=>St(tt));if(!St(at))return;if(Je=r.getElementByKey(at==null?void 0:at.getKey()),Je){const tt=at.getChildrenSize(),ot=(Xe=at.getChildAtIndex(0))==null?void 0:Xe.getChildrenSize(),qe=Qo(be),ut=Jo(be);if(Le.current=(Ye=Je.firstChild)==null?void 0:Ye.childNodes[qe+1].firstChild,Ue.current=(ze=(et=Je.firstChild)==null?void 0:et.childNodes[1])==null?void 0:ze.childNodes[ut],Se==="bottom")$e=be,ce.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1});else if(Se==="right")rt=be,ce.current=null,k({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1});else{const Ot=qe===tt-1,bt=ut===ot-1;Ot&&($e=be),bt&&(rt=be),w.current&&(clearTimeout(w.current),w.current=null),x(Lt=>({...Lt,column:bt,row:Ot}))}}}}),setTimeout(()=>{var ct,be,Se,We,Be;if(!document.body.classList.contains("table-drag-active")&&Je){const{width:Xe,y:Ye,left:et,right:ze,bottom:at,height:tt}=Je.getBoundingClientRect(),{y:ot,left:qe}=e.getBoundingClientRect();if(ce.current){const bt=r.getElementByKey(ce.current.getKey());if(bt!=null){const Lt=bt.getBoundingClientRect(),Nt=Je.getBoundingClientRect();if(!G.current){const tn=Nt.left+Je.clientWidth;let Ut=Lt.right-qe-8;Lt.right>tn&&(Ut=tn-qe-8),_({top:Lt.top-ot+Lt.height/2-11,left:Ut}),S({top:Lt.top-ot+Lt.height/2-11,left:et-qe-6}),R({top:Ye-ot-6,left:Lt.left-qe+Lt.width/2-11})}}}if(Ue.current){const{top:bt,width:Lt,left:Nt,right:tn}=Ue.current.getBoundingClientRect(),Ut=xc,an=Nt-qe-Ut/2,Kt=bt-ot-Ut/2;let Vt=Lt+Ut+2;tn>ze&&(Vt=Vt-(tn-ze)),g({width:Vt,height:Ut,top:Kt,left:an})}if(Le.current){const{top:bt,height:Lt}=Le.current.getBoundingClientRect(),Nt=xc,tn=et-qe-Nt/2,Ut=bt-ot-Nt/2;b({height:Lt+Nt+2,top:Ut,left:tn})}const ut=(ct=Je.parentElement)!=null&&ct.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if($e){const bt=((be=Je.firstElementChild)==null?void 0:be.clientWidth)||0,Lt=Je.closest(".dsd__theme__table-scrollable-wrapper"),Nt=Lt==null?void 0:Lt.getBoundingClientRect(),tn=Nt?Nt.bottom:at,Ut=Xe>bt?bt:Xe,an=Nt?Nt.left-qe:et-qe,Kt=Nt?Math.min(Ut,Nt.width):Ut;c({left:an,top:tn-ot+6,width:Kt,padding:0,backgroundColor:ut})}const{right:Ot}=(Se=Je.firstElementChild)==null?void 0:Se.getBoundingClientRect();if(rt){hR(ze,(Be=(We=r._rootElement)==null?void 0:We.parentElement)==null?void 0:Be.parentElement);const bt=Math.min(Ot,ze);f({height:tt,left:bt-qe+6,top:Ye-ot,padding:0,backgroundColor:ut})}}},100)},50,150),dt=()=>{k({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),ce.current=null,I(!1),L(!1),D(!1),H(!1),Z(!1),ee(!1),X(null)},Ct=(_e=(ke=Le.current)==null?void 0:ke.parentElement)==null?void 0:_e.parentElement;m.useEffect(()=>{var me;if(Ct){(me=fe.current)==null||me.call(fe);const ie=()=>{document.body.classList.contains("table-drag-active")||dt()},Ae=Ct.parentElement;return Ae==null||Ae.addEventListener("scroll",ie),fe.current=()=>{Ae==null||Ae.removeEventListener("scroll",ie)},()=>{var Oe;(Oe=fe.current)==null||Oe.call(fe),fe.current=null}}},[Ct]),m.useEffect(()=>{const me=ie=>{var Ae;(Ae=ie.target)!=null&&Ae.closest(".TableCellResizer__resizer")&&dt()};return document.addEventListener("mousedown",me,!0),()=>document.removeEventListener("mousedown",me,!0)},[]),m.useEffect(()=>{if(!o)return;const me=ie=>{var ct,be;const Ae=ie.target;if(!Ae||document.body.classList.contains("table-drag-active")||document.body.classList.contains("table-resize-active"))return;const Oe=e.querySelectorAll("table.dsd__theme__table");let He=null;for(const Se of Oe){const We=Se.getBoundingClientRect();if(ie.clientX>We.right-10&&ie.clientX<We.right+25&&ie.clientY>We.bottom-10&&ie.clientY<We.bottom+25){He=Se;break}}if(He){const Se=He.getBoundingClientRect(),We=ie.clientX,Be=ie.clientY,Xe=Be>Se.bottom-10&&Be<Se.bottom+25,Ye=We>Se.right-10&&We<Se.right+25;if(Xe&&Ye){Ze.cancel();const et=He.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell"),ze=et[et.length-1];if(ze&&(Ce.current=ze),y.row&&y.column)return;const{y:at,left:tt}=e.getBoundingClientRect(),ot=(ct=He.closest)==null?void 0:ct.call(He,".dsd__theme__table-scrollable-wrapper"),qe=ot==null?void 0:ot.getBoundingClientRect(),ut=qe?Math.min(Se.right,qe.right):Se.right;c({top:(qe?qe.bottom:Se.bottom)-at+6,left:qe?qe.left-tt:Se.left-tt,width:qe?Math.min(Se.width,qe.width):Se.width,padding:0}),f({top:Se.top-at,left:ut-tt+6,height:qe?qe.height:Se.height,padding:0}),k(Ot=>({...Ot,row:!0,column:!0}));return}}const $e=e.querySelector(".dsd__theme__tableAddColumns"),rt=e.querySelector(".dsd__theme__tableAddRows");{const Se=ie.clientX,We=ie.clientY;if($e){const Be=$e.getBoundingClientRect();if(Se>=Be.left-6&&Se<=Be.right&&We>=Be.top&&We<=Be.bottom){Ze.cancel();return}}if(rt){const Be=rt.getBoundingClientRect();if(Se>=Be.left&&Se<=Be.right&&We>=Be.top-6&&We<=Be.bottom){Ze.cancel();return}}}if(Ae.closest(".dsd__theme__tableAddRows")||Ae.closest(".dsd__theme__tableAddColumns")||Ae.closest(".dsd__theme__tableAddCorner")||Ae.closest(".table-cell-action-button-container")||Ae.closest(".table-row-add-container")||Ae.closest(".table-cell-add-container")||Ae.closest('[data-testid^="table-"]')||Ae.closest(".mantine-Menu-dropdown")){Ze.cancel();return}if(document.body.classList.contains("table-drag-active"))return;const Je=(be=Ae.closest)==null?void 0:be.call(Ae,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(Ae.className==="ContentEditable__root"||Ae.className==="ContentEditable__root focused"||Ae.className==="dsd__theme__table-scrollable-wrapper"||Ae.className==="content-editable-wrapper"){const Se="td.dsd__theme__tableCell, th.dsd__theme__tableCell",We=document.elementFromPoint(ie.x-20,ie.y),Be=document.elementFromPoint(ie.x,ie.y-20),Xe=We==null?void 0:We.closest(Se),Ye=Be==null?void 0:Be.closest(Se);if(Xe&&Ye){Ze.cancel();const et=Ye.closest("table.dsd__theme__table");if(et){const ze=et.querySelectorAll("td.dsd__theme__tableCell, th.dsd__theme__tableCell");Ce.current=ze[ze.length-1]||Ye}else Ce.current=Ye;if(y.row&&y.column)return;if(et){const ze=et.getBoundingClientRect(),{y:at,left:tt}=e.getBoundingClientRect(),ot=et.closest(".dsd__theme__table-scrollable-wrapper"),qe=ot==null?void 0:ot.getBoundingClientRect(),ut=qe?Math.min(ze.right,qe.right):ze.right;c({top:(qe?qe.bottom:ze.bottom)-at+6,left:qe?qe.left-tt:ze.left-tt,width:qe?Math.min(ze.width,qe.width):ze.width,padding:0}),f({top:ze.top-at,left:ut-tt+6,height:ze.height,padding:0})}k(ze=>({...ze,row:!0,column:!0}));return}if(Xe){Ze.cancel(),Ce.current=Xe;const et=Xe.closest("table.dsd__theme__table");if(et){const ze=et.getBoundingClientRect(),{y:at,left:tt}=e.getBoundingClientRect(),ot=et.closest(".dsd__theme__table-scrollable-wrapper"),qe=ot==null?void 0:ot.getBoundingClientRect(),ut=qe?Math.min(ze.right,qe.right):ze.right;f({top:ze.top-at,left:ut-tt+6,height:ze.height,padding:0}),k(Ot=>({...Ot,column:!0}))}return}if(Ye){Ze.cancel(),Ce.current=Ye;const et=Ye.closest("table.dsd__theme__table");if(et){const ze=et.getBoundingClientRect(),{y:at,left:tt}=e.getBoundingClientRect(),ot=et.closest(".dsd__theme__table-scrollable-wrapper"),qe=ot==null?void 0:ot.getBoundingClientRect();c({top:(qe?qe.bottom:ze.bottom)-at+6,left:qe?qe.left-tt:ze.left-tt,width:qe?Math.min(ze.width,qe.width):ze.width,padding:0}),k(ut=>({...ut,row:!0}))}return}}if(Je){if(oe.current){r.read(()=>{var We,Be;const Se=p.$getNearestNodeFromDOMNode(Je);if(Pe(Se)){const Xe=ve.$findMatchingParent(Se,Ye=>St(Ye));if(St(Xe)){const Ye=Xe.getChildrenSize(),et=(We=Xe.getChildAtIndex(0))==null?void 0:We.getChildrenSize(),ze=Qo(Se),at=Jo(Se),tt=ze===Ye-1,ot=at===et-1,qe=Je.closest("table.dsd__theme__table"),ut=(Be=he.current)==null?void 0:Be.closest("table.dsd__theme__table");if(qe&&ut&&qe!==ut&&(tt||ot)){const bt=qe.getBoundingClientRect(),{y:Lt,left:Nt}=e.getBoundingClientRect();if(r.getElementByKey(Xe.getKey()),tt&&(Ce.current=Je,c({left:bt.left-Nt,top:bt.bottom-Lt+6,width:bt.width,padding:0})),ot){const tn=qe.closest(".dsd__theme__table-scrollable-wrapper"),Ut=tn==null?void 0:tn.getBoundingClientRect(),an=Ut?Math.min(bt.right,Ut.right):bt.right;Ce.current=Je,f({top:bt.top-Lt,left:an-Nt+6,height:bt.height,padding:0})}}k(bt=>({...bt,row:tt,column:ot}))}}});return}r.read(()=>{var We;const Se=p.$getNearestNodeFromDOMNode(Je);if(Pe(Se)){const Be=ve.$findMatchingParent(Se,Xe=>St(Xe));if(St(Be)){const Xe=Be.getChildrenSize(),Ye=(We=Be.getChildAtIndex(0))==null?void 0:We.getChildrenSize(),et=Qo(Se),ze=Jo(Se),at=et===Xe-1,tt=ze===Ye-1;if(w.current&&(clearTimeout(w.current),w.current=null),at||tt){const ot=r.getElementByKey(Be.getKey());if(ot){const qe=ot.querySelector("table.dsd__theme__table")||ot,ut=qe.getBoundingClientRect(),{y:Ot,left:bt}=e.getBoundingClientRect(),Lt=qe.closest(".dsd__theme__table-scrollable-wrapper"),Nt=Lt==null?void 0:Lt.getBoundingClientRect();if(at&&(Ce.current=Je,c({top:(Nt?Nt.bottom:ut.bottom)-Ot+6,left:Nt?Nt.left-bt:ut.left-bt,width:Nt?Math.min(ut.width,Nt.width):ut.width,padding:0})),tt){Ce.current=Je;const tn=Nt?Math.min(ut.right,Nt.right):ut.right;f({top:ut.top-Ot,left:tn-bt+6,height:Nt?Nt.height:ut.height,padding:0})}}}x(ot=>({...ot,row:at,column:tt}))}}});return}oe.current?(y.row||y.column)&&k(Se=>({...Se,row:!1,column:!1})):(y.row||y.column)&&Ze(ie)};return document.addEventListener("mousemove",me),()=>{document.removeEventListener("mousemove",me)}},[o,Ze,y.options,y.row,y.column]),m.useEffect(()=>{if(!o)return;const me=ie=>{var $e;Ze.cancel(),K.current=null;const Ae=ie.target;if(G.current)return;const Oe=r.getEditorState().read(()=>p.$getSelection());if(xt(Oe))return;const He=($e=Ae==null?void 0:Ae.closest)==null?void 0:$e.call(Ae,"td.dsd__theme__tableCell, th.dsd__theme__tableCell");if(!He){oe.current=!1,dt();return}ie.shiftKey||(oe.current=!0,Ce.current=He,he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),J(!1),Fe(null),we(null),ha(!1),r.update(()=>{var at,tt,ot,qe;const rt=p.$getNearestNodeFromDOMNode(He);if(!Pe(rt))return;const Je=p.$getSelection();xt(Je)&&rt.selectStart();const ct=ve.$findMatchingParent(rt,ut=>St(ut));if(!St(ct))return;const be=r.getElementByKey(ct.getKey());if(!be)return;const Se=ct.getChildrenSize(),We=(at=ct.getChildAtIndex(0))==null?void 0:at.getChildrenSize(),Be=Qo(rt),Xe=Jo(rt),Ye=Be===Se-1,et=Xe===We-1;Le.current=(tt=be.firstChild)==null?void 0:tt.childNodes[Be+1].firstChild,Ue.current=(qe=(ot=be.firstChild)==null?void 0:ot.childNodes[1])==null?void 0:qe.childNodes[Xe],ce.current=rt;const ze=r.getElementByKey(rt.getKey());ze&&(ze.classList.add("dsd__theme__tableCellActive"),he.current=ze),k({top:!0,bottom:!0,left:!0,right:!0,column:et,row:Ye,options:!0}),H(!1),Z(!1),ee(!1),setTimeout(()=>{var Vt,Xt,_r;const{width:ut,y:Ot,left:bt,right:Lt,bottom:Nt,height:tn}=be.getBoundingClientRect(),{y:Ut,left:an}=e.getBoundingClientRect();if(ce.current){const Ve=r.getElementByKey(ce.current.getKey());if(Ve){const wt=Ve.getBoundingClientRect(),ho=be.getBoundingClientRect().left+be.clientWidth;let Wn=wt.right-an-8;wt.right>ho&&(Wn=ho-an-8),_({top:wt.top-Ut+wt.height/2-11,left:Wn}),S({top:wt.top-Ut+wt.height/2-11,left:bt-an-6}),R({top:Ot-Ut-6,left:wt.left-an+wt.width/2-11})}}if(Ue.current){const{top:Ve,width:wt,left:wn,right:ho}=Ue.current.getBoundingClientRect(),Wn=xc;let bl=wt+Wn+2;ho>Lt&&(bl-=ho-Lt),g({width:bl,height:Wn,top:Ve-Ut-Wn/2,left:wn-an-Wn/2})}if(Le.current){const{top:Ve,height:wt}=Le.current.getBoundingClientRect(),wn=xc;b({height:wt+wn+2,top:Ve-Ut-wn/2,left:bt-an-wn/2})}const Kt=(Vt=be.parentElement)!=null&&Vt.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(Ye){const Ve=((Xt=be.firstElementChild)==null?void 0:Xt.clientWidth)||0,wt=be.closest(".dsd__theme__table-scrollable-wrapper"),wn=wt==null?void 0:wt.getBoundingClientRect();c({left:wn?wn.left-an:bt-an,top:(wn?wn.bottom:Nt)-Ut+6,width:wn?Math.min(ut>Ve?Ve:ut,wn.width):ut>Ve?Ve:ut,padding:0,backgroundColor:Kt})}if(et){const{right:Ve}=(_r=be.firstElementChild)==null?void 0:_r.getBoundingClientRect(),wt=Math.min(Ve,Lt);f({height:tn,left:wt-an+6,top:Ot-Ut,padding:0,backgroundColor:Kt})}},100)}))};return document.addEventListener("click",me),()=>{dt(),Ze.cancel(),document.removeEventListener("click",me)}},[o,Ze]),m.useEffect(()=>{if(ce.current)return(T||N)&&(he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current),r.getEditorState().read(()=>{const me=ce.current;if(!me||!Pe(me))return;let ie,Ae;try{ie=Hn(me),Ae=ie.getChildren()}catch{return}let Oe=null,He=null;if(T){let $e;try{$e=Qo(me)}catch{return}const rt=Ae[$e];if(_t(rt)){const Je=rt.getChildren(),ct=Je[0],be=Je[Je.length-1];Pe(ct)&&Pe(be)&&(Oe=r.getElementByKey(ct.getKey()),He=r.getElementByKey(be.getKey()))}}if(N){let $e;try{$e=Jo(me)}catch{return}const rt=Ae[0],Je=Ae[Ae.length-1];if(_t(rt)&&_t(Je)){const ct=rt.getChildAtIndex($e),be=Je.getChildAtIndex($e);Pe(ct)&&Pe(be)&&(Oe=r.getElementByKey(ct.getKey()),He=r.getElementByKey(be.getKey()))}}if(Oe&&He){const{y:$e,left:rt}=e.getBoundingClientRect(),Je=Oe.getBoundingClientRect(),ct=He.getBoundingClientRect(),be=Oe.closest(".dsd__theme__table-scrollable-wrapper"),Se=be==null?void 0:be.getBoundingClientRect(),We=Math.min(Je.top,ct.top),Be=Math.max(Je.bottom,ct.bottom),Xe=Math.min(Je.left,ct.left),Ye=Math.max(Je.right,ct.right),et=Se?Math.max(We,Se.top):We,ze=Se?Math.min(Be,Se.bottom):Be,at=Se?Math.max(Xe,Se.left):Xe,tt=Se?Math.min(Ye,Se.right):Ye;tt>at&&ze>et&&Fe({top:et-$e-1,left:at-rt,width:tt-at,height:ze-et+1})}})),()=>{Fe(null)}},[T,N,r,e]),m.useEffect(()=>r.registerUpdateListener(({editorState:me})=>{me.read(()=>{const ie=p.$getSelection();if(xt(ie)){oe.current=!1,he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null);const Ae=ie.anchor.getNode(),Oe=Pe(Ae)?Ae:ve.$findMatchingParent(Ae,Pe),He=ie.focus.getNode(),$e=Pe(He)?He:ve.$findMatchingParent(He,Pe);if(!Pe(Oe)||!Pe($e))return;const rt=r.getElementByKey(Oe.getKey()),Je=r.getElementByKey($e.getKey());if(!rt||!Je)return;const{y:ct,left:be}=e.getBoundingClientRect(),Se=rt.getBoundingClientRect(),We=Je.getBoundingClientRect(),Be=Math.min(Se.top,We.top),Xe=Math.max(Se.bottom,We.bottom),Ye=Math.min(Se.left,We.left),et=Math.max(Se.right,We.right);we(Oe),_({top:(Be+Xe)/2-ct-11,left:et-be-8}),Fe({top:Be-ct,left:Ye-be,width:et-Ye,height:Xe-Be}),J(!0),k(at=>({...at,options:!0})),ha(!0);const ze=Hn(Oe).getKey();requestAnimationFrame(()=>{const at=r.getElementByKey(ze),tt=at==null?void 0:at.querySelectorAll(".dsd__theme__tableCell");tt==null||tt.forEach(ot=>{const qe=ot;qe.style.backgroundColor==="rgb(172, 206, 247)"&&(qe.style.backgroundColor=""),qe.style.backgroundImage=""})});return}Q&&!xt(ie)&&!G.current&&(J(!1),Fe(null),we(null),ha(!1))})}),[r,e,Q]),m.useEffect(()=>{const me=()=>{document.body.classList.contains("table-drag-active")||(J(!1),Fe(null),we(null),ha(!1),he.current&&(he.current.classList.remove("dsd__theme__tableCellActive"),he.current=null),oe.current=!1,r.update(()=>{p.$setSelection(null)}))},ie=e.querySelectorAll(".dsd__theme__table-scrollable-wrapper");return ie.forEach(Ae=>Ae.addEventListener("scroll",me,{passive:!0})),()=>ie.forEach(Ae=>Ae.removeEventListener("scroll",me))},[r,e]),m.useEffect(()=>ve.mergeRegister(r.registerMutationListener(Vr,me=>{r.getEditorState().read(()=>{for(const[ie,Ae]of me)switch(Ae){case"created":Y.current.add(ie),ne.current=r.getElementByKey(ie),s(Y.current.size>0);break;case"destroyed":Y.current.delete(ie),s(Y.current.size>0);break;case"updated":document.body.classList.contains("table-drag-active")||s(!0);const Oe=r.getElementByKey(ie);ne.current=Oe;break}})})),[r]),m.useEffect(()=>{var Oe,He,$e,rt,Je,ct;if(!y.row&&!y.column)return;const me=((He=(Oe=Ce.current)==null?void 0:Oe.closest)==null?void 0:He.call(Oe,"table.dsd__theme__table"))||((rt=($e=ne.current)==null?void 0:$e.querySelector)==null?void 0:rt.call($e,"table.dsd__theme__table"))||((ct=(Je=ne.current)==null?void 0:Je.closest)==null?void 0:ct.call(Je,"table.dsd__theme__table"));if(!me)return;let ie=0;const Ae=new ResizeObserver(()=>{cancelAnimationFrame(ie),ie=requestAnimationFrame(()=>{if(document.body.classList.contains("table-drag-active"))return;const be=me.getBoundingClientRect(),Se=e.getBoundingClientRect(),We=me.closest(".dsd__theme__table-scrollable-wrapper"),Be=We==null?void 0:We.getBoundingClientRect(),Xe=Be?Math.min(be.right,Be.right):be.right,Ye=e.querySelector(".dsd__theme__tableAddRows"),et=e.querySelector(".dsd__theme__tableAddColumns"),ze=e.querySelector(".dsd__theme__tableAddCorner");if(Ye){const at=Be?Be.left-Se.left:be.left-Se.left,tt=Be?Math.min(be.width,Be.width):be.width,ot=Be?Be.bottom:be.bottom;Ye.style.top=`${ot-Se.y+6}px`,Ye.style.left=`${at}px`,Ye.style.width=`${tt}px`}et&&(et.style.top=`${be.top-Se.y}px`,et.style.left=`${Xe-Se.left+6}px`,et.style.height=`${be.height}px`),ze&&(ze.style.top=`${be.bottom-Se.y+6}px`,ze.style.left=`${Xe-Se.left+6}px`)})});return Ae.observe(me),()=>{cancelAnimationFrame(ie),Ae.disconnect()}},[y.row,y.column,e]);const Wt=me=>{r.update(()=>{if(Ce.current){const ie=p.$getNearestNodeFromDOMNode(Ce.current);me?(ie==null||ie.selectNext(),Va(),dt()):(ie==null||ie.selectEnd(),ou(),dt())}})},Dt=20,ue=60,re=m.useCallback((me,ie)=>{var Ye,et;ie.preventDefault(),ie.stopPropagation(),w.current&&(clearTimeout(w.current),w.current=null),x(ze=>({...ze,row:me==="row"||me==="both"||ze.row,column:me==="column"||me==="both"||ze.column}));const Ae=ie.clientX,Oe=ie.clientY;let He=0,$e=0;const rt=2,Je=2;let ct=rt,be=Je;const Se=Ce.current||ne.current;if(Se){const ze=((Ye=Se.closest)==null?void 0:Ye.call(Se,"table"))||((et=Se.querySelector)==null?void 0:et.call(Se,"table"));if(ze){ct=ze.querySelectorAll("tr").length;const at=ze.querySelector("tr");be=at?at.querySelectorAll("td, th").length:Je}}const We=ze=>{var bt,Lt,Nt,tn,Ut,an;ze.preventDefault(),Be||(Be=!0,w.current&&(clearTimeout(w.current),w.current=null),x({top:!1,bottom:!1,left:!1,right:!1,column:me==="column"||me==="both",row:me==="row"||me==="both",options:!1})),(bt=window.getSelection())==null||bt.removeAllRanges();const at=ze.clientX-Ae,tt=ze.clientY-Oe;let ot=tt,qe=at;if(me==="both"){const Kt=Math.floor(tt/Dt),Vt=Math.floor(at/ue),Xt=Math.abs(Kt)>=Math.abs(Vt)?Kt:Vt;ot=Xt*Dt,qe=Xt*ue}if(me==="row"||me==="both"){const Kt=Math.floor(ot/Dt);for(;He<Kt;)try{r.update(()=>{if(Ce.current){const Vt=p.$getNearestNodeFromDOMNode(Ce.current);Vt==null||Vt.selectNext(),Va()}}),He++}catch{break}for(;He>Kt&&!(ct+He<=rt);)try{r.update(()=>{if(Ce.current){const Xt=p.$getNearestNodeFromDOMNode(Ce.current);Xt==null||Xt.selectEnd()}KA()}),He--}catch{break}}if(me==="column"||me==="both"){const Kt=Math.floor(qe/ue);for(;$e<Kt;)try{r.update(()=>{if(Ce.current){const Xt=p.$getNearestNodeFromDOMNode(Ce.current);Xt==null||Xt.selectEnd(),ou()}}),$e++;const Vt=(Nt=(Lt=Ce.current)==null?void 0:Lt.closest)==null?void 0:Nt.call(Lt,".dsd__theme__table-scrollable-wrapper");Vt&&(Vt.scrollLeft=Vt.scrollWidth)}catch{break}for(;$e>Kt&&!(be+$e<=Je);)try{r.update(()=>{if(Ce.current){const Xt=p.$getNearestNodeFromDOMNode(Ce.current);Xt==null||Xt.selectEnd()}HA()}),$e--}catch{break}}const ut=((tn=Ce.current)!=null&&tn.isConnected?Ce.current:null)||ne.current,Ot=((Ut=ut==null?void 0:ut.closest)==null?void 0:Ut.call(ut,"table"))||((an=ut==null?void 0:ut.querySelector)==null?void 0:an.call(ut,"table"));if(Ot){const Kt=Ot.getBoundingClientRect();if(Kt.width<=0)return;const{y:Vt,left:Xt}=e.getBoundingClientRect(),_r=Ot.closest(".dsd__theme__table-scrollable-wrapper"),Ve=_r==null?void 0:_r.getBoundingClientRect(),wt=Ve?Math.min(Kt.right,Ve.right):Kt.right,wn=Ve?Math.min(Kt.width,Ve.width):Kt.width,ho=Ve?Ve.left-Xt:Kt.left-Xt;c(Wn=>({...Wn,top:(Ve?Ve.bottom:Kt.bottom)-Vt+6,left:ho,width:wn})),f(Wn=>({...Wn,top:Kt.top-Vt,left:wt-Xt+6,height:Kt.height}))}};document.body.style.userSelect="none",document.body.classList.add("table-drag-active");let Be=!1;const Xe=()=>{document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",Xe),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("table-drag-active"),Be||((me==="row"||me==="both")&&Wt(!0),(me==="column"||me==="both")&&Wt(!1)),k(ze=>({...ze,row:me==="row"||me==="both",column:me==="column"||me==="both"}))};document.body.style.cursor=me==="row"?"row-resize":me==="column"?"col-resize":"nwse-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",We),document.addEventListener("mouseup",Xe)},[r,dt]);return window.matchMedia("(pointer: coarse)").matches,i.jsxs(i.Fragment,{children:[Te&&i.jsx("div",{style:{position:"absolute",boxSizing:"border-box",top:Te.top,left:Te.left,width:Te.width,height:Te.height,border:"1.5px solid var(--mantine-color-blue-outline, #228be6)",pointerEvents:"none",zIndex:5},"data-testid":"table-multi-cell-border"}),i.jsx(v.Transition,{mounted:!!((ce.current||xe)&&y.options),transition:"fade",duration:300,timingFunction:"ease",children:me=>{var ie;return i.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-cell-menu-button",style:{...me,...B},onMouseDown:Ae=>{Q&&Ae.stopPropagation()},onMouseEnter:()=>H(!0),onMouseLeave:()=>{j||H(!1)},children:(ce.current||xe)&&i.jsx(jf,{isMenuOpen:j,contextRef:ge,tableCellNode:xe||ce.current,cellMerge:t,setIsMenuOpen:Ae=>{D(Ae),Ae||H(!1)},tableDom:((ie=Ce.current)==null?void 0:ie.closest("table.dsd__theme__table"))||ne.current,menuContext:"cell",children:i.jsx("div",{ref:ge,style:{width:14,height:22,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:z||j?4:0,backgroundColor:z||j?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:z||j?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:z||j?i.jsx($,{icon:Pc,size:10,color:"var(--mantine-color-white, #fff)"}):i.jsx("div",{style:{width:12,height:1.5,transform:"rotate(90deg)",backgroundColor:"var(--mantine-color-blue-outline, #228be6)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),i.jsx(v.Transition,{mounted:!!(ce.current&&y.options&&!Q),transition:"fade",duration:300,timingFunction:"ease",children:me=>{var ie;return i.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-row-button",style:{...me,...M},onMouseEnter:()=>Z(!0),onMouseLeave:()=>{T||Z(!1)},children:ce.current&&i.jsx(jf,{isMenuOpen:T,contextRef:ae,tableCellNode:ce.current,cellMerge:t,setIsMenuOpen:Ae=>{I(Ae),Ae||Z(!1)},tableDom:((ie=Ce.current)==null?void 0:ie.closest("table.dsd__theme__table"))||ne.current,menuContext:"row",children:i.jsx("div",{ref:ae,style:{width:14,height:22,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:F||T?4:0,backgroundColor:F||T?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:F||T?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:F||T?i.jsx($,{icon:Pc,size:10,color:"var(--mantine-color-white, #fff)"}):i.jsx("div",{style:{width:12,height:1.5,transform:"rotate(90deg)",backgroundColor:"var(--mantine-color-gray-light-color, #868e96)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),i.jsx(v.Transition,{mounted:!!(ce.current&&y.options&&!Q),transition:"fade",duration:300,timingFunction:"ease",children:me=>{var ie;return i.jsx("div",{className:"table-cell-action-button-container","data-testid":"table-column-button",style:{...me,...O},onMouseEnter:()=>ee(!0),onMouseLeave:()=>{N||ee(!1)},children:ce.current&&i.jsx(jf,{isMenuOpen:N,contextRef:pe,tableCellNode:ce.current,cellMerge:t,setIsMenuOpen:Ae=>{L(Ae),Ae||ee(!1)},tableDom:((ie=Ce.current)==null?void 0:ie.closest("table.dsd__theme__table"))||ne.current,menuContext:"column",children:i.jsx("div",{ref:pe,style:{width:22,height:14,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:q||N?4:0,backgroundColor:q||N?"var(--mantine-color-blue-light-color, #228be6)":"transparent",border:q||N?"1.5px solid var(--app-root-bg, #f1f5f9)":"none"},children:q||N?i.jsx("span",{style:{transform:"rotate(90deg)",display:"flex"},children:i.jsx($,{icon:Pc,size:10,color:"var(--mantine-color-white, #fff)"})}):i.jsx("div",{style:{width:12,height:1.5,backgroundColor:"var(--mantine-color-gray-light-color, #868e96)",borderRadius:100,border:"1.5px solid var(--app-root-bg, #f1f5f9)"}})})})})}}),i.jsx(v.Transition,{mounted:y.row,transition:"fade",duration:150,timingFunction:"ease",children:me=>i.jsx(v.Tooltip,{label:je("editor.table.menu.addRowBelow"),position:"bottom",children:i.jsx("button",{className:"dsd__theme__tableAddRows",style:{...me,...l,display:"flex",alignItems:"center",justifyContent:"center",height:14,borderRadius:4,backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",border:"none",cursor:"row-resize"},onMouseDown:ie=>re("row",ie),children:i.jsx($,{icon:Bc,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),i.jsx(v.Transition,{mounted:y.column,transition:"fade",duration:300,timingFunction:"ease",children:me=>i.jsx(v.Tooltip,{label:je("editor.table.menu.addColAfter"),position:"right",children:i.jsx("button",{className:"dsd__theme__tableAddColumns",style:{...me,...d,display:"flex",alignItems:"center",justifyContent:"center",width:14,borderRadius:4,backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",border:"none",cursor:"col-resize"},onMouseDown:ie=>re("column",ie),children:i.jsx($,{icon:Bc,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})}),i.jsx(v.Transition,{mounted:y.row&&y.column,transition:"fade",duration:300,timingFunction:"ease",children:me=>i.jsx(v.Tooltip,{label:je("editor.table.menu.addRowAndCol"),position:"bottom",children:i.jsx("button",{className:"dsd__theme__tableAddCorner",style:{...me,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",width:14,height:14,padding:0,borderRadius:4,border:"none",cursor:"nwse-resize",backgroundColor:"var(--mantine-color-gray-light, rgba(134,142,150,0.1))",top:l.top??0,left:d.left??0},onMouseDown:ie=>re("both",ie),children:i.jsx($,{icon:Bc,size:12,color:"var(--mantine-color-gray-light-color, #868e96)"})})})})]})}function RR(e,n,t){const r=e.target;let o="";const s=document.querySelector("div.new-paragraph");if(n.read(()=>{const l=p.$getRoot().getLastChild();St(l)&&!t&&s&&(o="editor",s.style.visibility="hidden")}),r&&(r instanceof HTMLElement||r instanceof SVGElement)){const l="td.dsd__theme__tableCell, th.dsd__theme__tableCell";let c=r.closest(l),d=null;if(r.className==="ContentEditable__root"||r.className==="ContentEditable__root focused"||r.className==="dsd__theme__table-scrollable-wrapper"||r.className==="dsd__theme__callout-wrapper"||r.className==="dsd__theme__layoutItem"||r.className==="dsd__theme__callout-container"||r.className===o){const A=document.elementFromPoint(e.x-40,e.y),b=document.elementFromPoint(e.x,e.y-40);if(A||b){const y=A==null?void 0:A.closest(l),x=b==null?void 0:b.closest(l);y&&r.className!=="dsd__theme__layoutItem"&&(c=y,d="right"),x&&(c=x,d="bottom")}}let f=r.closest(".dsd__theme__tableAddRows")||r.closest(".table-cell-action-button-container")||r.closest(".dsd__theme__tableAddColumns")||r.closest(".dsd__theme__tableAddCorner");const h=r.closest(".mantine-Menu-dropdown"),g=!(c||f||h||r.closest("div.TableCellResizer__resizer"));return g&&!t&&(s==null?void 0:s.style.visibility)==="hidden"&&(s.style.visibility=""),{isOutside:g,tableDOMNode:c,edgeDirection:d}}else return{isOutside:!0,tableDOMNode:null,edgeDirection:null}}function IR({anchorElem:e=document.body,cellMerge:n=!1}){return Br.createPortal(i.jsx(jR,{isShowTableOptions:!1,cellMerge:n,anchorElem:e}),e)}const hu=624,l5=9;function DR(e,n,t){return e||`${t("editor.heading.name")} ${n.split("")[1]}`}function OR(e){var t;const n=(t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y;return n>=hu&&n<=hu+l5}function vc(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)<hu}function Rf(e){var t;return((t=e==null?void 0:e.getClientRects()[0])==null?void 0:t.y)>=hu+l5}function PR({tableOfContents:e}){const[n,t]=m.useState(""),r=m.useRef(0),[o]=it.useLexicalComposerContext(),{t:s}=Ke.useTranslation(),[l,c]=m.useState(!1);function d(f,h){o.getEditorState().read(()=>{const g=o.getElementByKey(f);g!==null&&(g.classList.add("ScrollToBlock"),g.scrollIntoView({behavior:"smooth",block:"center"}),t(f),r.current=h,setTimeout(()=>{g.classList.remove("ScrollToBlock")},2e3))})}return m.useEffect(()=>{function f(){if(e.length>0&&r.current<e.length-1){let b=o.getElementByKey(e[r.current][0]);if(b!==null){if(Rf(b)){for(;b!==null&&Rf(b)&&r.current>0;){const x=o.getElementByKey(e[r.current-1][0]);x!==null&&(vc(x)||Rf(x))&&r.current--,b=x}const y=e[r.current][0];t(y)}else if(vc(b)){for(;b!==null&&vc(b)&&r.current<e.length-1;){const x=o.getElementByKey(e[r.current+1][0]);x!==null&&(OR(x)||vc(x))&&r.current++,b=x}const y=e[r.current][0];t(y)}}}else r.current=0}let h;function g(b,y){clearTimeout(h),h=setTimeout(b,y)}function A(){g(f,10)}return document.addEventListener("scroll",A),()=>document.removeEventListener("scroll",A)},[e,o]),e.length<2?i.jsx(i.Fragment,{}):i.jsxs(v.Popover,{opened:l,onClose:()=>c(!1),width:300,position:"left",offset:-55,transitionProps:{transition:{in:{opacity:1,transform:"translateX(0px)"},out:{opacity:0,transform:"translateX(25px)"},transitionProperty:"transform, opacity"},duration:100,exitDelay:50,exitDuration:200},children:[i.jsx(v.Popover.Target,{children:i.jsx(v.Box,{className:"table-of-contents-container",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:i.jsx(v.Box,{className:"table-of-contents",children:i.jsx(v.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:e.map(([f,,h],g)=>i.jsx(v.Box,{onClick:()=>d(f,g),style:{height:4,borderRadius:"4px",cursor:"pointer",backgroundColor:n===f?"light-dark(var(--mantine-color-dark-2), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-0), var(--mantine-color-dark-2))",width:h==="h1"?"38px":h==="h2"?"25px":"15px",transition:"all 0.7s"}},f))})})})}),i.jsxs(v.Popover.Dropdown,{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[i.jsx(v.Text,{size:"xs",children:s("editor.content")}),e.map(([f,h,g],A)=>i.jsx(v.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>d(f,A),style:{fontSize:g==="h1"?"1.25rem":g==="h2"?"1rem":"0.875rem",marginLeft:g==="h1"?"0.25rem":g==="h2"?"0.75rem":"2.25rem",color:n===f?"light-dark(var(--mantine-color-blue-6), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-8), var(--mantine-color-dark-2))"},children:DR(h,g,s)},f))]})]})}function Sh(){return i.jsx(y9.TableOfContentsPlugin,{children:e=>i.jsx(PR,{tableOfContents:e})})}function BR({children:e}){const[n,t]=m.useState({cellEditorConfig:null,cellEditorPlugins:null});return i.jsx(pR.Provider,{value:m.useMemo(()=>({cellEditorConfig:n.cellEditorConfig,cellEditorPlugins:n.cellEditorPlugins,set:(r,o)=>{t({cellEditorConfig:r,cellEditorPlugins:o})}}),[n.cellEditorConfig,n.cellEditorPlugins]),children:e})}function _R({hasCellMerge:e,hasCellBackgroundColor:n}){return mR({hasCellMerge:e,hasCellBackgroundColor:n,hasTabHandler:!0,hasHorizontalScroll:!0}),null}function FR(e){const{floatingAnchorElem:n}=e,{disable:t}=m.useContext(ft),{settings:{tableCellMerge:r,showTableOfContents:o,tableCellBackgroundColor:s}}=P1();return gR(),i.jsxs(i.Fragment,{children:[i.jsx(_R,{hasCellMerge:r,hasCellBackgroundColor:s}),!t&&i.jsx(yR,{}),n&&i.jsxs(i.Fragment,{children:[!t&&i.jsx(IR,{anchorElem:n,cellMerge:!0}),i.jsx("div",{children:o&&i.jsx(Sh,{})})]})]})}const WR=[{name:"alert",color:"rgb(250, 82, 82)",icon:i.jsx(Ee.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(64, 192, 87)",icon:i.jsx(Ee.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(250, 176, 5)",icon:i.jsx(Ee.IconAlertTriangle,{size:16}),emoji:"⚠️"}],zR=e=>e.mode==="callout";function UR({anchorElem:e}){const[n]=it.useLexicalComposerContext(),{t}=Ke.useTranslation(),{disable:r}=m.useContext(ft),[o,s]=m.useState(!1),[l,c]=m.useState(null),[d,f]=m.useState({right:"0",top:"0"}),h=m.useRef(null),g=o?"auto":"none",A=Qi(y=>{const{lexicalDOMNode:x,isOutside:w}=Zu(y,"div.dsd__theme__callout-wrapper",["div.dropdown-select-language","div.mantine-Select-option","div.action-menu-container","div.mantine-Menu-dropdown"]);if(w){s(!1);return}if(!x)return;let k=null;if(n.update(()=>{const T=p.$getNearestNodeFromDOMNode(x);fo(T)&&(k=T,c(T.__key))}),k){const{y:T,right:I,left:N}=e.getBoundingClientRect(),{y:L,right:M,left:S}=x.getBoundingClientRect();s(!0),h.current&&(h.current.style.visibility="visible");const O=L-T,R=I-M,B=S-N;f(()=>({right:`${R}px`,left:`${B}px`,top:`${O}px`}))}},50,500);if(m.useEffect(()=>ve.mergeRegister(n.registerMutationListener(Ro,y=>{n.getEditorState().read(()=>{for(const[x,w]of y)w==="destroyed"&&s(!1)})}),n.registerUpdateListener(({dirtyElements:y,dirtyLeaves:x})=>{o&&(y.size>0||x.size>0)&&n.getEditorState().read(()=>{const w=l!=null?p.$getNodeByKey(l):null;(!w||!fo(w))&&h.current&&(h.current.style.visibility="hidden")})})),[n,o,l]),m.useEffect(()=>(document.addEventListener("mousemove",A),()=>{s(!1),A.cancel(),document.removeEventListener("mousemove",A)}),[A]),r)return null;const b=y=>{n.update(()=>{const x=p.$getNodeByKey(l);fo(x)&&n.update(()=>{const w=zR(y);x.setType(w?y.meta.type:void 0),x.setBackgroundColor(y.value),s(!1)})})};return i.jsx("div",{className:`action-menu-container callout-action ${o?"visible":""}`,ref:h,style:{right:d.right,top:d.top,pointerEvents:g},children:o&&i.jsx(At.NewColorPicker,{data:{callout:{label:t("editor.colors.theme"),filled:!0,palette:WR.map(y=>({label:t(`editor.colors.callout.${y.name}`),value:v.alpha(y.color,.19),icon:y.icon,meta:{type:y.name,emoji:y.emoji}}))}},onChange:y=>{b(y)},modes:["callout","background"],hideInherit:!0,target:i.jsx(v.ActionIcon,{variant:"default","aria-label":"Settings",children:i.jsx(bn,{name:"palette",style:{cursor:"pointer"}})}),menuProps:{trigger:"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},value:{background:"",callout:""}})})}function KR({anchorElem:e=document.body}){return Br.createPortal(i.jsx(UR,{anchorElem:e}),(e==null?void 0:e.parentElement)||document.body)}function HR({onClose:e,children:n,title:t,size:r}){return i.jsx(v.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:e,title:t,zIndex:999,children:n})}function q1(e){const[n,t]=m.useState(null),r=m.useCallback(()=>{t(null)},[]),o=m.useMemo(()=>{if(n===null)return null;const{title:l,content:c,closeOnClickOutside:d}=n;return i.jsx(HR,{onClose:r,title:l,size:"md",closeOnClickOutside:d,children:c})},[n,r]),s=m.useCallback((l,c,d=!1)=>{t({closeOnClickOutside:d,content:c(r),title:l})},[r]);return[o,s]}function w2({children:e,onClick:n,"data-test-id":t,title:r,className:o,small:s,...l}){return i.jsx(v.Button,{radius:"sm",size:s?"xs":"sm",variant:"default",onClick:n,"aria-label":r,className:o,"data-test-id":t,...l,children:e})}async function*c5(e){let n=!1;for(;!n;){const t=await e.read(),{value:r}=t;r!==void 0&&(yield r),n=t.done}}async function YR(e){const n=[];for await(const r of c5(e))for(let o=0;o<r.length;o+=32768)n.push(String.fromCharCode(...r.subarray(o,o+32768)));return n.join("")}async function ZR(e){const n=new CompressionStream("gzip"),t=n.writable.getWriter(),[,r]=await Promise.all([t.write(new TextEncoder().encode(JSON.stringify(e))).then(()=>t.close()),YR(n.readable.getReader())]);return`#doc=${btoa(r).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}`}async function GR(e){const n=/^#doc=(.*)$/.exec(e);if(!n)return null;const t=new DecompressionStream("gzip"),r=t.writable.getWriter(),o=atob(n[1].replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(o.length);for(let d=0;d<o.length;d++)s[d]=o.charCodeAt(d);const l=r.write(s).then(()=>r.close()),c=[];for await(const d of c5(t.readable.pipeThrough(new TextDecoderStream).getReader()))c.push(d);return await l,JSON.parse(c.join(""))}const VR=p.createCommand("SPEECH_TO_TEXT_COMMAND"),qR="SpeechRecognition"in window||"webkitSpeechRecognition"in window;async function QR(e){const n=JSON.stringify(e.getEditorState());try{await fetch("http://localhost:1235/setEditorState",{body:n,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}}async function JR(e){const n=JSON.stringify(e.getEditorState());let t=null;try{t=await fetch("http://localhost:1235/validateEditorState",{body:n,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}if(t!==null&&t.status===403)throw new Error("Editor state validation failed! Server did not accept changes.")}async function XR(e){const n=new URL(window.location.toString());n.hash=await ZR(e);const t=n.toString();window.history.replaceState({},"",t),await window.navigator.clipboard.writeText(t)}function $R({isRichText:e,shouldPreserveNewLinesInMarkdown:n}){const[t]=it.useLexicalComposerContext(),[r,o]=m.useState(()=>t.isEditable()),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(!0),[g,A]=q1(),b=Nu(),y=!1;m.useEffect(()=>{z0.isCollab||GR(window.location.hash).then(w=>{w&&w.source==="Playground"&&(t.setEditorState(ac.editorStateFromSerializedDocument(t,w)),t.dispatchCommand(p.CLEAR_HISTORY_COMMAND,void 0))})},[t]),m.useEffect(()=>ve.mergeRegister(t.registerEditableListener(w=>{o(w)}),t.registerCommand(x9.CONNECTED_COMMAND,w=>(d(w),!1),p.COMMAND_PRIORITY_EDITOR)),[t]),m.useEffect(()=>t.registerUpdateListener(({dirtyElements:w,prevEditorState:k,tags:T})=>{!r&&w.size>0&&!T.has(p.HISTORIC_TAG)&&!T.has(p.COLLABORATION_TAG)&&JR(t),t.getEditorState().read(()=>{const N=p.$getRoot().getChildren();if(N.length>1)h(!1);else if(p.$isParagraphNode(N[0])){const L=N[0].getChildren();h(L.length===0)}else h(!1)})}),[t,r]);const x=m.useCallback(()=>{t.update(()=>{var I;const w=p.$getRoot(),k=w.getFirstChild();let T=null;if(Gt.$isCodeNode(k))T=k;else if(k instanceof p.ElementNode){const L=(((I=k.getChildren)==null?void 0:I.call(k))??[]).find(M=>Gt.$isCodeNode(M));L&&Gt.$isCodeNode(L)&&(T=L)}if(T&&T.getLanguage()==="markdown")ao.$convertFromMarkdownString(T.getTextContent(),Xa,void 0,n);else{for(const M of w.getChildren())if(ls(M)){for(const S of M.getChildren())Gt.$isCodeNode(S)&&M.insertBefore(S);M.remove()}const N=ao.$convertToMarkdownString(Xa,void 0,n),L=Gt.$createCodeNode("markdown");L.append(p.$createTextNode(N)),w.clear().append(L),N.length===0&&L.select()}})},[t,n]);return i.jsxs("div",{className:"actions",children:[qR&&i.jsx("button",{onClick:()=>{t.dispatchCommand(VR,!s),l(!s)},className:"action-button action-button-mic "+(s?"active":""),title:"Speech To Text","aria-label":`${s?"Enable":"Disable"} speech to text`,children:i.jsx($,{icon:W8,size:16})}),i.jsx("button",{className:"action-button import",onClick:()=>ac.importFile(t),title:"Import","aria-label":"Import editor state from JSON",children:i.jsx($,{icon:K8,size:16})}),i.jsx("button",{className:"action-button export",onClick:()=>ac.exportFile(t,{fileName:`Playground ${new Date().toISOString()}`,source:"Playground"}),title:"Export","aria-label":"Export editor state to JSON",children:i.jsx($,{icon:H8,size:16})}),i.jsx("button",{className:"action-button share",disabled:z0.isCollab,onClick:()=>XR(ac.serializedDocumentFromEditorState(t.getEditorState(),{source:"Playground"})).then(()=>b("URL copied to clipboard"),()=>b("URL could not be copied to clipboard")),title:"Share","aria-label":"Share Playground link to current editor state",children:i.jsx($,{icon:Ak,size:16})}),i.jsx("button",{className:"action-button clear",disabled:f,onClick:()=>{A("Clear editor",w=>i.jsx(eI,{editor:t,onClose:w}))},title:"Clear","aria-label":"Clear editor contents",children:i.jsx($,{icon:wk,size:16})}),i.jsx("button",{className:`action-button ${r?"lock":"unlock"}`,onClick:()=>{r&&QR(t),t.setEditable(!t.isEditable())},title:"Read-Only Mode","aria-label":`${r?"Lock":"Unlock"} read-only mode`,children:i.jsx($,{icon:r?Q8:J8,size:16})}),i.jsx("button",{className:"action-button",onClick:x,title:"Convert From Markdown","aria-label":"Convert from markdown",children:i.jsx($,{icon:rk,size:16})}),y,g]})}function eI({editor:e,onClose:n}){return i.jsxs(i.Fragment,{children:["Are you sure you want to clear the editor?",i.jsxs("div",{className:"Modal__content",children:[i.jsx(w2,{onClick:()=>{e.dispatchCommand(p.CLEAR_EDITOR_COMMAND,void 0),e.focus(),n()},children:"Clear"})," ",i.jsx(w2,{onClick:()=>{e.focus(),n()},children:"Cancel"})]})]})}const k2=(e,n,t)=>{if(!e)return null;let r=null;return t.read(()=>{const o=p.$getNearestNodeFromDOMNode(e);r=o&&ve.$getNearestNodeOfType(o,n)}),r},tI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAACWCAYAAAAff3ceAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAGPRSURBVHgB7b1LyG1RUucZcfJW01iZpkU1dKcPqBr4mlWrAxFUUFAHCgWCIx0UOHPiY644VFBHjhzUQB3bDQrqQMGJImIXCIIKnUX7yFFDolbVwPSLuufcHWv/4h+x9jlXHeaC7ztn770e8fxHrLXX3sftffnsZz/37+IT8Z/ff/0P7/++zL5Yvli+WL5YXixh9n/d/pX/2L//zGf+qx9g8v/8m09/6su+9FP/Om7uftYzn9sb69im3gt02LOxdvUC191eo9XsepyPLR8rB9bZ8bSTx6t0P6u3G8vsX04uH1tesYOP1ZvaiW+u24vned3sNVvd0WJPaJp0b/bPs+NnMn7FBse+3iLs7//+v/v///m//bz/K/8/b2+fiF/4t//m05/+si/9pN3crwjiJ79PzNvFuandlXCu6jk+SWNc1J9o1DLx+4wulcNkQL5pq7Tt+NzRqd+nY57/mP52/b5yfZKDyXWWZ7a068c2/ahedu1eBdVnfSlIx0CLD/V0jBj6fcUm8/qVXP8pgWPr//cE5H0iYl/26U9+WfxD/Ofb+97/4ye/5H+9MnQl7EpZE/Lxc9fvVJT4nZBUmTuFXRm3DX3HRT/T96mPqZAO7Wsnv92xjncFmHFRZwI1vTaNN9H8qjNf8cqI+Uxn1NGz+rFpYy+0+Ri9TbTZ8H2qq+fUN6/kOpVnoK592/B9R8+q8+lP/uv7x3+43f/fbjcdYOqIxF1FshgI2EWeZw6zQ/5p7Ak8NOpPEcQ23yfh7s5re9IwRRt/MgbPPTvmWGb7tPmZsTzLFp5F06mPHSiTxsmYTa5/rGPu7ELrXfXPetpmd13PxaaO6k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xkOD1bbZyOdk+yXhL5JJJJeySXq37YnHIZPwPCS8JJJe6SSXolIEyMTjK8Dg9W/tjwcHoPRIj/MAAvU8P0//EAB8RAQEAAgMBAQEBAQAAAAAAAAEAAhARIEAwUGAhcP/aAAgBAwEDPwD/AJJx/B8a5/JZ8fH53NzcesiI/BWZnXHp5sp4uX/blnn2LOyOh7edcS2UySeTmfzTRDGk2zP043z+iMREadMz9+fwT4GudGyCI1xHy40NjH4LPZnRBoiNERpZfoySbIiGPORFjY2NjER1ZsrKyn1JZWUz4mbKyn9pmZnsvZuPIzOmdcTLMzBGudEafIREWNiaZ8J2I06IIjRHUiI8fGmZbnqzJpspmbKy2GuYiPyTscx2INER246n4xERERERERERERERERH7RGmbKZmZ7M9j3H1LGxsbHuzM7fgzMzMz5iIixsYjTLNzM2Usz8iIiOhERERG2dvZ+jZWUzMzNlZWUzs0eZ6keBnbM7ZZnQRERsiPuz9GZmfAREbPaRGiIiLGxsbGwiNMzNlM2UzPVmZmfwWZmZmZmZ06erP2I8LMzM/wrMz/AAZERERER4yOyz+E2VlMzMzMzP3Ieg6CxmfwCIiIiI0d2WymZmeiaNcd2fUREbI6ER8OIsWPC+oufqzMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",Cn={header:(e,n)=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsxs(v.Group,{p:8,gap:0,className:"hintBoard",children:[i.jsx(v.Title,{order:n,mb:"sm",mt:12-(n-1)*4,h:40-(n-1)*4,children:e("editor.heading.name")+` H${n}`}),i.jsx(v.Text,{size:"sm",h:80,lh:"21px",children:e("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e(`editor.menu.heading.h${n}.hintDescription`)})]}),ol:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:i.jsxs(v.List,{type:"ordered",mt:2,children:[i.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),i.jsxs(v.List,{pl:18,listStyleType:"upper-alpha",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),i.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.numberList.hint.description")})]}),ul:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:i.jsxs(v.List,{type:"unordered",mt:2,children:[i.jsx(v.List.Item,{fz:"sm",children:e("editor.menu.lists.numberList.hint.firstItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondItem")}),i.jsxs(v.List,{pl:18,listStyleType:"circle",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubItem")}),i.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.firstSubSubItem")}),i.jsx(v.List.Item,{fz:"sm",mt:2,children:e("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.bulletList.hint.description")})]}),checkList:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:i.jsxs(v.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),i.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")}),i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:e("editor.menu.lists.checkList.hint.indeterminate")}),i.jsxs(v.Checkbox.Group,{pl:18,defaultValue:["check"],children:[i.jsx(v.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:e("editor.menu.lists.checkList.hint.checked")}),i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:e("editor.menu.lists.checkList.hint.unchecked")})]})]}),i.jsx(v.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:e("editor.menu.lists.checkList.hint.checked")})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.lists.checkList.hint.description")})]}),type:(e,n,t)=>r=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsxs(v.Group,{p:8,gap:0,w:"100%",h:150,align:"start",wrap:"nowrap",className:"hintBoard dsd__theme__callout-wrapper","data-emoji":e,"data-type":t,style:n?{backgroundColor:n}:void 0,children:[i.jsx(v.Box,{children:i.jsx(v.Text,{w:26,mr:"sm",ta:"center",children:e})}),i.jsx(v.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.paragraph.hint.description")})]}),quote:e=>i.jsxs(v.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{p:"sm",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:i.jsx(v.Group,{gap:0,className:"quote",children:i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.quote.hint.description")})]}),collapse:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:i.jsxs(v.List,{type:"unordered",children:[i.jsx(v.List.Item,{icon:i.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:e("editor.menu.main.collapse.hint.firstItemEmpty")}),i.jsx(v.List.Item,{icon:i.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:e("editor.menu.main.collapse.hint.secondItem")}),i.jsxs(v.List,{pl:18,listStyleType:"circle",children:[i.jsx(v.List.Item,{fz:"sm",mt:3,icon:i.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubItemEmpty")}),i.jsx(v.List.Item,{fz:"sm",mt:2,icon:i.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubItem")}),i.jsxs(v.List,{pl:22,withPadding:!0,listStyleType:"square",children:[i.jsx(v.List.Item,{fz:"sm",mt:2,icon:i.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:e("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),i.jsx(v.List.Item,{fz:"sm",mt:2,icon:i.jsx(Ee.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:e("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.collapse.hint.description")})]}),divider:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:i.jsxs(v.Box,{children:[i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.topText")}),i.jsx(v.Divider,{my:"sm"}),i.jsx(v.Text,{size:"sm",lh:"21px",children:e("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.horizontal-rule.hint.description")})]}),table:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:i.jsxs(v.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[i.jsx(v.Table.Thead,{children:i.jsxs(v.Table.Tr,{h:58,children:[i.jsxs(v.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[i.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:i.jsx(bn,{stroke:1,size:10,name:"chevron-down"})}),i.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:i.jsx(bn,{stroke:1,size:10,name:"plus"})}),i.jsx(v.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:i.jsx(bn,{stroke:1,size:10,name:"plus"})}),e("editor.menu.main.table.hint.firstRow")]}),i.jsx(v.Table.Th,{w:177,fz:"sm",fw:400})]})}),i.jsxs(v.Table.Tbody,{children:[i.jsxs(v.Table.Tr,{h:47,children:[i.jsx(v.Table.Td,{}),i.jsx(v.Table.Td,{})]}),i.jsxs(v.Table.Tr,{children:[i.jsxs(v.Table.Td,{miw:177,children:[" ",i.jsx(v.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:e("editor.menu.lists.checkList.hint.indeterminate")})]}),i.jsx(v.Table.Td,{miw:177,children:i.jsx(v.Text,{fz:"sm",fw:400,children:e("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.table.hint.description")})]}),grid:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{gap:0,p:8,className:"hintBoard",w:276,children:i.jsxs(v.Flex,{align:"flex-start",gap:"sm",children:[i.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.firstColumn")}),i.jsx(v.Text,{size:"sm",lh:"21px",miw:180,children:e("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.grid.hint.description")})]}),code:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Group,{px:8,gap:0,className:"hintBoard",children:i.jsx(v.Image,{style:{flex:1},radius:"sm",fit:"cover",src:nI,w:"110%",h:"110%"})})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.main.code.hint.description")})]}),image:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:sI,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.photo.hint.description")})]}),video:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsxs(v.Group,{px:"sm",pt:"sm",gap:0,children:[i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:iI,w:"100%",h:"100%"}),i.jsx(v.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:i.jsx(Ee.IconPlayerPlayFilled,{size:32})})]}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.video.hint.description")})]}),audio:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:tI,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.audio.hint.description")})]}),file:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:rI,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.file.hint.description")})]}),excalidraw:e=>i.jsxs(v.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[i.jsx(v.Group,{px:"sm",pt:"sm",gap:0,children:i.jsx(v.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:oI,w:"100%",h:"100%"})}),i.jsx(v.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:e("editor.menu.media.excalidraw.hint.description")})]})};function Hr(e,n,t){return t.filter(r=>e(r)).map(r=>n(r))}const aI=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],lI=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],cI=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],uI=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],dI=["editor.menu.main.table.keywords.table"],fI=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],hI=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],pI=["editor.menu.media.photo.keywords.picture","editor.menu.media.photo.keywords.display","editor.menu.media.photo.keywords.meme","editor.menu.media.photo.keywords.drawing","editor.menu.media.photo.keywords.memePic"],mI=["editor.menu.media.form.keywords"],gI=["editor.menu.media.video.keywords.video"],CI=["editor.menu.other.equation.keywords.equation","editor.menu.other.equation.keywords.formula","editor.menu.other.equation.keywords.math","editor.menu.other.equation.keywords.latex","editor.menu.other.equation.keywords.block","editor.menu.other.equation.keywords.expression","editor.menu.other.equation.keywords.tex"],AI=["editor.menu.other.inlineEquation.keywords.equation","editor.menu.other.inlineEquation.keywords.formula","editor.menu.other.inlineEquation.keywords.math","editor.menu.other.inlineEquation.keywords.latex","editor.menu.other.inlineEquation.keywords.inline","editor.menu.other.inlineEquation.keywords.expression","editor.menu.other.inlineEquation.keywords.tex"],S2=(e,n,t)=>{const r=c=>t?Hr(t,n,c):[],o=r(aI),s=r([`editor.menu.lists.${e}List.keywords.heading`,`editor.menu.lists.${e}List.keywords.headingList`,`editor.menu.lists.${e}List.keywords.markers`]);return({number:["numberedlist","orderedlist","ol","numbers"],bullet:["bulletedlist","unorderedlist","ul","bullets"],check:["checklist","todolist","check","done","shoppinglist"]}[e]||[]).concat(o,s)},Ms=(e,n,t)=>{const r=t?Hr(t,n,lI):[],o=t?Hr(t,n,cI):[],s=t?Hr(t,n,uI):[],l=t?Hr(t,n,dI):[],c=t?Hr(t,n,fI):[],d=t?Hr(t,n,hI):[];switch(e){case"quote":return["blockquote","quote"].concat(r);case"collapse":return["collapse","collapsiblelist","toggle"].concat(o);case"horizontal-rule":return["horizontalrule","divider","hr","line"].concat(s);case"table":return["table","spreadsheet","rows","columns"].concat(l);case"grid":return["columns","layout","grid"].concat(c);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(d)}},wc=(e,n,t)=>{const r=t?Hr(t,n,pI):[],o=t?Hr(t,n,mI):[],s=t?Hr(t,n,gI):[];switch(e){case"photo":return["image","photo","picture","img","png","jpg","jpeg","media"].concat(r);case"file":return["file","pdf","zip","media"].concat(r);case"excalidraw":return["excalidraw","paint","draw","media"].concat(r);case"audio":return["audio","music"].concat(r);case"form":return["form","embed","media"].concat(o);case"video":return["youtube","rutube","vkvideos","video","mp4","webm","media"].concat(s)}},E2=(e,n,t)=>{const r=l=>t?Hr(t,n,l):l.map(c=>n(c)).filter((c,d)=>c!==l[d]),o=r(CI),s=r(AI);switch(e){case"equation":return["equation","formula","math","latex","block","tex","katex","expression"].concat(o);case"equation-inline":return["equation","formula","math","latex","inline","tex","katex","expression"].concat(s)}},bI=[{type:"number",command:Iu,name:"editor.menu.lists.numberList.name",iconName:"number",hint:Cn.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:g1,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:Cn.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:C1,name:"editor.menu.lists.checkList.name",iconName:"check",hint:Cn.checkList,description:"editor.menu.lists.checkList.subtitle"}],yI=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:Cn.type("💫","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:Cn.type("❗","","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:Cn.type("✅","","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:Cn.type("⚠️","","warning"),description:"editor.menu.callout.warning.subtitle"}],xI=e=>({1:e("editor.menu.heading.h1.subtitle"),2:e("editor.menu.heading.h2.subtitle"),3:e("editor.menu.heading.h3.subtitle"),4:e("editor.menu.heading.h4.subtitle","Small heading")}),rn=(e,n,t)=>{e.update(()=>{const r=e.__savedDragHandleSelection;r&&!p.$getSelection()&&p.$setSelection(r.clone()),e.__savedDragHandleSelection=null;let o=en();if(!t&&((o==null?void 0:o.__type)==="text"||(o==null?void 0:o.__type)==="listitem")){const s=p.$createParagraphNode(),{lexicalNode:l}=Ri(o,e,{root:!0,"layout-item":!0,callout:!0,"collapsible-content":!0});s.append(),l==null||l.insertAfter(s).selectStart(),n(s)}else n(o)})};function vI(e){return e?"active dropdown-item-active":""}const u5={flip:!0,size:{padding:8,apply({availableHeight:e,elements:n}){requestAnimationFrame(()=>{Object.assign(n.floating.style,{maxHeight:`${e>=425?425:e}px`})})}}};function wI(e,n){return e==="swagger"?!0:n}function If(e,n){e.update(()=>{const t=p.$getSelection();t&&(p.$isNodeSelection(t)&&Ou(t),dn.$setBlocksType(p.$getSelection(),n))})}const T2=["figma","miro","lucidchart","tldraw","diagrams","dbdiagram","google-sheets","google-slides","google-drawings","google-forms","google-calendar","google-docs","google-maps","google-drive","airtable","grist","trello","typeform","loom","vimeo","descript","spotify","instagram","github","codepen","valtown"];function kI(e){const n=T2.length,t=r=>{const o=T2.indexOf(r);return o===-1?n:o};return[...e].map((r,o)=>({d:r,index:o})).sort((r,o)=>{const s=t(r.d.platform)-t(o.d.platform);return s!==0?s:r.index-o.index}).map(({d:r})=>r)}function Q1({editor:e,isToolbar:n,excludeNodes:t,t:r,exists:o,plugins:s,onTrack:l}){const d=xI(r),f=R=>{switch(R){case 1:return["heading1","hone","h1",r("editor.menu.heading.h1.keywords.headerOne")];case 2:return["heading2","htwo","h2",r("editor.menu.heading.h2.keywords.headerTwo")];case 3:return["heading3","hthree","h3",r("editor.menu.heading.h3.keywords.headerThree")];case 4:return["heading4","hfour","h4",r("editor.menu.heading.h4.keywords.headerFour","heading four")]}},h=R=>r(R),g={1:t1,2:n1,3:r1,4:Ta},A=()=>[1,2,3,4].map(R=>({parentKey:"heading",name:`${r("editor.heading.name")} ${R}`,description:d[R]||"Добавите заголовок",hint:Cn.header(r,R),keywords:[`${f(R)}`,`${r(`editor.menu.heading.h${R}.keywords.header${R}`)}`,`${r(`editor.menu.heading.h${R}.keywords.heading`)}`,`${r(`editor.menu.heading.h${R}.keywords.h${R}`)}`],icon:i.jsx($,{icon:g[R],size:16}),key:`${R}`,hide:t[`${R}`],"data-test-id":`block-type-h${R}`,onSelect:()=>{l==null||l("block_heading_created",{level:R}),rn(e,()=>{If(e,()=>fn.$createHeadingNode(`h${R}`))},n)}})),b={number:o1,bullet:Qc,check:e1},y=()=>bI.map(({type:R,command:B,hint:_,description:j,name:D})=>({parentKey:"list",name:r(D),description:r(j),icon:i.jsx($,{icon:b[R]||Qc,size:16}),keywords:[`${S2(R,r,o)}`],key:R,hint:_(r),hide:t[R],"data-test-id":`block-type-${R}`,onSelect:()=>{l==null||l(`list_${R}_created`),rn(e,()=>{e.dispatchCommand(B,void 0)},n)}})),x=()=>[{parentKey:"main",name:r("editor.menu.main.paragraph.name"),description:r("editor.menu.main.paragraph.subtitle"),icon:i.jsx($,{icon:wu,size:16}),keywords:[`${Ms("paragraph",r,o)}`],key:"paragraph","data-test-id":"block-type-paragraph",hint:Cn.paragraph(r),hide:t.paragraph||!n,onSelect:()=>rn(e,()=>{If(e,()=>p.$createParagraphNode())},n)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:i.jsx($,{icon:a1,size:16}),keywords:[`${Ms("quote",r,o)}`],key:"quote",hint:Cn.quote(r),hide:t.quote,"data-test-id":"block-type-quote",onSelect:()=>{l==null||l("block_quote_created"),rn(e,()=>{If(e,()=>fn.$createQuoteNode())},n)}},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:i.jsx($,{icon:lk,size:16}),keywords:[`${Ms("collapse",r,o)}`],key:"caret-right",hint:Cn.collapse(r),hide:n||t["caret-right"],"data-test-id":"block-type-collapse",onSelect:()=>{l==null||l("block_collapse_created"),rn(e,()=>{e.dispatchCommand(lb,void 0)},n)}},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:i.jsx($,{icon:nk,size:16}),keywords:[`${Ms("horizontal-rule",r,o)}`],hint:Cn.divider(r),hide:n||t["horizontal-rule"],key:"horizontal-rule","data-test-id":"block-type-horizontal-rule",onSelect:()=>{l==null||l("block_divider_inserted"),rn(e,R=>{const B=R==null?void 0:R.getParent();if(jr(B)){const _=Ds.$createHorizontalRuleNode(),j=R==null?void 0:R.replace(_);j==null||j.insertAfter(p.$createParagraphNode())}else e.dispatchCommand(Ds.INSERT_HORIZONTAL_RULE_COMMAND,void 0);!(R!=null&&R.getTextContent())&&!gs(R==null?void 0:R.getParent())&&(R==null||R.remove())},n)}},{parentKey:"main",name:r("editor.menu.main.table.name"),description:r("editor.menu.main.table.subtitle"),icon:i.jsx($,{icon:qc,size:16}),keywords:[`${Ms("table",r,o)}`],key:"table",hint:Cn.table(r),hide:n||t.table,"data-test-id":"block-type-table",onSelect:()=>{l==null||l("block_table_created"),rn(e,()=>{e.dispatchCommand(Du,{columns:"2",includeHeaders:!1,rows:"2"})},n)}},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:i.jsx($,{icon:ak,size:16}),keywords:[`${Ms("grid",r,o)}`],hide:n||t.grid,hint:Cn.grid(r),key:"grid","data-test-id":"block-type-grid",onSelect:()=>{l==null||l("block_layout_used"),rn(e,()=>{e.dispatchCommand(V1,M1)},n)}},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:i.jsx($,{icon:Ka,size:16}),keywords:[`${Ms("code",r,o)}`],key:"code",hint:Cn.code(r),hide:t.code,"data-test-id":"block-type-code",onSelect:()=>{l==null||l("block_code_created"),rn(e,()=>{hj(e)},n)}}],w={default:qf,alert:Jh,success:q8,warning:z8},k=()=>yI.map(({type:R,command:B,hint:_,description:j,name:D})=>({parentKey:"callout",name:r(D),description:r(j),icon:i.jsx($,{icon:w[R]||qf,size:16}),keywords:[`${S2(R,r,o)}`,`${r(`editor.menu.callout.${R}.keywords.heading`)}`,`${r(`editor.menu.callout.${R}.keywords.headingList`)}`,`${r(`editor.menu.callout.${R}.keywords.markers`)}`],key:R,hint:_(r),hide:t[R],"data-test-id":`block-type-${R}`,onSelect:()=>{l==null||l("block_callout_created",{type:R}),rn(e,()=>{e.dispatchCommand(Eu,B)},n)}})),T=()=>{const R=A(),B=y(),_=x(),j=k(),D={parentKey:"text",name:r("editor.menu.other.equation.name"),description:r("editor.menu.other.equation.subtitle"),icon:i.jsx($,{icon:Ua,size:16}),keywords:E2("equation",r,o)||[],key:"equation",hide:n||t.equation,onSelect:()=>{rn(e,()=>{e.dispatchCommand(Ha,void 0)},n)}},z=F=>F==="equation"?D:R.find(Z=>Z.key===F)||B.find(Z=>Z.key===F)||_.find(Z=>Z.key===F)||j.find(Z=>Z.key===F);return["1","caret-right","2","bullet","3","number","4","check","quote","equation","default","alert","success","warning","paragraph"].map(F=>z(F)).filter(F=>!!F&&!F.hide).map(F=>({...F,parentKey:"text"}))},I=()=>[{parentKey:"inline",name:r("editor.menu.other.inlinePageLink.name"),description:r("editor.menu.other.inlinePageLink.subtitle"),icon:i.jsx($,{icon:ji,size:16}),keywords:["inline","page","page link"],key:"inlinePageLink",hide:n||t.inlinePageLink,onSelect:()=>{rn(e,()=>{e.dispatchCommand(wh,"inline")},n)}},{parentKey:"inline",name:r("editor.menu.other.inlineEquation.name"),description:r("editor.menu.other.inlineEquation.subtitle"),icon:i.jsx($,{icon:Ua,size:16}),keywords:E2("equation-inline",r,o)||[],key:"equation-inline",hide:n||t["equation-inline"],onSelect:()=>{rn(e,()=>{e.dispatchCommand(Ha,"inline")},n)}}].filter(B=>!B.hide),N=()=>{const R=x();return["horizontal-rule","table","grid","code"].map(_=>R.find(j=>j.key===_)).filter(_=>_!==void 0&&!_.hide).map(_=>({..._,parentKey:"advanced"}))},L=()=>{const R=[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:i.jsx($,{icon:rA,size:16}),keywords:[`${wc("photo",r,o)}`],hide:n||t.photo,hint:Cn.image(r),key:"photo",onSelect:()=>{l==null||l("block_image_added"),rn(e,()=>{e.dispatchCommand(O1,{altText:"new-image",src:"",create:!0})},n)}},{parentKey:"media",name:r("editor.menu.media.audio.name"),description:r("editor.menu.media.audio.subtitle"),hint:Cn.audio(r),keywords:[`${wc("audio",r,o)}`],icon:i.jsx($,{icon:dk,size:16}),key:"audio",hide:n||t.audio,onSelect:()=>{l==null||l("media_audio_added"),rn(e,()=>{e.dispatchCommand(zc,"")},n)}},{parentKey:"media",name:r("editor.menu.media.file.name"),description:r("editor.menu.media.file.subtitle"),hint:Cn.file(r),keywords:[`${wc("file",r,o)}`],icon:i.jsx($,{icon:zg,size:16}),key:"file",hide:n||t.file,onSelect:()=>{l==null||l("media_file_added"),rn(e,()=>{e.dispatchCommand(ph,"")},n)}},{parentKey:"media",name:r("editor.menu.media.excalidraw.name"),description:r("editor.menu.media.excalidraw.subtitle"),hint:Cn.excalidraw(r),keywords:[`${wc("excalidraw",r,o)}`,"media"],icon:i.jsx($,{icon:hk,size:16}),key:"excalidraw",hide:n||t.excalidraw,onSelect:()=>{t.excalidraw||Promise.resolve().then(()=>require("./layers.CVCmClj2.js")).then(({INSERT_EXCALIDRAW_COMMAND:_})=>{rn(e,()=>{e.dispatchCommand(_,void 0)},n)})}}],B=(s==null?void 0:s.filter(_=>{var j;return((j=_.slashMenu)==null?void 0:j.parentKey)==="media"}).map(_=>{const j=_.key,D=j in Cn?Cn[j](r):_.slashMenu.hint?r(_.slashMenu.hint):void 0;return{parentKey:_.slashMenu.parentKey,name:r(_.slashMenu.name),description:r(_.slashMenu.description),hint:D,keywords:_.slashMenu.keywords,icon:_.slashMenu.icon,key:_.key,hide:n||t[_.key],onSelect:()=>{_.key==="video"&&(l==null||l("media_video_added",{source:"slash_menu"})),rn(e,()=>{e.dispatchCommand(_.slashMenu.command,_.slashMenu.commandPayload)},n)}}}))||[];return[...R,...B]},M=()=>[{parentKey:"other",name:r("editor.menu.other.emoji.name"),description:r("editor.menu.other.emoji.subtitle"),icon:i.jsx($,{icon:xk,size:16}),keywords:["emoji","smile"],key:"emoji",hide:n||t.emoji,onSelect:()=>{e.focus(),e.dispatchCommand(d1,void 0)}},{parentKey:"other",name:r("editor.menu.other.pageLink.name"),description:r("editor.menu.other.pageLink.subtitle"),icon:i.jsx($,{icon:ji,size:16}),keywords:["link","page","page link"],hide:n||t.pageLink,key:"pageLink",onSelect:()=>{rn(e,()=>{e.dispatchCommand(wh,void 0)},n)}},{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:i.jsx($,{icon:zg,size:16}),keywords:["page","document","child"],hide:n||t.childDocs,key:"childDocuments",onSelect:()=>{l==null||l("block_child_docs_inserted"),rn(e,()=>{e.dispatchCommand(ab,void 0)},n)}}].filter(B=>!B.hide),S=()=>{const R={parentKey:"integrations",name:r("editor.menu.other.embed.name"),description:r("editor.menu.other.embed.subtitle"),icon:i.jsx($,{icon:ek,size:16}),keywords:["embed","iframe","webpage","html"],key:"embed","data-test-id":"block-type-embed",hide:n||t.embed,onSelect:()=>{l==null||l("block_embed_added",{platform:"generic-embed"}),rn(e,()=>{e.dispatchCommand(cu,"generic-embed")},n)}},B=kI(Gi).map(D=>({...D,keywords:["iframe",...D.keywords],"data-test-id":`block-type-${D.platform}`,onSelect:()=>{l==null||l("block_embed_added",{platform:D.platform}),rn(e,()=>{D.platform==="swagger"?e.dispatchCommand(r5,""):e.dispatchCommand(cu,D.platform)},n)},hide:wI(D.platform,n)})),_=[R,...B].filter(D=>!D.hide),j=_.findIndex(D=>D.key==="embed");if(j>0){const[D]=_.splice(j,1);_.unshift(D)}return _},O=()=>{const R=_=>rn(e,()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,_)},!0);return[{parentKey:"formatting",name:r("editor.toolbar.bold"),description:r("editor.toolbar.bold"),icon:i.jsx($,{icon:mA,size:16}),keywords:["bold","b","strong"],key:"format-bold",hide:n,"data-test-id":"slash-menu-format-bold",onSelect:()=>R("bold")},{parentKey:"formatting",name:r("editor.toolbar.strike"),description:r("editor.toolbar.strike"),icon:i.jsx($,{icon:CA,size:16}),keywords:["strike","strikethrough"],key:"format-strike",hide:n,"data-test-id":"slash-menu-format-strike",onSelect:()=>R("strikethrough")},{parentKey:"formatting",name:r("editor.toolbar.italic"),description:r("editor.toolbar.italic"),icon:i.jsx($,{icon:gA,size:16}),keywords:["italic","i"],key:"format-italic",hide:n,"data-test-id":"slash-menu-format-italic",onSelect:()=>R("italic")},{parentKey:"formatting",name:r("editor.toolbar.underline"),description:r("editor.toolbar.underline"),icon:i.jsx($,{icon:AA,size:16}),keywords:["underline","u"],key:"format-underline",hide:n,"data-test-id":"slash-menu-format-underline",onSelect:()=>R("underline")},{parentKey:"formatting",name:r("editor.menu.formatting.inlineCode"),description:r("editor.menu.formatting.inlineCode"),icon:i.jsx($,{icon:Ka,size:16}),keywords:["code","inline","pre"],key:"format-inline-code",hide:n,"data-test-id":"slash-menu-format-inline-code",onSelect:()=>R("code")}].filter(_=>!_.hide)};return[{key:"text",name:h("editor.menu.text.title"),blocks:T()},{key:"advanced",name:h("editor.menu.advanced.title"),blocks:N()},{key:"media",name:h("editor.menu.media.title"),blocks:L()},{key:"inline",name:h("editor.menu.inline.title"),blocks:I()},{key:"other",name:h("editor.menu.other.title"),blocks:M()},{key:"integrations",name:h("editor.menu.integrations.title"),blocks:S()},{key:"formatting",name:h("editor.menu.formatting.title"),blocks:O()}]}function SI({index:e,isSelected:n,onClick:t,onMouseEnter:r,option:o}){return i.jsxs(v.UnstyledButton,{tabIndex:-1,className:"item",role:"option",id:"typeahead-item-"+e,ref:o.setRefElement,"aria-selected":n,onMouseEnter:r,onClick:t,"data-selected":n,"data-test-id":`block-type-${o.key}`,children:[i.jsx(v.Box,{className:"slash-menu-item-icon",children:o.icon}),i.jsx(v.Tooltip,{label:o.title,openDelay:400,zIndex:1001,children:i.jsx(v.Box,{className:"slash-menu-item-text",children:i.jsx(v.Text,{className:"slash-menu-item-label",span:!0,truncate:"end",children:o.title})})})]})}const EI=(e,n,t)=>{var r;return(n==null?void 0:n.__key)!==t.current.key&&(t.current={show:!0,key:n.__key,isCheck:!0}),n&&t.current.show&&t.current.isCheck&&(ve.$findMatchingParent(n,Lo)||ve.$findMatchingParent(n,St)||((r=ve.$findMatchingParent(n,It))==null?void 0:r.__checked)!==void 0)&&(t.current={show:!1,key:n.__key,isCheck:!1}),t.current.show&&(n==null?void 0:n.__key)===t.current.key&&(t.current={show:!0,key:(n==null?void 0:n.__key)||"",isCheck:!1}),t.current.show?e:""};function TI(e,n){for(let t=0;t<e.length;t++){const r=e[t].items;for(let o=0;o<r.length;o++)if(r[o].index===n)return{groupIndex:t,localItemIndex:o}}return null}function MI(e,n){return n<=0?"wrap":e+2<n?e+2:e%2===1&&e+1<n?e+1:"wrap"}function LI(e,n,t,r){if(r<=1)return 0;const o=TI(e,n);if(!o)return Math.max(0,Math.min(r-1,n));const{groupIndex:s,localItemIndex:l}=o,d=e[s].items.length,f=(h,g)=>{var b;const A=(b=e[h])==null?void 0:b.items[g];return(A==null?void 0:A.index)??n};switch(t){case"right":return l%2===0&&l+1<d?f(s,l+1):n;case"left":return l%2===1?f(s,l-1):n;case"down":{const h=MI(l,d);return typeof h=="number"?f(s,h):s+1<e.length?f(s+1,0):f(0,0)}case"up":{if(l-2>=0)return f(s,l-2);if(s>0){const y=e[s-1].items.length;if(y===0)return n;if(l===0){const x=y%2===0?y-2:y-1;return f(s-1,Math.max(0,x))}if(l===1)return f(s-1,y-1)}const h=e.length-1,A=e[h].items.length;if(A===0)return n;if(l===0){const b=A%2===0?A-2:A-1;return f(h,Math.max(0,b))}return f(h,A-1)}default:return n}}function NI({editor:e,opened:n,groupOptions:t,options:r,selectedIndex:o,setHighlightedIndex:s}){const l=m.useRef(r),c=m.useRef(t),d=m.useRef(o);return l.current=r,c.current=t,d.current=o,m.useEffect(()=>{if(!n)return;const f=g=>{var w;const A=l.current;if(A.length===0)return;const b=Math.max(0,Math.min(A.length-1,g));s(b),d.current=b;const y=A[b],x=(w=y==null?void 0:y.ref)==null?void 0:w.current;x!=null&&(e.dispatchCommand(Fa.SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND,{index:b,option:y}),requestAnimationFrame(()=>{x.scrollIntoView({block:"nearest",inline:"nearest"})}))},h=(g,A)=>{const b=l.current;if(b.length===0)return!1;A.preventDefault(),A.stopPropagation();const y=d.current,x=y===null?0:y,w=LI(c.current,x,g,b.length);return w!==x&&f(w),!0};return ve.mergeRegister(e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,g=>h("down",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_UP_COMMAND,g=>h("up",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,g=>h("right",g),p.COMMAND_PRIORITY_HIGH),e.registerCommand(p.KEY_ARROW_LEFT_COMMAND,g=>h("left",g),p.COMMAND_PRIORITY_HIGH))},[e,n,s]),null}class d5 extends Fa.MenuOption{constructor(t,r,o,s,l,c){super(t);Ne(this,"key");Ne(this,"title");Ne(this,"description");Ne(this,"icon");Ne(this,"keywords");Ne(this,"keyboardShortcut");Ne(this,"onSelect");Ne(this,"hide");Ne(this,"parentKey");Ne(this,"index");Ne(this,"hint");this.key=t,this.title=r,this.hide=s,this.description=o,this.keywords=c.keywords||[],this.icon=c.icon,this.hint=c.hint,this.parentKey=l,this.index=0,this.keyboardShortcut=c.keyboardShortcut,this.onSelect=c.onSelect.bind(this)}}function jI(e,n){const t=[];if(n==null)return t;const r=n.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){const o=r[1],s=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);t.push(...s.map(l=>new d5("table",`${o}x${l} Table`,"",!1,"advanced",{icon:i.jsx(v.Box,{className:"icon table"}),keywords:["table"],onSelect:()=>e.dispatchCommand(Du,{columns:l,rows:o})})))}return t}function RI({editor:e,excludeNodes:n,t,plugins:r,onTrack:o}){const s=Q1({editor:e,isToolbar:!1,excludeNodes:n,t,plugins:r,onTrack:o});let l=[],c={};s.forEach(f=>{c[f.key]=f,l=[...l,...f.blocks]});let d=[];return l.forEach(f=>{f.hide||(d=[...d,new d5(f.key,f.name,f.description,f.hide,f.parentKey,{hint:f.hint,icon:f.icon,keywords:f.keywords,onSelect:f.onSelect})])}),{groupedOptions:c,baseOptions:d}}function II({mode:e,setOpenedMenu:n,opened:t}){const[r]=it.useLexicalComposerContext(),o=m.useRef({show:!0,key:"",isCheck:!0}),[s,l]=m.useState(null),[c,d]=m.useState(0),{t:f}=Ke.useTranslation(),h=(c===100).toString(),{fetchUploadMedia:g,excludeNodes:A,plugins:b,onTrack:y}=m.useContext(ft),x=Fa.useBasicTypeaheadTriggerMatch("/",{minLength:0}),{options:w,groupOptions:k,groupedInitialOptions:T}=m.useMemo(()=>{const{groupedOptions:S,baseOptions:O}=RI({editor:r,excludeNodes:A,t:f,plugins:b,onTrack:y}),R=j=>{const D=j.reduce((z,H,F)=>{const Z=H.parentKey;return z[Z]||(z[Z]=[]),z[Z].push({...H,index:F}),z},{});return Object.entries(D).map(([z,H])=>({name:z,items:H}))};if(!s)return{options:O,groupOptions:R(O),groupedInitialOptions:S};const B=new RegExp(s,"i"),_=[...jI(r,s),...O.filter(j=>B.test(j.title)||j.keywords.some(D=>B.test(D)))];return{options:_,groupOptions:R(_),groupedInitialOptions:S}},[r,g,e,s,b]),I=m.useCallback((S,O,R,B)=>{r.update(()=>{O==null||O.remove(),S.onSelect(B),R()})},[r]),N=S=>{const O=S.target;if(O!=null&&O.closest(".component-picker-menu"))return;k2(O,Vr,r)&&d(100),n(!1),document.removeEventListener("click",N)};m.useEffect(()=>(t&&document.addEventListener("click",N),()=>{document.removeEventListener("click",N)}),[t]);const L=S=>{var j;if(!S){y==null||y("slash_menu_opened"),setTimeout(()=>{n(!0),d(D=>D+1)},50);return}const{x:O,y:R}=((j=S.getRect)==null?void 0:j.call(S))??{},B=document.elementFromPoint(O+1,R+1);!B||k2(B,Vr,r)||(y==null||y("slash_menu_opened"),setTimeout(()=>{n(!0),d(D=>D+1)},50))},M=(S,O)=>{if(S.substring(0,1)!=="/")return x(S,O);const B=en();if(!B)return x(S,O);const _=EI(S,B,o);return L(),x(_,O)};return i.jsx(i.Fragment,{children:i.jsx(Fa.LexicalTypeaheadMenuPlugin,{onQueryChange:l,onSelectOption:I,triggerFn:M,options:w,onOpen:L,anchorClassName:"reset-anchor",onClose:()=>{n(!1)},menuRenderFn:(S,O)=>{const{selectedIndex:R,selectOptionAndCleanUp:B,setHighlightedIndex:_}=O;return i.jsx(i.Fragment,{children:S.current&&i.jsx(v.Portal,{target:S.current||document.body,children:i.jsxs(v.Menu,{shadow:"md",opened:t,loop:!1,trapFocus:!1,menuItemTabIndex:0,styles:{dropdown:{overflow:"hidden",overflowX:"hidden",zIndex:1e3,display:w.length?"block":"none",width:375,padding:0}},middlewares:{flip:!0,size:{padding:8,apply({elements:j,y:D,placement:z}){requestAnimationFrame(()=>{Object.assign(j.floating.style,{maxHeight:"425px",top:z==="top-start"?`${D-20}px`:`${D}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:Fn,children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Box,{component:"span",w:0,h:0,display:"block"})},c),i.jsxs(v.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:[i.jsx(NI,{editor:r,opened:t,groupOptions:k.filter(j=>j.items.length>0),options:O.options,selectedIndex:R,setHighlightedIndex:_}),i.jsx(v.Box,{id:"typeahead-menu",className:"slash-menu-scroll-region",children:i.jsx(v.Box,{className:"slash-menu-list-column",children:k.map(j=>{const D=T[j.name].name;return i.jsxs(v.Box,{className:"slash-menu-group",children:[i.jsx(v.Text,{className:"slash-menu-group-label",size:"sm",span:!0,children:D}),i.jsx(v.Box,{className:"slash-menu-grid",children:j.items.length>0?j.items.map(z=>i.jsx(SI,{index:z.index,isSelected:R===z.index,onClick:()=>{_(z.index),B(z)},onMouseEnter:()=>{_(z.index)},option:z},z.key)):null})]},D)})})})]})]},h)})})}})})}function kc(e){return e instanceof HTMLElement}const DI=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:s,editor:l,t:c})=>{const d=Yn,f=d||e==="bottom";return i.jsx("div",{className:`icon add-block-menu ${e||d?"active":""} ${f?"add-block-menu--plus":""}`,onClick:()=>{n({blockElement:t.current.htmlElement,editor:l,isTop:!1,isClickedBlockRef:o,setDraggableBlockElem:s}),r("both")},onMouseEnter:()=>{r("bottom")},onMouseLeave:()=>{r("both")},children:i.jsx(v.Tooltip,{openDelay:300,label:c("editor.hoverOptions.addNewBlockBelow"),position:"bottom",disabled:Yn||o.current||!e,children:i.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:f?i.jsx(Ee.IconPlus,{}):i.jsx(Ee.IconMinus,{})})})})},OI=({hoveredButton:e,insertNewParagraph:n,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:o,setDraggableBlockElem:s,editor:l,t:c,isTouchDevice:d})=>{const f=Yn,h=f||e==="top";return i.jsx("div",{className:`icon add-block-menu add-block-menu_top ${e||f?"active":""} ${h?"add-block-menu--plus":""}`,onClick:()=>{n({blockElement:t.current.htmlElement,editor:l,isTop:!0,isClickedBlockRef:o,setDraggableBlockElem:s}),r("both")},onMouseEnter:()=>{r("top")},onMouseLeave:()=>{r("both")},children:i.jsx(v.Tooltip,{disabled:Yn||o.current||!e,openDelay:300,label:c("editor.hoverOptions.addNewBlockAbove"),position:"top",children:i.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:h?i.jsx(Ee.IconPlus,{}):i.jsx(Ee.IconMinus,{})})})})},M2={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},L2={paragraph:wu,1:t1,2:n1,3:r1,4:Ta,bullet:Qc,check:e1,number:o1,quote:a1,code:Ka,equation:Ua,callout:qf},PI=_s?{1:"(⌥⌘1)",2:"(⌥⌘2)",3:"(⌥⌘3)",4:"(⌥⌘4)",bullet:"(⇧⌘9)",check:"(⇧⌘8)",number:"(⇧⌘7)"}:{1:"(Ctrl+Alt+1)",2:"(Ctrl+Alt+2)",3:"(Ctrl+Alt+3)",4:"(Ctrl+Alt+4)",bullet:"(Ctrl+Shift+9)",check:"(Ctrl+Shift+8)",number:"(Ctrl+Shift+7)"},BI={h1:"1",h2:"2",h3:"3",h4:"4",h5:"5",h6:"6",paragraph:"paragraph",bullet:"bullet",check:"check",number:"number",quote:"quote",code:"code"},_I=["paragraph","1","2","3","4","__divider_1__","bullet","check","number","__divider_2__","equation","code","callout","quote"];function f5({editor:e,blockType:n,disabled:t=!1,mode:r,fetchUploadMedia:o,excludeNodes:s,children:l,menuProps:c,onChange:d,plugins:f}){const[h,g]=q1(),{t:A,i18n:b}=Ke.useTranslation(),{onTrack:y}=m.useContext(ft),x=m.useMemo(()=>Q1({editor:e,isToolbar:!0,excludeNodes:s,t:A,plugins:f,onTrack:y}).map(M=>({...M,blocks:M.blocks.filter(S=>!S.hide)})),[e,g,o,r,b.language,f]),w=m.useCallback(()=>{y==null||y("block_equation_created"),rn(e,()=>{e.dispatchCommand(Ha,void 0)},!0)},[e,y]),k=m.useCallback(()=>{y==null||y("block_callout_created",{type:"default"}),rn(e,()=>{e.dispatchCommand(Eu,"default")},!0)},[e,y]),T=m.useMemo(()=>{const M=x.flatMap(R=>R.blocks),S=new Map(M.map(R=>[R.key,R])),O=[];for(const R of _I){if(R.startsWith("__divider_")){O.push({type:"divider",key:R});continue}if(R==="equation"){s.equation||O.push({type:"item",key:"equation",block:{key:"equation",name:A("editor.menu.other.equation.name"),onSelect:w,"data-test-id":"block-type-equation"}});continue}if(R==="callout"){s.default||O.push({type:"item",key:"callout",block:{key:"callout",name:A("editor.menu.callout.default.name"),onSelect:k,"data-test-id":"block-type-callout"}});continue}const B=S.get(R);B&&O.push({type:"item",key:R,block:B})}return O},[x,s,A,w,k]),I=BI[n]||n,[N,L]=m.useState(!1);if(st){const M=l?m.cloneElement(l,{onClick:S=>{var O,R;(R=(O=l.props)==null?void 0:O.onClick)==null||R.call(O,S),S.defaultPrevented||L(!0)}}):i.jsxs(v.UnstyledButton,{component:"button",type:"button",disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:M2[n],"data-test-id":"toolbar-block-controls",onClick:()=>L(!0),children:[i.jsx(bn,{size:18,mr:5,name:n}),i.jsx(bn,{name:"chevron-down"})]});return i.jsxs(i.Fragment,{children:[h,M,i.jsx(Bt,{opened:N,onClose:()=>L(!1),title:A("editor.toolbar.turnInto"),children:i.jsx(v.Stack,{gap:2,pb:"sm",children:T.map(S=>{if(S.type==="divider")return i.jsx("div",{className:"mobile-slash-menu__divider"},S.key);const{block:O,key:R}=S,B=L2[R],_=I===R||R==="callout"&&["default","alert","success","warning"].includes(I);return i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item","data-active":_||void 0,"data-test-id":O["data-test-id"],onClick:()=>{O.onSelect(),d&&d(),L(!1)},children:[i.jsx("div",{className:"mobile-slash-menu__item-icon",children:B?i.jsx($,{icon:B,size:16}):O.icon}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:R==="paragraph"?"Text":O.name}),_&&i.jsx($,{className:"mobile-slash-menu__item-check",icon:Jn,size:16})]},R)})})})]})}return i.jsxs(i.Fragment,{children:[h,i.jsxs(v.Menu,{shadow:"md",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{overflow:"auto",zIndex:1e3,overscrollBehavior:"contain"},item:{gap:"var(--mantine-spacing-sm)"}},middlewares:u5,position:"bottom-start",transitionProps:Fn,...c,children:[i.jsx(v.Menu.Target,{children:l||i.jsx(v.Tooltip,{label:A("editor.toolbar.turnInto"),children:i.jsxs("button",{disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:M2[n],type:"button","data-test-id":"toolbar-block-controls",children:[i.jsx(bn,{size:18,mr:5,name:n}),i.jsx(bn,{name:"chevron-down"})]})})}),i.jsxs(v.Menu.Dropdown,{children:[i.jsx(v.Menu.Label,{children:A("editor.toolbar.turnInto")}),i.jsx("div",{className:"toolbar-dropdown-list",children:T.map(M=>{if(M.type==="divider")return i.jsx(v.Menu.Divider,{},M.key);const{block:S,key:O}=M,R=L2[O],B=PI[O],_=I===O||O==="callout"&&["default","alert","success","warning"].includes(I);return i.jsx(v.Menu.Item,{leftSection:R?i.jsx($,{color:"var(--mantine-color-dark-2)",icon:R,size:16}):S.icon,rightSection:B||_?i.jsxs(i.Fragment,{children:[B&&i.jsx(v.Text,{size:"xs",component:"span",c:"dimmed",children:B}),_&&i.jsx($,{icon:Jn,size:16,color:"var(--mantine-primary-color-filled)"})]}):void 0,onClick:()=>{S.onSelect(),d&&d()},"data-test-id":S["data-test-id"],children:O==="paragraph"?"Text":S.name},O)})})]})]})]})}const FI=[{value:"inherit",nameKey:"default"},{value:"#9775FA",nameKey:"violet"},{value:"#748FFC",nameKey:"indigo"},{value:"#4DABF7",nameKey:"blue"},{value:"#38D9A9",nameKey:"teal"},{value:"#69DB7C",nameKey:"green"},{value:"#FFD43B",nameKey:"yellow"},{value:"#FFA94D",nameKey:"orange"},{value:"#FF8787",nameKey:"red"},{value:"#9F765A",nameKey:"brown"},{value:"#CED4DA",nameKey:"gray"}],WI=[{value:"inherit",nameKey:"default",border:"var(--mantine-color-default-border)"},{value:"rgba(121, 80, 242, 0.25)",nameKey:"violet",border:"#9775FA"},{value:"rgba(76, 110, 245, 0.25)",nameKey:"indigo",border:"#748FFC"},{value:"rgba(34, 139, 230, 0.25)",nameKey:"blue",border:"#4DABF7"},{value:"rgba(56, 217, 169, 0.25)",nameKey:"teal",border:"#96F2D7"},{value:"rgba(64, 192, 87, 0.25)",nameKey:"green",border:"#69DB7C"},{value:"rgba(250, 176, 5, 0.25)",nameKey:"yellow",border:"#FFD43B"},{value:"rgba(253, 126, 20, 0.25)",nameKey:"orange",border:"#FFA94D"},{value:"rgba(250, 82, 82, 0.25)",nameKey:"red",border:"#FF8787"},{value:"rgba(159, 118, 90, 0.25)",nameKey:"brown",border:"#9F765A"},{value:"rgba(134, 142, 150, 0.25)",nameKey:"gray",border:"#CED4DA"}];function Eh({fontColor:e,bgColor:n,disabled:t,onChange:r,onOpenChange:o,children:s,menuProps:l,visibleSections:c,highlightsSectionLabelKey:d="editor.toolbar.colorPicker.textHighlights"}){const{t:f}=Ke.useTranslation(),{onChange:h,...g}=l??{},A=m.useMemo(()=>({recent:(c==null?void 0:c.recent)??!0,textColors:(c==null?void 0:c.textColors)??!0,highlights:(c==null?void 0:c.highlights)??!0}),[c]),b=e===""?"inherit":e,y=n===""?"inherit":n,x=m.useMemo(()=>FI.map(({value:L,nameKey:M})=>({value:L,label:f(`editor.toolbar.colorPicker.names.${M}`)})),[f]),w=m.useMemo(()=>WI.map(({value:L,nameKey:M,border:S})=>({value:L,label:f(`editor.toolbar.colorPicker.names.${M}`),border:S})),[f]),k=m.useMemo(()=>{const L=[];return A.textColors&&L.push({key:"textColor",label:f("editor.toolbar.colorPicker.textColors"),colors:x,value:b}),A.highlights&&L.push({key:"textHighlight",label:f(d),colors:w,value:y}),L},[A,f,b,y,d,x,w]),T=m.useCallback((L,M)=>{r(M==="textColor"?{color:L,"background-color":n}:{color:e,"background-color":L})},[e,n,r]),[I,N]=m.useState(!1);if(st){const L=S=>{N(S),o==null||o(S),h==null||h(S)},M=m.isValidElement(s)?m.cloneElement(s,{onClick:S=>{var O,R;(R=(O=s.props)==null?void 0:O.onClick)==null||R.call(O,S),S.defaultPrevented||L(!0)}}):s;return i.jsxs(i.Fragment,{children:[M,i.jsx(Bt,{opened:I,onClose:()=>L(!1),title:f("editor.toolbar.colorPicker.textColors"),children:i.jsx("div",{style:{maxHeight:"calc(60dvh - 80px)",overflowY:"auto"},children:i.jsx(At.ColorPicker.List,{sections:k,onChange:(S,O)=>{T(S,O)}})})})]})}return i.jsxs(v.Menu,{transitionProps:Fn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown toolbar-color-dropdown"},styles:{dropdown:{zIndex:100}},...g,onChange:L=>{o==null||o(L),h==null||h(L)},children:[i.jsx(v.Menu.Target,{children:s}),i.jsx(v.Menu.Dropdown,{"data-test-id":"toolbar-color-picker-dropdown",onMouseDown:L=>L.preventDefault(),children:i.jsx(At.ColorPicker.Toolbar,{sections:k,onChange:T,withRecentColors:A.recent,recentColorsLabel:f("editor.toolbar.colorPicker.recentlyUsed"),disabled:t})})]})}const zI=({editor:e,onChange:n,currentEditorNode:t,textBlock:r,t:o,isDisabledAddColumnButton:s,disabledMoveColumnButtons:l})=>{const{fetchUploadMedia:c,excludeNodes:d,commentController:f,mode:h,onTrack:g}=m.useContext(ft),[A,b]=m.useState("inherit"),[y,x]=m.useState("inherit"),[w,k]=m.useState("inherit"),[T,I]=m.useState(""),[N,L]=m.useState(!1);m.useEffect(()=>{e.read(()=>{var D;const j=t==null?void 0:t.__type;if(((D=t==null?void 0:t.getParent())==null?void 0:D.__type)==="layout-item"){I("layout");return}if(j==="callout-wrapper"){I(j);return}if(t&&Ar(t)&&t.getChildren().some(Po)){I("equation-block");return}I("block")})},[t==null?void 0:t.__key]);const M=m.useCallback(j=>{e.update(()=>{let D=p.$getSelection();if(!D){const z=e.__savedDragHandleSelection;z&&(p.$setSelection(z.clone()),D=p.$getSelection())}D&&dn.$patchStyleText(D,j)})},[e]),S=m.useCallback(j=>{const D=j["background-color"],z=D===y?"inherit":D;e.update(()=>{const H=t==null?void 0:t.getParent();H instanceof Mn&&H.setLayoutBackground(z)}),x(z),n()},[e,t,y,n]),O=m.useCallback(j=>{T==="callout-wrapper"&&t instanceof Ro?e.update(()=>{t.setBackgroundColor(j["background-color"]);let D=p.$getSelection();if(!D){const z=e.__savedDragHandleSelection;z&&(p.$setSelection(z.clone()),D=p.$getSelection())}D&&dn.$patchStyleText(D,{color:j.color})}):M(j),n()},[e,T,t,n,M]),R=j=>{const D=xj(e);D.length?D.forEach(z=>{e.update(()=>{let H=p.$getNearestNodeFromDOMNode(z);H&&du(e,n,H,j)})}):e.update(()=>{let z=p.$getNearestNodeFromDOMNode(D[0]);du(e,n,z,j)})};m.useEffect(()=>{setTimeout(()=>{e.read(()=>{if(T==="callout-wrapper"&&t instanceof Ro){b(t.__backgroundColor);return}const j=t==null?void 0:t.getParent();j instanceof Mn&&x(j.__backgroundColor);const D=p.$getSelection();p.$isRangeSelection(D)&&(k(dn.$getSelectionStyleValueForProperty(D,"color","inherit")),b(dn.$getSelectionStyleValueForProperty(D,"background-color","inherit")))})})},[]),m.useEffect(()=>{e.update(()=>{let j=p.$getSelection();if(!j){L(!1);return}if(p.$isNodeSelection(j)&&(Ou(j),j=p.$getSelection(),!j)){L(!1);return}if(!p.$isRangeSelection(j)){L(!1);return}const D=j.getNodes();if(D.length===0){L(!1);return}const H=D.every(F=>p.$isTextNode(F)&&!p.$isDecoratorNode(F))&&j.getTextContent().trim().length>0;L(H)})},[e,t==null?void 0:t.__key]);const B=r==="text"&&T!=="callout-wrapper",_=r==="text"||T=="callout-wrapper";return i.jsxs(i.Fragment,{children:[B&&i.jsx(i.Fragment,{children:i.jsx(f5,{disabled:!1,blockType:"paragraph",rootType:"root",editor:e,mode:"editor",fetchUploadMedia:c,excludeNodes:d,onChange:n,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:i.jsx("div",{children:i.jsx(Ti,{label:o("editor.toolbar.turnInto"),dataNameAttribute:"turn-into",icon:i.jsx($,{icon:Z8,size:16,color:"var(--mantine-color-gray-6)"})})})})}),_&&i.jsx(Eh,{fontColor:w,bgColor:A,onChange:O,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},styles:{dropdown:{zIndex:400}}},children:i.jsx("div",{children:i.jsx(Ti,{dataNameAttribute:"color-picker",label:o(T==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:i.jsx($,{size:16,icon:ss,color:"var(--mantine-color-gray-6)"})})})}),(B||_)&&i.jsx(v.Menu.Divider,{}),N&&f&&h==="editor"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onMouseDown:j=>{j.preventDefault(),j.stopPropagation(),e.dispatchCommand(Hu,void 0),n("comment")},leftSection:i.jsx($,{icon:V8,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.toolbar.comment")}),i.jsx(v.Menu.Divider,{})]}),i.jsx(v.Menu.Item,{onMouseDown:j=>{j.preventDefault(),m2(e,"cut"),n("cut")},"data-test-id":"cut-draggable",leftSection:i.jsx($,{icon:gk,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.cut")}),i.jsx(v.Menu.Item,{onMouseDown:j=>{j.preventDefault(),m2(e,"copy"),n("copy")},leftSection:i.jsx($,{icon:fk,size:16,color:"var(--mantine-color-gray-6)"}),"data-test-id":"copy-draggable",children:o("editor.link.copy")}),i.jsx(v.Menu.Item,{"data-test-id":"duplicate-draggable",disabled:T==="layout"&&s,onClick:()=>{g==null||g("block_duplicated"),G1(e,n,t,T)},leftSection:i.jsx($,{icon:sr,size:16,color:"var(--mantine-color-gray-6)"}),children:o("editor.contextMenu.duplicate")}),i.jsx(v.Menu.Item,{"data-test-id":"delete-draggable",onClick:()=>{g==null||g("block_deleted"),R("")},color:"var(--mantine-color-red-6)",leftSection:i.jsx($,{icon:sn,size:16}),children:o("editor.contextMenu.delete")}),T==="layout"&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Divider,{}),i.jsx(Eh,{fontColor:"inherit",bgColor:y===""?"inherit":y,onChange:S,visibleSections:{recent:!1,textColors:!1,highlights:!0},highlightsSectionLabelKey:"editor.toolbar.colorPicker.background",menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0},withinPortal:!0},children:i.jsx("div",{children:i.jsx(Ti,{label:o("editor.column.changeColor"),icon:i.jsx($,{size:16,icon:ss,color:"var(--mantine-color-gray-6)"})})})}),i.jsx(v.Menu.Item,{disabled:s,onClick:()=>{fu(e,t,"left")},leftSection:i.jsx($,{icon:Ug,size:14,color:"var(--mantine-color-gray-6)"}),"data-test-id":"column-left",children:o("editor.column.addLeft")}),i.jsx(v.Menu.Item,{disabled:s,"data-test-id":"column-right",onClick:()=>{fu(e,t,"right")},leftSection:i.jsx($,{icon:Ug,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.addRight")}),i.jsx(v.Menu.Item,{disabled:l.left,"data-test-id":"column-move-left",onClick:()=>{Pi(e,t,"left"),Fs(e)},leftSection:i.jsx($,{icon:Xh,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveLeft")}),i.jsx(v.Menu.Item,{disabled:l.right,"data-test-id":"column-move-right",onClick:()=>{Pi(e,t,"right"),Fs(e)},leftSection:i.jsx($,{icon:$h,size:14,color:"var(--mantine-color-gray-6)"}),children:o("editor.column.moveRight")}),i.jsx(v.Menu.Item,{"data-test-id":"column-delete",onClick:()=>R("layout"),color:"var(--mantine-color-red-6)",leftSection:i.jsx($,{icon:sn,size:16}),children:o("editor.column.deleteColumn")})]})]})};var ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function UI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ya={exports:{}};/**
|
|
206
|
+
* @license
|
|
207
|
+
* Lodash <https://lodash.com/>
|
|
208
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
209
|
+
* Released under MIT license <https://lodash.com/license>
|
|
210
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
211
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
212
|
+
*/var KI=ya.exports,N2;function HI(){return N2||(N2=1,(function(e,n){(function(){var t,r="4.17.23",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",g=1,A=2,b=4,y=1,x=2,w=1,k=2,T=4,I=8,N=16,L=32,M=64,S=128,O=256,R=512,B=30,_="...",j=800,D=16,z=1,H=2,F=3,Z=1/0,q=9007199254740991,ee=17976931348623157e292,Q=NaN,J=4294967295,xe=J-1,we=J>>>1,Te=[["ary",S],["bind",w],["bindKey",k],["curry",I],["curryRight",N],["flip",R],["partial",L],["partialRight",M],["rearg",O]],Fe="[object Arguments]",se="[object Array]",X="[object AsyncFunction]",ae="[object Boolean]",pe="[object Date]",ge="[object DOMException]",G="[object Error]",he="[object Function]",oe="[object GeneratorFunction]",K="[object Map]",Y="[object Number]",ne="[object Null]",fe="[object Object]",Ce="[object Promise]",Le="[object Proxy]",Ue="[object RegExp]",ce="[object Set]",je="[object String]",Ze="[object Symbol]",dt="[object Undefined]",Ct="[object WeakMap]",Wt="[object WeakSet]",Dt="[object ArrayBuffer]",ue="[object DataView]",re="[object Float32Array]",ke="[object Float64Array]",_e="[object Int8Array]",me="[object Int16Array]",ie="[object Int32Array]",Ae="[object Uint8Array]",Oe="[object Uint8ClampedArray]",He="[object Uint16Array]",$e="[object Uint32Array]",rt=/\b__p \+= '';/g,Je=/\b(__p \+=) '' \+/g,ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,We=RegExp(be.source),Be=RegExp(Se.source),Xe=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,at=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,qe=RegExp(ot.source),ut=/^\s+/,Ot=/\s/,bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,tn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,Kt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,Xt=/^[-+]0x[0-9a-f]+$/i,_r=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,wt=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,ho=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,bl=/['\n\r\u2028\u2029\\]/g,yl="\\ud800-\\udfff",G5="\\u0300-\\u036f",V5="\\ufe20-\\ufe2f",q5="\\u20d0-\\u20ff",ap=G5+V5+q5,lp="\\u2700-\\u27bf",cp="a-z\\xdf-\\xf6\\xf8-\\xff",Q5="\\xac\\xb1\\xd7\\xf7",J5="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",X5="\\u2000-\\u206f",$5=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",up="A-Z\\xc0-\\xd6\\xd8-\\xde",dp="\\ufe0e\\ufe0f",fp=Q5+J5+X5+$5,ed="['’]",ey="["+yl+"]",hp="["+fp+"]",xl="["+ap+"]",pp="\\d+",ty="["+lp+"]",mp="["+cp+"]",gp="[^"+yl+fp+pp+lp+cp+up+"]",td="\\ud83c[\\udffb-\\udfff]",ny="(?:"+xl+"|"+td+")",Cp="[^"+yl+"]",nd="(?:\\ud83c[\\udde6-\\uddff]){2}",rd="[\\ud800-\\udbff][\\udc00-\\udfff]",Qs="["+up+"]",Ap="\\u200d",bp="(?:"+mp+"|"+gp+")",ry="(?:"+Qs+"|"+gp+")",yp="(?:"+ed+"(?:d|ll|m|re|s|t|ve))?",xp="(?:"+ed+"(?:D|LL|M|RE|S|T|VE))?",vp=ny+"?",wp="["+dp+"]?",oy="(?:"+Ap+"(?:"+[Cp,nd,rd].join("|")+")"+wp+vp+")*",sy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",iy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kp=wp+vp+oy,ay="(?:"+[ty,nd,rd].join("|")+")"+kp,ly="(?:"+[Cp+xl+"?",xl,nd,rd,ey].join("|")+")",cy=RegExp(ed,"g"),uy=RegExp(xl,"g"),od=RegExp(td+"(?="+td+")|"+ly+kp,"g"),dy=RegExp([Qs+"?"+mp+"+"+yp+"(?="+[hp,Qs,"$"].join("|")+")",ry+"+"+xp+"(?="+[hp,Qs+bp,"$"].join("|")+")",Qs+"?"+bp+"+"+yp,Qs+"+"+xp,iy,sy,pp,ay].join("|"),"g"),fy=RegExp("["+Ap+yl+ap+dp+"]"),hy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,py=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],my=-1,nn={};nn[re]=nn[ke]=nn[_e]=nn[me]=nn[ie]=nn[Ae]=nn[Oe]=nn[He]=nn[$e]=!0,nn[Fe]=nn[se]=nn[Dt]=nn[ae]=nn[ue]=nn[pe]=nn[G]=nn[he]=nn[K]=nn[Y]=nn[fe]=nn[Ue]=nn[ce]=nn[je]=nn[Ct]=!1;var $t={};$t[Fe]=$t[se]=$t[Dt]=$t[ue]=$t[ae]=$t[pe]=$t[re]=$t[ke]=$t[_e]=$t[me]=$t[ie]=$t[K]=$t[Y]=$t[fe]=$t[Ue]=$t[ce]=$t[je]=$t[Ze]=$t[Ae]=$t[Oe]=$t[He]=$t[$e]=!0,$t[G]=$t[he]=$t[Ct]=!1;var gy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",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ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Cy={"&":"&","<":"<",">":">",'"':""","'":"'"},Ay={"&":"&","<":"<",">":">",""":'"',"'":"'"},by={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yy=parseFloat,xy=parseInt,Sp=typeof ba=="object"&&ba&&ba.Object===Object&&ba,vy=typeof self=="object"&&self&&self.Object===Object&&self,Pn=Sp||vy||Function("return this")(),sd=n&&!n.nodeType&&n,Cs=sd&&!0&&e&&!e.nodeType&&e,Ep=Cs&&Cs.exports===sd,id=Ep&&Sp.process,xr=(function(){try{var le=Cs&&Cs.require&&Cs.require("util").types;return le||id&&id.binding&&id.binding("util")}catch{}})(),Tp=xr&&xr.isArrayBuffer,Mp=xr&&xr.isDate,Lp=xr&&xr.isMap,Np=xr&&xr.isRegExp,jp=xr&&xr.isSet,Rp=xr&&xr.isTypedArray;function ir(le,Me,ye){switch(ye.length){case 0:return le.call(Me);case 1:return le.call(Me,ye[0]);case 2:return le.call(Me,ye[0],ye[1]);case 3:return le.call(Me,ye[0],ye[1],ye[2])}return le.apply(Me,ye)}function wy(le,Me,ye,Qe){for(var yt=-1,zt=le==null?0:le.length;++yt<zt;){var Ln=le[yt];Me(Qe,Ln,ye(Ln),le)}return Qe}function vr(le,Me){for(var ye=-1,Qe=le==null?0:le.length;++ye<Qe&&Me(le[ye],ye,le)!==!1;);return le}function ky(le,Me){for(var ye=le==null?0:le.length;ye--&&Me(le[ye],ye,le)!==!1;);return le}function Ip(le,Me){for(var ye=-1,Qe=le==null?0:le.length;++ye<Qe;)if(!Me(le[ye],ye,le))return!1;return!0}function _o(le,Me){for(var ye=-1,Qe=le==null?0:le.length,yt=0,zt=[];++ye<Qe;){var Ln=le[ye];Me(Ln,ye,le)&&(zt[yt++]=Ln)}return zt}function vl(le,Me){var ye=le==null?0:le.length;return!!ye&&Js(le,Me,0)>-1}function ad(le,Me,ye){for(var Qe=-1,yt=le==null?0:le.length;++Qe<yt;)if(ye(Me,le[Qe]))return!0;return!1}function on(le,Me){for(var ye=-1,Qe=le==null?0:le.length,yt=Array(Qe);++ye<Qe;)yt[ye]=Me(le[ye],ye,le);return yt}function Fo(le,Me){for(var ye=-1,Qe=Me.length,yt=le.length;++ye<Qe;)le[yt+ye]=Me[ye];return le}function ld(le,Me,ye,Qe){var yt=-1,zt=le==null?0:le.length;for(Qe&&zt&&(ye=le[++yt]);++yt<zt;)ye=Me(ye,le[yt],yt,le);return ye}function Sy(le,Me,ye,Qe){var yt=le==null?0:le.length;for(Qe&&yt&&(ye=le[--yt]);yt--;)ye=Me(ye,le[yt],yt,le);return ye}function cd(le,Me){for(var ye=-1,Qe=le==null?0:le.length;++ye<Qe;)if(Me(le[ye],ye,le))return!0;return!1}var Ey=ud("length");function Ty(le){return le.split("")}function My(le){return le.match(tn)||[]}function Dp(le,Me,ye){var Qe;return ye(le,function(yt,zt,Ln){if(Me(yt,zt,Ln))return Qe=zt,!1}),Qe}function wl(le,Me,ye,Qe){for(var yt=le.length,zt=ye+(Qe?1:-1);Qe?zt--:++zt<yt;)if(Me(le[zt],zt,le))return zt;return-1}function Js(le,Me,ye){return Me===Me?Wy(le,Me,ye):wl(le,Op,ye)}function Ly(le,Me,ye,Qe){for(var yt=ye-1,zt=le.length;++yt<zt;)if(Qe(le[yt],Me))return yt;return-1}function Op(le){return le!==le}function Pp(le,Me){var ye=le==null?0:le.length;return ye?fd(le,Me)/ye:Q}function ud(le){return function(Me){return Me==null?t:Me[le]}}function dd(le){return function(Me){return le==null?t:le[Me]}}function Bp(le,Me,ye,Qe,yt){return yt(le,function(zt,Ln,qt){ye=Qe?(Qe=!1,zt):Me(ye,zt,Ln,qt)}),ye}function Ny(le,Me){var ye=le.length;for(le.sort(Me);ye--;)le[ye]=le[ye].value;return le}function fd(le,Me){for(var ye,Qe=-1,yt=le.length;++Qe<yt;){var zt=Me(le[Qe]);zt!==t&&(ye=ye===t?zt:ye+zt)}return ye}function hd(le,Me){for(var ye=-1,Qe=Array(le);++ye<le;)Qe[ye]=Me(ye);return Qe}function jy(le,Me){return on(Me,function(ye){return[ye,le[ye]]})}function _p(le){return le&&le.slice(0,Up(le)+1).replace(ut,"")}function ar(le){return function(Me){return le(Me)}}function pd(le,Me){return on(Me,function(ye){return le[ye]})}function Xi(le,Me){return le.has(Me)}function Fp(le,Me){for(var ye=-1,Qe=le.length;++ye<Qe&&Js(Me,le[ye],0)>-1;);return ye}function Wp(le,Me){for(var ye=le.length;ye--&&Js(Me,le[ye],0)>-1;);return ye}function Ry(le,Me){for(var ye=le.length,Qe=0;ye--;)le[ye]===Me&&++Qe;return Qe}var Iy=dd(gy),Dy=dd(Cy);function Oy(le){return"\\"+by[le]}function Py(le,Me){return le==null?t:le[Me]}function Xs(le){return fy.test(le)}function By(le){return hy.test(le)}function _y(le){for(var Me,ye=[];!(Me=le.next()).done;)ye.push(Me.value);return ye}function md(le){var Me=-1,ye=Array(le.size);return le.forEach(function(Qe,yt){ye[++Me]=[yt,Qe]}),ye}function zp(le,Me){return function(ye){return le(Me(ye))}}function Wo(le,Me){for(var ye=-1,Qe=le.length,yt=0,zt=[];++ye<Qe;){var Ln=le[ye];(Ln===Me||Ln===h)&&(le[ye]=h,zt[yt++]=ye)}return zt}function kl(le){var Me=-1,ye=Array(le.size);return le.forEach(function(Qe){ye[++Me]=Qe}),ye}function Fy(le){var Me=-1,ye=Array(le.size);return le.forEach(function(Qe){ye[++Me]=[Qe,Qe]}),ye}function Wy(le,Me,ye){for(var Qe=ye-1,yt=le.length;++Qe<yt;)if(le[Qe]===Me)return Qe;return-1}function zy(le,Me,ye){for(var Qe=ye+1;Qe--;)if(le[Qe]===Me)return Qe;return Qe}function $s(le){return Xs(le)?Ky(le):Ey(le)}function Fr(le){return Xs(le)?Hy(le):Ty(le)}function Up(le){for(var Me=le.length;Me--&&Ot.test(le.charAt(Me)););return Me}var Uy=dd(Ay);function Ky(le){for(var Me=od.lastIndex=0;od.test(le);)++Me;return Me}function Hy(le){return le.match(od)||[]}function Yy(le){return le.match(dy)||[]}var Zy=(function le(Me){Me=Me==null?Pn:ei.defaults(Pn.Object(),Me,ei.pick(Pn,py));var ye=Me.Array,Qe=Me.Date,yt=Me.Error,zt=Me.Function,Ln=Me.Math,qt=Me.Object,gd=Me.RegExp,Gy=Me.String,wr=Me.TypeError,Sl=ye.prototype,Vy=zt.prototype,ti=qt.prototype,El=Me["__core-js_shared__"],Tl=Vy.toString,Ht=ti.hasOwnProperty,qy=0,Kp=(function(){var a=/[^.]+$/.exec(El&&El.keys&&El.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Ml=ti.toString,Qy=Tl.call(qt),Jy=Pn._,Xy=gd("^"+Tl.call(Ht).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ll=Ep?Me.Buffer:t,zo=Me.Symbol,Nl=Me.Uint8Array,Hp=Ll?Ll.allocUnsafe:t,jl=zp(qt.getPrototypeOf,qt),Yp=qt.create,Zp=ti.propertyIsEnumerable,Rl=Sl.splice,Gp=zo?zo.isConcatSpreadable:t,$i=zo?zo.iterator:t,As=zo?zo.toStringTag:t,Il=(function(){try{var a=ws(qt,"defineProperty");return a({},"",{}),a}catch{}})(),$y=Me.clearTimeout!==Pn.clearTimeout&&Me.clearTimeout,ex=Qe&&Qe.now!==Pn.Date.now&&Qe.now,tx=Me.setTimeout!==Pn.setTimeout&&Me.setTimeout,Dl=Ln.ceil,Ol=Ln.floor,Cd=qt.getOwnPropertySymbols,nx=Ll?Ll.isBuffer:t,Vp=Me.isFinite,rx=Sl.join,ox=zp(qt.keys,qt),Nn=Ln.max,zn=Ln.min,sx=Qe.now,ix=Me.parseInt,qp=Ln.random,ax=Sl.reverse,Ad=ws(Me,"DataView"),ea=ws(Me,"Map"),bd=ws(Me,"Promise"),ni=ws(Me,"Set"),ta=ws(Me,"WeakMap"),na=ws(qt,"create"),Pl=ta&&new ta,ri={},lx=ks(Ad),cx=ks(ea),ux=ks(bd),dx=ks(ni),fx=ks(ta),Bl=zo?zo.prototype:t,ra=Bl?Bl.valueOf:t,Qp=Bl?Bl.toString:t;function W(a){if(un(a)&&!vt(a)&&!(a instanceof Rt)){if(a instanceof kr)return a;if(Ht.call(a,"__wrapped__"))return Jm(a)}return new kr(a)}var oi=(function(){function a(){}return function(u){if(!ln(u))return{};if(Yp)return Yp(u);a.prototype=u;var C=new a;return a.prototype=t,C}})();function _l(){}function kr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}W.templateSettings={escape:Xe,evaluate:Ye,interpolate:et,variable:"",imports:{_:W}},W.prototype=_l.prototype,W.prototype.constructor=W,kr.prototype=oi(_l.prototype),kr.prototype.constructor=kr;function Rt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function hx(){var a=new Rt(this.__wrapped__);return a.__actions__=Xn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Xn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Xn(this.__views__),a}function px(){if(this.__filtered__){var a=new Rt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function mx(){var a=this.__wrapped__.value(),u=this.__dir__,C=vt(a),E=u<0,P=C?a.length:0,U=T3(0,P,this.__views__),V=U.start,te=U.end,de=te-V,Re=E?te:V-1,Ie=this.__iteratees__,De=Ie.length,Ge=0,nt=zn(de,this.__takeCount__);if(!C||!E&&P==de&&nt==de)return ym(a,this.__actions__);var pt=[];e:for(;de--&&Ge<nt;){Re+=u;for(var Et=-1,mt=a[Re];++Et<De;){var jt=Ie[Et],Pt=jt.iteratee,ur=jt.type,Vn=Pt(mt);if(ur==H)mt=Vn;else if(!Vn){if(ur==z)continue e;break e}}pt[Ge++]=mt}return pt}Rt.prototype=oi(_l.prototype),Rt.prototype.constructor=Rt;function bs(a){var u=-1,C=a==null?0:a.length;for(this.clear();++u<C;){var E=a[u];this.set(E[0],E[1])}}function gx(){this.__data__=na?na(null):{},this.size=0}function Cx(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Ax(a){var u=this.__data__;if(na){var C=u[a];return C===d?t:C}return Ht.call(u,a)?u[a]:t}function bx(a){var u=this.__data__;return na?u[a]!==t:Ht.call(u,a)}function yx(a,u){var C=this.__data__;return this.size+=this.has(a)?0:1,C[a]=na&&u===t?d:u,this}bs.prototype.clear=gx,bs.prototype.delete=Cx,bs.prototype.get=Ax,bs.prototype.has=bx,bs.prototype.set=yx;function po(a){var u=-1,C=a==null?0:a.length;for(this.clear();++u<C;){var E=a[u];this.set(E[0],E[1])}}function xx(){this.__data__=[],this.size=0}function vx(a){var u=this.__data__,C=Fl(u,a);if(C<0)return!1;var E=u.length-1;return C==E?u.pop():Rl.call(u,C,1),--this.size,!0}function wx(a){var u=this.__data__,C=Fl(u,a);return C<0?t:u[C][1]}function kx(a){return Fl(this.__data__,a)>-1}function Sx(a,u){var C=this.__data__,E=Fl(C,a);return E<0?(++this.size,C.push([a,u])):C[E][1]=u,this}po.prototype.clear=xx,po.prototype.delete=vx,po.prototype.get=wx,po.prototype.has=kx,po.prototype.set=Sx;function mo(a){var u=-1,C=a==null?0:a.length;for(this.clear();++u<C;){var E=a[u];this.set(E[0],E[1])}}function Ex(){this.size=0,this.__data__={hash:new bs,map:new(ea||po),string:new bs}}function Tx(a){var u=Jl(this,a).delete(a);return this.size-=u?1:0,u}function Mx(a){return Jl(this,a).get(a)}function Lx(a){return Jl(this,a).has(a)}function Nx(a,u){var C=Jl(this,a),E=C.size;return C.set(a,u),this.size+=C.size==E?0:1,this}mo.prototype.clear=Ex,mo.prototype.delete=Tx,mo.prototype.get=Mx,mo.prototype.has=Lx,mo.prototype.set=Nx;function ys(a){var u=-1,C=a==null?0:a.length;for(this.__data__=new mo;++u<C;)this.add(a[u])}function jx(a){return this.__data__.set(a,d),this}function Rx(a){return this.__data__.has(a)}ys.prototype.add=ys.prototype.push=jx,ys.prototype.has=Rx;function Wr(a){var u=this.__data__=new po(a);this.size=u.size}function Ix(){this.__data__=new po,this.size=0}function Dx(a){var u=this.__data__,C=u.delete(a);return this.size=u.size,C}function Ox(a){return this.__data__.get(a)}function Px(a){return this.__data__.has(a)}function Bx(a,u){var C=this.__data__;if(C instanceof po){var E=C.__data__;if(!ea||E.length<o-1)return E.push([a,u]),this.size=++C.size,this;C=this.__data__=new mo(E)}return C.set(a,u),this.size=C.size,this}Wr.prototype.clear=Ix,Wr.prototype.delete=Dx,Wr.prototype.get=Ox,Wr.prototype.has=Px,Wr.prototype.set=Bx;function Jp(a,u){var C=vt(a),E=!C&&Ss(a),P=!C&&!E&&Zo(a),U=!C&&!E&&!P&&li(a),V=C||E||P||U,te=V?hd(a.length,Gy):[],de=te.length;for(var Re in a)(u||Ht.call(a,Re))&&!(V&&(Re=="length"||P&&(Re=="offset"||Re=="parent")||U&&(Re=="buffer"||Re=="byteLength"||Re=="byteOffset")||bo(Re,de)))&&te.push(Re);return te}function Xp(a){var u=a.length;return u?a[Nd(0,u-1)]:t}function _x(a,u){return Xl(Xn(a),xs(u,0,a.length))}function Fx(a){return Xl(Xn(a))}function yd(a,u,C){(C!==t&&!zr(a[u],C)||C===t&&!(u in a))&&go(a,u,C)}function oa(a,u,C){var E=a[u];(!(Ht.call(a,u)&&zr(E,C))||C===t&&!(u in a))&&go(a,u,C)}function Fl(a,u){for(var C=a.length;C--;)if(zr(a[C][0],u))return C;return-1}function Wx(a,u,C,E){return Uo(a,function(P,U,V){u(E,P,C(P),V)}),E}function $p(a,u){return a&&ro(u,Rn(u),a)}function zx(a,u){return a&&ro(u,er(u),a)}function go(a,u,C){u=="__proto__"&&Il?Il(a,u,{configurable:!0,enumerable:!0,value:C,writable:!0}):a[u]=C}function xd(a,u){for(var C=-1,E=u.length,P=ye(E),U=a==null;++C<E;)P[C]=U?t:tf(a,u[C]);return P}function xs(a,u,C){return a===a&&(C!==t&&(a=a<=C?a:C),u!==t&&(a=a>=u?a:u)),a}function Sr(a,u,C,E,P,U){var V,te=u&g,de=u&A,Re=u&b;if(C&&(V=P?C(a,E,P,U):C(a)),V!==t)return V;if(!ln(a))return a;var Ie=vt(a);if(Ie){if(V=L3(a),!te)return Xn(a,V)}else{var De=Un(a),Ge=De==he||De==oe;if(Zo(a))return wm(a,te);if(De==fe||De==Fe||Ge&&!P){if(V=de||Ge?{}:Um(a),!te)return de?A3(a,zx(V,a)):C3(a,$p(V,a))}else{if(!$t[De])return P?a:{};V=N3(a,De,te)}}U||(U=new Wr);var nt=U.get(a);if(nt)return nt;U.set(a,V),Cg(a)?a.forEach(function(mt){V.add(Sr(mt,u,C,mt,a,U))}):mg(a)&&a.forEach(function(mt,jt){V.set(jt,Sr(mt,u,C,jt,a,U))});var pt=Re?de?zd:Wd:de?er:Rn,Et=Ie?t:pt(a);return vr(Et||a,function(mt,jt){Et&&(jt=mt,mt=a[jt]),oa(V,jt,Sr(mt,u,C,jt,a,U))}),V}function Ux(a){var u=Rn(a);return function(C){return em(C,a,u)}}function em(a,u,C){var E=C.length;if(a==null)return!E;for(a=qt(a);E--;){var P=C[E],U=u[P],V=a[P];if(V===t&&!(P in a)||!U(V))return!1}return!0}function tm(a,u,C){if(typeof a!="function")throw new wr(l);return da(function(){a.apply(t,C)},u)}function sa(a,u,C,E){var P=-1,U=vl,V=!0,te=a.length,de=[],Re=u.length;if(!te)return de;C&&(u=on(u,ar(C))),E?(U=ad,V=!1):u.length>=o&&(U=Xi,V=!1,u=new ys(u));e:for(;++P<te;){var Ie=a[P],De=C==null?Ie:C(Ie);if(Ie=E||Ie!==0?Ie:0,V&&De===De){for(var Ge=Re;Ge--;)if(u[Ge]===De)continue e;de.push(Ie)}else U(u,De,E)||de.push(Ie)}return de}var Uo=Mm(no),nm=Mm(wd,!0);function Kx(a,u){var C=!0;return Uo(a,function(E,P,U){return C=!!u(E,P,U),C}),C}function Wl(a,u,C){for(var E=-1,P=a.length;++E<P;){var U=a[E],V=u(U);if(V!=null&&(te===t?V===V&&!cr(V):C(V,te)))var te=V,de=U}return de}function Hx(a,u,C,E){var P=a.length;for(C=kt(C),C<0&&(C=-C>P?0:P+C),E=E===t||E>P?P:kt(E),E<0&&(E+=P),E=C>E?0:bg(E);C<E;)a[C++]=u;return a}function rm(a,u){var C=[];return Uo(a,function(E,P,U){u(E,P,U)&&C.push(E)}),C}function Bn(a,u,C,E,P){var U=-1,V=a.length;for(C||(C=R3),P||(P=[]);++U<V;){var te=a[U];u>0&&C(te)?u>1?Bn(te,u-1,C,E,P):Fo(P,te):E||(P[P.length]=te)}return P}var vd=Lm(),om=Lm(!0);function no(a,u){return a&&vd(a,u,Rn)}function wd(a,u){return a&&om(a,u,Rn)}function zl(a,u){return _o(u,function(C){return yo(a[C])})}function vs(a,u){u=Ho(u,a);for(var C=0,E=u.length;a!=null&&C<E;)a=a[oo(u[C++])];return C&&C==E?a:t}function sm(a,u,C){var E=u(a);return vt(a)?E:Fo(E,C(a))}function Zn(a){return a==null?a===t?dt:ne:As&&As in qt(a)?E3(a):F3(a)}function kd(a,u){return a>u}function Yx(a,u){return a!=null&&Ht.call(a,u)}function Zx(a,u){return a!=null&&u in qt(a)}function Gx(a,u,C){return a>=zn(u,C)&&a<Nn(u,C)}function Sd(a,u,C){for(var E=C?ad:vl,P=a[0].length,U=a.length,V=U,te=ye(U),de=1/0,Re=[];V--;){var Ie=a[V];V&&u&&(Ie=on(Ie,ar(u))),de=zn(Ie.length,de),te[V]=!C&&(u||P>=120&&Ie.length>=120)?new ys(V&&Ie):t}Ie=a[0];var De=-1,Ge=te[0];e:for(;++De<P&&Re.length<de;){var nt=Ie[De],pt=u?u(nt):nt;if(nt=C||nt!==0?nt:0,!(Ge?Xi(Ge,pt):E(Re,pt,C))){for(V=U;--V;){var Et=te[V];if(!(Et?Xi(Et,pt):E(a[V],pt,C)))continue e}Ge&&Ge.push(pt),Re.push(nt)}}return Re}function Vx(a,u,C,E){return no(a,function(P,U,V){u(E,C(P),U,V)}),E}function ia(a,u,C){u=Ho(u,a),a=Zm(a,u);var E=a==null?a:a[oo(Tr(u))];return E==null?t:ir(E,a,C)}function im(a){return un(a)&&Zn(a)==Fe}function qx(a){return un(a)&&Zn(a)==Dt}function Qx(a){return un(a)&&Zn(a)==pe}function aa(a,u,C,E,P){return a===u?!0:a==null||u==null||!un(a)&&!un(u)?a!==a&&u!==u:Jx(a,u,C,E,aa,P)}function Jx(a,u,C,E,P,U){var V=vt(a),te=vt(u),de=V?se:Un(a),Re=te?se:Un(u);de=de==Fe?fe:de,Re=Re==Fe?fe:Re;var Ie=de==fe,De=Re==fe,Ge=de==Re;if(Ge&&Zo(a)){if(!Zo(u))return!1;V=!0,Ie=!1}if(Ge&&!Ie)return U||(U=new Wr),V||li(a)?Fm(a,u,C,E,P,U):k3(a,u,de,C,E,P,U);if(!(C&y)){var nt=Ie&&Ht.call(a,"__wrapped__"),pt=De&&Ht.call(u,"__wrapped__");if(nt||pt){var Et=nt?a.value():a,mt=pt?u.value():u;return U||(U=new Wr),P(Et,mt,C,E,U)}}return Ge?(U||(U=new Wr),S3(a,u,C,E,P,U)):!1}function Xx(a){return un(a)&&Un(a)==K}function Ed(a,u,C,E){var P=C.length,U=P,V=!E;if(a==null)return!U;for(a=qt(a);P--;){var te=C[P];if(V&&te[2]?te[1]!==a[te[0]]:!(te[0]in a))return!1}for(;++P<U;){te=C[P];var de=te[0],Re=a[de],Ie=te[1];if(V&&te[2]){if(Re===t&&!(de in a))return!1}else{var De=new Wr;if(E)var Ge=E(Re,Ie,de,a,u,De);if(!(Ge===t?aa(Ie,Re,y|x,E,De):Ge))return!1}}return!0}function am(a){if(!ln(a)||D3(a))return!1;var u=yo(a)?Xy:Ve;return u.test(ks(a))}function $x(a){return un(a)&&Zn(a)==Ue}function e3(a){return un(a)&&Un(a)==ce}function t3(a){return un(a)&&oc(a.length)&&!!nn[Zn(a)]}function lm(a){return typeof a=="function"?a:a==null?tr:typeof a=="object"?vt(a)?dm(a[0],a[1]):um(a):Ng(a)}function Td(a){if(!ua(a))return ox(a);var u=[];for(var C in qt(a))Ht.call(a,C)&&C!="constructor"&&u.push(C);return u}function n3(a){if(!ln(a))return _3(a);var u=ua(a),C=[];for(var E in a)E=="constructor"&&(u||!Ht.call(a,E))||C.push(E);return C}function Md(a,u){return a<u}function cm(a,u){var C=-1,E=$n(a)?ye(a.length):[];return Uo(a,function(P,U,V){E[++C]=u(P,U,V)}),E}function um(a){var u=Kd(a);return u.length==1&&u[0][2]?Hm(u[0][0],u[0][1]):function(C){return C===a||Ed(C,a,u)}}function dm(a,u){return Yd(a)&&Km(u)?Hm(oo(a),u):function(C){var E=tf(C,a);return E===t&&E===u?nf(C,a):aa(u,E,y|x)}}function Ul(a,u,C,E,P){a!==u&&vd(u,function(U,V){if(P||(P=new Wr),ln(U))r3(a,u,V,C,Ul,E,P);else{var te=E?E(Gd(a,V),U,V+"",a,u,P):t;te===t&&(te=U),yd(a,V,te)}},er)}function r3(a,u,C,E,P,U,V){var te=Gd(a,C),de=Gd(u,C),Re=V.get(de);if(Re){yd(a,C,Re);return}var Ie=U?U(te,de,C+"",a,u,V):t,De=Ie===t;if(De){var Ge=vt(de),nt=!Ge&&Zo(de),pt=!Ge&&!nt&&li(de);Ie=de,Ge||nt||pt?vt(te)?Ie=te:pn(te)?Ie=Xn(te):nt?(De=!1,Ie=wm(de,!0)):pt?(De=!1,Ie=km(de,!0)):Ie=[]:fa(de)||Ss(de)?(Ie=te,Ss(te)?Ie=yg(te):(!ln(te)||yo(te))&&(Ie=Um(de))):De=!1}De&&(V.set(de,Ie),P(Ie,de,E,U,V),V.delete(de)),yd(a,C,Ie)}function fm(a,u){var C=a.length;if(C)return u+=u<0?C:0,bo(u,C)?a[u]:t}function hm(a,u,C){u.length?u=on(u,function(U){return vt(U)?function(V){return vs(V,U.length===1?U[0]:U)}:U}):u=[tr];var E=-1;u=on(u,ar(ht()));var P=cm(a,function(U,V,te){var de=on(u,function(Re){return Re(U)});return{criteria:de,index:++E,value:U}});return Ny(P,function(U,V){return g3(U,V,C)})}function o3(a,u){return pm(a,u,function(C,E){return nf(a,E)})}function pm(a,u,C){for(var E=-1,P=u.length,U={};++E<P;){var V=u[E],te=vs(a,V);C(te,V)&&la(U,Ho(V,a),te)}return U}function s3(a){return function(u){return vs(u,a)}}function Ld(a,u,C,E){var P=E?Ly:Js,U=-1,V=u.length,te=a;for(a===u&&(u=Xn(u)),C&&(te=on(a,ar(C)));++U<V;)for(var de=0,Re=u[U],Ie=C?C(Re):Re;(de=P(te,Ie,de,E))>-1;)te!==a&&Rl.call(te,de,1),Rl.call(a,de,1);return a}function mm(a,u){for(var C=a?u.length:0,E=C-1;C--;){var P=u[C];if(C==E||P!==U){var U=P;bo(P)?Rl.call(a,P,1):Id(a,P)}}return a}function Nd(a,u){return a+Ol(qp()*(u-a+1))}function i3(a,u,C,E){for(var P=-1,U=Nn(Dl((u-a)/(C||1)),0),V=ye(U);U--;)V[E?U:++P]=a,a+=C;return V}function jd(a,u){var C="";if(!a||u<1||u>q)return C;do u%2&&(C+=a),u=Ol(u/2),u&&(a+=a);while(u);return C}function Mt(a,u){return Vd(Ym(a,u,tr),a+"")}function a3(a){return Xp(ci(a))}function l3(a,u){var C=ci(a);return Xl(C,xs(u,0,C.length))}function la(a,u,C,E){if(!ln(a))return a;u=Ho(u,a);for(var P=-1,U=u.length,V=U-1,te=a;te!=null&&++P<U;){var de=oo(u[P]),Re=C;if(de==="__proto__"||de==="constructor"||de==="prototype")return a;if(P!=V){var Ie=te[de];Re=E?E(Ie,de,te):t,Re===t&&(Re=ln(Ie)?Ie:bo(u[P+1])?[]:{})}oa(te,de,Re),te=te[de]}return a}var gm=Pl?function(a,u){return Pl.set(a,u),a}:tr,c3=Il?function(a,u){return Il(a,"toString",{configurable:!0,enumerable:!1,value:of(u),writable:!0})}:tr;function u3(a){return Xl(ci(a))}function Er(a,u,C){var E=-1,P=a.length;u<0&&(u=-u>P?0:P+u),C=C>P?P:C,C<0&&(C+=P),P=u>C?0:C-u>>>0,u>>>=0;for(var U=ye(P);++E<P;)U[E]=a[E+u];return U}function d3(a,u){var C;return Uo(a,function(E,P,U){return C=u(E,P,U),!C}),!!C}function Kl(a,u,C){var E=0,P=a==null?E:a.length;if(typeof u=="number"&&u===u&&P<=we){for(;E<P;){var U=E+P>>>1,V=a[U];V!==null&&!cr(V)&&(C?V<=u:V<u)?E=U+1:P=U}return P}return Rd(a,u,tr,C)}function Rd(a,u,C,E){var P=0,U=a==null?0:a.length;if(U===0)return 0;u=C(u);for(var V=u!==u,te=u===null,de=cr(u),Re=u===t;P<U;){var Ie=Ol((P+U)/2),De=C(a[Ie]),Ge=De!==t,nt=De===null,pt=De===De,Et=cr(De);if(V)var mt=E||pt;else Re?mt=pt&&(E||Ge):te?mt=pt&&Ge&&(E||!nt):de?mt=pt&&Ge&&!nt&&(E||!Et):nt||Et?mt=!1:mt=E?De<=u:De<u;mt?P=Ie+1:U=Ie}return zn(U,xe)}function Cm(a,u){for(var C=-1,E=a.length,P=0,U=[];++C<E;){var V=a[C],te=u?u(V):V;if(!C||!zr(te,de)){var de=te;U[P++]=V===0?0:V}}return U}function Am(a){return typeof a=="number"?a:cr(a)?Q:+a}function lr(a){if(typeof a=="string")return a;if(vt(a))return on(a,lr)+"";if(cr(a))return Qp?Qp.call(a):"";var u=a+"";return u=="0"&&1/a==-Z?"-0":u}function Ko(a,u,C){var E=-1,P=vl,U=a.length,V=!0,te=[],de=te;if(C)V=!1,P=ad;else if(U>=o){var Re=u?null:v3(a);if(Re)return kl(Re);V=!1,P=Xi,de=new ys}else de=u?[]:te;e:for(;++E<U;){var Ie=a[E],De=u?u(Ie):Ie;if(Ie=C||Ie!==0?Ie:0,V&&De===De){for(var Ge=de.length;Ge--;)if(de[Ge]===De)continue e;u&&de.push(De),te.push(Ie)}else P(de,De,C)||(de!==te&&de.push(De),te.push(Ie))}return te}function Id(a,u){u=Ho(u,a);var C=-1,E=u.length;if(!E)return!0;for(var P=a==null||typeof a!="object"&&typeof a!="function";++C<E;){var U=u[C];if(typeof U=="string"){if(U==="__proto__"&&!Ht.call(a,"__proto__"))return!1;if(U==="constructor"&&C+1<E&&typeof u[C+1]=="string"&&u[C+1]==="prototype"){if(P&&C===0)continue;return!1}}}var V=Zm(a,u);return V==null||delete V[oo(Tr(u))]}function bm(a,u,C,E){return la(a,u,C(vs(a,u)),E)}function Hl(a,u,C,E){for(var P=a.length,U=E?P:-1;(E?U--:++U<P)&&u(a[U],U,a););return C?Er(a,E?0:U,E?U+1:P):Er(a,E?U+1:0,E?P:U)}function ym(a,u){var C=a;return C instanceof Rt&&(C=C.value()),ld(u,function(E,P){return P.func.apply(P.thisArg,Fo([E],P.args))},C)}function Dd(a,u,C){var E=a.length;if(E<2)return E?Ko(a[0]):[];for(var P=-1,U=ye(E);++P<E;)for(var V=a[P],te=-1;++te<E;)te!=P&&(U[P]=sa(U[P]||V,a[te],u,C));return Ko(Bn(U,1),u,C)}function xm(a,u,C){for(var E=-1,P=a.length,U=u.length,V={};++E<P;){var te=E<U?u[E]:t;C(V,a[E],te)}return V}function Od(a){return pn(a)?a:[]}function Pd(a){return typeof a=="function"?a:tr}function Ho(a,u){return vt(a)?a:Yd(a,u)?[a]:Qm(Yt(a))}var f3=Mt;function Yo(a,u,C){var E=a.length;return C=C===t?E:C,!u&&C>=E?a:Er(a,u,C)}var vm=$y||function(a){return Pn.clearTimeout(a)};function wm(a,u){if(u)return a.slice();var C=a.length,E=Hp?Hp(C):new a.constructor(C);return a.copy(E),E}function Bd(a){var u=new a.constructor(a.byteLength);return new Nl(u).set(new Nl(a)),u}function h3(a,u){var C=u?Bd(a.buffer):a.buffer;return new a.constructor(C,a.byteOffset,a.byteLength)}function p3(a){var u=new a.constructor(a.source,Vt.exec(a));return u.lastIndex=a.lastIndex,u}function m3(a){return ra?qt(ra.call(a)):{}}function km(a,u){var C=u?Bd(a.buffer):a.buffer;return new a.constructor(C,a.byteOffset,a.length)}function Sm(a,u){if(a!==u){var C=a!==t,E=a===null,P=a===a,U=cr(a),V=u!==t,te=u===null,de=u===u,Re=cr(u);if(!te&&!Re&&!U&&a>u||U&&V&&de&&!te&&!Re||E&&V&&de||!C&&de||!P)return 1;if(!E&&!U&&!Re&&a<u||Re&&C&&P&&!E&&!U||te&&C&&P||!V&&P||!de)return-1}return 0}function g3(a,u,C){for(var E=-1,P=a.criteria,U=u.criteria,V=P.length,te=C.length;++E<V;){var de=Sm(P[E],U[E]);if(de){if(E>=te)return de;var Re=C[E];return de*(Re=="desc"?-1:1)}}return a.index-u.index}function Em(a,u,C,E){for(var P=-1,U=a.length,V=C.length,te=-1,de=u.length,Re=Nn(U-V,0),Ie=ye(de+Re),De=!E;++te<de;)Ie[te]=u[te];for(;++P<V;)(De||P<U)&&(Ie[C[P]]=a[P]);for(;Re--;)Ie[te++]=a[P++];return Ie}function Tm(a,u,C,E){for(var P=-1,U=a.length,V=-1,te=C.length,de=-1,Re=u.length,Ie=Nn(U-te,0),De=ye(Ie+Re),Ge=!E;++P<Ie;)De[P]=a[P];for(var nt=P;++de<Re;)De[nt+de]=u[de];for(;++V<te;)(Ge||P<U)&&(De[nt+C[V]]=a[P++]);return De}function Xn(a,u){var C=-1,E=a.length;for(u||(u=ye(E));++C<E;)u[C]=a[C];return u}function ro(a,u,C,E){var P=!C;C||(C={});for(var U=-1,V=u.length;++U<V;){var te=u[U],de=E?E(C[te],a[te],te,C,a):t;de===t&&(de=a[te]),P?go(C,te,de):oa(C,te,de)}return C}function C3(a,u){return ro(a,Hd(a),u)}function A3(a,u){return ro(a,Wm(a),u)}function Yl(a,u){return function(C,E){var P=vt(C)?wy:Wx,U=u?u():{};return P(C,a,ht(E,2),U)}}function si(a){return Mt(function(u,C){var E=-1,P=C.length,U=P>1?C[P-1]:t,V=P>2?C[2]:t;for(U=a.length>3&&typeof U=="function"?(P--,U):t,V&&Gn(C[0],C[1],V)&&(U=P<3?t:U,P=1),u=qt(u);++E<P;){var te=C[E];te&&a(u,te,E,U)}return u})}function Mm(a,u){return function(C,E){if(C==null)return C;if(!$n(C))return a(C,E);for(var P=C.length,U=u?P:-1,V=qt(C);(u?U--:++U<P)&&E(V[U],U,V)!==!1;);return C}}function Lm(a){return function(u,C,E){for(var P=-1,U=qt(u),V=E(u),te=V.length;te--;){var de=V[a?te:++P];if(C(U[de],de,U)===!1)break}return u}}function b3(a,u,C){var E=u&w,P=ca(a);function U(){var V=this&&this!==Pn&&this instanceof U?P:a;return V.apply(E?C:this,arguments)}return U}function Nm(a){return function(u){u=Yt(u);var C=Xs(u)?Fr(u):t,E=C?C[0]:u.charAt(0),P=C?Yo(C,1).join(""):u.slice(1);return E[a]()+P}}function ii(a){return function(u){return ld(Mg(Tg(u).replace(cy,"")),a,"")}}function ca(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var C=oi(a.prototype),E=a.apply(C,u);return ln(E)?E:C}}function y3(a,u,C){var E=ca(a);function P(){for(var U=arguments.length,V=ye(U),te=U,de=ai(P);te--;)V[te]=arguments[te];var Re=U<3&&V[0]!==de&&V[U-1]!==de?[]:Wo(V,de);if(U-=Re.length,U<C)return Om(a,u,Zl,P.placeholder,t,V,Re,t,t,C-U);var Ie=this&&this!==Pn&&this instanceof P?E:a;return ir(Ie,this,V)}return P}function jm(a){return function(u,C,E){var P=qt(u);if(!$n(u)){var U=ht(C,3);u=Rn(u),C=function(te){return U(P[te],te,P)}}var V=a(u,C,E);return V>-1?P[U?u[V]:V]:t}}function Rm(a){return Ao(function(u){var C=u.length,E=C,P=kr.prototype.thru;for(a&&u.reverse();E--;){var U=u[E];if(typeof U!="function")throw new wr(l);if(P&&!V&&Ql(U)=="wrapper")var V=new kr([],!0)}for(E=V?E:C;++E<C;){U=u[E];var te=Ql(U),de=te=="wrapper"?Ud(U):t;de&&Zd(de[0])&&de[1]==(S|I|L|O)&&!de[4].length&&de[9]==1?V=V[Ql(de[0])].apply(V,de[3]):V=U.length==1&&Zd(U)?V[te]():V.thru(U)}return function(){var Re=arguments,Ie=Re[0];if(V&&Re.length==1&&vt(Ie))return V.plant(Ie).value();for(var De=0,Ge=C?u[De].apply(this,Re):Ie;++De<C;)Ge=u[De].call(this,Ge);return Ge}})}function Zl(a,u,C,E,P,U,V,te,de,Re){var Ie=u&S,De=u&w,Ge=u&k,nt=u&(I|N),pt=u&R,Et=Ge?t:ca(a);function mt(){for(var jt=arguments.length,Pt=ye(jt),ur=jt;ur--;)Pt[ur]=arguments[ur];if(nt)var Vn=ai(mt),dr=Ry(Pt,Vn);if(E&&(Pt=Em(Pt,E,P,nt)),U&&(Pt=Tm(Pt,U,V,nt)),jt-=dr,nt&&jt<Re){var mn=Wo(Pt,Vn);return Om(a,u,Zl,mt.placeholder,C,Pt,mn,te,de,Re-jt)}var Ur=De?C:this,vo=Ge?Ur[a]:a;return jt=Pt.length,te?Pt=W3(Pt,te):pt&&jt>1&&Pt.reverse(),Ie&&de<jt&&(Pt.length=de),this&&this!==Pn&&this instanceof mt&&(vo=Et||ca(vo)),vo.apply(Ur,Pt)}return mt}function Im(a,u){return function(C,E){return Vx(C,a,u(E),{})}}function Gl(a,u){return function(C,E){var P;if(C===t&&E===t)return u;if(C!==t&&(P=C),E!==t){if(P===t)return E;typeof C=="string"||typeof E=="string"?(C=lr(C),E=lr(E)):(C=Am(C),E=Am(E)),P=a(C,E)}return P}}function _d(a){return Ao(function(u){return u=on(u,ar(ht())),Mt(function(C){var E=this;return a(u,function(P){return ir(P,E,C)})})})}function Vl(a,u){u=u===t?" ":lr(u);var C=u.length;if(C<2)return C?jd(u,a):u;var E=jd(u,Dl(a/$s(u)));return Xs(u)?Yo(Fr(E),0,a).join(""):E.slice(0,a)}function x3(a,u,C,E){var P=u&w,U=ca(a);function V(){for(var te=-1,de=arguments.length,Re=-1,Ie=E.length,De=ye(Ie+de),Ge=this&&this!==Pn&&this instanceof V?U:a;++Re<Ie;)De[Re]=E[Re];for(;de--;)De[Re++]=arguments[++te];return ir(Ge,P?C:this,De)}return V}function Dm(a){return function(u,C,E){return E&&typeof E!="number"&&Gn(u,C,E)&&(C=E=t),u=xo(u),C===t?(C=u,u=0):C=xo(C),E=E===t?u<C?1:-1:xo(E),i3(u,C,E,a)}}function ql(a){return function(u,C){return typeof u=="string"&&typeof C=="string"||(u=Mr(u),C=Mr(C)),a(u,C)}}function Om(a,u,C,E,P,U,V,te,de,Re){var Ie=u&I,De=Ie?V:t,Ge=Ie?t:V,nt=Ie?U:t,pt=Ie?t:U;u|=Ie?L:M,u&=~(Ie?M:L),u&T||(u&=-4);var Et=[a,u,P,nt,De,pt,Ge,te,de,Re],mt=C.apply(t,Et);return Zd(a)&&Gm(mt,Et),mt.placeholder=E,Vm(mt,a,u)}function Fd(a){var u=Ln[a];return function(C,E){if(C=Mr(C),E=E==null?0:zn(kt(E),292),E&&Vp(C)){var P=(Yt(C)+"e").split("e"),U=u(P[0]+"e"+(+P[1]+E));return P=(Yt(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-E))}return u(C)}}var v3=ni&&1/kl(new ni([,-0]))[1]==Z?function(a){return new ni(a)}:lf;function Pm(a){return function(u){var C=Un(u);return C==K?md(u):C==ce?Fy(u):jy(u,a(u))}}function Co(a,u,C,E,P,U,V,te){var de=u&k;if(!de&&typeof a!="function")throw new wr(l);var Re=E?E.length:0;if(Re||(u&=-97,E=P=t),V=V===t?V:Nn(kt(V),0),te=te===t?te:kt(te),Re-=P?P.length:0,u&M){var Ie=E,De=P;E=P=t}var Ge=de?t:Ud(a),nt=[a,u,C,E,P,Ie,De,U,V,te];if(Ge&&B3(nt,Ge),a=nt[0],u=nt[1],C=nt[2],E=nt[3],P=nt[4],te=nt[9]=nt[9]===t?de?0:a.length:Nn(nt[9]-Re,0),!te&&u&(I|N)&&(u&=-25),!u||u==w)var pt=b3(a,u,C);else u==I||u==N?pt=y3(a,u,te):(u==L||u==(w|L))&&!P.length?pt=x3(a,u,C,E):pt=Zl.apply(t,nt);var Et=Ge?gm:Gm;return Vm(Et(pt,nt),a,u)}function Bm(a,u,C,E){return a===t||zr(a,ti[C])&&!Ht.call(E,C)?u:a}function _m(a,u,C,E,P,U){return ln(a)&&ln(u)&&(U.set(u,a),Ul(a,u,t,_m,U),U.delete(u)),a}function w3(a){return fa(a)?t:a}function Fm(a,u,C,E,P,U){var V=C&y,te=a.length,de=u.length;if(te!=de&&!(V&&de>te))return!1;var Re=U.get(a),Ie=U.get(u);if(Re&&Ie)return Re==u&&Ie==a;var De=-1,Ge=!0,nt=C&x?new ys:t;for(U.set(a,u),U.set(u,a);++De<te;){var pt=a[De],Et=u[De];if(E)var mt=V?E(Et,pt,De,u,a,U):E(pt,Et,De,a,u,U);if(mt!==t){if(mt)continue;Ge=!1;break}if(nt){if(!cd(u,function(jt,Pt){if(!Xi(nt,Pt)&&(pt===jt||P(pt,jt,C,E,U)))return nt.push(Pt)})){Ge=!1;break}}else if(!(pt===Et||P(pt,Et,C,E,U))){Ge=!1;break}}return U.delete(a),U.delete(u),Ge}function k3(a,u,C,E,P,U,V){switch(C){case ue:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case Dt:return!(a.byteLength!=u.byteLength||!U(new Nl(a),new Nl(u)));case ae:case pe:case Y:return zr(+a,+u);case G:return a.name==u.name&&a.message==u.message;case Ue:case je:return a==u+"";case K:var te=md;case ce:var de=E&y;if(te||(te=kl),a.size!=u.size&&!de)return!1;var Re=V.get(a);if(Re)return Re==u;E|=x,V.set(a,u);var Ie=Fm(te(a),te(u),E,P,U,V);return V.delete(a),Ie;case Ze:if(ra)return ra.call(a)==ra.call(u)}return!1}function S3(a,u,C,E,P,U){var V=C&y,te=Wd(a),de=te.length,Re=Wd(u),Ie=Re.length;if(de!=Ie&&!V)return!1;for(var De=de;De--;){var Ge=te[De];if(!(V?Ge in u:Ht.call(u,Ge)))return!1}var nt=U.get(a),pt=U.get(u);if(nt&&pt)return nt==u&&pt==a;var Et=!0;U.set(a,u),U.set(u,a);for(var mt=V;++De<de;){Ge=te[De];var jt=a[Ge],Pt=u[Ge];if(E)var ur=V?E(Pt,jt,Ge,u,a,U):E(jt,Pt,Ge,a,u,U);if(!(ur===t?jt===Pt||P(jt,Pt,C,E,U):ur)){Et=!1;break}mt||(mt=Ge=="constructor")}if(Et&&!mt){var Vn=a.constructor,dr=u.constructor;Vn!=dr&&"constructor"in a&&"constructor"in u&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof dr=="function"&&dr instanceof dr)&&(Et=!1)}return U.delete(a),U.delete(u),Et}function Ao(a){return Vd(Ym(a,t,eg),a+"")}function Wd(a){return sm(a,Rn,Hd)}function zd(a){return sm(a,er,Wm)}var Ud=Pl?function(a){return Pl.get(a)}:lf;function Ql(a){for(var u=a.name+"",C=ri[u],E=Ht.call(ri,u)?C.length:0;E--;){var P=C[E],U=P.func;if(U==null||U==a)return P.name}return u}function ai(a){var u=Ht.call(W,"placeholder")?W:a;return u.placeholder}function ht(){var a=W.iteratee||sf;return a=a===sf?lm:a,arguments.length?a(arguments[0],arguments[1]):a}function Jl(a,u){var C=a.__data__;return I3(u)?C[typeof u=="string"?"string":"hash"]:C.map}function Kd(a){for(var u=Rn(a),C=u.length;C--;){var E=u[C],P=a[E];u[C]=[E,P,Km(P)]}return u}function ws(a,u){var C=Py(a,u);return am(C)?C:t}function E3(a){var u=Ht.call(a,As),C=a[As];try{a[As]=t;var E=!0}catch{}var P=Ml.call(a);return E&&(u?a[As]=C:delete a[As]),P}var Hd=Cd?function(a){return a==null?[]:(a=qt(a),_o(Cd(a),function(u){return Zp.call(a,u)}))}:cf,Wm=Cd?function(a){for(var u=[];a;)Fo(u,Hd(a)),a=jl(a);return u}:cf,Un=Zn;(Ad&&Un(new Ad(new ArrayBuffer(1)))!=ue||ea&&Un(new ea)!=K||bd&&Un(bd.resolve())!=Ce||ni&&Un(new ni)!=ce||ta&&Un(new ta)!=Ct)&&(Un=function(a){var u=Zn(a),C=u==fe?a.constructor:t,E=C?ks(C):"";if(E)switch(E){case lx:return ue;case cx:return K;case ux:return Ce;case dx:return ce;case fx:return Ct}return u});function T3(a,u,C){for(var E=-1,P=C.length;++E<P;){var U=C[E],V=U.size;switch(U.type){case"drop":a+=V;break;case"dropRight":u-=V;break;case"take":u=zn(u,a+V);break;case"takeRight":a=Nn(a,u-V);break}}return{start:a,end:u}}function M3(a){var u=a.match(Lt);return u?u[1].split(Nt):[]}function zm(a,u,C){u=Ho(u,a);for(var E=-1,P=u.length,U=!1;++E<P;){var V=oo(u[E]);if(!(U=a!=null&&C(a,V)))break;a=a[V]}return U||++E!=P?U:(P=a==null?0:a.length,!!P&&oc(P)&&bo(V,P)&&(vt(a)||Ss(a)))}function L3(a){var u=a.length,C=new a.constructor(u);return u&&typeof a[0]=="string"&&Ht.call(a,"index")&&(C.index=a.index,C.input=a.input),C}function Um(a){return typeof a.constructor=="function"&&!ua(a)?oi(jl(a)):{}}function N3(a,u,C){var E=a.constructor;switch(u){case Dt:return Bd(a);case ae:case pe:return new E(+a);case ue:return h3(a,C);case re:case ke:case _e:case me:case ie:case Ae:case Oe:case He:case $e:return km(a,C);case K:return new E;case Y:case je:return new E(a);case Ue:return p3(a);case ce:return new E;case Ze:return m3(a)}}function j3(a,u){var C=u.length;if(!C)return a;var E=C-1;return u[E]=(C>1?"& ":"")+u[E],u=u.join(C>2?", ":" "),a.replace(bt,`{
|
|
213
|
+
/* [wrapped with `+u+`] */
|
|
214
|
+
`)}function R3(a){return vt(a)||Ss(a)||!!(Gp&&a&&a[Gp])}function bo(a,u){var C=typeof a;return u=u??q,!!u&&(C=="number"||C!="symbol"&&wn.test(a))&&a>-1&&a%1==0&&a<u}function Gn(a,u,C){if(!ln(C))return!1;var E=typeof u;return(E=="number"?$n(C)&&bo(u,C.length):E=="string"&&u in C)?zr(C[u],a):!1}function Yd(a,u){if(vt(a))return!1;var C=typeof a;return C=="number"||C=="symbol"||C=="boolean"||a==null||cr(a)?!0:at.test(a)||!ze.test(a)||u!=null&&a in qt(u)}function I3(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function Zd(a){var u=Ql(a),C=W[u];if(typeof C!="function"||!(u in Rt.prototype))return!1;if(a===C)return!0;var E=Ud(C);return!!E&&a===E[0]}function D3(a){return!!Kp&&Kp in a}var O3=El?yo:uf;function ua(a){var u=a&&a.constructor,C=typeof u=="function"&&u.prototype||ti;return a===C}function Km(a){return a===a&&!ln(a)}function Hm(a,u){return function(C){return C==null?!1:C[a]===u&&(u!==t||a in qt(C))}}function P3(a){var u=nc(a,function(E){return C.size===f&&C.clear(),E}),C=u.cache;return u}function B3(a,u){var C=a[1],E=u[1],P=C|E,U=P<(w|k|S),V=E==S&&C==I||E==S&&C==O&&a[7].length<=u[8]||E==(S|O)&&u[7].length<=u[8]&&C==I;if(!(U||V))return a;E&w&&(a[2]=u[2],P|=C&w?0:T);var te=u[3];if(te){var de=a[3];a[3]=de?Em(de,te,u[4]):te,a[4]=de?Wo(a[3],h):u[4]}return te=u[5],te&&(de=a[5],a[5]=de?Tm(de,te,u[6]):te,a[6]=de?Wo(a[5],h):u[6]),te=u[7],te&&(a[7]=te),E&S&&(a[8]=a[8]==null?u[8]:zn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=P,a}function _3(a){var u=[];if(a!=null)for(var C in qt(a))u.push(C);return u}function F3(a){return Ml.call(a)}function Ym(a,u,C){return u=Nn(u===t?a.length-1:u,0),function(){for(var E=arguments,P=-1,U=Nn(E.length-u,0),V=ye(U);++P<U;)V[P]=E[u+P];P=-1;for(var te=ye(u+1);++P<u;)te[P]=E[P];return te[u]=C(V),ir(a,this,te)}}function Zm(a,u){return u.length<2?a:vs(a,Er(u,0,-1))}function W3(a,u){for(var C=a.length,E=zn(u.length,C),P=Xn(a);E--;){var U=u[E];a[E]=bo(U,C)?P[U]:t}return a}function Gd(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var Gm=qm(gm),da=tx||function(a,u){return Pn.setTimeout(a,u)},Vd=qm(c3);function Vm(a,u,C){var E=u+"";return Vd(a,j3(E,z3(M3(E),C)))}function qm(a){var u=0,C=0;return function(){var E=sx(),P=D-(E-C);if(C=E,P>0){if(++u>=j)return arguments[0]}else u=0;return a.apply(t,arguments)}}function Xl(a,u){var C=-1,E=a.length,P=E-1;for(u=u===t?E:u;++C<u;){var U=Nd(C,P),V=a[U];a[U]=a[C],a[C]=V}return a.length=u,a}var Qm=P3(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(tt,function(C,E,P,U){u.push(P?U.replace(an,"$1"):E||C)}),u});function oo(a){if(typeof a=="string"||cr(a))return a;var u=a+"";return u=="0"&&1/a==-Z?"-0":u}function ks(a){if(a!=null){try{return Tl.call(a)}catch{}try{return a+""}catch{}}return""}function z3(a,u){return vr(Te,function(C){var E="_."+C[0];u&C[1]&&!vl(a,E)&&a.push(E)}),a.sort()}function Jm(a){if(a instanceof Rt)return a.clone();var u=new kr(a.__wrapped__,a.__chain__);return u.__actions__=Xn(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function U3(a,u,C){(C?Gn(a,u,C):u===t)?u=1:u=Nn(kt(u),0);var E=a==null?0:a.length;if(!E||u<1)return[];for(var P=0,U=0,V=ye(Dl(E/u));P<E;)V[U++]=Er(a,P,P+=u);return V}function K3(a){for(var u=-1,C=a==null?0:a.length,E=0,P=[];++u<C;){var U=a[u];U&&(P[E++]=U)}return P}function H3(){var a=arguments.length;if(!a)return[];for(var u=ye(a-1),C=arguments[0],E=a;E--;)u[E-1]=arguments[E];return Fo(vt(C)?Xn(C):[C],Bn(u,1))}var Y3=Mt(function(a,u){return pn(a)?sa(a,Bn(u,1,pn,!0)):[]}),Z3=Mt(function(a,u){var C=Tr(u);return pn(C)&&(C=t),pn(a)?sa(a,Bn(u,1,pn,!0),ht(C,2)):[]}),G3=Mt(function(a,u){var C=Tr(u);return pn(C)&&(C=t),pn(a)?sa(a,Bn(u,1,pn,!0),t,C):[]});function V3(a,u,C){var E=a==null?0:a.length;return E?(u=C||u===t?1:kt(u),Er(a,u<0?0:u,E)):[]}function q3(a,u,C){var E=a==null?0:a.length;return E?(u=C||u===t?1:kt(u),u=E-u,Er(a,0,u<0?0:u)):[]}function Q3(a,u){return a&&a.length?Hl(a,ht(u,3),!0,!0):[]}function J3(a,u){return a&&a.length?Hl(a,ht(u,3),!0):[]}function X3(a,u,C,E){var P=a==null?0:a.length;return P?(C&&typeof C!="number"&&Gn(a,u,C)&&(C=0,E=P),Hx(a,u,C,E)):[]}function Xm(a,u,C){var E=a==null?0:a.length;if(!E)return-1;var P=C==null?0:kt(C);return P<0&&(P=Nn(E+P,0)),wl(a,ht(u,3),P)}function $m(a,u,C){var E=a==null?0:a.length;if(!E)return-1;var P=E-1;return C!==t&&(P=kt(C),P=C<0?Nn(E+P,0):zn(P,E-1)),wl(a,ht(u,3),P,!0)}function eg(a){var u=a==null?0:a.length;return u?Bn(a,1):[]}function $3(a){var u=a==null?0:a.length;return u?Bn(a,Z):[]}function ev(a,u){var C=a==null?0:a.length;return C?(u=u===t?1:kt(u),Bn(a,u)):[]}function tv(a){for(var u=-1,C=a==null?0:a.length,E={};++u<C;){var P=a[u];E[P[0]]=P[1]}return E}function tg(a){return a&&a.length?a[0]:t}function nv(a,u,C){var E=a==null?0:a.length;if(!E)return-1;var P=C==null?0:kt(C);return P<0&&(P=Nn(E+P,0)),Js(a,u,P)}function rv(a){var u=a==null?0:a.length;return u?Er(a,0,-1):[]}var ov=Mt(function(a){var u=on(a,Od);return u.length&&u[0]===a[0]?Sd(u):[]}),sv=Mt(function(a){var u=Tr(a),C=on(a,Od);return u===Tr(C)?u=t:C.pop(),C.length&&C[0]===a[0]?Sd(C,ht(u,2)):[]}),iv=Mt(function(a){var u=Tr(a),C=on(a,Od);return u=typeof u=="function"?u:t,u&&C.pop(),C.length&&C[0]===a[0]?Sd(C,t,u):[]});function av(a,u){return a==null?"":rx.call(a,u)}function Tr(a){var u=a==null?0:a.length;return u?a[u-1]:t}function lv(a,u,C){var E=a==null?0:a.length;if(!E)return-1;var P=E;return C!==t&&(P=kt(C),P=P<0?Nn(E+P,0):zn(P,E-1)),u===u?zy(a,u,P):wl(a,Op,P,!0)}function cv(a,u){return a&&a.length?fm(a,kt(u)):t}var uv=Mt(ng);function ng(a,u){return a&&a.length&&u&&u.length?Ld(a,u):a}function dv(a,u,C){return a&&a.length&&u&&u.length?Ld(a,u,ht(C,2)):a}function fv(a,u,C){return a&&a.length&&u&&u.length?Ld(a,u,t,C):a}var hv=Ao(function(a,u){var C=a==null?0:a.length,E=xd(a,u);return mm(a,on(u,function(P){return bo(P,C)?+P:P}).sort(Sm)),E});function pv(a,u){var C=[];if(!(a&&a.length))return C;var E=-1,P=[],U=a.length;for(u=ht(u,3);++E<U;){var V=a[E];u(V,E,a)&&(C.push(V),P.push(E))}return mm(a,P),C}function qd(a){return a==null?a:ax.call(a)}function mv(a,u,C){var E=a==null?0:a.length;return E?(C&&typeof C!="number"&&Gn(a,u,C)?(u=0,C=E):(u=u==null?0:kt(u),C=C===t?E:kt(C)),Er(a,u,C)):[]}function gv(a,u){return Kl(a,u)}function Cv(a,u,C){return Rd(a,u,ht(C,2))}function Av(a,u){var C=a==null?0:a.length;if(C){var E=Kl(a,u);if(E<C&&zr(a[E],u))return E}return-1}function bv(a,u){return Kl(a,u,!0)}function yv(a,u,C){return Rd(a,u,ht(C,2),!0)}function xv(a,u){var C=a==null?0:a.length;if(C){var E=Kl(a,u,!0)-1;if(zr(a[E],u))return E}return-1}function vv(a){return a&&a.length?Cm(a):[]}function wv(a,u){return a&&a.length?Cm(a,ht(u,2)):[]}function kv(a){var u=a==null?0:a.length;return u?Er(a,1,u):[]}function Sv(a,u,C){return a&&a.length?(u=C||u===t?1:kt(u),Er(a,0,u<0?0:u)):[]}function Ev(a,u,C){var E=a==null?0:a.length;return E?(u=C||u===t?1:kt(u),u=E-u,Er(a,u<0?0:u,E)):[]}function Tv(a,u){return a&&a.length?Hl(a,ht(u,3),!1,!0):[]}function Mv(a,u){return a&&a.length?Hl(a,ht(u,3)):[]}var Lv=Mt(function(a){return Ko(Bn(a,1,pn,!0))}),Nv=Mt(function(a){var u=Tr(a);return pn(u)&&(u=t),Ko(Bn(a,1,pn,!0),ht(u,2))}),jv=Mt(function(a){var u=Tr(a);return u=typeof u=="function"?u:t,Ko(Bn(a,1,pn,!0),t,u)});function Rv(a){return a&&a.length?Ko(a):[]}function Iv(a,u){return a&&a.length?Ko(a,ht(u,2)):[]}function Dv(a,u){return u=typeof u=="function"?u:t,a&&a.length?Ko(a,t,u):[]}function Qd(a){if(!(a&&a.length))return[];var u=0;return a=_o(a,function(C){if(pn(C))return u=Nn(C.length,u),!0}),hd(u,function(C){return on(a,ud(C))})}function rg(a,u){if(!(a&&a.length))return[];var C=Qd(a);return u==null?C:on(C,function(E){return ir(u,t,E)})}var Ov=Mt(function(a,u){return pn(a)?sa(a,u):[]}),Pv=Mt(function(a){return Dd(_o(a,pn))}),Bv=Mt(function(a){var u=Tr(a);return pn(u)&&(u=t),Dd(_o(a,pn),ht(u,2))}),_v=Mt(function(a){var u=Tr(a);return u=typeof u=="function"?u:t,Dd(_o(a,pn),t,u)}),Fv=Mt(Qd);function Wv(a,u){return xm(a||[],u||[],oa)}function zv(a,u){return xm(a||[],u||[],la)}var Uv=Mt(function(a){var u=a.length,C=u>1?a[u-1]:t;return C=typeof C=="function"?(a.pop(),C):t,rg(a,C)});function og(a){var u=W(a);return u.__chain__=!0,u}function Kv(a,u){return u(a),a}function $l(a,u){return u(a)}var Hv=Ao(function(a){var u=a.length,C=u?a[0]:0,E=this.__wrapped__,P=function(U){return xd(U,a)};return u>1||this.__actions__.length||!(E instanceof Rt)||!bo(C)?this.thru(P):(E=E.slice(C,+C+(u?1:0)),E.__actions__.push({func:$l,args:[P],thisArg:t}),new kr(E,this.__chain__).thru(function(U){return u&&!U.length&&U.push(t),U}))});function Yv(){return og(this)}function Zv(){return new kr(this.value(),this.__chain__)}function Gv(){this.__values__===t&&(this.__values__=Ag(this.value()));var a=this.__index__>=this.__values__.length,u=a?t:this.__values__[this.__index__++];return{done:a,value:u}}function Vv(){return this}function qv(a){for(var u,C=this;C instanceof _l;){var E=Jm(C);E.__index__=0,E.__values__=t,u?P.__wrapped__=E:u=E;var P=E;C=C.__wrapped__}return P.__wrapped__=a,u}function Qv(){var a=this.__wrapped__;if(a instanceof Rt){var u=a;return this.__actions__.length&&(u=new Rt(this)),u=u.reverse(),u.__actions__.push({func:$l,args:[qd],thisArg:t}),new kr(u,this.__chain__)}return this.thru(qd)}function Jv(){return ym(this.__wrapped__,this.__actions__)}var Xv=Yl(function(a,u,C){Ht.call(a,C)?++a[C]:go(a,C,1)});function $v(a,u,C){var E=vt(a)?Ip:Kx;return C&&Gn(a,u,C)&&(u=t),E(a,ht(u,3))}function e6(a,u){var C=vt(a)?_o:rm;return C(a,ht(u,3))}var t6=jm(Xm),n6=jm($m);function r6(a,u){return Bn(ec(a,u),1)}function o6(a,u){return Bn(ec(a,u),Z)}function s6(a,u,C){return C=C===t?1:kt(C),Bn(ec(a,u),C)}function sg(a,u){var C=vt(a)?vr:Uo;return C(a,ht(u,3))}function ig(a,u){var C=vt(a)?ky:nm;return C(a,ht(u,3))}var i6=Yl(function(a,u,C){Ht.call(a,C)?a[C].push(u):go(a,C,[u])});function a6(a,u,C,E){a=$n(a)?a:ci(a),C=C&&!E?kt(C):0;var P=a.length;return C<0&&(C=Nn(P+C,0)),sc(a)?C<=P&&a.indexOf(u,C)>-1:!!P&&Js(a,u,C)>-1}var l6=Mt(function(a,u,C){var E=-1,P=typeof u=="function",U=$n(a)?ye(a.length):[];return Uo(a,function(V){U[++E]=P?ir(u,V,C):ia(V,u,C)}),U}),c6=Yl(function(a,u,C){go(a,C,u)});function ec(a,u){var C=vt(a)?on:cm;return C(a,ht(u,3))}function u6(a,u,C,E){return a==null?[]:(vt(u)||(u=u==null?[]:[u]),C=E?t:C,vt(C)||(C=C==null?[]:[C]),hm(a,u,C))}var d6=Yl(function(a,u,C){a[C?0:1].push(u)},function(){return[[],[]]});function f6(a,u,C){var E=vt(a)?ld:Bp,P=arguments.length<3;return E(a,ht(u,4),C,P,Uo)}function h6(a,u,C){var E=vt(a)?Sy:Bp,P=arguments.length<3;return E(a,ht(u,4),C,P,nm)}function p6(a,u){var C=vt(a)?_o:rm;return C(a,rc(ht(u,3)))}function m6(a){var u=vt(a)?Xp:a3;return u(a)}function g6(a,u,C){(C?Gn(a,u,C):u===t)?u=1:u=kt(u);var E=vt(a)?_x:l3;return E(a,u)}function C6(a){var u=vt(a)?Fx:u3;return u(a)}function A6(a){if(a==null)return 0;if($n(a))return sc(a)?$s(a):a.length;var u=Un(a);return u==K||u==ce?a.size:Td(a).length}function b6(a,u,C){var E=vt(a)?cd:d3;return C&&Gn(a,u,C)&&(u=t),E(a,ht(u,3))}var y6=Mt(function(a,u){if(a==null)return[];var C=u.length;return C>1&&Gn(a,u[0],u[1])?u=[]:C>2&&Gn(u[0],u[1],u[2])&&(u=[u[0]]),hm(a,Bn(u,1),[])}),tc=ex||function(){return Pn.Date.now()};function x6(a,u){if(typeof u!="function")throw new wr(l);return a=kt(a),function(){if(--a<1)return u.apply(this,arguments)}}function ag(a,u,C){return u=C?t:u,u=a&&u==null?a.length:u,Co(a,S,t,t,t,t,u)}function lg(a,u){var C;if(typeof u!="function")throw new wr(l);return a=kt(a),function(){return--a>0&&(C=u.apply(this,arguments)),a<=1&&(u=t),C}}var Jd=Mt(function(a,u,C){var E=w;if(C.length){var P=Wo(C,ai(Jd));E|=L}return Co(a,E,u,C,P)}),cg=Mt(function(a,u,C){var E=w|k;if(C.length){var P=Wo(C,ai(cg));E|=L}return Co(u,E,a,C,P)});function ug(a,u,C){u=C?t:u;var E=Co(a,I,t,t,t,t,t,u);return E.placeholder=ug.placeholder,E}function dg(a,u,C){u=C?t:u;var E=Co(a,N,t,t,t,t,t,u);return E.placeholder=dg.placeholder,E}function fg(a,u,C){var E,P,U,V,te,de,Re=0,Ie=!1,De=!1,Ge=!0;if(typeof a!="function")throw new wr(l);u=Mr(u)||0,ln(C)&&(Ie=!!C.leading,De="maxWait"in C,U=De?Nn(Mr(C.maxWait)||0,u):U,Ge="trailing"in C?!!C.trailing:Ge);function nt(mn){var Ur=E,vo=P;return E=P=t,Re=mn,V=a.apply(vo,Ur),V}function pt(mn){return Re=mn,te=da(jt,u),Ie?nt(mn):V}function Et(mn){var Ur=mn-de,vo=mn-Re,jg=u-Ur;return De?zn(jg,U-vo):jg}function mt(mn){var Ur=mn-de,vo=mn-Re;return de===t||Ur>=u||Ur<0||De&&vo>=U}function jt(){var mn=tc();if(mt(mn))return Pt(mn);te=da(jt,Et(mn))}function Pt(mn){return te=t,Ge&&E?nt(mn):(E=P=t,V)}function ur(){te!==t&&vm(te),Re=0,E=de=P=te=t}function Vn(){return te===t?V:Pt(tc())}function dr(){var mn=tc(),Ur=mt(mn);if(E=arguments,P=this,de=mn,Ur){if(te===t)return pt(de);if(De)return vm(te),te=da(jt,u),nt(de)}return te===t&&(te=da(jt,u)),V}return dr.cancel=ur,dr.flush=Vn,dr}var v6=Mt(function(a,u){return tm(a,1,u)}),w6=Mt(function(a,u,C){return tm(a,Mr(u)||0,C)});function k6(a){return Co(a,R)}function nc(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new wr(l);var C=function(){var E=arguments,P=u?u.apply(this,E):E[0],U=C.cache;if(U.has(P))return U.get(P);var V=a.apply(this,E);return C.cache=U.set(P,V)||U,V};return C.cache=new(nc.Cache||mo),C}nc.Cache=mo;function rc(a){if(typeof a!="function")throw new wr(l);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function S6(a){return lg(2,a)}var E6=f3(function(a,u){u=u.length==1&&vt(u[0])?on(u[0],ar(ht())):on(Bn(u,1),ar(ht()));var C=u.length;return Mt(function(E){for(var P=-1,U=zn(E.length,C);++P<U;)E[P]=u[P].call(this,E[P]);return ir(a,this,E)})}),Xd=Mt(function(a,u){var C=Wo(u,ai(Xd));return Co(a,L,t,u,C)}),hg=Mt(function(a,u){var C=Wo(u,ai(hg));return Co(a,M,t,u,C)}),T6=Ao(function(a,u){return Co(a,O,t,t,t,u)});function M6(a,u){if(typeof a!="function")throw new wr(l);return u=u===t?u:kt(u),Mt(a,u)}function L6(a,u){if(typeof a!="function")throw new wr(l);return u=u==null?0:Nn(kt(u),0),Mt(function(C){var E=C[u],P=Yo(C,0,u);return E&&Fo(P,E),ir(a,this,P)})}function N6(a,u,C){var E=!0,P=!0;if(typeof a!="function")throw new wr(l);return ln(C)&&(E="leading"in C?!!C.leading:E,P="trailing"in C?!!C.trailing:P),fg(a,u,{leading:E,maxWait:u,trailing:P})}function j6(a){return ag(a,1)}function R6(a,u){return Xd(Pd(u),a)}function I6(){if(!arguments.length)return[];var a=arguments[0];return vt(a)?a:[a]}function D6(a){return Sr(a,b)}function O6(a,u){return u=typeof u=="function"?u:t,Sr(a,b,u)}function P6(a){return Sr(a,g|b)}function B6(a,u){return u=typeof u=="function"?u:t,Sr(a,g|b,u)}function _6(a,u){return u==null||em(a,u,Rn(u))}function zr(a,u){return a===u||a!==a&&u!==u}var F6=ql(kd),W6=ql(function(a,u){return a>=u}),Ss=im((function(){return arguments})())?im:function(a){return un(a)&&Ht.call(a,"callee")&&!Zp.call(a,"callee")},vt=ye.isArray,z6=Tp?ar(Tp):qx;function $n(a){return a!=null&&oc(a.length)&&!yo(a)}function pn(a){return un(a)&&$n(a)}function U6(a){return a===!0||a===!1||un(a)&&Zn(a)==ae}var Zo=nx||uf,K6=Mp?ar(Mp):Qx;function H6(a){return un(a)&&a.nodeType===1&&!fa(a)}function Y6(a){if(a==null)return!0;if($n(a)&&(vt(a)||typeof a=="string"||typeof a.splice=="function"||Zo(a)||li(a)||Ss(a)))return!a.length;var u=Un(a);if(u==K||u==ce)return!a.size;if(ua(a))return!Td(a).length;for(var C in a)if(Ht.call(a,C))return!1;return!0}function Z6(a,u){return aa(a,u)}function G6(a,u,C){C=typeof C=="function"?C:t;var E=C?C(a,u):t;return E===t?aa(a,u,t,C):!!E}function $d(a){if(!un(a))return!1;var u=Zn(a);return u==G||u==ge||typeof a.message=="string"&&typeof a.name=="string"&&!fa(a)}function V6(a){return typeof a=="number"&&Vp(a)}function yo(a){if(!ln(a))return!1;var u=Zn(a);return u==he||u==oe||u==X||u==Le}function pg(a){return typeof a=="number"&&a==kt(a)}function oc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=q}function ln(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function un(a){return a!=null&&typeof a=="object"}var mg=Lp?ar(Lp):Xx;function q6(a,u){return a===u||Ed(a,u,Kd(u))}function Q6(a,u,C){return C=typeof C=="function"?C:t,Ed(a,u,Kd(u),C)}function J6(a){return gg(a)&&a!=+a}function X6(a){if(O3(a))throw new yt(s);return am(a)}function $6(a){return a===null}function e4(a){return a==null}function gg(a){return typeof a=="number"||un(a)&&Zn(a)==Y}function fa(a){if(!un(a)||Zn(a)!=fe)return!1;var u=jl(a);if(u===null)return!0;var C=Ht.call(u,"constructor")&&u.constructor;return typeof C=="function"&&C instanceof C&&Tl.call(C)==Qy}var ef=Np?ar(Np):$x;function t4(a){return pg(a)&&a>=-q&&a<=q}var Cg=jp?ar(jp):e3;function sc(a){return typeof a=="string"||!vt(a)&&un(a)&&Zn(a)==je}function cr(a){return typeof a=="symbol"||un(a)&&Zn(a)==Ze}var li=Rp?ar(Rp):t3;function n4(a){return a===t}function r4(a){return un(a)&&Un(a)==Ct}function o4(a){return un(a)&&Zn(a)==Wt}var s4=ql(Md),i4=ql(function(a,u){return a<=u});function Ag(a){if(!a)return[];if($n(a))return sc(a)?Fr(a):Xn(a);if($i&&a[$i])return _y(a[$i]());var u=Un(a),C=u==K?md:u==ce?kl:ci;return C(a)}function xo(a){if(!a)return a===0?a:0;if(a=Mr(a),a===Z||a===-Z){var u=a<0?-1:1;return u*ee}return a===a?a:0}function kt(a){var u=xo(a),C=u%1;return u===u?C?u-C:u:0}function bg(a){return a?xs(kt(a),0,J):0}function Mr(a){if(typeof a=="number")return a;if(cr(a))return Q;if(ln(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=ln(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=_p(a);var C=_r.test(a);return C||wt.test(a)?xy(a.slice(2),C?2:8):Xt.test(a)?Q:+a}function yg(a){return ro(a,er(a))}function a4(a){return a?xs(kt(a),-q,q):a===0?a:0}function Yt(a){return a==null?"":lr(a)}var l4=si(function(a,u){if(ua(u)||$n(u)){ro(u,Rn(u),a);return}for(var C in u)Ht.call(u,C)&&oa(a,C,u[C])}),xg=si(function(a,u){ro(u,er(u),a)}),ic=si(function(a,u,C,E){ro(u,er(u),a,E)}),c4=si(function(a,u,C,E){ro(u,Rn(u),a,E)}),u4=Ao(xd);function d4(a,u){var C=oi(a);return u==null?C:$p(C,u)}var f4=Mt(function(a,u){a=qt(a);var C=-1,E=u.length,P=E>2?u[2]:t;for(P&&Gn(u[0],u[1],P)&&(E=1);++C<E;)for(var U=u[C],V=er(U),te=-1,de=V.length;++te<de;){var Re=V[te],Ie=a[Re];(Ie===t||zr(Ie,ti[Re])&&!Ht.call(a,Re))&&(a[Re]=U[Re])}return a}),h4=Mt(function(a){return a.push(t,_m),ir(vg,t,a)});function p4(a,u){return Dp(a,ht(u,3),no)}function m4(a,u){return Dp(a,ht(u,3),wd)}function g4(a,u){return a==null?a:vd(a,ht(u,3),er)}function C4(a,u){return a==null?a:om(a,ht(u,3),er)}function A4(a,u){return a&&no(a,ht(u,3))}function b4(a,u){return a&&wd(a,ht(u,3))}function y4(a){return a==null?[]:zl(a,Rn(a))}function x4(a){return a==null?[]:zl(a,er(a))}function tf(a,u,C){var E=a==null?t:vs(a,u);return E===t?C:E}function v4(a,u){return a!=null&&zm(a,u,Yx)}function nf(a,u){return a!=null&&zm(a,u,Zx)}var w4=Im(function(a,u,C){u!=null&&typeof u.toString!="function"&&(u=Ml.call(u)),a[u]=C},of(tr)),k4=Im(function(a,u,C){u!=null&&typeof u.toString!="function"&&(u=Ml.call(u)),Ht.call(a,u)?a[u].push(C):a[u]=[C]},ht),S4=Mt(ia);function Rn(a){return $n(a)?Jp(a):Td(a)}function er(a){return $n(a)?Jp(a,!0):n3(a)}function E4(a,u){var C={};return u=ht(u,3),no(a,function(E,P,U){go(C,u(E,P,U),E)}),C}function T4(a,u){var C={};return u=ht(u,3),no(a,function(E,P,U){go(C,P,u(E,P,U))}),C}var M4=si(function(a,u,C){Ul(a,u,C)}),vg=si(function(a,u,C,E){Ul(a,u,C,E)}),L4=Ao(function(a,u){var C={};if(a==null)return C;var E=!1;u=on(u,function(U){return U=Ho(U,a),E||(E=U.length>1),U}),ro(a,zd(a),C),E&&(C=Sr(C,g|A|b,w3));for(var P=u.length;P--;)Id(C,u[P]);return C});function N4(a,u){return wg(a,rc(ht(u)))}var j4=Ao(function(a,u){return a==null?{}:o3(a,u)});function wg(a,u){if(a==null)return{};var C=on(zd(a),function(E){return[E]});return u=ht(u),pm(a,C,function(E,P){return u(E,P[0])})}function R4(a,u,C){u=Ho(u,a);var E=-1,P=u.length;for(P||(P=1,a=t);++E<P;){var U=a==null?t:a[oo(u[E])];U===t&&(E=P,U=C),a=yo(U)?U.call(a):U}return a}function I4(a,u,C){return a==null?a:la(a,u,C)}function D4(a,u,C,E){return E=typeof E=="function"?E:t,a==null?a:la(a,u,C,E)}var kg=Pm(Rn),Sg=Pm(er);function O4(a,u,C){var E=vt(a),P=E||Zo(a)||li(a);if(u=ht(u,4),C==null){var U=a&&a.constructor;P?C=E?new U:[]:ln(a)?C=yo(U)?oi(jl(a)):{}:C={}}return(P?vr:no)(a,function(V,te,de){return u(C,V,te,de)}),C}function P4(a,u){return a==null?!0:Id(a,u)}function B4(a,u,C){return a==null?a:bm(a,u,Pd(C))}function _4(a,u,C,E){return E=typeof E=="function"?E:t,a==null?a:bm(a,u,Pd(C),E)}function ci(a){return a==null?[]:pd(a,Rn(a))}function F4(a){return a==null?[]:pd(a,er(a))}function W4(a,u,C){return C===t&&(C=u,u=t),C!==t&&(C=Mr(C),C=C===C?C:0),u!==t&&(u=Mr(u),u=u===u?u:0),xs(Mr(a),u,C)}function z4(a,u,C){return u=xo(u),C===t?(C=u,u=0):C=xo(C),a=Mr(a),Gx(a,u,C)}function U4(a,u,C){if(C&&typeof C!="boolean"&&Gn(a,u,C)&&(u=C=t),C===t&&(typeof u=="boolean"?(C=u,u=t):typeof a=="boolean"&&(C=a,a=t)),a===t&&u===t?(a=0,u=1):(a=xo(a),u===t?(u=a,a=0):u=xo(u)),a>u){var E=a;a=u,u=E}if(C||a%1||u%1){var P=qp();return zn(a+P*(u-a+yy("1e-"+((P+"").length-1))),u)}return Nd(a,u)}var K4=ii(function(a,u,C){return u=u.toLowerCase(),a+(C?Eg(u):u)});function Eg(a){return rf(Yt(a).toLowerCase())}function Tg(a){return a=Yt(a),a&&a.replace(ho,Iy).replace(uy,"")}function H4(a,u,C){a=Yt(a),u=lr(u);var E=a.length;C=C===t?E:xs(kt(C),0,E);var P=C;return C-=u.length,C>=0&&a.slice(C,P)==u}function Y4(a){return a=Yt(a),a&&Be.test(a)?a.replace(Se,Dy):a}function Z4(a){return a=Yt(a),a&&qe.test(a)?a.replace(ot,"\\$&"):a}var G4=ii(function(a,u,C){return a+(C?"-":"")+u.toLowerCase()}),V4=ii(function(a,u,C){return a+(C?" ":"")+u.toLowerCase()}),q4=Nm("toLowerCase");function Q4(a,u,C){a=Yt(a),u=kt(u);var E=u?$s(a):0;if(!u||E>=u)return a;var P=(u-E)/2;return Vl(Ol(P),C)+a+Vl(Dl(P),C)}function J4(a,u,C){a=Yt(a),u=kt(u);var E=u?$s(a):0;return u&&E<u?a+Vl(u-E,C):a}function X4(a,u,C){a=Yt(a),u=kt(u);var E=u?$s(a):0;return u&&E<u?Vl(u-E,C)+a:a}function $4(a,u,C){return C||u==null?u=0:u&&(u=+u),ix(Yt(a).replace(ut,""),u||0)}function ew(a,u,C){return(C?Gn(a,u,C):u===t)?u=1:u=kt(u),jd(Yt(a),u)}function tw(){var a=arguments,u=Yt(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var nw=ii(function(a,u,C){return a+(C?"_":"")+u.toLowerCase()});function rw(a,u,C){return C&&typeof C!="number"&&Gn(a,u,C)&&(u=C=t),C=C===t?J:C>>>0,C?(a=Yt(a),a&&(typeof u=="string"||u!=null&&!ef(u))&&(u=lr(u),!u&&Xs(a))?Yo(Fr(a),0,C):a.split(u,C)):[]}var ow=ii(function(a,u,C){return a+(C?" ":"")+rf(u)});function sw(a,u,C){return a=Yt(a),C=C==null?0:xs(kt(C),0,a.length),u=lr(u),a.slice(C,C+u.length)==u}function iw(a,u,C){var E=W.templateSettings;C&&Gn(a,u,C)&&(u=t),a=Yt(a),u=ic({},u,E,Bm);var P=ic({},u.imports,E.imports,Bm),U=Rn(P),V=pd(P,U),te,de,Re=0,Ie=u.interpolate||Wn,De="__p += '",Ge=gd((u.escape||Wn).source+"|"+Ie.source+"|"+(Ie===et?Kt:Wn).source+"|"+(u.evaluate||Wn).source+"|$","g"),nt="//# sourceURL="+(Ht.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++my+"]")+`
|
|
215
|
+
`;a.replace(Ge,function(mt,jt,Pt,ur,Vn,dr){return Pt||(Pt=ur),De+=a.slice(Re,dr).replace(bl,Oy),jt&&(te=!0,De+=`' +
|
|
216
|
+
__e(`+jt+`) +
|
|
217
|
+
'`),Vn&&(de=!0,De+=`';
|
|
218
|
+
`+Vn+`;
|
|
219
|
+
__p += '`),Pt&&(De+=`' +
|
|
220
|
+
((__t = (`+Pt+`)) == null ? '' : __t) +
|
|
221
|
+
'`),Re=dr+mt.length,mt}),De+=`';
|
|
222
|
+
`;var pt=Ht.call(u,"variable")&&u.variable;if(!pt)De=`with (obj) {
|
|
223
|
+
`+De+`
|
|
224
|
+
}
|
|
225
|
+
`;else if(Ut.test(pt))throw new yt(c);De=(de?De.replace(rt,""):De).replace(Je,"$1").replace(ct,"$1;"),De="function("+(pt||"obj")+`) {
|
|
226
|
+
`+(pt?"":`obj || (obj = {});
|
|
227
|
+
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(de?`, __j = Array.prototype.join;
|
|
228
|
+
function print() { __p += __j.call(arguments, '') }
|
|
229
|
+
`:`;
|
|
230
|
+
`)+De+`return __p
|
|
231
|
+
}`;var Et=Lg(function(){return zt(U,nt+"return "+De).apply(t,V)});if(Et.source=De,$d(Et))throw Et;return Et}function aw(a){return Yt(a).toLowerCase()}function lw(a){return Yt(a).toUpperCase()}function cw(a,u,C){if(a=Yt(a),a&&(C||u===t))return _p(a);if(!a||!(u=lr(u)))return a;var E=Fr(a),P=Fr(u),U=Fp(E,P),V=Wp(E,P)+1;return Yo(E,U,V).join("")}function uw(a,u,C){if(a=Yt(a),a&&(C||u===t))return a.slice(0,Up(a)+1);if(!a||!(u=lr(u)))return a;var E=Fr(a),P=Wp(E,Fr(u))+1;return Yo(E,0,P).join("")}function dw(a,u,C){if(a=Yt(a),a&&(C||u===t))return a.replace(ut,"");if(!a||!(u=lr(u)))return a;var E=Fr(a),P=Fp(E,Fr(u));return Yo(E,P).join("")}function fw(a,u){var C=B,E=_;if(ln(u)){var P="separator"in u?u.separator:P;C="length"in u?kt(u.length):C,E="omission"in u?lr(u.omission):E}a=Yt(a);var U=a.length;if(Xs(a)){var V=Fr(a);U=V.length}if(C>=U)return a;var te=C-$s(E);if(te<1)return E;var de=V?Yo(V,0,te).join(""):a.slice(0,te);if(P===t)return de+E;if(V&&(te+=de.length-te),ef(P)){if(a.slice(te).search(P)){var Re,Ie=de;for(P.global||(P=gd(P.source,Yt(Vt.exec(P))+"g")),P.lastIndex=0;Re=P.exec(Ie);)var De=Re.index;de=de.slice(0,De===t?te:De)}}else if(a.indexOf(lr(P),te)!=te){var Ge=de.lastIndexOf(P);Ge>-1&&(de=de.slice(0,Ge))}return de+E}function hw(a){return a=Yt(a),a&&We.test(a)?a.replace(be,Uy):a}var pw=ii(function(a,u,C){return a+(C?" ":"")+u.toUpperCase()}),rf=Nm("toUpperCase");function Mg(a,u,C){return a=Yt(a),u=C?t:u,u===t?By(a)?Yy(a):My(a):a.match(u)||[]}var Lg=Mt(function(a,u){try{return ir(a,t,u)}catch(C){return $d(C)?C:new yt(C)}}),mw=Ao(function(a,u){return vr(u,function(C){C=oo(C),go(a,C,Jd(a[C],a))}),a});function gw(a){var u=a==null?0:a.length,C=ht();return a=u?on(a,function(E){if(typeof E[1]!="function")throw new wr(l);return[C(E[0]),E[1]]}):[],Mt(function(E){for(var P=-1;++P<u;){var U=a[P];if(ir(U[0],this,E))return ir(U[1],this,E)}})}function Cw(a){return Ux(Sr(a,g))}function of(a){return function(){return a}}function Aw(a,u){return a==null||a!==a?u:a}var bw=Rm(),yw=Rm(!0);function tr(a){return a}function sf(a){return lm(typeof a=="function"?a:Sr(a,g))}function xw(a){return um(Sr(a,g))}function vw(a,u){return dm(a,Sr(u,g))}var ww=Mt(function(a,u){return function(C){return ia(C,a,u)}}),kw=Mt(function(a,u){return function(C){return ia(a,C,u)}});function af(a,u,C){var E=Rn(u),P=zl(u,E);C==null&&!(ln(u)&&(P.length||!E.length))&&(C=u,u=a,a=this,P=zl(u,Rn(u)));var U=!(ln(C)&&"chain"in C)||!!C.chain,V=yo(a);return vr(P,function(te){var de=u[te];a[te]=de,V&&(a.prototype[te]=function(){var Re=this.__chain__;if(U||Re){var Ie=a(this.__wrapped__),De=Ie.__actions__=Xn(this.__actions__);return De.push({func:de,args:arguments,thisArg:a}),Ie.__chain__=Re,Ie}return de.apply(a,Fo([this.value()],arguments))})}),a}function Sw(){return Pn._===this&&(Pn._=Jy),this}function lf(){}function Ew(a){return a=kt(a),Mt(function(u){return fm(u,a)})}var Tw=_d(on),Mw=_d(Ip),Lw=_d(cd);function Ng(a){return Yd(a)?ud(oo(a)):s3(a)}function Nw(a){return function(u){return a==null?t:vs(a,u)}}var jw=Dm(),Rw=Dm(!0);function cf(){return[]}function uf(){return!1}function Iw(){return{}}function Dw(){return""}function Ow(){return!0}function Pw(a,u){if(a=kt(a),a<1||a>q)return[];var C=J,E=zn(a,J);u=ht(u),a-=J;for(var P=hd(E,u);++C<a;)u(C);return P}function Bw(a){return vt(a)?on(a,oo):cr(a)?[a]:Xn(Qm(Yt(a)))}function _w(a){var u=++qy;return Yt(a)+u}var Fw=Gl(function(a,u){return a+u},0),Ww=Fd("ceil"),zw=Gl(function(a,u){return a/u},1),Uw=Fd("floor");function Kw(a){return a&&a.length?Wl(a,tr,kd):t}function Hw(a,u){return a&&a.length?Wl(a,ht(u,2),kd):t}function Yw(a){return Pp(a,tr)}function Zw(a,u){return Pp(a,ht(u,2))}function Gw(a){return a&&a.length?Wl(a,tr,Md):t}function Vw(a,u){return a&&a.length?Wl(a,ht(u,2),Md):t}var qw=Gl(function(a,u){return a*u},1),Qw=Fd("round"),Jw=Gl(function(a,u){return a-u},0);function Xw(a){return a&&a.length?fd(a,tr):0}function $w(a,u){return a&&a.length?fd(a,ht(u,2)):0}return W.after=x6,W.ary=ag,W.assign=l4,W.assignIn=xg,W.assignInWith=ic,W.assignWith=c4,W.at=u4,W.before=lg,W.bind=Jd,W.bindAll=mw,W.bindKey=cg,W.castArray=I6,W.chain=og,W.chunk=U3,W.compact=K3,W.concat=H3,W.cond=gw,W.conforms=Cw,W.constant=of,W.countBy=Xv,W.create=d4,W.curry=ug,W.curryRight=dg,W.debounce=fg,W.defaults=f4,W.defaultsDeep=h4,W.defer=v6,W.delay=w6,W.difference=Y3,W.differenceBy=Z3,W.differenceWith=G3,W.drop=V3,W.dropRight=q3,W.dropRightWhile=Q3,W.dropWhile=J3,W.fill=X3,W.filter=e6,W.flatMap=r6,W.flatMapDeep=o6,W.flatMapDepth=s6,W.flatten=eg,W.flattenDeep=$3,W.flattenDepth=ev,W.flip=k6,W.flow=bw,W.flowRight=yw,W.fromPairs=tv,W.functions=y4,W.functionsIn=x4,W.groupBy=i6,W.initial=rv,W.intersection=ov,W.intersectionBy=sv,W.intersectionWith=iv,W.invert=w4,W.invertBy=k4,W.invokeMap=l6,W.iteratee=sf,W.keyBy=c6,W.keys=Rn,W.keysIn=er,W.map=ec,W.mapKeys=E4,W.mapValues=T4,W.matches=xw,W.matchesProperty=vw,W.memoize=nc,W.merge=M4,W.mergeWith=vg,W.method=ww,W.methodOf=kw,W.mixin=af,W.negate=rc,W.nthArg=Ew,W.omit=L4,W.omitBy=N4,W.once=S6,W.orderBy=u6,W.over=Tw,W.overArgs=E6,W.overEvery=Mw,W.overSome=Lw,W.partial=Xd,W.partialRight=hg,W.partition=d6,W.pick=j4,W.pickBy=wg,W.property=Ng,W.propertyOf=Nw,W.pull=uv,W.pullAll=ng,W.pullAllBy=dv,W.pullAllWith=fv,W.pullAt=hv,W.range=jw,W.rangeRight=Rw,W.rearg=T6,W.reject=p6,W.remove=pv,W.rest=M6,W.reverse=qd,W.sampleSize=g6,W.set=I4,W.setWith=D4,W.shuffle=C6,W.slice=mv,W.sortBy=y6,W.sortedUniq=vv,W.sortedUniqBy=wv,W.split=rw,W.spread=L6,W.tail=kv,W.take=Sv,W.takeRight=Ev,W.takeRightWhile=Tv,W.takeWhile=Mv,W.tap=Kv,W.throttle=N6,W.thru=$l,W.toArray=Ag,W.toPairs=kg,W.toPairsIn=Sg,W.toPath=Bw,W.toPlainObject=yg,W.transform=O4,W.unary=j6,W.union=Lv,W.unionBy=Nv,W.unionWith=jv,W.uniq=Rv,W.uniqBy=Iv,W.uniqWith=Dv,W.unset=P4,W.unzip=Qd,W.unzipWith=rg,W.update=B4,W.updateWith=_4,W.values=ci,W.valuesIn=F4,W.without=Ov,W.words=Mg,W.wrap=R6,W.xor=Pv,W.xorBy=Bv,W.xorWith=_v,W.zip=Fv,W.zipObject=Wv,W.zipObjectDeep=zv,W.zipWith=Uv,W.entries=kg,W.entriesIn=Sg,W.extend=xg,W.extendWith=ic,af(W,W),W.add=Fw,W.attempt=Lg,W.camelCase=K4,W.capitalize=Eg,W.ceil=Ww,W.clamp=W4,W.clone=D6,W.cloneDeep=P6,W.cloneDeepWith=B6,W.cloneWith=O6,W.conformsTo=_6,W.deburr=Tg,W.defaultTo=Aw,W.divide=zw,W.endsWith=H4,W.eq=zr,W.escape=Y4,W.escapeRegExp=Z4,W.every=$v,W.find=t6,W.findIndex=Xm,W.findKey=p4,W.findLast=n6,W.findLastIndex=$m,W.findLastKey=m4,W.floor=Uw,W.forEach=sg,W.forEachRight=ig,W.forIn=g4,W.forInRight=C4,W.forOwn=A4,W.forOwnRight=b4,W.get=tf,W.gt=F6,W.gte=W6,W.has=v4,W.hasIn=nf,W.head=tg,W.identity=tr,W.includes=a6,W.indexOf=nv,W.inRange=z4,W.invoke=S4,W.isArguments=Ss,W.isArray=vt,W.isArrayBuffer=z6,W.isArrayLike=$n,W.isArrayLikeObject=pn,W.isBoolean=U6,W.isBuffer=Zo,W.isDate=K6,W.isElement=H6,W.isEmpty=Y6,W.isEqual=Z6,W.isEqualWith=G6,W.isError=$d,W.isFinite=V6,W.isFunction=yo,W.isInteger=pg,W.isLength=oc,W.isMap=mg,W.isMatch=q6,W.isMatchWith=Q6,W.isNaN=J6,W.isNative=X6,W.isNil=e4,W.isNull=$6,W.isNumber=gg,W.isObject=ln,W.isObjectLike=un,W.isPlainObject=fa,W.isRegExp=ef,W.isSafeInteger=t4,W.isSet=Cg,W.isString=sc,W.isSymbol=cr,W.isTypedArray=li,W.isUndefined=n4,W.isWeakMap=r4,W.isWeakSet=o4,W.join=av,W.kebabCase=G4,W.last=Tr,W.lastIndexOf=lv,W.lowerCase=V4,W.lowerFirst=q4,W.lt=s4,W.lte=i4,W.max=Kw,W.maxBy=Hw,W.mean=Yw,W.meanBy=Zw,W.min=Gw,W.minBy=Vw,W.stubArray=cf,W.stubFalse=uf,W.stubObject=Iw,W.stubString=Dw,W.stubTrue=Ow,W.multiply=qw,W.nth=cv,W.noConflict=Sw,W.noop=lf,W.now=tc,W.pad=Q4,W.padEnd=J4,W.padStart=X4,W.parseInt=$4,W.random=U4,W.reduce=f6,W.reduceRight=h6,W.repeat=ew,W.replace=tw,W.result=R4,W.round=Qw,W.runInContext=le,W.sample=m6,W.size=A6,W.snakeCase=nw,W.some=b6,W.sortedIndex=gv,W.sortedIndexBy=Cv,W.sortedIndexOf=Av,W.sortedLastIndex=bv,W.sortedLastIndexBy=yv,W.sortedLastIndexOf=xv,W.startCase=ow,W.startsWith=sw,W.subtract=Jw,W.sum=Xw,W.sumBy=$w,W.template=iw,W.times=Pw,W.toFinite=xo,W.toInteger=kt,W.toLength=bg,W.toLower=aw,W.toNumber=Mr,W.toSafeInteger=a4,W.toString=Yt,W.toUpper=lw,W.trim=cw,W.trimEnd=uw,W.trimStart=dw,W.truncate=fw,W.unescape=hw,W.uniqueId=_w,W.upperCase=pw,W.upperFirst=rf,W.each=sg,W.eachRight=ig,W.first=tg,af(W,(function(){var a={};return no(W,function(u,C){Ht.call(W.prototype,C)||(a[C]=u)}),a})(),{chain:!1}),W.VERSION=r,vr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){W[a].placeholder=W}),vr(["drop","take"],function(a,u){Rt.prototype[a]=function(C){C=C===t?1:Nn(kt(C),0);var E=this.__filtered__&&!u?new Rt(this):this.clone();return E.__filtered__?E.__takeCount__=zn(C,E.__takeCount__):E.__views__.push({size:zn(C,J),type:a+(E.__dir__<0?"Right":"")}),E},Rt.prototype[a+"Right"]=function(C){return this.reverse()[a](C).reverse()}}),vr(["filter","map","takeWhile"],function(a,u){var C=u+1,E=C==z||C==F;Rt.prototype[a]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:ht(P,3),type:C}),U.__filtered__=U.__filtered__||E,U}}),vr(["head","last"],function(a,u){var C="take"+(u?"Right":"");Rt.prototype[a]=function(){return this[C](1).value()[0]}}),vr(["initial","tail"],function(a,u){var C="drop"+(u?"":"Right");Rt.prototype[a]=function(){return this.__filtered__?new Rt(this):this[C](1)}}),Rt.prototype.compact=function(){return this.filter(tr)},Rt.prototype.find=function(a){return this.filter(a).head()},Rt.prototype.findLast=function(a){return this.reverse().find(a)},Rt.prototype.invokeMap=Mt(function(a,u){return typeof a=="function"?new Rt(this):this.map(function(C){return ia(C,a,u)})}),Rt.prototype.reject=function(a){return this.filter(rc(ht(a)))},Rt.prototype.slice=function(a,u){a=kt(a);var C=this;return C.__filtered__&&(a>0||u<0)?new Rt(C):(a<0?C=C.takeRight(-a):a&&(C=C.drop(a)),u!==t&&(u=kt(u),C=u<0?C.dropRight(-u):C.take(u-a)),C)},Rt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Rt.prototype.toArray=function(){return this.take(J)},no(Rt.prototype,function(a,u){var C=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),P=W[E?"take"+(u=="last"?"Right":""):u],U=E||/^find/.test(u);P&&(W.prototype[u]=function(){var V=this.__wrapped__,te=E?[1]:arguments,de=V instanceof Rt,Re=te[0],Ie=de||vt(V),De=function(jt){var Pt=P.apply(W,Fo([jt],te));return E&&Ge?Pt[0]:Pt};Ie&&C&&typeof Re=="function"&&Re.length!=1&&(de=Ie=!1);var Ge=this.__chain__,nt=!!this.__actions__.length,pt=U&&!Ge,Et=de&&!nt;if(!U&&Ie){V=Et?V:new Rt(this);var mt=a.apply(V,te);return mt.__actions__.push({func:$l,args:[De],thisArg:t}),new kr(mt,Ge)}return pt&&Et?a.apply(this,te):(mt=this.thru(De),pt?E?mt.value()[0]:mt.value():mt)})}),vr(["pop","push","shift","sort","splice","unshift"],function(a){var u=Sl[a],C=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);W.prototype[a]=function(){var P=arguments;if(E&&!this.__chain__){var U=this.value();return u.apply(vt(U)?U:[],P)}return this[C](function(V){return u.apply(vt(V)?V:[],P)})}}),no(Rt.prototype,function(a,u){var C=W[u];if(C){var E=C.name+"";Ht.call(ri,E)||(ri[E]=[]),ri[E].push({name:u,func:C})}}),ri[Zl(t,k).name]=[{name:"wrapper",func:t}],Rt.prototype.clone=hx,Rt.prototype.reverse=px,Rt.prototype.value=mx,W.prototype.at=Hv,W.prototype.chain=Yv,W.prototype.commit=Zv,W.prototype.next=Gv,W.prototype.plant=qv,W.prototype.reverse=Qv,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Jv,W.prototype.first=W.prototype.head,$i&&(W.prototype[$i]=Vv),W}),ei=Zy();Cs?((Cs.exports=ei)._=ei,sd._=ei):Pn._=ei}).call(KI)})(ya,ya.exports)),ya.exports}var YI=HI();function ZI(e){if(!e)return window;let n=e;for(;n;){if(n===document.body||n===document.documentElement)return window;const r=getComputedStyle(n).overflowY;if((r==="auto"||r==="scroll"||r==="overlay")&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return window}function GI(e,n){let t=150;const{clientY:r}=e;if(n===window){const o=window.innerHeight;r<t?window.scrollBy(0,Math.max(-15,(r-t)/15)):r>o-t&&window.scrollBy(0,Math.min(15,(r-(o-t))/15))}else{t=100;const o=n.getBoundingClientRect();r<o.top+t?n.scrollTop-=5:r>o.bottom-t&&(n.scrollTop+=5)}}const VI=YI.throttle((e,n)=>{e.preventDefault(),GI(e,n)},16);let Sc=null;function qI(e){return e?e.classList.contains("dsd__theme__table-scrollable-wrapper")?e.firstElementChild:e:null}function QI(e,n,t){const r=m.useRef(null),o=m.useRef(null),s=m.useRef(!1),l=m.useRef(!1),c=m.useRef(null),d=m.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),f=m.useRef(null),h=m.useRef(()=>{}),g=m.useCallback(se=>{h.current(se)},[]),[A,b]=m.useState(null),{disable:y}=m.useContext(ft),[x,w]=m.useState(!1),k=window.matchMedia("(pointer: coarse)").matches,[T,I]=m.useState({opened:!1}),[N,L]=m.useState(""),[M,S]=m.useState(null),[O,R]=m.useState(!1),[B,_]=m.useState({left:!1,right:!1}),[j,D]=m.useState(null),{t:z}=Ke.useTranslation(),H=Qi(se=>{const X=se.target;l.current||kc(X)&&(TE(X)||e.read(()=>{var he;const ae=X.className.includes("content-editable-wrapper"),pe=ae?p.$getRoot():p.$getNearestNodeFromDOMNode(X),{htmlElement:ge,lexicalNode:G}=Yg(pe,e,{root:!0,"layout-container":!0,"layout-item":!0,callout:!0,"collapsible-content":!0},se);if((G==null?void 0:G.__type)==="callout"||(G==null?void 0:G.__type)==="callout-image"||((he=G==null?void 0:G.getParent())==null?void 0:he.__type)==="callout"&&(G==null?void 0:G.getPreviousSibling())===null){b(null);return}if(!(ae&&G instanceof $r||ae&&!G)&&G!=null&&G.__key){if(G.__type==="layout-container"||G.__type==="layout-item"||G.__type==="collapsible-content"){b(null);return}ge&&(d.current.htmlElement=ge,d.current.lexicalNode=G),(G==null?void 0:G.__type)==="collapsible-title"&&(d.current.htmlElement=(ge==null?void 0:ge.parentElement)||ge,d.current.lexicalNode=G.getParent()),S(null),b(d.current.htmlElement)}}))},20,50);m.useEffect(()=>()=>{Sc=null},[]),m.useEffect(()=>{function se(){l.current||b(null)}function X(pe){if(!s.current)return!1;const[ge]=fn.eventFiles(pe);if(ge)return!1;const{target:G,dataTransfer:he}=pe,oe=(he==null?void 0:he.getData(E0))||"";if(!oe)return!1;pe.preventDefault(),e.update(()=>{var je;let K=p.$getNodeByKey(oe);if(!K||!(kc(G)||G.closest(".resizable-container")))return!1;const{htmlElement:Y,lexicalNode:ne,isBottom:fe}=d.current;let Ce=ne,Le=null;if(Ce!=null&&Ce.__key&&(Le=Y),!Le||!Ce)return!1;if(Ce===K)return!0;if(o.current&&vE(o.current,e,Ce,K))return!1;if(K.__type==="layout-divider"){if(K=K.getParent(),ne&&(K!=null&&K.isParentOf(ne)))return!1;db(e,K)}if(K.getParent()instanceof Mn&&((je=K.getParent())==null?void 0:je.getChildren().length)===2){const Ze=K.getParent(),dt=Ze.getParent();Bi(e,Ze,dt)}if(Y!=null&&Y.classList.contains("selected-block"))return;let Ue;const ce=e._rootElement;fe?Ue=Array.from(ce.querySelectorAll(".selected-block")).reverse():Ue=Array.from(ce.querySelectorAll(".selected-block")),Ue.length?Ue.forEach(Ze=>{let dt=p.$getNearestNodeFromDOMNode(Ze);fe?Ce==null||Ce.insertAfter(dt):Ce==null||Ce.insertBefore(dt)}):fe?Ce.insertAfter(K):Ce.insertBefore(K),b(null)})}function ae(pe){const{target:ge}=pe;kc(ge)&&ge.className==="ContentEditable__root"&&j0(o.current)}return n==null||n.addEventListener("mousemove",H),n==null||n.addEventListener("drop",X),n==null||n.addEventListener("mouseleave",se),n==null||n.addEventListener("dragleave",ae),()=>{n==null||n.removeEventListener("mousemove",H),n==null||n.removeEventListener("drop",X),n==null||n.removeEventListener("mouseleave",se),n==null||n.removeEventListener("dragleave",ae)}},[n,e]),m.useEffect(()=>{if(r.current){if(l.current||T.opened)return;L0(A,r.current,n,T.opened)}},[n,A,l.current,T.opened]),m.useEffect(()=>(h.current=se=>{if(!s.current)return;const[X]=fn.eventFiles(se);if(X)return;Sc||(Sc=ZI(se.target)),VI(se,Sc),se.preventDefault(),se.dataTransfer&&(se.dataTransfer.dropEffect="move");const{clientY:ae,clientX:pe,target:ge}=se;kc(ge)&&e.read(()=>{var ne,fe;const G=p.$getNearestNodeFromDOMNode(ge)||p.$getRoot(),{htmlElement:he,lexicalNode:oe}=Yg(G,e,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},se);if((oe==null?void 0:oe.__type)==="callout"||(oe==null?void 0:oe.__type)==="collapsible-content"||fb(f.current,oe==null?void 0:oe.getParent())||(oe==null?void 0:oe.__type)==="layout-item"&&G.__type!=="root")return;he&&(d.current.htmlElement=he,d.current.lexicalNode=oe);let K=null;K=d.current.htmlElement||he,K!=null&&K.closest(".dsd__theme__layoutContainer")&&G.__type==="root"&&oe&&((oe==null?void 0:oe.__type)==="layout-item"&&G.__type==="root"?(K=K==null?void 0:K.parentElement,d.current.htmlElement=K,d.current.lexicalNode=oe==null?void 0:oe.getParent()):(K=(ne=K.parentElement)==null?void 0:ne.parentElement,d.current.htmlElement=K,d.current.lexicalNode=(fe=oe.getParent())==null?void 0:fe.getParent()));const Y=o.current;if(!K&&Y){Y.style.background="transparent";return}K===null||Y===null||K!=null&&K.classList.contains("selected-block")||LE(Y,K,ae,pe,n,se,d)})},ve.mergeRegister(e.registerCommand(ns,se=>{var X,ae,pe;return se==="hide_menu"?(SE(r.current),setTimeout(()=>{l.current=!0},0),!1):se==="show_menu"?(l.current=!1,!1):(se===!0&&!l.current&&(Yn&&((X=d.current.htmlElement)!=null&&X.classList.contains("dsd__theme__overlay-wrapper"))&&((pe=(ae=d.current.htmlElement)==null?void 0:ae.children[1])!=null&&pe.hasAttribute("data-name-language"))||b(null)),l.current=!1,!1)},p.COMMAND_PRIORITY_LOW),e.registerCommand(SA,se=>((se==null?void 0:se.target)instanceof HTMLElement&&r.current instanceof HTMLElement&&(ee(se,!0),L0(se.target,r.current,n,T.opened)),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>(e.dispatchCommand(ns,!0),!1),p.COMMAND_PRIORITY_LOW),e.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>(e.dispatchCommand(ns,!0),!1),p.COMMAND_PRIORITY_LOW))),[n,e]),m.useEffect(()=>()=>{n==null||n.removeEventListener("dragover",g,!0)},[n,g]);function F(se){var G;const X=se.dataTransfer;(G=o.current)==null||G.setAttribute("data-index-start","");const ae=A||d.current.htmlElement;if(!X||!ae)return;const pe=e._rootElement;if(ae!=null&&ae.classList.contains("selected-block")){const he=e._rootElement,oe=Array.from(he.querySelectorAll(".selected-block"));ME(se.dataTransfer,oe)}else lc(pe),ae.className.includes("_layoutDivider")&&ae.parentElement?N0(X,ae.parentElement):N0(X,ae);let ge="";e.read(()=>{var oe,K;const he=p.$getNearestNodeFromDOMNode(ae);if(he&&(ge=he.getKey()),he instanceof $r){const Y=Qa((oe=ae.parentElement)==null?void 0:oe.parentElement,ae.parentElement);(K=o.current)==null||K.setAttribute("data-index-start",Y.toString())}}),r.current&&(w(!0),r.current.style.opacity="0"),s.current=!0,f.current=ge,X.setData(E0,ge),se.stopPropagation(),n==null||n.removeEventListener("dragover",g,!0),n==null||n.addEventListener("dragover",g,!0)}function Z(){n==null||n.removeEventListener("dragover",g,!0),s.current=!1,j0(o.current),w(!1)}if(y)return i.jsx("div",{});function q(){var ae;const se=d.current.htmlElement,X=(ae=se==null?void 0:se.parentElement)==null?void 0:ae.parentElement;if(X!=null&&X.classList.contains("dsd__theme__layoutContainer")&&(X.children.length===4?R(!0):R(!1),se!=null&&se.parentElement)){const pe=Qa(X,se==null?void 0:se.parentElement);pe?pe===X.children.length-1?_({left:!1,right:!0}):_({left:!1,right:!1}):_({left:!0,right:!1})}}function ee(se,X=!1){l.current=!0;const ae=qI((se==null?void 0:se.target)??d.current.htmlElement);if(!ae)return;const pe=e._rootElement;q(),ae.classList.contains("selected-block")||lc(pe),e.update(()=>{let G=p.$getSelection();!G&&c.current&&(G=c.current),e.__savedDragHandleSelection=c.current,c.current=null;const oe=((G==null?void 0:G.getNodes())??[]).filter(ce=>!p.$isTextNode(ce)&&ce.__parent==="root"),K=oe.map(ce=>{const je=e.getElementByKey(ce.getKey());return ce.getType()==="table"?je==null?void 0:je.firstElementChild:je}).filter(ce=>ce!==null),Y=oe.length&&K.includes(ae)?K:[ae];if(Y.length===1){const ce=p.$getNearestNodeFromDOMNode(ae);if(!ce)return;X||(p.$isElementNode(ce)?ce.select(0):eo.$isDecoratorBlockNode(ce)||ce.selectStart(),e.__savedDragHandleSelection=p.$getSelection()),D(ce)}else D(null);const ne=document.querySelector(".selected-all-document"),fe=!!ne;fe||Y.forEach(ce=>{A1(e,{block:ce,isCreateEventListener:!1})});const Le=Array.from(fe?ne.children:document.querySelectorAll(".selected-block")).reduce((ce,je)=>{const Ze=p.$getNearestNodeFromDOMNode(je);return Ze&&ce.push(Ze),ce},[]),Ue=Le.length>0&&Le.every(ce=>fo(ce)||St(ce)||Cr(ce)?!1:p.$isElementNode(ce)||p.$isTextNode(ce));L(Ue?"text":"block")}),ll();const ge=Number(se==null?void 0:se.y)+240>window.innerHeight?Number(se==null?void 0:se.y)-200:se==null?void 0:se.y;I({opened:!0,x:(se==null?void 0:se.x)??0,y:ge??0}),e.dispatchCommand(th,!0)}const Q=()=>{e.update(()=>{const se=en();if(l.current=!1,I(X=>({opened:!1,x:X.x,y:X.y})),(se==null?void 0:se.__key)==="root"){const X=p.$createParagraphNode();se.append(X)}p.$setSelection(null)})},J=t?"hide-add-button":"",xe=T.x!==0?{position:"fixed",top:0,left:0,transform:`translate(${T.x}px, ${T.y}px)`}:{},we=()=>{var se;Q(),cl(),lc(e._rootElement),(se=e._rootElement)==null||se.classList.remove("selected-all-document")},Te=(se=!1)=>{if(!se){setTimeout(()=>{we()},100);return}we()},Fe=m.useCallback(se=>{const X=document.querySelector(".draggable-menu");if(!T&&se.button!==2)return;const ae=se.target;if(ae.closest(".mantine-Menu-dropdown"))return;!((X==null?void 0:X.contains(ae))&&ae.closest("div.custom-menu-item"))&&se.button!==2&&T.opened&&(se.stopPropagation(),se.preventDefault())},[e,T]);return m.useEffect(()=>(T.opened?document.addEventListener("mousedown",Fe):document.removeEventListener("mousedown",Fe),()=>{document.removeEventListener("mousedown",Fe)}),[T.opened,Fe]),Br.createPortal(i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`draggable-block-container ${J} ${A?"visible":""}`,ref:r,onMouseEnter:()=>{var se;T.opened||S("both"),(se=r.current)!=null&&se.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{S(null)},children:[i.jsx(OI,{hoveredButton:M,insertNewParagraph:M0,currentDraggableBlockRef:d,setHoveredButton:S,isClickedBlockRef:l,setDraggableBlockElem:b,editor:e,t:z,isTouchDevice:k}),i.jsxs(v.Menu,{onOpen:ee,opened:T.opened,styles:{dropdown:xe},position:"left-start",width:320,shadow:"md",withinPortal:!0,clickOutsideEvents:["mousedown"],onClose:()=>{Te()},transitionProps:Fn,children:[i.jsx(v.Menu.Target,{children:i.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:F,onDragEnd:Z,onMouseEnter:()=>{T.opened||S("both")},onMouseDown:se=>{se.stopPropagation();const X=e.getEditorState();c.current=X._selection},children:i.jsx(v.Tooltip,{openDelay:300,multiline:!0,disabled:Yn||x||l.current,label:i.jsxs(i.Fragment,{children:[i.jsxs("span",{children:[i.jsx("strong",{children:z("editor.hoverOptions.drag")}),","," ",z("editor.hoverOptions.dragAction")]}),i.jsx("br",{}),i.jsxs("span",{children:[i.jsx("strong",{children:z("editor.hoverOptions.click")}),","," ",z("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:i.jsx(v.ActionIcon,{radius:"sm",color:"gray",size:"sm",bd:"none",variant:"subtle","aria-label":"Settings",children:i.jsx(Ee.IconGripVertical,{size:20})})})})}),i.jsx(DI,{hoveredButton:M,insertNewParagraph:M0,currentDraggableBlockRef:d,setHoveredButton:S,isClickedBlockRef:l,setDraggableBlockElem:b,editor:e,t:z,isTouchDevice:k}),i.jsx(v.Menu.Dropdown,{className:"draggable-menu",children:i.jsx(zI,{onChange:se=>{var ae;if(se==="comment"){I(pe=>({opened:!1,x:pe.x,y:pe.y})),lc(e._rootElement),(ae=e._rootElement)==null||ae.classList.remove("selected-all-document");return}let X=null;e.read(()=>{const pe=p.$getSelection(),ge=pe==null?void 0:pe.getNodes()[0];if(ge){const G=ge.getTopLevelElement();X=(G==null?void 0:G.getKey())??ge.getKey()}}),Te(!0),X&&setTimeout(()=>{e.update(()=>{const pe=p.$getNodeByKey(X);p.$isElementNode(pe)&&pe.selectEnd()})},100)},t:z,textBlock:N,currentEditorNode:j,editor:e,isDisabledAddColumnButton:O,disabledMoveColumnButtons:B})})]})]}),i.jsx("div",{className:"draggable-block-target-line",ref:o})]}),n)}function JI({anchorElem:e=document.body,isShowAddButton:n=!1}){const[t]=it.useLexicalComposerContext();return QI(t,e,n)}const h5=/(^|\s):([a-z0-9_+-]+)$/i,XI=/(^|\s)(:\)|:-\)|:d|:-d|;\)|;-\)|:\(|:-\(|:\*|<3)$/i,$I=/(^|\s):$/,eD=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Escape","Enter","Tab"]);function tD(e,n){return{leadOffset:n.index+n[1].length,matchingString:"",replaceableString:":"}}const nD=e=>eD.has(e),rD=e=>e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.isComposing;function oD(e,n){if(n<=0)return{activate:!1,colonAt:-1,expectAt:-1};const t=e[n-1]??"",r=e[n-2]??"",o=n-2<0;return t===":"&&(o||/\s/.test(r))?{activate:!0,colonAt:n-1,expectAt:n}:{activate:!1,colonAt:-1,expectAt:-1}}function j2(e,n){const t=n.index+n[1].length,r=n[0].slice(n[1].length),o=n===e.match(h5)?n[2]??"":r;return{leadOffset:t,matchingString:o,replaceableString:r}}function sD(){return st?i.jsx(iD,{}):i.jsx(aD,{})}function iD(){const[e]=it.useLexicalComposerContext(),{t:n}=Ke.useTranslation(),[t,r]=m.useState(!1);m.useEffect(()=>e.registerCommand(d1,()=>(r(!0),!1),p.COMMAND_PRIORITY_LOW),[e]);const o=m.useCallback(l=>{e.update(()=>{let c=p.$getSelection();if(!p.$isRangeSelection(c)&&(p.$getRoot().selectEnd(),c=p.$getSelection(),!p.$isRangeSelection(c)))return;let d=c.anchor.getNode();if(p.$isElementNode(d)){const x=p.$createTextNode("");d.append(x),x.select(),d=x}const f=c.anchor.getNode();if(!In(f))return;const h=f.getTextContent(),g=c.anchor.offset,A=l+" ",b=h.slice(0,g)+A+h.slice(g);f.setTextContent(b);const y=g+A.length;c.anchor.set(f.getKey(),y,"text"),c.focus.set(f.getKey(),y,"text")})},[e]),s={emojis:n("editor.emoji.emojis"),search:n("editor.emoji.search"),searchResults:n("editor.emoji.searchResults"),searchNoResults:n("editor.emoji.searchNoResults"),remove:n("editor.emoji.remove"),emojiCategory:{frequent:n("editor.emoji.emojiCategory.frequent"),people:n("editor.emoji.emojiCategory.people"),nature:n("editor.emoji.emojiCategory.nature"),foods:n("editor.emoji.emojiCategory.foods"),activity:n("editor.emoji.emojiCategory.activity"),places:n("editor.emoji.emojiCategory.places"),objects:n("editor.emoji.emojiCategory.objects"),symbols:n("editor.emoji.emojiCategory.symbols"),flags:n("editor.emoji.emojiCategory.flags")}};return i.jsx(Bt,{opened:t,onClose:()=>r(!1),title:n("editor.emoji.emojis"),classNames:{content:"emoji-panel-drawer"},children:i.jsx(At.EmojiPanel,{locales:s,onChange:l=>{var d;const c=((d=At.IconEntity.parse(l))==null?void 0:d.emoji)??l;o(c),r(!1)},onClose:()=>r(!1),setRandomIcon:()=>{}})})}function aD(){const[e]=it.useLexicalComposerContext(),{t:n}=Ke.useTranslation(),[t,r]=m.useState(!1),[o,s]=m.useState({top:0,left:0}),l=m.useRef(""),c=m.useRef({key:null,offset:null}),d=m.useRef({nodeKey:null,colonOffset:null,expectNextAt:null,active:!1,ts:0}),f=g=>{if(!d.current.active||g.length<1)return null;const A=g.match($I);if(A)return tD(g,A);const b=g.match(h5);if(b)return j2(g,b);const y=g.match(XI);return y?j2(g,y):null};m.useEffect(()=>e.registerCommand(d1,()=>(e.update(()=>{let g=p.$getSelection();if(!p.$isRangeSelection(g)&&(p.$getRoot().selectEnd(),g=p.$getSelection(),!p.$isRangeSelection(g)))return!1;let A=g.anchor.getNode();if(p.$isElementNode(A)){const L=p.$createTextNode("");A.append(L),L.select(),A=L}const b=g.anchor.getNode();if(!In(b))return;const y=b.getTextContent(),x=g.anchor.offset,w=x>0?y[x-1]:"",T=(x>0&&!/\s/.test(w)?" ":"")+":",I=y.slice(0,x)+T+y.slice(x);b.setTextContent(I);const N=x+T.length;g.anchor.set(b.getKey(),N,"text"),g.focus.set(b.getKey(),N,"text"),d.current={nodeKey:b.getKey(),colonOffset:N-1,expectNextAt:N,active:!0,ts:Date.now()},l.current=":",t&&r(!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]),m.useEffect(()=>e.registerUpdateListener(({editorState:g})=>{g.read(()=>{const A=p.$getSelection();if(p.$isRangeSelection(A)&&A.isCollapsed()?c.current={key:A.anchor.getNode().getKey(),offset:A.anchor.offset}:c.current={key:null,offset:null},!t&&!d.current.active)return;if(!p.$isRangeSelection(A)||!A.isCollapsed()){t&&r(!1),d.current.active=!1;return}const b=A.anchor.getNode().getKey(),y=A.anchor.offset,x=c.current;x.key!==null&&(b!==x.key||x.offset!==null&&Math.abs(y-x.offset)>1)&&(t&&r(!1),d.current.active=!1)})}),[e,t]),m.useEffect(()=>e.registerCommand(p.CLICK_COMMAND,()=>(t&&r(!1),d.current.active=!1,!1),p.COMMAND_PRIORITY_LOW),[e,t]),m.useEffect(()=>e.registerCommand(p.KEY_DOWN_COMMAND,g=>nD(g.key)?(g.key==="Escape"&&t&&r(!1),d.current.active=!1,!1):(rD(g)&&e.getEditorState().read(()=>{const A=p.$getSelection();if(!p.$isRangeSelection(A)||!A.isCollapsed()){d.current.active=!1;return}const b=A.anchor.getNode(),y=b.getKey(),x=A.anchor.offset;if(g.key===":"){d.current={nodeKey:y,colonOffset:x,expectNextAt:x+1,active:!1,ts:Date.now()};return}const w=typeof(b==null?void 0:b.getTextContent)=="function"?b.getTextContent():"",{activate:k,colonAt:T,expectAt:I}=oD(w,x);if(k){d.current={nodeKey:y,colonOffset:T,expectNextAt:I,active:!0,ts:Date.now()};return}d.current.active&&d.current.nodeKey===y||(d.current.active=!1)}),!1),p.COMMAND_PRIORITY_LOW),[e,t]);const h=m.useCallback(g=>{e.update(()=>{const A=p.$getSelection();if(!p.$isRangeSelection(A)||!A.isCollapsed())return;const b=A.anchor.getNode(),y=A.anchor.offset,w=(j=>typeof(j==null?void 0:j.getTextContent)=="function"?j.getTextContent():"")(b),k=Math.max(0,y-1);let T=d.current.active&&d.current.colonOffset!=null?d.current.colonOffset:-1;if(T===-1){const j=w.lastIndexOf(":",k),D=w.lastIndexOf(";",k),z=w.lastIndexOf("<",k);T=Math.max(j,D,z)}if(T===-1)return;const I=w[T],N=T>0?w[T-1]:null;if(N&&!/\s/.test(N))return;const L=w.slice(T),M=/^(?:\:\)|\:\-\)|\:d|\:\-d|\;\)|\;\-\)|\:\(|\:\-\(|\:\*|<3)/i;let S=T,O=null;const R=L.match(M);if(R)O=T+R[0].length;else if(I===":"){const j=z=>/[a-z0-9_+\-]/i.test(z);let D=T+1;for(;D<w.length&&j(w[D]);)D++;D===T+1?O=T+1:O=D}else if(I===";"){const j=L.match(/^(?:\;\)|\;\-\))/);if(j)O=T+j[0].length;else return}else if(I==="<"){const j=L.match(/^(?:<3)/);if(j)O=T+j[0].length;else return}if(O==null)return;const B=w.slice(0,S)+g+w.slice(O);b.setTextContent(B);const _=S+g.length;A.anchor.set(b.getKey(),_,"text"),A.focus.set(b.getKey(),_,"text"),t&&r(!1),d.current.active=!1})},[e,t]);return i.jsx(Fa.LexicalTypeaheadMenuPlugin,{onSelectOption:()=>{},triggerFn:f,onQueryChange:g=>{l.current=g},options:[],onClose:()=>{t&&r(!1),d.current.active=!1},onOpen:()=>{d.current.active&&e.update(()=>{const g=en();if(!g)return;const A=e.getElementByKey(g.getKey());A&&requestAnimationFrame(()=>{const b=A.getBoundingClientRect();s({top:b.bottom,left:b.left}),r(!0)})})},menuRenderFn:()=>i.jsx(v.Portal,{target:document.body,children:t&&i.jsx("div",{style:{position:"fixed",top:`${o.top}px`,left:`${o.left}px`,zIndex:1e4},children:i.jsx(At.EmojiPicker,{onChange:g=>{var A;h(((A=At.IconEntity.parse(g))==null?void 0:A.emoji)+" ")},querySearch:String(l.current)||"",locales:{emojis:n("editor.emoji.emojis"),search:n("editor.emoji.search"),searchResults:n("editor.emoji.searchResults"),searchNoResults:n("editor.emoji.searchNoResults"),remove:n("editor.emoji.remove"),emojiCategory:{frequent:n("editor.emoji.emojiCategory.frequent"),people:n("editor.emoji.emojiCategory.people"),nature:n("editor.emoji.emojiCategory.nature"),foods:n("editor.emoji.emojiCategory.foods"),activity:n("editor.emoji.emojiCategory.activity"),places:n("editor.emoji.emojiCategory.places"),objects:n("editor.emoji.emojiCategory.objects"),symbols:n("editor.emoji.emojiCategory.symbols"),flags:n("editor.emoji.emojiCategory.flags")}},popoverProps:{opened:t,transitionProps:Fn,withinPortal:!0,onClose:()=>{t&&r(!1),d.current.active=!1}},children:i.jsx(i.Fragment,{})})})})})}const p5=new Set(["http:","https:","mailto:","sms:","tel:"]);function Ia(e){try{const n=new URL(e);if(!p5.has(n.protocol))return"about:blank"}catch{return e}return e}function lD(e,n){e.update(()=>{const t=window.getSelection();if(t&&t.rangeCount>0){const r=t.getRangeAt(0),o=r.startOffset,s=Math.max(0,o-n);r.setStart(r.startContainer,s),t.removeAllRanges(),t.addRange(r)}})}function R2(e){const n=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+/,t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return n.test(e)||t.test(e)}function cD(){const[e]=it.useLexicalComposerContext();m.useEffect(()=>e.registerCommand(p.KEY_SPACE_COMMAND,()=>(e.update(()=>{const n=p.$getSelection();if(!p.$isRangeSelection(n))return!1;const t=n.anchor,r=t.getNode();if(Gt.$isCodeNode(r)||Gt.$isCodeNode(r.getParent()))return!1;if(p.$isTextNode(r)){const o=r.getTextContent().substring(0,t.offset),s=o.match(/(\S+)$/);if(s){const l=s[1],c=o.lastIndexOf(l),d=c>0?o[c-1]:"";if((d===""||d===" ")&&R2(l)){const f=cn.$createLinkNode(l,{rel:"noopener noreferrer",target:"_blank"}),h=p.$createTextNode(l);f.append(h);const g=c,A=g+l.length;n.anchor.set(r.__key,g,"text"),n.focus.set(r.__key,A,"text"),n.insertNodes([f]);const b=p.$getSelection();p.$isRangeSelection(b)&&(b.anchor.set(f.getKey(),l.length,"element"),b.focus.set(f.getKey(),l.length,"element")),f.selectEnd()}}}}),!1),p.COMMAND_PRIORITY_CRITICAL),[e]),m.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,n=>{var o,s;if(e.getEditorState().read(()=>{const l=p.$getSelection();if(!p.$isRangeSelection(l))return!1;const c=l.anchor.getNode();return Gt.$isCodeNode(c)||Gt.$isCodeNode(c.getParent())}))return!1;const r=((o=n.clipboardData)==null?void 0:o.getData("text"))||((s=n.clipboardData)==null?void 0:s.getData("text/plain"));return!r||!R2(r)||OA(r)||setTimeout(()=>{lD(e,r.length),e.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Ia(r)),e.update(()=>{const l=en();p.$getSelection()&&p.$setSelection(null),l==null||l.selectEnd()})},10),!1},p.COMMAND_PRIORITY_CRITICAL),[e])}function uD(){return cD(),null}function Mi(e){const n=e.anchor,t=e.focus,r=e.anchor.getNode(),o=e.focus.getNode();return r===o?r:e.isBackward()?dn.$isAtNodeEnd(t)?r:o:dn.$isAtNodeEnd(n)?r:o}function dD(e){switch(e){case"phone":return"tel:";case"email":return"mailto:";case"sms":return"sms:";case"web":default:return"https://"}}function fD(e,n){if(!e)return!1;try{if(n==="phone"){const c=e.startsWith("tel:")?e.substring(4):e;return/^\+?[\d\s\-\(\)]+$/.test(c)&&/\d/.test(c)}if(n==="sms"){const d=(e.startsWith("sms:")?e.substring(4):e).split("?")[0];return/^\+?[\d\s\-\(\)]+$/.test(d)&&/\d/.test(d)}if(n==="email"){const c=e.startsWith("mailto:")?e.substring(7):e;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)}const t=[".","::","://","https://","http://"],r=e.trim();if(!r||t.includes(r)||r.startsWith("://"))return!1;const o=r.startsWith("http://")||r.startsWith("https://")?r:`https://${r}`,s=new URL(o);if(!p5.has(s.protocol))return!1;const l=s.hostname;return l?l==="localhost"||l.includes(".")&&l.split(".").every(c=>c.length>0):!1}catch{return!1}}function I2(e,n){return!e||e.includes("://")||e.startsWith("tel:")||e.startsWith("mailto:")||e.startsWith("sms:")?e:dD(n)+e}function D2(e){return e?e.startsWith("tel:")?"phone":e.startsWith("mailto:")?"email":e.startsWith("sms:")?"sms":(e.startsWith("http://")||e.startsWith("https://"),"web"):"web"}function Ec(e){if(!e)return e;if(e.startsWith("tel:"))return e.substring(4);if(e.startsWith("mailto:"))return e.substring(7);if(e.startsWith("sms:")){const n=e.substring(4),t=n.indexOf("?");return t===-1?n:n.substring(0,t)}return e.startsWith("https://")?e.substring(8):e.startsWith("http://")?e.substring(7):e}function O2(e){if(!e||!e.startsWith("sms:"))return{phone:"",body:""};const n=e.substring(4),t=n.indexOf("?");if(t===-1)return{phone:n,body:""};const r=n.substring(0,t),o=new URLSearchParams(n.substring(t+1));return{phone:r,body:o.get("body")??""}}function P2(e,n){if(!e)return"";const r=(e.startsWith("sms:")?e.substring(4):e).split("?")[0];return n?`sms:${r}?body=${encodeURIComponent(n)}`:`sms:${r}`}function hD(e){switch(e){case"phone":return"+373 000 00 000";case"email":return"example@example.com";case"sms":return"+373 000 00 000";case"web":default:return"https://"}}function pD(e){return e==="phone"||e==="sms"?"tel":e==="email"?"email":"text"}function mD(e){return e==="email"?"email":e==="phone"||e==="sms"?"tel":"url"}function gD(e){return(e==null?void 0:e.closest(".doc-space-editor-wrapper"))??null}function Df(e){return(e==null?void 0:e.closest(".dsd__theme__link"))??null}function Th(e){return e?!!(e.closest('[data-test-id="floating-link-dropdown"]')||e.closest(".floating-link-type-combobox-dropdown")):!1}function CD(e){return{top:e.y,left:e.x}}function AD(e){const n=e.getBoundingClientRect();return{top:n.y,left:n.x+n.width/2}}function bD(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).getBoundingClientRect()}function yD(){const e=window.getSelection();return!e||e.rangeCount===0?null:e.getRangeAt(0).startContainer.parentElement}function xD(e,n=!1){var o;if(!e)return;const t=document.createRange(),r=window.getSelection();return t.setStart(e,Number(n)),t.collapse(!0),r&&(r.removeAllRanges(),r.addRange(t)),(o=e.textContent)==null?void 0:o.length}async function vD(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function wD({showTextToolbar:e,updateLink:n}){const t=m.useRef(null),r=m.useRef(!1),o=m.useRef(!1),s=m.useRef(null),l=m.useRef(null),c=m.useRef(null),d=m.useRef(null),[f,h]=m.useState(""),[g,A]=m.useState(""),[b,y]=m.useState(""),[x,w]=m.useState(""),[k,T]=m.useState(!1),[I,N]=m.useState(!1),[L,M]=m.useState("preview"),[S,O]=m.useState({top:0,left:0}),[R,B]=m.useState("web"),_=m.useRef({linkUrl:f,messageText:x,textUrl:b,linkType:R});_.current={linkUrl:f,messageText:x,textUrl:b,linkType:R};const[j]=it.useLexicalComposerContext();m.useEffect(()=>{if(I&&!(L!=="edit"&&L!=="create"))return ll(),()=>cl()},[I,L]);const D=m.useCallback(()=>{r.current=!1,M("preview"),h(""),A(""),w(""),T(!1),N(!1),B("web"),O({top:0,left:-999}),c.current=null,s.current=null,d.current=null},[]),z=m.useCallback(()=>{const X=d.current;if(!X)return!1;const ae=_.current;return X.linkUrl!==ae.linkUrl||X.messageText!==ae.messageText||X.textUrl!==ae.textUrl||X.linkType!==ae.linkType},[]);m.useEffect(()=>{if(!I)return;const X=()=>D();return window.addEventListener("resize",X,{passive:!0}),()=>window.removeEventListener("resize",X)},[I,D]);const H=m.useCallback(X=>{if(!X||r.current||!gD(X))return;const pe=Df(X);if(!pe||s.current===pe)return;const ge=j.getRootElement();if(!(ge!=null&&ge.contains(pe)))return;const G=pe.getAttribute("href");if(O(AD(pe)),G){const he=D2(G);if(B(he),he==="sms"){const{phone:oe,body:K}=O2(G);h(oe),w(K),A(oe)}else h(Ec(G)),w(""),A(he==="web"?G:Ec(G))}else h(""),w(""),A("");N(!0),s.current=pe},[j]),F=m.useCallback(X=>{const ae=p.$getSelection();X==="create"&&(M("create"),r.current=!0,B("web"),h(""),w(""),d.current={linkUrl:"",messageText:"",textUrl:"",linkType:"web"});const pe=G=>{const he=D2(G);if(B(he),he==="sms"){const{phone:oe,body:K}=O2(G);h(oe),w(K),A(oe)}else h(Ec(G)),w(""),A(he==="web"?G:Ec(G))};if(p.$isRangeSelection(ae)){const G=Mi(ae),he=ve.$findMatchingParent(G,cn.$isLinkNode);c.current={anchorKey:ae.anchor.key,anchorOffset:ae.anchor.offset,anchorType:ae.anchor.type,focusKey:ae.focus.key,focusOffset:ae.focus.offset,focusType:ae.focus.type},he?pe(he.getURL()):cn.$isLinkNode(G)&&pe(G.getURL())}const ge=ae?bD():null;return ge&&O(CD(ge)),N(!0),!0},[]);m.useEffect(()=>{n.current&&(n.current.updateLinkEditor=()=>{const X=yD();r.current=!1,H(X),r.current=!0,M("edit")})},[H,n]),m.useEffect(()=>{if(st)return;const X=ae=>{if(e.current)return;const pe=ae.target;pe instanceof HTMLElement&&H(pe)};return document.body.addEventListener("mouseover",X,{passive:!0}),()=>{document.body.removeEventListener("mouseover",X)}},[H,e]),m.useEffect(()=>{if(!st)return;const X=ae=>{if(e.current)return;const pe=ae.target;if(!(pe instanceof HTMLElement)||Th(pe))return;if(Df(pe)){if(!j.isEditable()||(ae.preventDefault(),ae.stopPropagation(),r.current))return;H(pe);return}r.current||D()};return document.addEventListener("click",X,{capture:!0}),document.addEventListener("touchend",X,{capture:!0,passive:!1}),()=>{document.removeEventListener("click",X,{capture:!0}),document.removeEventListener("touchend",X,{capture:!0})}},[j,H,D,e]),m.useEffect(()=>{if(st)return;const X=xu.debounce(ae=>{if(r.current)return;if(e.current){D();return}const pe=ae.target;if(!(pe instanceof HTMLElement))return;const ge=Df(pe)!==null,G=Th(pe);ge||G||D()},300,{maxWait:600});return document.addEventListener("mousemove",X,{passive:!0}),()=>{document.removeEventListener("mousemove",X),X.cancel()}},[D,e]),m.useEffect(()=>ve.mergeRegister(j.registerCommand(Tu,X=>(F(X),!0),p.COMMAND_PRIORITY_LOW)),[j,F]),m.useEffect(()=>{if(!L)return;const X=requestAnimationFrame(()=>{t.current&&(t.current.focus(),t.current.select()),j.read(()=>{const ae=p.$getSelection();if(p.$isRangeSelection(ae)){l.current=en();const pe=Mi(ae);if(ve.$findMatchingParent(pe,cn.$isLinkNode)&&pe){const G=pe.getTextContent();y(G),L==="edit"&&(d.current={linkUrl:_.current.linkUrl,messageText:_.current.messageText,textUrl:G,linkType:_.current.linkType})}}})});return()=>cancelAnimationFrame(X)},[j,L]);const Z=m.useCallback(()=>{const X=p.$getSelection();if(p.$isRangeSelection(X))return!0;const ae=(G,he,oe)=>oe==="text"&&p.$isTextNode(G)?Math.max(0,Math.min(he,G.getTextContentSize())):oe==="element"&&p.$isElementNode(G)?Math.max(0,Math.min(he,G.getChildrenSize())):Math.max(0,he),pe=c.current;if(pe){const G=p.$getNodeByKey(pe.anchorKey),he=p.$getNodeByKey(pe.focusKey);if(G&&he){const oe=p.$createRangeSelection();return oe.anchor.set(pe.anchorKey,ae(G,pe.anchorOffset,pe.anchorType),pe.anchorType),oe.focus.set(pe.focusKey,ae(he,pe.focusOffset,pe.focusType),pe.focusType),p.$setSelection(oe),!0}}const ge=l.current;if(!ge)return!1;if(p.$isTextNode(ge))return ge.select(0,ge.getTextContentSize()),!0;if(p.$isElementNode(ge)){const G=ge.getFirstDescendant();if(p.$isTextNode(G))return G.select(0,G.getTextContentSize()),!0}return!1},[]),q=m.useCallback(()=>{if(o.current)return;const X=R==="sms"?P2(f,x):I2(f,R);if(fD(X,R)&&X)T(!1);else{T(!0);return}o.current=!0;try{j.update(()=>{if(!Z())return;const ae=p.$getSelection();if(!p.$isRangeSelection(ae))return;const pe=Mi(ae),ge=pe?pe.getParent():null,G=(cn.$isAutoLinkNode(pe)?pe:null)??(cn.$isAutoLinkNode(ge)?ge:null);if(!G)j.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Ia(X)),L==="edit"&&pe&&In(pe)&&(pe.setTextContent(b),pe.selectEnd());else{const he=p.$createTextNode(b),oe=G.getParent();oe&&(G.remove(),oe.append(he),j.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Ia(X)),he.selectEnd())}}),D()}catch(ae){console.error("[FloatingLink] submit failed",ae)}finally{o.current=!1}},[j,L,f,x,R,D,Z,b]),ee=m.useCallback(X=>{if((X.metaKey||X.ctrlKey)&&(X.code==="KeyZ"||X.code==="KeyY")){X.stopPropagation();return}X.code==="Enter"?(X.preventDefault(),q()):X.code==="Escape"&&(X.preventDefault(),D())},[q,D]),Q=X=>{k&&T(!1),h(X)},J=X=>{k&&T(!1),B(X),h(""),X!=="sms"&&w("")},xe=L==="edit",we=Ia(R==="sms"?P2(f,x):I2(f,R));return{inputRef:t,isOpen:I,position:S,linkUrl:f,displayLinkUrl:g,textUrl:b,setTextUrl:y,messageText:x,setMessageText:w,error:k,isLinkEditMode:L,isShowEditTextLink:xe,safeLinkUrl:we,linkType:R,reset:D,isDirty:z,onUrlInputChange:Q,onLinkTypeChange:J,onUrlInputKeyDown:ee,onSubmit:q,onEditClick:()=>{setTimeout(()=>{const X=s.current;X&&document.contains(X)&&xD(X),j.read(()=>{const ae=p.$getSelection();p.$isRangeSelection(ae)&&(c.current={anchorKey:ae.anchor.key,anchorOffset:ae.anchor.offset,anchorType:ae.anchor.type,focusKey:ae.focus.key,focusOffset:ae.focus.offset,focusType:ae.focus.type})}),M("edit"),r.current=!0},100)},onCopyClick:()=>{we&&vD(we)},onRemoveClick:()=>{const X=s.current;if(!X||!document.contains(X)){D();return}j.update(()=>{const ae=p.$getNearestNodeFromDOMNode(X);if(!ae)return;const pe=ve.$findMatchingParent(ae,K=>cn.$isLinkNode(K)||cn.$isAutoLinkNode(K));if(!pe)return;if(cn.$isAutoLinkNode(pe)){pe.setIsUnlinked(!0),pe.markDirty();const K=pe.getFirstDescendant();p.$isTextNode(K)&&K.selectEnd();return}const ge=pe.getFirstDescendant(),G=pe.getLastDescendant();if(!p.$isTextNode(ge)||!p.$isTextNode(G))return;const he=p.$createRangeSelection();he.anchor.set(ge.getKey(),0,"text"),he.focus.set(G.getKey(),G.getTextContentSize(),"text"),p.$setSelection(he),cn.$toggleLink(null);const oe=p.$getSelection();p.$isRangeSelection(oe)&&oe.anchor.getNode().selectEnd()}),D()}}}function m5({inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:o,onUrlInputChange:s,onUrlInputKeyDown:l}){const{t:c}=Ke.useTranslation();return i.jsxs(v.Group,{wrap:"nowrap",gap:0,w:"100%",className:"floating-link-group","data-error":r||void 0,children:[i.jsx(sl,{data:[{value:"web",label:c("editor.link.type.web")},{value:"phone",label:c("editor.link.type.phone")},{value:"email",label:c("editor.link.type.email")},{value:"sms",label:c("editor.link.type.sms")}],comboboxProps:{width:200,zIndex:400,position:"bottom-start",classNames:{dropdown:"floating-link-type-combobox-dropdown"}},value:t,onChange:d=>{d&&o(d)},placeholder:c("editor.link.type.web"),"data-test-id":"floating-link-type-select",inputClassName:"editor-select__input--create-mode"}),i.jsx(v.Input,{ref:e,value:n,error:r,type:pD(t),name:mD(t),size:"sm",className:"floating-link-url-input",placeholder:hD(t),"data-test-id":"floating-link-url-input",onChange:d=>{s(d.target.value)},onKeyDown:l})]})}function kD({inputRef:e,linkUrl:n,linkType:t,error:r,mobile:o,onLinkTypeChange:s,onUrlInputChange:l,onUrlInputKeyDown:c,onCancel:d,onSave:f}){const{t:h}=Ke.useTranslation();return i.jsxs(v.Box,{className:"floating-link-form",children:[i.jsxs(v.Stack,{gap:5,children:[i.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:h("editor.link.link")}),i.jsx(m5,{inputRef:e,linkUrl:n,linkType:t,error:r,onLinkTypeChange:s,onUrlInputChange:l,onUrlInputKeyDown:c})]}),o?i.jsxs(v.Stack,{gap:4,mt:16,children:[i.jsx(v.Button,{h:36,fullWidth:!0,onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")}),i.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")})]}):i.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[i.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:d,"data-test-id":"floating-link-cancel",children:h("editor.cancel")}),i.jsx(v.Button,{h:30,type:"submit",onClick:f,disabled:!n.trim(),"data-test-id":"floating-link-save",children:h("editor.link.save")})]})]})}function SD({inputRef:e,textUrl:n,linkUrl:t,linkType:r,error:o,mobile:s,setTextUrl:l,onLinkTypeChange:c,onUrlInputChange:d,onUrlInputKeyDown:f,onCancel:h,onSave:g}){const{t:A}=Ke.useTranslation();return i.jsxs(v.Box,{className:"floating-link-form",children:[i.jsxs(v.Stack,{gap:10,children:[i.jsxs(v.Stack,{gap:5,children:[i.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:A("editor.link.link")}),i.jsx(m5,{inputRef:e,linkUrl:t,linkType:r,error:o,onLinkTypeChange:c,onUrlInputChange:d,onUrlInputKeyDown:f})]}),i.jsxs(v.Stack,{gap:5,children:[i.jsx(v.Text,{fw:500,size:"xs",c:"var(--mantine-color-text)",children:A("editor.link.name")}),i.jsx(v.Input,{value:n,size:"sm",placeholder:A("editor.link.linkName"),"data-test-id":"floating-link-text-input",onChange:b=>{l(b.target.value)},onKeyDown:f})]})]}),s?i.jsxs(v.Stack,{gap:4,mt:16,children:[i.jsx(v.Button,{h:36,fullWidth:!0,onClick:g,disabled:!t.trim(),"data-test-id":"floating-link-save",children:A("editor.link.save")}),i.jsx(v.Button,{h:36,fullWidth:!0,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:A("editor.cancel")})]}):i.jsxs(v.Group,{justify:"flex-end",mt:16,gap:8,children:[i.jsx(v.Button,{h:30,variant:"subtle",color:"gray",onClick:h,"data-test-id":"floating-link-cancel",children:A("editor.cancel")}),i.jsx(v.Button,{h:30,type:"submit",onClick:g,disabled:!t.trim(),"data-test-id":"floating-link-save",children:A("editor.link.save")})]})]})}const ED={web:s1,phone:yk,email:ck,sms:uk};function TD({linkUrl:e,href:n,linkType:t,messageText:r,onEditClick:o,onCopyClick:s,onRemoveClick:l}){const{t:c}=Ke.useTranslation(),d=Nu(),f=ED[t],h=()=>{s(),d(c("editor.link.copied"))};return i.jsxs(v.Box,{className:`floating-link-card floating-link-card--${t}`,children:[i.jsxs(v.Group,{className:"floating-link-card__top",wrap:"nowrap",children:[i.jsxs(v.Group,{className:"floating-link-card__info",wrap:"nowrap",gap:6,children:[i.jsx($,{icon:f,size:16,color:"currentColor"}),i.jsx(v.Anchor,{className:"floating-link-card__url",size:"xs",truncate:!0,href:n,target:t==="web"?"_blank":void 0,rel:t==="web"?"noopener noreferrer":void 0,underline:"hover",c:"inherit",onClick:g=>g.stopPropagation(),"data-test-id":"floating-link-anchor",children:e})]}),i.jsxs(v.Group,{className:"floating-link-card__actions",gap:2,wrap:"nowrap",children:[i.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:o,"aria-label":c("editor.link.edit"),"data-test-id":"floating-link-edit",children:i.jsx($,{icon:nA,size:16,color:"currentColor"})}),i.jsx(v.ActionIcon,{variant:"subtle",color:"gray",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:h,"aria-label":c("editor.link.copy"),"data-test-id":"floating-link-copy",children:i.jsx($,{icon:nl,size:16,color:"currentColor"})}),i.jsx(v.ActionIcon,{variant:"subtle",color:"red",size:24,radius:"md",onMouseDown:g=>g.preventDefault(),onClick:l,"aria-label":c("editor.link.remove"),"data-test-id":"floating-link-remove",children:i.jsx($,{icon:sn,size:16,color:"currentColor"})})]})]}),t==="sms"&&r&&i.jsx(v.Text,{className:"floating-link-card__sms-body",size:"xs",children:r})]})}function MD({showTextToolbar:e,updateLink:n}){const{t}=Ke.useTranslation(),[r,o]=m.useState(!1),{inputRef:s,isOpen:l,position:c,linkUrl:d,displayLinkUrl:f,textUrl:h,setTextUrl:g,messageText:A,error:b,isLinkEditMode:y,isShowEditTextLink:x,safeLinkUrl:w,linkType:k,reset:T,isDirty:I,onUrlInputChange:N,onLinkTypeChange:L,onUrlInputKeyDown:M,onSubmit:S,onEditClick:O,onCopyClick:R,onRemoveClick:B}=wD({showTextToolbar:e,updateLink:n}),_=()=>{if((y==="create"||y==="edit")&&I()){o(!0);return}T()},j=Ft.useClickOutside(ee=>{const Q=ee.target;Th(Q)||_()}),D=()=>{o(!1),T()},z=y==="preview"?"preview":x?"edit":"create",H=ee=>z==="create"?i.jsx(kD,{inputRef:s,linkUrl:d,linkType:k,error:b,mobile:ee,onLinkTypeChange:L,onUrlInputChange:N,onUrlInputKeyDown:M,onCancel:T,onSave:S}):z==="edit"?i.jsx(SD,{inputRef:s,textUrl:h,linkUrl:d,linkType:k,error:b,mobile:ee,setTextUrl:g,onLinkTypeChange:L,onUrlInputChange:N,onUrlInputKeyDown:M,onCancel:T,onSave:S}):i.jsx(TD,{linkUrl:f,href:w,linkType:k,messageText:A,onEditClick:O,onCopyClick:R,onRemoveClick:B}),F=t(z==="edit"?"editor.link.editLink":"editor.link.addLink"),Z=i.jsxs(v.Modal,{opened:r,onClose:()=>o(!1),centered:!0,title:t("editor.unsavedChanges.title"),size:"sm",zIndex:ki+10,children:[i.jsx(v.Text,{mb:"md",children:t("editor.unsavedChanges.message")}),i.jsxs(v.Flex,{justify:"flex-end",gap:"sm",children:[i.jsx(v.Button,{variant:"default",onClick:()=>o(!1),children:t("editor.unsavedChanges.cancel")}),i.jsx(v.Button,{color:"red",onClick:D,children:t("editor.unsavedChanges.closeWithoutSaving")})]})]}),q=i.jsxs(v.Popover,{width:z==="preview"?312:380,opened:l,onChange:ee=>{ee||T()},closeOnClickOutside:!1,position:"bottom",offset:10,transitionProps:Fn,zIndex:ki,children:[i.jsx(v.Popover.Target,{children:i.jsx("div",{style:{position:"fixed",left:c.left,top:c.top+8,width:10,height:10,background:"transparent",pointerEvents:"none"}})}),i.jsx(v.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${y}-mode`,"data-test-id":"floating-link-dropdown",children:i.jsx("div",{ref:j,children:H(!1)})})]});if(st){const ee=z==="create"||z==="edit";return i.jsxs(i.Fragment,{children:[ee?i.jsx(Bt,{opened:l,onClose:_,title:F,zIndex:ki,children:H(!0)}):q,Z]})}return i.jsxs(i.Fragment,{children:[q,Z]})}function LD(e){const{disable:n}=m.useContext(ft),t=m.useRef({updateLinkEditor:()=>{}});return n?null:i.jsxs(i.Fragment,{children:[i.jsx(uD,{}),Br.createPortal(i.jsx(MD,{showTextToolbar:e,updateLink:t}),document.body)]})}function ND({showTextToolbar:e}){return LD(e)}function jD(e,n){const t=e.getRangeAt(0);let r;if(e.anchorNode===n){let o=n;for(;o.firstElementChild!=null;)o=o.firstElementChild;r=o.getBoundingClientRect()}else r=t.getBoundingClientRect();if(r.width===0&&r.height===0&&r.top===0&&r.left===0){let o=e.anchorNode;if(o&&o.nodeType===Node.TEXT_NODE&&(o=o.parentElement),o instanceof HTMLElement){let s=o;for(;s&&s!==n;){const l=window.getComputedStyle(s).display;if(l==="block"||l==="list-item"||l==="flex"||l==="grid")break;s=s.parentElement}s&&s!==n&&(r=s.getBoundingClientRect())}}return r}const B2=()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e==null?void 0:e.replace(/\s+/g,"")},RD=10,ID=5;function hi(e,n,t,r=!1,o=RD,s=ID,l=!1){const c=t.parentElement,d=document.querySelector(".ai-editor-menu");if(e===null||!c||d){n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)";return}const f=n.getBoundingClientRect(),h=c.getBoundingClientRect();let g,A;if(l){if(e.width===0&&e.height===0&&e.top===0&&e.left===0)return;const y=typeof window<"u"?window.visualViewport:null,x=(y==null?void 0:y.offsetTop)??0,w=((y==null?void 0:y.height)??window.innerHeight)+x,k=(y==null?void 0:y.width)??window.innerWidth;if(g=e.bottom+o,g+f.height>w){const I=e.top-f.height-o;I>=x+o?g=I:g=Math.max(x+o,w-f.height-o)}const T=4;A=Math.round((k-f.width)/2),A+f.width>k-T&&(A=k-f.width-T),A<T&&(A=T),n.style.transform=`translate(${A}px, ${g}px)`,n.style.opacity="1";return}if(g=e.top-f.height-o,g<0&&(g=10),A=e.left-s,g<h.top&&(g+=f.height+e.height+o*2),A+f.width>h.right&&(A=h.right-f.width-s),e.bottom-e.height>h.bottom){n.style.transform="translate(-1000px, -1000px)";return}if(e.bottom+e.height<h.top){n.style.transform="translate(-1000px, -1000px)";return}let b=g;f.top>=h.bottom&&(b=h.bottom),n.style.transform=`translate(${A}px, ${b}px)`,n.style.opacity="1"}function DD({editor:e,anchorElem:n,isLink:t,isBold:r,isItalic:o,isUnderline:s,isCode:l,isStrikethrough:c,isSubscript:d,isSuperscript:f,component:h,isText:g}){const A=m.useRef(null),b=m.useRef(!1),y=m.useRef(null),x=m.useCallback(()=>{e.dispatchCommand(Tu,"create")},[e,t]);function w(){var T,I;A.current&&(b.current=!0,hi(((T=y.current)==null?void 0:T.rect)||null,A==null?void 0:A.current,n,(I=y.current)==null?void 0:I.isLink,void 0,void 0,st))}m.useEffect(()=>{const T=B2();if(!g&&!(T!=null&&T.length)){let I=function(S){return S instanceof HTMLElement};const N=A.current,L=window.getSelection();let M=!1;L!=null&&L.anchorNode&&I(L.anchorNode)&&L.anchorNode.className==="toolbar"&&(M=!0),N&&!M&&(y.current={rect:null,floatingElem:N,anchorElem:n,isLink:t},hi(null,N,n,t,void 0,void 0,st),b.current=!1)}},[g,e]),m.useEffect(()=>{if(A!=null&&A.current){const T=()=>{const I=window.getSelection();if(!I||I.isCollapsed)return;const N=e.getRootElement();!N||!I.anchorNode||N.contains(I.anchorNode)&&w()};return document.addEventListener("mouseup",w),document.addEventListener("keyup",T),()=>{document.removeEventListener("mouseup",w),document.removeEventListener("keyup",T)}}},[e,A]),m.useEffect(()=>{e.registerCommand(p.KEY_DOWN_COMMAND,T=>{var I;return(T.metaKey||T.ctrlKey)&&T.code==="KeyA"?(T.preventDefault(),Hk(e),en(!0)&&(Zk()&&(A!=null&&A.current)?(hi(null,A==null?void 0:A.current,n,(I=y.current)==null?void 0:I.isLink,void 0,void 0,st),p.$selectAll(),A1(e)):setTimeout(()=>{w()})),!0):!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(th,()=>(setTimeout(()=>{var T;A!=null&&A.current&&hi(null,A==null?void 0:A.current,n,(T=y.current)==null?void 0:T.isLink,void 0,void 0,st)},100),!1),p.COMMAND_PRIORITY_LOW)},[e]);const k=m.useCallback(()=>{const T=p.$getSelection(),I=A.current,N=window.getSelection();if(I===null)return;const L=e.getRootElement();let M=!1;const S=B2();if(S&&S.length>0&&(M=!0),T!==null&&N!==null&&(!N.isCollapsed||st)&&L!==null&&L.contains(N.anchorNode)&&(M||st)){const O=jD(N,L);if(y.current={rect:O,floatingElem:I,anchorElem:n,isLink:t},st){const R=(B=0)=>{var z,H;const _=A.current;if(!_)return;const{width:j,height:D}=_.getBoundingClientRect();if((j===0||D===0)&&B<3){requestAnimationFrame(()=>R(B+1));return}hi(((z=y.current)==null?void 0:z.rect)||null,_,n,(H=y.current)==null?void 0:H.isLink,void 0,void 0,!0)};requestAnimationFrame(()=>R())}if(p.$isRangeSelection(T)){const B=Mi(T).getParent(),_=B==null?void 0:B.getFormatType();b.current&&_&&A&&e.registerCommand(th,j=>(j||setTimeout(()=>{var D,z;hi(((D=y.current)==null?void 0:D.rect)||null,I,n,(z=y.current)==null?void 0:z.isLink,void 0,void 0,st)},100),!1),p.COMMAND_PRIORITY_LOW)}}else y.current={rect:null,floatingElem:I,anchorElem:n,isLink:t}},[e,n,t]);return m.useEffect(()=>{const T=n.parentElement,I=()=>{e.getEditorState().read(()=>{k()})};return window.addEventListener("resize",I),T&&T.addEventListener("scroll",I),()=>{window.removeEventListener("resize",I),T&&T.removeEventListener("scroll",I)}},[e,k,n]),m.useEffect(()=>(e.getEditorState().read(()=>{k()}),ve.mergeRegister(e.registerUpdateListener(({editorState:T})=>{T.read(()=>{k()})}),e.registerCommand(p.SELECTION_CHANGE_COMMAND,()=>(k(),!1),p.COMMAND_PRIORITY_LOW))),[e,k]),i.jsx("div",{ref:A,className:`floating-text-format-popup doc-space-editor-wrapper ${g?"":"floating-text-format-popup-hidden"}`,onMouseDown:T=>T.preventDefault(),children:i.jsx("div",{children:e.isEditable()&&(h||i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"popup-item spaced "+(r?"active":""),"data-test-id":"toolbar-bold",children:i.jsx(bn,{name:"bold",stroke:r?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"popup-item spaced "+(o?"active":""),"data-test-id":"toolbar-italic",children:i.jsx(bn,{name:"italic",stroke:o?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"popup-item spaced "+(s?"active":""),"data-test-id":"toolbar-underline",children:i.jsx(bn,{name:"underline",stroke:s?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},className:"popup-item spaced "+(c?"active":""),"data-test-id":"toolbar-strikethrough",children:i.jsx(bn,{name:"strikethrough",stroke:c?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"subscript")},className:"popup-item spaced "+(d?"active":""),"data-test-id":"toolbar-subscript",children:i.jsx(bn,{name:"subscript",stroke:d?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"superscript")},className:"popup-item spaced "+(f?"active":""),"data-test-id":"toolbar-superscript",children:i.jsx(bn,{name:"superscript",stroke:f?3:2})}),i.jsx("button",{type:"button",onClick:()=>{e.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"popup-item spaced "+(l?"active":""),"data-test-id":"toolbar-code",children:i.jsx(bn,{name:"code"})}),i.jsx("button",{type:"button",onClick:x,className:"popup-item spaced "+(t?"active":""),"data-test-id":"toolbar-link",children:i.jsx(bn,{name:"link"})})]}))})})}function OD(e,n,t){const[r,o]=m.useState(!1),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,h]=m.useState(!1),[g,A]=m.useState(!1),[b,y]=m.useState(!1),[x,w]=m.useState(!1),[k,T]=m.useState(!1),[I,N]=m.useState(!1),[L,M]=m.useState(!1),[S,O]=m.useState(!1),R=H1(),{disable:B}=m.useContext(ft);m.useEffect(()=>{if(st)return e.registerCommand(EA,()=>(O(!0),!0),p.COMMAND_PRIORITY_LOW)},[e]),m.useEffect(()=>{if(!st||!S)return;const D=e.getRootElement();if(!D)return;const z=()=>O(!1);return D.addEventListener("pointerdown",z),()=>{D.removeEventListener("pointerdown",z)}},[e,S]);const _=m.useCallback(()=>{e.getEditorState().read(()=>{var xe,we,Te;if(e.isComposing())return;const D=p.$getSelection(),z=window.getSelection(),H=e.getRootElement();if(z!==null&&(!p.$isRangeSelection(D)||H===null||!H.contains(z.anchorNode))){o(!1);return}if(!p.$isRangeSelection(D))return;const F=Mi(D),Z=ve.$findMatchingParent(F,St);l(St(Z)),h(D.hasFormat("bold")),A(D.hasFormat("italic")),y(D.hasFormat("underline")),w(D.hasFormat("strikethrough")),T(D.hasFormat("subscript")),N(D.hasFormat("superscript")),M(D.hasFormat("code"));const q=F.getParent();cn.$isLinkNode(q)||cn.$isLinkNode(F)?d(!0):d(!1);const ee=Gt.$isCodeHighlightNode(D.anchor.getNode()),Q=(Te=(we=(xe=e.getElementByKey(F.__key))==null?void 0:xe.parentElement)==null?void 0:we.parentElement)==null?void 0:Te.classList.contains("Collapsible__title");!ee&&(D.getTextContent()!==""||st)&&!Q?o(In(F)||p.$isParagraphNode(F)||fn.$isHeadingNode(F)||fn.$isQuoteNode(F)||It(F)):o(!1);const J=D.getTextContent().replace(/\n/g,"");if(!D.isCollapsed()&&J===""){o(!1);return}})},[e]);if(m.useEffect(()=>(document.addEventListener("selectionchange",_),()=>{document.removeEventListener("selectionchange",_)}),[_]),m.useEffect(()=>ve.mergeRegister(e.registerUpdateListener(()=>{_()}),e.registerRootListener(()=>{e.getRootElement()===null&&o(!1)})),[e,_]),B)return null;const j=s?null:t;return Br.createPortal(i.jsx(DD,{editor:e,anchorElem:n,isLink:c,isBold:f,isItalic:g,isStrikethrough:x,isSubscript:k,isSuperscript:I,isUnderline:b,isCode:L,component:j,isText:r&&!R&&!S}),document.body)}function _2({anchorElem:e=document.body,component:n}){const[t]=it.useLexicalComposerContext();return OD(t,e,n)}function PD(){const[e]=it.useLexicalComposerContext(),{maxHeight:n}=m.useContext(ft),t=()=>{wA(e)};return n?null:i.jsx("div",{className:"new-paragraph",onClick:t})}function BD({hover:e,menuRef:n,onCopy:t,onDuplicate:r,isEmpty:o}){const{t:s}=Ke.useTranslation(),l=e.type==="code"?e.label||s("editor.menu.main.code.name"):s("editor.menu.other.equation.overlayTitle");return i.jsxs(v.Paper,{ref:n,className:"preview-code-equation-menu",shadow:"none",radius:"md",withBorder:!1,style:{position:"absolute",top:e.position.top,right:e.position.right,display:"flex",alignItems:"center",gap:8,padding:0,backgroundColor:"transparent",zIndex:1e3},children:[i.jsx(v.Box,{bg:"light-dark(var(--mantine-color-white), var(--mantine-color-body))",px:8,py:6,style:{borderRadius:"var(--mantine-radius-sm)"},children:i.jsx(v.Text,{className:"preview-code-equation-menu__label",size:"sm",c:"var(--mantine-color-dark-0)",children:l})}),i.jsx(u1,{isEmpty:o,copyToClipboard:t,onDuplicate:r,tooltipCopy:s("editor.contextMenu.copy"),tooltipDuplicate:s("editor.contextMenu.duplicate")})]})}function F2(e){const t=(e.closest("[data-lexical-equation]")??e.querySelector("[data-lexical-equation]")??e).getAttribute("data-lexical-equation");if(t)try{return decodeURIComponent(escape(atob(t)))}catch{}const r=e.querySelector('annotation[encoding="application/x-tex"]');return r&&r.textContent?r.textContent.trim():e.textContent||""}async function W2(e){if(!e)return!1;try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function _D(e){const{disable:n}=m.useContext(ft),[t]=it.useLexicalComposerContext(),[r,o]=m.useState(null),s=m.useRef(null),l=n&&!!e,c=m.useMemo(()=>A=>{if(!l||!e)return;const{lexicalDOMNode:b,isOutside:y}=Zu(A,"code.dsd__theme__code, div.editor-equation",[".preview-code-equation-menu"]);if(y){o(null);return}if(!b)return;const x=b.matches("code.dsd__theme__code"),w=x&&(b.getAttribute("data-name-language")||b.getAttribute("data-language"))||"",{y:k,right:T}=e.getBoundingClientRect(),{y:I,right:N}=b.getBoundingClientRect(),L=I-k+4,M=T-N+4;let S=null;t.getEditorState().read(()=>{const O=p.$getNearestNodeFromDOMNode(b);if(!O)return;const R=x?uu(O):Fc(O);S=(R==null?void 0:R.getKey())??null}),o({type:x?"code":"equation",label:w,target:b,wrapperKey:S,position:{top:`${L}px`,right:`${M}px`}})},[e,l,t]),d=Qi(c,50,300);if(m.useEffect(()=>{if(!l){o(null);return}return document.addEventListener("mousemove",d),()=>{d.cancel(),document.removeEventListener("mousemove",d)}},[d,l]),!l||!r||!e)return null;const f=async()=>r!=null&&r.target?r.type==="code"?W2((r.target.textContent||"").trim()):W2(F2(r.target).trim()):!1,h=r.type==="code"?!(r.target.textContent||"").trim():!F2(r.target).trim(),g=()=>{const A=r.wrapperKey;A&&t.update(()=>{const b=p.$getNodeByKey(A);!ls(b)&&!Ru(b)||b.insertAfter(Ir(b))})};return m.createElement(BD,{hover:r,menuRef:s,onCopy:f,onDuplicate:g,isEmpty:h})}function FD({anchorElem:e=document.body}){return _D(e)}var WD="function",zD="object",UD="string",KD="undefined",HD=typeof document!==KD&&document,YD=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Yr=1e-7,Tc={cm:function(e){return e*96/2.54},mm:function(e){return e*96/254},in:function(e){return e*96},pt:function(e){return e*96/72},pc:function(e){return e*96/6},"%":function(e,n){return e*n/100},vw:function(e,n){return n===void 0&&(n=window.innerWidth),e/100*n},vh:function(e,n){return n===void 0&&(n=window.innerHeight),e/100*n},vmax:function(e,n){return n===void 0&&(n=Math.max(window.innerWidth,window.innerHeight)),e/100*n},vmin:function(e,n){return n===void 0&&(n=Math.min(window.innerWidth,window.innerHeight)),e/100*n}};/*! *****************************************************************************
|
|
232
|
+
Copyright (c) Microsoft Corporation.
|
|
233
|
+
|
|
234
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
235
|
+
purpose with or without fee is hereby granted.
|
|
236
|
+
|
|
237
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
238
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
239
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
240
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
241
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
242
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
243
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
244
|
+
***************************************************************************** */function ZD(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,o++)r[o]=s[l];return r}function fs(e){return e&&typeof e===zD}function pu(e){return Array.isArray(e)}function $a(e){return typeof e===UD}function J1(e){return typeof e===WD}function GD(e,n){var t=e===""||e==" ",r=n===""||n==" ";return r&&t||e===n}function g5(e,n,t,r,o){var s=X1(e,n,t);return s?t:VD(e,n,t+1,r,o)}function X1(e,n,t){if(!e.ignore)return null;var r=n.slice(Math.max(t-3,0),t+3).join("");return new RegExp(e.ignore).exec(r)}function VD(e,n,t,r,o){for(var s=function(f){var h=n[f].trim();if(h===e.close&&!X1(e,n,f))return{value:f};var g=f,A=el(o,function(b){var y=b.open;return y===h});if(A&&(g=g5(A,n,f,r,o)),g===-1)return l=f,"break";f=g,l=f},l,c=t;c<r;++c){var d=s(c);if(c=l,typeof d=="object")return d.value;if(d==="break")break}return-1}function $1(e,n){var t=$a(n)?{separator:n}:n,r=t.separator,o=r===void 0?",":r,s=t.isSeparateFirst,l=t.isSeparateOnlyOpenClose,c=t.isSeparateOpenClose,d=c===void 0?l:c,f=t.openCloseCharacters,h=f===void 0?YD:f,g=h.map(function(S){var O=S.open,R=S.close;return O===R?O:O+"|"+R}).join("|"),A="(\\s*"+o+"\\s*|"+g+"|\\s+)",b=new RegExp(A,"g"),y=e.split(b).filter(function(S){return S&&S!=="undefined"}),x=y.length,w=[],k=[];function T(){return k.length?(w.push(k.join("")),k=[],!0):!1}for(var I=function(S){var O=y[S].trim(),R=S,B=el(h,function(D){var z=D.open;return z===O}),_=el(h,function(D){var z=D.close;return z===O});if(B){if(R=g5(B,y,S,x,h),R!==-1&&d)return T()&&s||(w.push(y.slice(S,R+1).join("")),S=R,s)?(N=S,"break"):(N=S,"continue")}else if(_&&!X1(_,y,S)){var j=ZD(h);return j.splice(h.indexOf(_),1),{value:$1(e,{separator:o,isSeparateFirst:s,isSeparateOnlyOpenClose:l,isSeparateOpenClose:d,openCloseCharacters:j})}}else if(GD(O,o)&&!l)return T(),s?(N=S,"break"):(N=S,"continue");R===-1&&(R=x-1),k.push(y.slice(S,R+1).join("")),S=R,N=S},N,L=0;L<x;++L){var M=I(L);if(L=N,typeof M=="object")return M.value;if(M==="break")break}return k.length&&w.push(k.join("")),w}function qD(e){return $1(e,"")}function xa(e){return $1(e,",")}function QD(e){var n=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!n||n.length<4?{}:{prefix:n[1],value:n[2],suffix:n[3]}}function mu(e){var n=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!n)return{prefix:"",unit:"",value:NaN};var t=n[1],r=n[2],o=n[3];return{prefix:t,unit:o,value:parseFloat(r)}}function Mh(e){return e.replace(/[\s-_]+([^\s-_])/g,function(n,t){return t.toUpperCase()})}function Lh(){return Date.now?Date.now():new Date().getTime()}function gu(e,n,t){t===void 0&&(t=-1);for(var r=e.length,o=0;o<r;++o)if(n(e[o],o,e))return o;return t}function el(e,n,t){var r=gu(e,n);return r>-1?e[r]:t}function z2(e,n){var t=mu(e),r=t.value,o=t.unit;if(fs(n)){var s=n[o];if(s){if(J1(s))return s(r);if(Tc[o])return Tc[o](r,s)}}else if(o==="%")return r*n/100;return Tc[o]?Tc[o](r):r}function C5(e,n,t){return Math.max(n,Math.min(e,t))}function U2(e,n,t,r){return r===void 0&&(r=e[0]/e[1]),[[Eo(n[0],Yr),Eo(n[0]/r,Yr)],[Eo(n[1]*r,Yr),Eo(n[1],Yr)]].filter(function(o){return o.every(function(s,l){var c=n[l],d=Eo(c,Yr);return t?s<=c||s<=d:s>=c||s>=d})})[0]||e}function JD(e,n,t,r){if(!r)return e.map(function(b,y){return C5(b,n[y],t[y])});var o=e[0],s=e[1],l=r===!0?o/s:r,c=U2(e,n,!1,l),d=c[0],f=c[1],h=U2(e,t,!0,l),g=h[0],A=h[1];return o<d||s<f?(o=d,s=f):(o>g||s>A)&&(o=g,s=A),[o,s]}function XD(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return t}function $D(e){for(var n=e.length,t=0,r=n-1;r>=0;--r)t+=e[r];return n?t/n:0}function K2(e,n){var t=n[0]-e[0],r=n[1]-e[1],o=Math.atan2(r,t);return o>=0?o:o+Math.PI*2}function eO(e){return[0,1].map(function(n){return $D(e.map(function(t){return t[n]}))})}function H2(e){var n=eO(e),t=K2(n,e[0]),r=K2(n,e[1]);return t<r&&r-t<Math.PI||t>r&&r-t<-Math.PI?1:-1}function Nh(e,n){return Math.sqrt(Math.pow((n?n[0]:0)-e[0],2)+Math.pow((n?n[1]:0)-e[1],2))}function Eo(e,n){var t=1/n;return Math.round(e/n)/t}function tO(e,n){return e.classList?e.classList.contains(n):!!e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))}function nO(e,n){e.classList?e.classList.add(n):e.className+=" "+n}function En(e,n,t,r){e.addEventListener(n,t,r)}function gn(e,n,t,r){e.removeEventListener(n,t,r)}function ko(e){return(e==null?void 0:e.ownerDocument)||HD}function Is(e){var n;return((n=e==null?void 0:e.ownerDocument)===null||n===void 0?void 0:n.defaultView)||window}function rO(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Y2(e){return fs(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}/*! *****************************************************************************
|
|
245
|
+
Copyright (c) Microsoft Corporation.
|
|
246
|
+
|
|
247
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
248
|
+
purpose with or without fee is hereby granted.
|
|
249
|
+
|
|
250
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
251
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
252
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
253
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
254
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
255
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
256
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
257
|
+
***************************************************************************** */var jh=function(){return jh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},jh.apply(this,arguments)};function oO(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,o++)r[o]=s[l];return r}var Gu=(function(){function e(){this._events={}}var n=e.prototype;return n.on=function(t,r){if(fs(t))for(var o in t)this.on(o,t[o]);else this._addEvent(t,r,{});return this},n.off=function(t,r){if(!t)this._events={};else if(fs(t))for(var o in t)this.off(o);else if(!r)this._events[t]=[];else{var s=this._events[t];if(s){var l=gu(s,function(c){return c.listener===r});l>-1&&s.splice(l,1)}}return this},n.once=function(t,r){var o=this;return r&&this._addEvent(t,r,{once:!0}),new Promise(function(s){o._addEvent(t,s,{once:!0})})},n.emit=function(t,r){var o=this;r===void 0&&(r={});var s=this._events[t];if(!t||!s)return!0;var l=!1;return r.eventType=t,r.stop=function(){l=!0},r.currentTarget=this,oO(s).forEach(function(c){c.listener(r),c.once&&o.off(t,c.listener)}),!l},n.trigger=function(t,r){return r===void 0&&(r={}),this.emit(t,r)},n._addEvent=function(t,r,o){var s=this._events;s[t]=s[t]||[];var l=s[t];l.push(jh({listener:r},o))},e})();/*! *****************************************************************************
|
|
258
|
+
Copyright (c) Microsoft Corporation.
|
|
259
|
+
|
|
260
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
261
|
+
purpose with or without fee is hereby granted.
|
|
262
|
+
|
|
263
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
264
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
265
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
266
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
267
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
268
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
269
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
270
|
+
***************************************************************************** */var Rh=function(e,n){return Rh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Rh(e,n)};function sO(e,n){Rh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var kn=function(){return kn=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},kn.apply(this,arguments)};function iO(e,n){var t=n[0]-e[0],r=n[1]-e[1],o=Math.atan2(r,t);return o>=0?o:o+Math.PI*2}function Of(e){return iO([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function aO(e){return e.touches&&e.touches.length>=2}function Mc(e){return e?e.touches?cO(e.touches):[A5(e)]:[]}function lO(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}function Z2(e,n,t){var r=t.length,o=Da(e,r),s=o.clientX,l=o.clientY,c=o.originalClientX,d=o.originalClientY,f=Da(n,r),h=f.clientX,g=f.clientY,A=Da(t,r),b=A.clientX,y=A.clientY,x=s-h,w=l-g,k=s-b,T=l-y;return{clientX:c,clientY:d,deltaX:x,deltaY:w,distX:k,distY:T}}function Pf(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function cO(e){for(var n=Math.min(e.length,2),t=[],r=0;r<n;++r)t.push(A5(e[r]));return t}function A5(e){return{clientX:e.clientX,clientY:e.clientY}}function Da(e,n){n===void 0&&(n=e.length);for(var t={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,n),o=0;o<r;++o){var s=e[o];t.originalClientX+="originalClientX"in s?s.originalClientX:s.clientX,t.originalClientY+="originalClientY"in s?s.originalClientY:s.clientY,t.clientX+=s.clientX,t.clientY+=s.clientY}return n?{clientX:t.clientX/n,clientY:t.clientY/n,originalClientX:t.originalClientX/n,originalClientY:t.originalClientY/n}:t}var Bf=(function(){function e(n){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=n,this.prevClients=n,this.length=n.length}return e.prototype.getAngle=function(n){return n===void 0&&(n=this.prevClients),Of(n)},e.prototype.getRotation=function(n){return n===void 0&&(n=this.prevClients),Of(n)-Of(this.startClients)},e.prototype.getPosition=function(n,t){n===void 0&&(n=this.prevClients);var r=Z2(n||this.prevClients,this.prevClients,this.startClients),o=r.deltaX,s=r.deltaY;return this.movement+=Math.sqrt(o*o+s*s),this.prevClients=n,r},e.prototype.getPositions=function(n){n===void 0&&(n=this.prevClients);for(var t=this.prevClients,r=this.startClients,o=Math.min(this.length,t.length),s=[],l=0;l<o;++l)s[l]=Z2([n[l]],[t[l]],[r[l]]);return s},e.prototype.getMovement=function(n){var t=this.movement;if(!n)return t;var r=Da(n,this.length),o=Da(this.prevClients,this.length),s=r.clientX-o.clientX,l=r.clientY-o.clientY;return Math.sqrt(s*s+l*l)+t},e.prototype.getDistance=function(n){return n===void 0&&(n=this.prevClients),Pf(n)},e.prototype.getScale=function(n){return n===void 0&&(n=this.prevClients),Pf(n)/Pf(this.startClients)},e.prototype.move=function(n,t){this.startClients.forEach(function(r){r.clientX-=n,r.clientY-=t}),this.prevClients.forEach(function(r){r.clientX-=n,r.clientY-=t})},e})(),G2=["textarea","input"],uO=(function(e){sO(n,e);function n(t,r){r===void 0&&(r={});var o=e.call(this)||this;o.options={},o.flag=!1,o.pinchFlag=!1,o.data={},o.isDrag=!1,o.isPinch=!1,o.clientStores=[],o.targets=[],o.prevTime=0,o.doubleFlag=!1,o._useMouse=!1,o._useTouch=!1,o._useDrag=!1,o._dragFlag=!1,o._isTrusted=!1,o._isMouseEvent=!1,o._isSecondaryButton=!1,o._preventMouseEvent=!1,o._prevInputEvent=null,o._isDragAPI=!1,o._isIdle=!0,o._preventMouseEventId=0,o._window=window,o.onDragStart=function(A,b){if(b===void 0&&(b=!0),!(!o.flag&&A.cancelable===!1)){var y=A.type.indexOf("drag")>=-1;if(!(o.flag&&y)){o._isDragAPI=!0;var x=o.options,w=x.container,k=x.pinchOutside,T=x.preventWheelClick,I=x.preventRightClick,N=x.preventDefault,L=x.checkInput,M=x.dragFocusedInput,S=x.preventClickEventOnDragStart,O=x.preventClickEventOnDrag,R=x.preventClickEventByCondition,B=o._useTouch,_=!o.flag;if(o._isSecondaryButton=A.which===3||A.button===2,T&&(A.which===2||A.button===1)||I&&(A.which===3||A.button===2))return o.stop(),!1;if(_){var j=o._window.document.activeElement,D=A.target;if(D){var z=D.tagName.toLowerCase(),H=G2.indexOf(z)>-1,F=D.isContentEditable;if(H||F){if(L||!M&&j===D)return!1;if(j&&(j===D||F&&j.isContentEditable&&j.contains(D)))if(M)D.blur();else return!1}else if((N||A.type==="touchstart")&&j){var Z=j.tagName.toLowerCase();(j.isContentEditable||G2.indexOf(Z)>-1)&&j.blur()}(S||O||R)&&En(o._window,"click",o._onClick,!0)}o.clientStores=[new Bf(Mc(A))],o._isIdle=!1,o.flag=!0,o.isDrag=!1,o._isTrusted=b,o._dragFlag=!0,o._prevInputEvent=A,o.data={},o.doubleFlag=Lh()-o.prevTime<200,o._isMouseEvent=lO(A),!o._isMouseEvent&&o._preventMouseEvent&&o._allowMouseEvent();var q=o._preventMouseEvent||o.emit("dragStart",kn(kn({data:o.data,datas:o.data,inputEvent:A,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,isTrusted:b,isDouble:o.doubleFlag},o.getCurrentStore().getPosition()),{preventDefault:function(){A.preventDefault()},preventDrag:function(){o._dragFlag=!1}}));q===!1&&o.stop(),o._isMouseEvent&&o.flag&&N&&A.preventDefault()}if(!o.flag)return!1;var ee=0;if(_?(o._attchDragEvent(),B&&k&&(ee=setTimeout(function(){En(w,"touchstart",o.onDragStart,{passive:!1})}))):B&&k&&gn(w,"touchstart",o.onDragStart),o.flag&&aO(A)){if(clearTimeout(ee),_&&A.touches.length!==A.changedTouches.length)return;o.pinchFlag||o.onPinchStart(A)}}}},o.onDrag=function(A,b){if(o.flag){var y=o.options.preventDefault;!o._isMouseEvent&&y&&A.preventDefault(),o._prevInputEvent=A;var x=Mc(A),w=o.moveClients(x,A,!1);if(o._dragFlag){if(o.pinchFlag||w.deltaX||w.deltaY){var k=o._preventMouseEvent||o.emit("drag",kn(kn({},w),{isScroll:!!b,inputEvent:A}));if(k===!1){o.stop();return}}o.pinchFlag&&o.onPinch(A,x)}o.getCurrentStore().getPosition(x,!0)}},o.onDragEnd=function(A){if(o.flag){var b=o.options,y=b.pinchOutside,x=b.container,w=b.preventClickEventOnDrag,k=b.preventClickEventOnDragStart,T=b.preventClickEventByCondition,I=o.isDrag;(w||k||T)&&requestAnimationFrame(function(){o._allowClickEvent()}),!T&&!k&&w&&!I&&o._allowClickEvent(),o._useTouch&&y&&gn(x,"touchstart",o.onDragStart),o.pinchFlag&&o.onPinchEnd(A);var N=A!=null&&A.touches?Mc(A):[],L=N.length;L===0||!o.options.keepDragging?o.flag=!1:o._addStore(new Bf(N));var M=o._getPosition(),S=Lh(),O=!I&&o.doubleFlag;o._prevInputEvent=null,o.prevTime=I||O?0:S,o.flag||(o._dettachDragEvent(),o._preventMouseEvent||o.emit("dragEnd",kn({data:o.data,datas:o.data,isDouble:O,isDrag:I,isClick:!I,isMouseEvent:o._isMouseEvent,isSecondaryButton:o._isSecondaryButton,inputEvent:A,isTrusted:o._isTrusted},M)),o.clientStores=[],o._isMouseEvent||(o._preventMouseEvent=!0,clearTimeout(o._preventMouseEventId),o._preventMouseEventId=setTimeout(function(){o._preventMouseEvent=!1},200)),o._isIdle=!0)}},o.onBlur=function(){o.onDragEnd()},o._allowClickEvent=function(){gn(o._window,"click",o._onClick,!0)},o._onClick=function(A){o._allowClickEvent(),o._allowMouseEvent();var b=o.options.preventClickEventByCondition;b!=null&&b(A)||(A.stopPropagation(),A.preventDefault())},o._onContextMenu=function(A){var b=o.options;b.preventRightClick?o.onDragEnd(A):A.preventDefault()},o._passCallback=function(){};var s=[].concat(t),l=s[0];o._window=rO(l)?l:Is(l),o.options=kn({checkInput:!1,container:l&&!("document"in l)?Is(l):l,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var c=o.options,d=c.container,f=c.events,h=c.checkWindowBlur;if(o._useDrag=f.indexOf("drag")>-1,o._useTouch=f.indexOf("touch")>-1,o._useMouse=f.indexOf("mouse")>-1,o.targets=s,o._useDrag&&s.forEach(function(A){En(A,"dragstart",o.onDragStart)}),o._useMouse&&(s.forEach(function(A){En(A,"mousedown",o.onDragStart),En(A,"mousemove",o._passCallback)}),En(d,"contextmenu",o._onContextMenu)),h&&En(Is(),"blur",o.onBlur),o._useTouch){var g={passive:!1};s.forEach(function(A){En(A,"touchstart",o.onDragStart,g),En(A,"touchmove",o._passCallback,g)})}return o}return n.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},n.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce(function(r,o){return r+o.movement},0)},n.prototype.isDragging=function(){return this.isDrag},n.prototype.isIdle=function(){return this._isIdle},n.prototype.isFlag=function(){return this.flag},n.prototype.isPinchFlag=function(){return this.pinchFlag},n.prototype.isDoubleFlag=function(){return this.doubleFlag},n.prototype.isPinching=function(){return this.isPinch},n.prototype.scrollBy=function(t,r,o,s){s===void 0&&(s=!0),this.flag&&(this.clientStores[0].move(t,r),s&&this.onDrag(o,!0))},n.prototype.move=function(t,r){var o=t[0],s=t[1],l=this.getCurrentStore(),c=l.prevClients;return this.moveClients(c.map(function(d){var f=d.clientX,h=d.clientY;return{clientX:f+o,clientY:h+s,originalClientX:f,originalClientY:h}}),r,!0)},n.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},n.prototype.setEventData=function(t){var r=this.data;for(var o in t)r[o]=t[o];return this},n.prototype.setEventDatas=function(t){return this.setEventData(t)},n.prototype.getCurrentEvent=function(t){return t===void 0&&(t=this._prevInputEvent),kn(kn({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},n.prototype.getEventData=function(){return this.data},n.prototype.getEventDatas=function(){return this.data},n.prototype.unset=function(){var t=this,r=this.targets,o=this.options.container;this.off(),gn(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(s){gn(s,"dragstart",t.onDragStart)}),this._useMouse&&(r.forEach(function(s){gn(s,"mousedown",t.onDragStart)}),gn(o,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(s){gn(s,"touchstart",t.onDragStart)}),gn(o,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},n.prototype.onPinchStart=function(t){var r=this,o=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>o)){var s=new Bf(Mc(t));this.pinchFlag=!0,this._addStore(s);var l=this.emit("pinchStart",kn(kn({data:this.data,datas:this.data,angle:s.getAngle(),touches:this.getCurrentStore().getPositions()},s.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));l===!1&&(this.pinchFlag=!1)}},n.prototype.onPinch=function(t,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var o=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",kn(kn({data:this.data,datas:this.data,movement:this.getMovement(r),angle:o.getAngle(r),rotation:o.getRotation(r),touches:o.getPositions(r),scale:o.getScale(r),distance:o.getDistance(r)},o.getPosition(r)),{inputEvent:t,isTrusted:this._isTrusted}))}},n.prototype.onPinchEnd=function(t){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var o=this.getCurrentStore();this.emit("pinchEnd",kn(kn({data:this.data,datas:this.data,isPinch:r,touches:o.getPositions()},o.getPosition()),{inputEvent:t}))}},n.prototype.getCurrentStore=function(){return this.clientStores[0]},n.prototype.moveClients=function(t,r,o){var s=this._getPosition(t,o),l=this.isDrag;(s.deltaX||s.deltaY)&&(this.isDrag=!0);var c=!1;return!l&&this.isDrag&&(c=!0),kn(kn({data:this.data,datas:this.data},s),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:c})},n.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},n.prototype._getPosition=function(t,r){var o=this.getCurrentStore(),s=o.getPosition(t,r),l=this.clientStores.slice(1).reduce(function(f,h){var g=h.getPosition();return f.distX+=g.distX,f.distY+=g.distY,f},s),c=l.distX,d=l.distY;return kn(kn({},s),{distX:c,distY:d})},n.prototype._attchDragEvent=function(){var t=this._window,r=this.options.container,o={passive:!1};this._isDragAPI&&(En(r,"dragover",this.onDrag,o),En(t,"dragend",this.onDragEnd)),this._useMouse&&(En(r,"mousemove",this.onDrag),En(t,"mouseup",this.onDragEnd)),this._useTouch&&(En(r,"touchmove",this.onDrag,o),En(t,"touchend",this.onDragEnd,o),En(t,"touchcancel",this.onDragEnd,o))},n.prototype._dettachDragEvent=function(){var t=this._window,r=this.options.container;this._isDragAPI&&(gn(r,"dragover",this.onDrag),gn(t,"dragend",this.onDragEnd)),this._useMouse&&(gn(r,"mousemove",this.onDrag),gn(t,"mouseup",this.onDragEnd)),this._useTouch&&(gn(r,"touchstart",this.onDragStart),gn(r,"touchmove",this.onDrag),gn(t,"touchend",this.onDragEnd),gn(t,"touchcancel",this.onDragEnd))},n.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},n})(Gu);function dO(e,n){return function(t){t&&(e[n]=t)}}function fO(e,n){return function(t){var r=t.prototype;e.forEach(function(o){n(r,o)})}}function hO(e,n){return n===void 0&&(n={}),function(t,r){e.forEach(function(o){var s=n[o]||o;s in t||(t[s]=function(){for(var l,c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var f=(l=this[r])[o].apply(l,c);return f===this[r]?this:f})})}}var pO=(function(){function e(){this.keys=[],this.values=[]}var n=e.prototype;return n.get=function(t){return this.values[this.keys.indexOf(t)]},n.set=function(t,r){var o=this.keys,s=this.values,l=o.indexOf(t),c=l===-1?o.length:l;o[c]=t,s[c]=r},e})(),mO=(function(){function e(){this.object={}}var n=e.prototype;return n.get=function(t){return this.object[t]},n.set=function(t,r){this.object[t]=r},e})(),gO=typeof Map=="function",CO=(function(){function e(){}var n=e.prototype;return n.connect=function(t,r){this.prev=t,this.next=r,t&&(t.next=this),r&&(r.prev=this)},n.disconnect=function(){var t=this.prev,r=this.next;t&&(t.next=r),r&&(r.prev=t)},n.getIndex=function(){for(var t=this,r=-1;t;)t=t.prev,++r;return r},e})();function AO(e,n){var t=[],r=[];return e.forEach(function(o){var s=o[0],l=o[1],c=new CO;t[s]=c,r[l]=c}),t.forEach(function(o,s){o.connect(t[s-1])}),e.filter(function(o,s){return!n[s]}).map(function(o,s){var l=o[0],c=o[1];if(l===c)return[0,0];var d=t[l],f=r[c-1],h=d.getIndex();d.disconnect(),f?d.connect(f,f.next):d.connect(void 0,t[0]);var g=d.getIndex();return[h,g]})}var bO=(function(){function e(t,r,o,s,l,c,d,f){this.prevList=t,this.list=r,this.added=o,this.removed=s,this.changed=l,this.maintained=c,this.changedBeforeAdded=d,this.fixed=f}var n=e.prototype;return Object.defineProperty(n,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(n,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),n.caculateOrdered=function(){var t=AO(this.changedBeforeAdded,this.fixed),r=this.changed,o=[];this.cacheOrdered=t.filter(function(s,l){var c=s[0],d=s[1],f=r[l],h=f[0],g=f[1];if(c!==d)return o.push([h,g]),!0}),this.cachePureChanged=o},e})();function yO(e,n,t){var r=gO?Map:t?mO:pO,o=t||function(T){return T},s=[],l=[],c=[],d=e.map(o),f=n.map(o),h=new r,g=new r,A=[],b=[],y={},x=[],w=0,k=0;return d.forEach(function(T,I){h.set(T,I)}),f.forEach(function(T,I){g.set(T,I)}),d.forEach(function(T,I){var N=g.get(T);typeof N>"u"?(++k,l.push(I)):y[N]=k}),f.forEach(function(T,I){var N=h.get(T);typeof N>"u"?(s.push(I),++w):(c.push([N,I]),k=y[I]||0,A.push([N-k,I-w]),b.push(I===N),N!==I&&x.push([N,I]))}),l.reverse(),new bO(e,n,s,l,x,c,A,b)}var xO=typeof Map=="function"?void 0:(function(){var e=0;return function(n){return n.__DIFF_KEY__||(n.__DIFF_KEY__=++e)}})();function va(e,n){return yO(e,n,xO)}/*! *****************************************************************************
|
|
271
|
+
Copyright (c) Microsoft Corporation.
|
|
272
|
+
|
|
273
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
274
|
+
purpose with or without fee is hereby granted.
|
|
275
|
+
|
|
276
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
277
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
278
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
279
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
280
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
281
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
282
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
283
|
+
***************************************************************************** */var Ih=function(e,n){return Ih=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Ih(e,n)};function vO(e,n){Ih(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var Ai=function(){return Ai=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},Ai.apply(this,arguments)};function wO(e){var n=e.container;return n===document.body?[n.scrollLeft||document.documentElement.scrollLeft,n.scrollTop||document.documentElement.scrollTop]:[n.scrollLeft,n.scrollTop]}function V2(e,n){return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}function Lc(e){if(e){if($a(e))return document.querySelector(e)}else return null;if(J1(e))return e();if(e instanceof Element)return e;if("current"in e)return e.current;if("value"in e)return e.value}var kO=(function(e){vO(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var o=r._currentOptions;r._lock||!o||r.emit("scrollDrag",{next:function(s){r.checkScroll({container:o.container,inputEvent:s})}})},r}var t=n.prototype;return t.dragStart=function(r,o){var s=Lc(o.container);if(!s){this._flag=!1;return}var l=0,c=0,d=0,f=0;if(s===document.body)d=window.innerWidth,f=window.innerHeight;else{var h=s.getBoundingClientRect();l=h.top,c=h.left,d=h.width,f=h.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:l,left:c,width:d,height:f},this._prevScrollPos=this._getScrollPosition([0,0],o),this._currentOptions=o,this._registerScrollEvent(o)},t.drag=function(r,o){if(clearTimeout(this._timer),!!this._flag){var s=r.clientX,l=r.clientY,c=o.threshold,d=c===void 0?0:c,f=this,h=f._startRect,g=f._startPos;this._currentOptions=o;var A=[0,0];return h.top>l-d?(g[1]>h.top||l<g[1])&&(A[1]=-1):h.top+h.height<l+d&&(g[1]<h.top+h.height||l>g[1])&&(A[1]=1),h.left>s-d?(g[0]>h.left||s<g[0])&&(A[0]=-1):h.left+h.width<s+d&&(g[0]<h.left+h.width||s>g[0])&&(A[0]=1),!A[0]&&!A[1]?!1:this._continueDrag(Ai(Ai({},o),{direction:A,inputEvent:r,isDrag:!0}))}},t.checkScroll=function(r){var o=this;if(this._isWait)return!1;var s=r.prevScrollPos,l=s===void 0?this._prevScrollPos:s,c=r.direction,d=r.throttleTime,f=d===void 0?0:d,h=r.inputEvent,g=r.isDrag,A=this._getScrollPosition(c||[0,0],r),b=A[0]-l[0],y=A[1]-l[1],x=c||[b?Math.abs(b)/b:0,y?Math.abs(y)/y:0];return this._prevScrollPos=A,this._lock=!1,!b&&!y?!1:(this.emit("move",{offsetX:x[0]?b:0,offsetY:x[1]?y:0,inputEvent:h}),f&&g&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},f)),!0)},t.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},t._getScrollPosition=function(r,o){var s=o.container,l=o.getScrollPosition,c=l===void 0?wO:l;return c({container:Lc(s),direction:r})},t._continueDrag=function(r){var o=this,s,l=r.container,c=r.direction,d=r.throttleTime,f=r.useScroll,h=r.isDrag,g=r.inputEvent;if(!(!this._flag||h&&this._isWait)){var A=Lh(),b=Math.max(d+this._prevTime-A,0);if(b>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){o._continueDrag(r)},b),!1;this._prevTime=A;var y=this._getScrollPosition(c,r);this._prevScrollPos=y,h&&(this._isWait=!0),f||(this._lock=!0);var x={container:Lc(l),direction:c,inputEvent:g};return(s=r.requestScroll)===null||s===void 0||s.call(r,x),this.emit("scroll",x),this._isWait=!1,f||this.checkScroll(Ai(Ai({},r),{prevScrollPos:y,direction:c,inputEvent:g}))}},t._registerScrollEvent=function(r){this._unregisterScrollEvent();var o=r.checkScrollEvent;if(o){var s=o===!0?V2:o,l=Lc(r.container);o===!0&&(l===document.body||l===document.documentElement)?this._unregister=V2(window,this._onScroll):this._unregister=s(l,this._onScroll)}},t._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},n})(Gu),Dh=function(e,n){return Dh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Dh(e,n)};function SO(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Dh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function EO(e,n){return n={exports:{}},e(n,n.exports),n.exports}var Cl=EO(function(e,n){function t(d){if(d&&typeof d=="object"){var f=d.which||d.keyCode||d.charCode;f&&(d=f)}if(typeof d=="number")return l[d];var h=String(d),g=r[h.toLowerCase()];if(g)return g;var g=o[h.toLowerCase()];if(g)return g;if(h.length===1)return h.charCodeAt(0)}t.isEventKey=function(f,h){if(f&&typeof f=="object"){var g=f.which||f.keyCode||f.charCode;if(g==null)return!1;if(typeof h=="string"){var A=r[h.toLowerCase()];if(A)return A===g;var A=o[h.toLowerCase()];if(A)return A===g}else if(typeof h=="number")return h===g;return!1}},n=e.exports=t;var r=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=n.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
|
284
|
+
* Programatically add the following
|
|
285
|
+
*/for(s=97;s<123;s++)r[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)r[s-48]=s;for(s=1;s<13;s++)r["f"+s]=s+111;for(s=0;s<10;s++)r["numpad "+s]=s+96;var l=n.names=n.title={};for(s in r)l[r[s]]=s;for(var c in o)r[c]=o[c]});Cl.code;Cl.codes;Cl.aliases;var TO=Cl.names;Cl.title;var q2={"+":"plus","left command":"meta","right command":"meta"},Q2={shift:1,ctrl:2,alt:3,meta:4};function b5(e,n){var t=(TO[e]||n||"").toLowerCase();for(var r in q2)t=t.replace(r,q2[r]);return t.replace(/\s/g,"")}function y5(e,n){n===void 0&&(n=b5(e.keyCode,e.key));var t=MO(e);return t.indexOf(n)===-1&&t.push(n),t.filter(Boolean)}function MO(e){var n=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return n.filter(Boolean)}function J2(e){var n=e.slice();return n.sort(function(t,r){var o=Q2[t]||5,s=Q2[r]||5;return o-s}),n}var X2,LO=(function(e){SO(n,e);function n(r){r===void 0&&(r=window);var o=e.call(this)||this;return o.container=r,o.ctrlKey=!1,o.altKey=!1,o.shiftKey=!1,o.metaKey=!1,o.clear=function(){return o.ctrlKey=!1,o.altKey=!1,o.shiftKey=!1,o.metaKey=!1,o},o.keydownEvent=function(s){o.triggerEvent("keydown",s)},o.keyupEvent=function(s){o.triggerEvent("keyup",s)},o.blur=function(){o.clear(),o.trigger("blur")},En(r,"blur",o.blur),En(r,"keydown",o.keydownEvent),En(r,"keyup",o.keyupEvent),o}var t=n.prototype;return Object.defineProperty(n,"global",{get:function(){return X2||(X2=new n)},enumerable:!1,configurable:!0}),n.setGlobal=function(){return this.global},t.destroy=function(){var r=this.container;this.clear(),this.off(),gn(r,"blur",this.blur),gn(r,"keydown",this.keydownEvent),gn(r,"keyup",this.keyupEvent)},t.keydown=function(r,o){return this.addEvent("keydown",r,o)},t.offKeydown=function(r,o){return this.removeEvent("keydown",r,o)},t.offKeyup=function(r,o){return this.removeEvent("keyup",r,o)},t.keyup=function(r,o){return this.addEvent("keyup",r,o)},t.addEvent=function(r,o,s){return pu(o)?this.on("".concat(r,".").concat(J2(o).join(".")),s):$a(o)?this.on("".concat(r,".").concat(o),s):this.on(r,o),this},t.removeEvent=function(r,o,s){return pu(o)?this.off("".concat(r,".").concat(J2(o).join(".")),s):$a(o)?this.off("".concat(r,".").concat(o),s):this.off(r,o),this},t.triggerEvent=function(r,o){this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey;var s=b5(o.keyCode,o.key),l=s==="ctrl"||s==="shift"||s==="meta"||s==="alt",c={key:s,isToggle:l,inputEvent:o,keyCode:o.keyCode,ctrlKey:o.ctrlKey,altKey:o.altKey,shiftKey:o.shiftKey,metaKey:o.metaKey};this.trigger(r,c),this.trigger("".concat(r,".").concat(s),c);var d=y5(o,s);d.length>1&&this.trigger("".concat(r,".").concat(d.join(".")),c)},n})(Gu);/*! *****************************************************************************
|
|
286
|
+
Copyright (c) Microsoft Corporation.
|
|
287
|
+
|
|
288
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
289
|
+
purpose with or without fee is hereby granted.
|
|
290
|
+
|
|
291
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
292
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
293
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
294
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
295
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
296
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
297
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
298
|
+
***************************************************************************** */function NO(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),o=0,n=0;n<t;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,o++)r[o]=s[l];return r}function or(e){return Eo(e,Yr)}function jO(e,n){return e.every(function(t,r){return or(t-n[r])===0})}function RO(e,n){return!or(e[0]-n[0])&&!or(e[1]-n[1])}function _f(e){return e.length<3?0:Math.abs(XD(e.map(function(n,t){var r=e[t+1]||e[0];return n[0]*r[1]-r[0]*n[1]})))/2}function IO(e,n){var t=n.width,r=n.height,o=n.left,s=n.top,l=x5(e),c=l.minX,d=l.minY,f=l.maxX,h=l.maxY,g=t/(f-c),A=r/(h-d);return e.map(function(b){return[o+(b[0]-c)*g,s+(b[1]-d)*A]})}function x5(e){var n=e.map(function(r){return r[0]}),t=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,n),minY:Math.min.apply(Math,t),maxX:Math.max.apply(Math,n),maxY:Math.max.apply(Math,t)}}function Oh(e,n,t){var r=e[0],o=e[1],s=x5(n),l=s.minX,c=s.maxX,d=[[l,o],[c,o]],f=Cu(d[0],d[1]),h=Ph(n),g=[];if(h.forEach(function(y){var x=Cu(y[0],y[1]),w=y[0];if(jO(f,x))g.push({pos:e,line:y,type:"line"});else{var k=w5(v5(f,x),[d,y]);k.forEach(function(T){y.some(function(I){return RO(I,T)})?g.push({pos:T,line:y,type:"point"}):or(w[1]-o)!==0&&g.push({pos:T,line:y,type:"intersection"})})}}),el(g,function(y){return y[0]===r}))return!0;var A=0,b={};return g.forEach(function(y){var x=y.pos,w=y.type,k=y.line;if(!(x[0]>r))if(w==="intersection")++A;else{if(w==="line")return;if(w==="point"){var T=el(k,function(L){return L[1]!==o}),I=b[x[0]],N=T[1]>o?1:-1;I?I!==N&&++A:b[x[0]]=N}}}),A%2===1}function Cu(e,n){var t=e[0],r=e[1],o=n[0],s=n[1],l=o-t,c=s-r;Math.abs(l)<Yr&&(l=0),Math.abs(c)<Yr&&(c=0);var d=0,f=0,h=0;return l?c?(d=-c/l,f=1,h=-d*t-r):(f=1,h=-r):c&&(d=-1,h=t),[d,f,h]}function v5(e,n){var t=e[0],r=e[1],o=e[2],s=n[0],l=n[1],c=n[2],d=t===0&&s===0,f=r===0&&l===0,h=[];if(d&&f)return[];if(d){var g=-o/r,A=-c/l;return g!==A?[]:[[-1/0,g],[1/0,g]]}else if(f){var b=-o/t,y=-c/s;return b!==y?[]:[[b,-1/0],[b,1/0]]}else if(t===0){var x=-o/r,w=-(l*x+c)/s;h=[[w,x]]}else if(s===0){var x=-c/l,w=-(r*x+o)/t;h=[[w,x]]}else if(r===0){var w=-o/t,x=-(s*w+c)/l;h=[[w,x]]}else if(l===0){var w=-c/s,x=-(t*w+o)/r;h=[[w,x]]}else{var w=(r*c-l*o)/(l*t-r*s),x=-(t*w+o)/r;h=[[w,x]]}return h.map(function(k){return[k[0],k[1]]})}function w5(e,n){var t=n.map(function(g){return[0,1].map(function(A){return[Math.min(g[0][A],g[1][A]),Math.max(g[0][A],g[1][A])]})}),r=[];if(e.length===2){var o=e[0],s=o[0],l=o[1];if(or(s-e[1][0])){if(!or(l-e[1][1])){var f=Math.max.apply(Math,t.map(function(g){return g[0][0]})),h=Math.min.apply(Math,t.map(function(g){return g[0][1]}));if(or(f-h)>0)return[];r=[[f,l],[h,l]]}}else{var c=Math.max.apply(Math,t.map(function(g){return g[1][0]})),d=Math.min.apply(Math,t.map(function(g){return g[1][1]}));if(or(c-d)>0)return[];r=[[s,c],[s,d]]}}return r.length||(r=e.filter(function(g){var A=g[0],b=g[1];return t.every(function(y){return 0<=or(A-y[0][0])&&0<=or(y[0][1]-A)&&0<=or(b-y[1][0])&&0<=or(y[1][1]-b)})})),r.map(function(g){return[or(g[0]),or(g[1])]})}function Ph(e){return NO(e.slice(1),[e[0]]).map(function(n,t){return[e[t],n]})}function DO(e,n){var t=e.slice(),r=n.slice();H2(t)===-1&&t.reverse(),H2(r)===-1&&r.reverse();var o=Ph(t),s=Ph(r),l=o.map(function(h){return Cu(h[0],h[1])}),c=s.map(function(h){return Cu(h[0],h[1])}),d=[];l.forEach(function(h,g){var A=o[g],b=[];c.forEach(function(y,x){var w=v5(h,y),k=w5(w,[A,s[x]]);b.push.apply(b,k.map(function(T){return{index1:g,index2:x,pos:T,type:"intersection"}}))}),b.sort(function(y,x){return Nh(A[0],y.pos)-Nh(A[0],x.pos)}),d.push.apply(d,b),Oh(A[1],r)&&d.push({index1:g,index2:-1,pos:A[1],type:"inside"})}),s.forEach(function(h,g){if(Oh(h[1],t)){var A=!1,b=gu(d,function(y){var x=y.index2;return x===g?(A=!0,!1):!!A});b===-1&&(A=!1,b=gu(d,function(y){var x=y.index1,w=y.index2;return x===-1&&w+1===g?(A=!0,!1):!!A})),b===-1?d.push({index1:-1,index2:g,pos:h[1],type:"inside"}):d.splice(b,0,{index1:-1,index2:g,pos:h[1],type:"inside"})}});var f={};return d.filter(function(h){var g=h.pos,A=g[0]+"x"+g[1];return f[A]?!1:(f[A]=!0,!0)})}function $2(e,n){var t=DO(e,n);return t.map(function(r){var o=r.pos;return o})}function OO(e,n,t,r,o,s){for(var l=0;l<o;++l){var c=t+l*o,d=r+l*o;e[c]+=e[d]*s,n[c]+=n[d]*s}}function PO(e,n,t,r,o){for(var s=0;s<o;++s){var l=t+s*o,c=r+s*o,d=e[l],f=n[l];e[l]=e[c],e[c]=d,n[l]=n[c],n[c]=f}}function BO(e,n,t,r,o){for(var s=0;s<r;++s){var l=t+s*r;e[l]/=o,n[l]/=o}}function _O(e,n){for(var t=e.slice(),r=k5(n),o=0;o<n;++o){var s=n*o+o;if(!Eo(t[s],Yr)){for(var l=o+1;l<n;++l)if(t[n*o+l]){PO(t,r,o,l,n);break}}if(!Eo(t[s],Yr))return[];BO(t,r,o,n,t[s]);for(var l=0;l<n;++l){var c=l,d=l+o*n,f=t[d];!Eo(f,Yr)||o===l||OO(t,r,c,o,n,-f)}}return r}function qs(e,n,t){t===void 0&&(t=Math.sqrt(e.length));var r=[],o=e.length/t,s=n.length/o;if(o){if(!s)return e}else return n;for(var l=0;l<t;++l)for(var c=0;c<s;++c){r[c*t+l]=0;for(var d=0;d<o;++d)r[c*t+l]+=e[d*t+l]*n[c*o+d]}return r}function FO(e,n,t){var r=qs(e,n,t),o=r[t-1];return r.map(function(s){return s/o})}function WO(e,n){return qs(e,[1,0,0,0,0,Math.cos(n),Math.sin(n),0,0,-Math.sin(n),Math.cos(n),0,0,0,0,1],4)}function zO(e,n){return qs(e,[Math.cos(n),0,-Math.sin(n),0,0,1,0,0,Math.sin(n),0,Math.cos(n),0,0,0,0,1],4)}function UO(e,n){return qs(e,KO(n,4))}function Nc(e,n){var t=n[0],r=t===void 0?1:t,o=n[1],s=o===void 0?1:o,l=n[2],c=l===void 0?1:l;return qs(e,[r,0,0,0,0,s,0,0,0,0,c,0,0,0,0,1],4)}function Ff(e,n){var t=n[0],r=t===void 0?0:t,o=n[1],s=o===void 0?0:o,l=n[2],c=l===void 0?0:l;return qs(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,s,c,1],4)}function Bh(e,n){return qs(e,n,4)}function KO(e,n){var t=Math.cos(e),r=Math.sin(e),o=k5(n);return o[0]=t,o[1]=r,o[n]=-r,o[n+1]=t,o}function k5(e){for(var n=e*e,t=[],r=0;r<n;++r)t[r]=r%(e+1)?0:1;return t}var Oa=function(){return Oa=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},Oa.apply(this,arguments)};function ep(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function HO(e,n){return n===void 0&&(n=0),ZO(GO(e,n))}function Wf(e,n){var t=FO(e,[n[0],n[1]||0,n[2]||0,1],4),r=t[3]||1;return[t[0]/r,t[1]/r,t[2]/r]}function YO(e,n){n===void 0&&(n=document.body);for(var t=e,r=ep();t;){var o=getComputedStyle(t).transform;if(r=Bh(HO(o),r),t===n)break;t=t.parentElement}return r=_O(r,4),r[12]=0,r[13]=0,r[14]=0,r}function ZO(e){var n=ep();return e.forEach(function(t){var r=t.matrixFunction,o=t.functionValue;r&&(n=r(n,o))}),n}function GO(e,n){n===void 0&&(n=0);var t=pu(e)?e:qD(e);return t.map(function(r){var o=QD(r),s=o.prefix,l=o.value,c=null,d=s,f="";if(s==="translate"||s==="translateX"||s==="translate3d"){var h=fs(n)?Oa(Oa({},n),{"o%":n["%"]}):{"%":n,"o%":n},g=xa(l).map(function(D,z){return z===0&&"x%"in h?h["%"]=n["x%"]:z===1&&"y%"in h?h["%"]=n["y%"]:h["%"]=n["o%"],z2(D,h)}),A=g[0],b=g[1],y=b===void 0?0:b,x=g[2],w=x===void 0?0:x;c=Ff,f=[A,y,w]}else if(s==="translateY"){var k=fs(n)?Oa({"%":n["y%"]},n):{"%":n},y=z2(l,k);c=Ff,f=[0,y,0]}else if(s==="translateZ"){var w=parseFloat(l);c=Ff,f=[0,0,w]}else if(s==="scale"||s==="scale3d"){var T=xa(l).map(function(D){return parseFloat(D)}),I=T[0],N=T[1],L=N===void 0?I:N,M=T[2],S=M===void 0?1:M;c=Nc,f=[I,L,S]}else if(s==="scaleX"){var I=parseFloat(l);c=Nc,f=[I,1,1]}else if(s==="scaleY"){var L=parseFloat(l);c=Nc,f=[1,L,1]}else if(s==="scaleZ"){var S=parseFloat(l);c=Nc,f=[1,1,S]}else if(s==="rotate"||s==="rotateZ"||s==="rotateX"||s==="rotateY"){var O=mu(l),R=O.unit,B=O.value,_=R==="rad"?B:B*Math.PI/180;s==="rotate"||s==="rotateZ"?(d="rotateZ",c=UO):s==="rotateX"?c=WO:s==="rotateY"&&(c=zO),f=_}else if(s==="matrix3d")c=Bh,f=xa(l).map(function(D){return parseFloat(D)});else if(s==="matrix"){var j=xa(l).map(function(D){return parseFloat(D)});c=Bh,f=[j[0],j[1],0,0,j[2],j[3],0,0,0,0,1,0,j[4],j[5],0,1]}else d="";return{name:s,functionName:d,value:l,matrixFunction:c,functionValue:f}})}function VO(e){for(var n=5381,t=e.length;t;)n=n*33^e.charCodeAt(--t);return n>>>0}var qO=VO;function QO(e){return qO(e).toString(36)}function JO(e){if(e&&e.getRootNode){var n=e.getRootNode();if(n.nodeType===11)return n}}function XO(e,n,t){return t.original?n:n.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,o){var s=o.trim();return(s?xa(s):[""]).map(function(l){var c=l.trim();return c.indexOf("@")===0?c:c.indexOf(":global")>-1?c.replace(/\:global/g,""):c.indexOf(":host")>-1?"".concat(c.replace(/\:host/g,".".concat(e))):c?".".concat(e," ").concat(c):".".concat(e)}).join(", ")+" {"})}function $O(e,n,t,r,o){var s=ko(r),l=s.createElement("style");return l.setAttribute("type","text/css"),l.setAttribute("data-styled-id",e),l.setAttribute("data-styled-count","1"),t.nonce&&l.setAttribute("nonce",t.nonce),l.innerHTML=XO(e,n,t),(o||s.head||s.body).appendChild(l),l}function eP(e){var n="rCS"+QO(e);return{className:n,inject:function(t,r){r===void 0&&(r={});var o=JO(t),s=(o||t.ownerDocument||document).querySelector('style[data-styled-id="'.concat(n,'"]'));if(!s)s=$O(n,e,r,t,o);else{var l=parseFloat(s.getAttribute("data-styled-count"))||0;s.setAttribute("data-styled-count","".concat(l+1))}return{destroy:function(){var c,d=parseFloat(s.getAttribute("data-styled-count"))||0;d<=1?(s.remove?s.remove():(c=s.parentNode)===null||c===void 0||c.removeChild(s),s=null):s.setAttribute("data-styled-count","".concat(d-1))}}}}}var _h=function(e,n){return _h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},_h(e,n)};function S5(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_h(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var Sn=function(){return Sn=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},Sn.apply(this,arguments)};function tP(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function nP(e,n,t,r){var o=arguments.length,s=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,t):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(s=(o<3?l(s):o>3?l(n,t,s):l(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function Pa(e,n,t){for(var r=0,o=n.length,s;r<o;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return e.concat(s||Array.prototype.slice.call(n))}function rP(e){if("touches"in e){var n=e.touches[0]||e.changedTouches[0];return{clientX:n.clientX,clientY:n.clientY}}else return{clientX:e.clientX,clientY:e.clientY}}function oP(e){if(typeof Map>"u")return e.filter(function(t,r){return e.indexOf(t)===r});var n=new Map;return e.filter(function(t){return n.has(t)?!1:(n.set(t,!0),!0)})}function sP(e,n,t){var r=ko(e);return r.elementFromPoint&&r.elementFromPoint(n,t)||null}function E5(e,n,t){var r=e.tag,o=e.children,s=e.attributes,l=e.className,c=e.style,d=n||ko(t).createElement(r);for(var f in s)d.setAttribute(f,s[f]);var h=d.children;if(o.forEach(function(A,b){E5(A,h[b],d)}),l&&l.split(/\s+/g).forEach(function(A){A&&!tO(d,A)&&nO(d,A)}),c){var g=d.style;for(var f in c)g[f]=c[f]}return!n&&t&&t.appendChild(d),d}function iP(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=n||{},s=o.className,l=s===void 0?"":s,c=o.style,d=c===void 0?{}:c,f=tP(o,["className","style"]);return{tag:e,className:l,style:d,attributes:f,children:t}}function zf(e,n,t){e!==n&&t(e,n)}function eC(e,n,t){var r;t===void 0&&(t=e.data.boundArea);var o=e.distX,s=o===void 0?0:o,l=e.distY,c=l===void 0?0:l,d=e.data,f=d.startX,h=d.startY;if(n>0){var g=Math.sqrt((s*s+c*c)/(1+n*n)),A=n*g;s=(s>=0?1:-1)*A,c=(c>=0?1:-1)*g}var b=Math.abs(s),y=Math.abs(c),x=s<0?f-t.left:t.right-f,w=c<0?h-t.top:t.bottom-h;r=JD([b,y],[0,0],[x,w],!!n),b=r[0],y=r[1],s=(s>=0?1:-1)*b,c=(c>=0?1:-1)*y;var k=Math.min(0,s),T=Math.min(0,c),I=f+k,N=h+T;return{left:I,top:N,right:I+b,bottom:N+y,width:b,height:y}}function jc(e){var n=e.getBoundingClientRect(),t=n.left,r=n.top,o=n.width,s=n.height;return{pos1:[t,r],pos2:[t+o,r],pos3:[t,r+s],pos4:[t+o,r+s]}}function tC(e,n,t){var r=va(e,n),o=r.list,s=r.prevList,l=r.added,c=r.removed,d=r.maintained;return Pa(Pa(Pa([],l.map(function(f){return o[f]}),!0),c.map(function(f){return s[f]}),!0),t?d.map(function(f){var h=f[1];return o[h]}):[])}function nC(e){for(var n=0,t=e.length,r=1;r<t;++r)n=Math.max(Nh(e[r],e[r-1]),n);return n}var T5=eP(`
|
|
299
|
+
:host {
|
|
300
|
+
position: fixed;
|
|
301
|
+
display: none;
|
|
302
|
+
border: 1px solid #4af;
|
|
303
|
+
background: rgba(68, 170, 255, 0.5);
|
|
304
|
+
pointer-events: none;
|
|
305
|
+
will-change: transform;
|
|
306
|
+
z-index: 100;
|
|
307
|
+
}
|
|
308
|
+
`),Fh="selecto-selection ".concat(T5.className),tp=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],aP=Pa(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],tp),M5=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],lP=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],cP=(function(e){S5(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;o.selectedTargets=[],o.dragScroll=new kO,o._onDragStart=function(c,d){var f=c.data,h=c.clientX,g=c.clientY,A=c.inputEvent,b=o.options,y=b.selectFromInside,x=b.selectByClick,w=b.rootContainer,k=b.boundContainer,T=b.preventDragFromInside,I=T===void 0?!0:T,N=b.clickBySelectEnd,L=b.dragCondition;if(L&&!L(c)){c.stop();return}f.data={};var M=Is(o.container);f.innerWidth=M.innerWidth,f.innerHeight=M.innerHeight,o.findSelectableTargets(f),f.startSelectedTargets=o.selectedTargets,f.scaleMatrix=ep(),f.containerX=0,f.containerY=0;var S=o.container,O={left:-1/0,top:-1/0,right:1/0,bottom:1/0};if(w){var R=o.container.getBoundingClientRect();f.containerX=R.left,f.containerY=R.top,f.scaleMatrix=YO(o.container,w)}if(k){var B=fs(k)&&"element"in k?Sn({left:!0,top:!0,bottom:!0,right:!0},k):{element:k,left:!0,top:!0,bottom:!0,right:!0},_=B.element,j=void 0;if(_){$a(_)?j=ko(S).querySelector(_):_===!0?j=o.container:j=_;var D=j.getBoundingClientRect();B.left&&(O.left=D.left),B.top&&(O.top=D.top),B.right&&(O.right=D.right),B.bottom&&(O.bottom=D.bottom)}}f.boundArea=O;var z={left:h,top:g,right:h,bottom:g,width:0,height:0},H=[],F=x&&!N,Z=!1;if(!y||F){var q=o._findElement(d||A.target,f.selectableTargets);Z=!!q,F&&(H=q?[q]:[])}var ee=!y&&Z;if(ee&&!x)return c.stop(),!1;var Q=A.type,J=Q==="mousedown"||Q==="touchstart",xe=!c.isClick&&J?o.emit("dragStart",Sn(Sn({},c),{data:f.data})):!0;if(!xe)return c.stop(),!1;if(o.continueSelect?(H=tC(o.selectedTargets,H,o.continueSelectWithoutDeselect),f.startPassedTargets=o.selectedTargets):f.startPassedTargets=[],o._select(H,z,c,!0,ee&&x&&!N&&I),f.startX=h,f.startY=g,f.selectFlag=!1,f.preventDragFromInside=!1,A.target){var we=Wf(f.scaleMatrix,[h-f.containerX,g-f.containerY]);o.target.style.cssText+="position: ".concat(w?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(we[0],"px, ").concat(we[1],"px)")}if(ee&&x&&!N)A.preventDefault(),I&&(o._selectEnd(f.startSelectedTargets,f.startPassedTargets,z,c,!0),f.preventDragFromInside=!0);else{f.selectFlag=!0;var Te=o.options,Fe=Te.scrollOptions,se=Te.innerScrollOptions,X=!1;if(se){for(var ae=c.inputEvent,pe=ae.target,ge=null,G=pe;G&&G!==ko(S).body;){var he=getComputedStyle(G).overflow!=="visible";if(he){ge=G;break}G=G.parentElement}ge&&(f.innerScrollOptions=Sn({container:ge,checkScrollEvent:!0},se===!0?{}:se),o.dragScroll.dragStart(c,f.innerScrollOptions),X=!0)}!X&&Fe&&Fe.container&&o.dragScroll.dragStart(c,Fe),ee&&x&&N&&(f.selectFlag=!1,c.preventDrag())}return!0},o._onDrag=function(c){if(c.data.selectFlag){var d=o.scrollOptions,f=c.data.innerScrollOptions,h=f||(d==null?void 0:d.container);if(h&&!c.isScroll&&o.dragScroll.drag(c,f||d))return}o._checkSelected(c)},o._onDragEnd=function(c){var d=c.data,f=c.inputEvent,h=eC(c,o.options.ratio),g=d.selectFlag,A=o.container;if(f&&o.emit("dragEnd",Sn(Sn({isDouble:!!c.isDouble,isClick:!!c.isClick,isDrag:!1,isSelect:g},c),{data:d.data,rect:h})),o.target.style.cssText+="display: none;",g)d.selectFlag=!1,o.dragScroll.dragEnd();else if(o.selectByClick&&o.clickBySelectEnd){var b=o._findElement((f==null?void 0:f.target)||sP(A,c.clientX,c.clientY),d.selectableTargets);o._select(b?[b]:[],h,c)}d.preventDragFromInside||o._selectEnd(d.startSelectedTargets,d.startPassedTargets,h,c)},o._onKeyDown=function(c){var d=o.options,f=!1;if(!o._keydownContinueSelect){var h=o._sameCombiKey(c,d.toggleContinueSelect);o._keydownContinueSelect=h,f||(f=h)}if(!o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(c,d.toggleContinueSelectWithoutDeselect);o._keydownContinueSelectWithoutDeselection=h,f||(f=h)}f&&o.emit("keydown",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onKeyUp=function(c){var d=o.options,f=!1;if(o._keydownContinueSelect){var h=o._sameCombiKey(c,d.toggleContinueSelect,!0);o._keydownContinueSelect=!h,f||(f=h)}if(o._keydownContinueSelectWithoutDeselection){var h=o._sameCombiKey(c,d.toggleContinueSelectWithoutDeselect,!0);o._keydownContinueSelectWithoutDeselection=!h,f||(f=h)}f&&o.emit("keyup",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection})},o._onBlur=function(){(o._keydownContinueSelect||o._keydownContinueSelectWithoutDeselection)&&(o._keydownContinueSelect=!1,o._keydownContinueSelectWithoutDeselection=!1,o.emit("keyup",{keydownContinueSelect:o._keydownContinueSelect,keydownContinueSelectWithoutDeselection:o._keydownContinueSelectWithoutDeselection}))},o._onDocumentSelectStart=function(c){var d=ko(o.container);if(o.gesto.isFlag()){var f=o.dragContainer;f===Is(o.container)&&(f=d.documentElement);var h=Y2(f)?[f]:[].slice.call(f),g=c.target;h.some(function(A){if(A===g||A.contains(g))return c.preventDefault(),!0})}},o.target=r.portalContainer;var s=r.container;o.options=Sn({className:"",portalContainer:null,container:null,dragContainer:null,selectableTargets:[],selectByClick:!0,selectFromInside:!0,clickBySelectEnd:!1,hitRate:100,continueSelect:!1,continueSelectWithoutDeselect:!1,toggleContinueSelect:null,toggleContinueSelectWithoutDeselect:null,keyContainer:null,scrollOptions:null,checkInput:!1,preventDefault:!1,boundContainer:!1,preventDragFromInside:!0,dragCondition:null,rootContainer:null,checkOverflow:!1,innerScrollOptions:!1,getElementRect:jc,cspNonce:"",ratio:0},r);var l=o.options.portalContainer;return l&&(s=l.parentElement),o.container=s||document.body,o.initElement(),o.initDragScroll(),o.setKeyController(),o}var t=n.prototype;return t.setSelectedTargets=function(r){var o=this.selectedTargets,s=va(o,r),l=s.added,c=s.removed,d=s.prevList,f=s.list;return this.selectedTargets=r,{added:l.map(function(h){return f[h]}),removed:c.map(function(h){return d[h]}),beforeSelected:o,selected:r}},t.setSelectedTargetsByPoints=function(r,o){var s=Math.min(r[0],o[0]),l=Math.min(r[1],o[1]),c=Math.max(r[0],o[0]),d=Math.max(r[1],o[1]),f={left:s,top:l,right:c,bottom:d,width:c-s,height:d-l},h={ignoreClick:!0};this.findSelectableTargets(h);var g=this.hitTest(f,h,!0,null),A=this.setSelectedTargets(g);return Sn(Sn({},A),{rect:f})},t.selectTargetsByPoints=function(r,o){var s=new MouseEvent("mousedown",{clientX:r[0],clientY:r[1],cancelable:!0,bubbles:!0}),l=new MouseEvent("mousemove",{clientX:o[0],clientY:o[1],cancelable:!0,bubbles:!0}),c=new MouseEvent("mousemove",{clientX:o[0],clientY:o[1],cancelable:!0,bubbles:!0}),d=this.gesto,f=d.onDragStart(s);f!==!1&&(d.onDrag(l),d.onDragEnd(c))},t.getSelectedTargets=function(){return this.selectedTargets},t.triggerDragStart=function(r){return this.gesto.triggerDragStart(r),this},t.destroy=function(){var r;this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),this.dragScroll.dragEnd(),gn(document,"selectstart",this._onDocumentSelectStart),this.options.portalContainer||(r=this.target.parentElement)===null||r===void 0||r.removeChild(this.target),this.keycon=null,this.gesto=null,this.injectResult=null,this.target=null,this.container=null,this.options=null},t.getElementPoints=function(r){var o=this.getElementRect||jc,s=o(r),l=[s.pos1,s.pos2,s.pos4,s.pos3];if(o!==jc){var c=r.getBoundingClientRect();return IO(l,c)}return l},t.getSelectableElements=function(){var r=this.container,o=[];return this.options.selectableTargets.forEach(function(s){if(J1(s)){var l=s();l&&o.push.apply(o,[].slice.call(l))}else if(Y2(s))o.push(s);else if(fs(s))o.push(s.value||s.current);else{var c=[].slice.call(ko(r).querySelectorAll(s));o.push.apply(o,c)}}),o},t.checkScroll=function(){if(this.gesto.isFlag()){var r=this.scrollOptions,o=this.gesto.getEventData().innerScrollOptions,s=o||(r==null?void 0:r.container);s&&this.dragScroll.checkScroll(Sn({inputEvent:this.gesto.getCurrentEvent()},o||r))}},t.findSelectableTargets=function(r){var o=this;r===void 0&&(r=this.gesto.getEventData());var s=this.getSelectableElements(),l=s.map(function(g){return o.getElementPoints(g)});r.selectableTargets=s,r.selectablePoints=l,r.selectableParentMap=null;var c=this.options,d=c.checkOverflow||c.innerScrollOptions,f=ko(this.container);if(d){var h=new Map;r.selectableInnerScrollParentMap=h,r.selectableInnerScrollPathsList=s.map(function(g,A){for(var b=g.parentElement,y=[],x=[],w=function(){var k=h.get(b);if(!k){var T=getComputedStyle(b).overflow!=="visible";if(T){var I=jc(b);k={parentElement:b,indexes:[],points:[I.pos1,I.pos2,I.pos4,I.pos3],paths:Pa([],x)},y.push(b),y.forEach(function(N){h.set(N,k)}),y=[]}}k?(b=k.parentElement,h.get(b).indexes.push(A),x.push(b)):y.push(b),b=b.parentElement};b&&b!==f.body;)w();return x})}return c.checkOverflow||(r.selectableInners=s.map(function(){return!0})),this._refreshGroups(r),s},t.clickTarget=function(r,o){var s=rP(r),l=s.clientX,c=s.clientY,d={data:{selectFlag:!1},clientX:l,clientY:c,inputEvent:r,isClick:!0,isTrusted:!1,stop:function(){return!1}};return this._onDragStart(d,o)&&this._onDragEnd(d),this},t.setKeyController=function(){var r=this.options,o=r.keyContainer,s=r.toggleContinueSelect,l=r.toggleContinueSelectWithoutDeselect;this.keycon&&(this.keycon.destroy(),this.keycon=null),(s||l)&&(this.keycon=new LO(o||Is(this.container)),this.keycon.keydown(this._onKeyDown).keyup(this._onKeyUp).on("blur",this._onBlur))},t.setClassName=function(r){this.options.className=r,this.target.setAttribute("class","".concat(Fh," ").concat(r||""))},t.setKeyEvent=function(){var r=this.options,o=r.toggleContinueSelect,s=r.toggleContinueSelectWithoutDeselect;!o&&!s||this.keycon||this.setKeyController()},t.setKeyContainer=function(r){var o=this,s=this.options;zf(s.keyContainer,r,function(){s.keyContainer=r,o.setKeyController()})},t.getContinueSelect=function(){var r=this.options,o=r.continueSelect,s=r.toggleContinueSelect;return!s||!this._keydownContinueSelect?o:!o},t.getContinueSelectWithoutDeselect=function(){var r=this.options,o=r.continueSelectWithoutDeselect,s=r.toggleContinueSelectWithoutDeselect;return!s||!this._keydownContinueSelectWithoutDeselection?o:!o},t.setToggleContinueSelect=function(r){var o=this,s=this.options;zf(s.toggleContinueSelect,r,function(){s.toggleContinueSelect=r,o.setKeyEvent()})},t.setToggleContinueSelectWithoutDeselect=function(r){var o=this,s=this.options;zf(s.toggleContinueSelectWithoutDeselect,r,function(){s.toggleContinueSelectWithoutDeselect=r,o.setKeyEvent()})},t.setPreventDefault=function(r){this.gesto.options.preventDefault=r},t.setCheckInput=function(r){this.gesto.options.checkInput=r},t.initElement=function(){var r=this.options,o=r.dragContainer,s=r.checkInput,l=r.preventDefault,c=r.preventClickEventOnDragStart,d=r.preventClickEventOnDrag,f=r.preventClickEventByCondition,h=r.preventRightClick,g=h===void 0?!0:h,A=r.className,b=this.container;this.target=E5(iP("div",{className:"".concat(Fh," ").concat(A||"")}),this.target,b);var y=this.target;this.dragContainer=typeof o=="string"?[].slice.call(ko(b).querySelectorAll(o)):o||this.target.parentNode,this.gesto=new uO(this.dragContainer,{checkWindowBlur:!0,container:Is(b),checkInput:s,preventDefault:l,preventClickEventOnDragStart:c,preventClickEventOnDrag:d,preventClickEventByCondition:f,preventRightClick:g}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),En(document,"selectstart",this._onDocumentSelectStart),this.injectResult=T5.inject(y,{nonce:this.options.cspNonce})},t.hitTest=function(r,o,s,l){var c=this.options,d=c.hitRate,f=c.selectByClick,h=r.left,g=r.top,A=r.right,b=r.bottom,y=o.innerGroups,x=o.innerWidth,w=o.innerHeight,k=l==null?void 0:l.clientX,T=l==null?void 0:l.clientY,I=o.ignoreClick,N=[[h,g],[A,g],[A,b],[h,b]],L=function(q,ee){var Q=mu(typeof d=="function"?"".concat(d(ee)):"".concat(d)),J=I?!1:Oh([k,T],q);if(!s&&f&&J)return!0;var xe=$2(N,q);if(!xe.length)return!1;var we=_f(xe),Te=0;if(we===0&&_f(q)===0?(Te=nC(q),we=nC(xe)):Te=_f(q),Q.unit==="px")return we>=Q.value;var Fe=C5(Math.round(we/Te*100),0,100);return Fe>=Math.min(100,Q.value)},M=o.selectableTargets,S=o.selectablePoints,O=o.selectableInners;if(!y)return M.filter(function(q,ee){return O[ee]?L(S[ee],M[ee]):!1});for(var R=[],B=Math.floor(h/x),_=Math.floor(A/x),j=Math.floor(g/w),D=Math.floor(b/w),z=B;z<=_;++z){var H=y[z];if(H)for(var F=j;F<=D;++F){var Z=H[F];Z&&Z.forEach(function(q){var ee=S[q],Q=O[q],J=M[q];Q&&L(ee,J)&&R.push(J)})}}return oP(R)},t.initDragScroll=function(){var r=this;this.dragScroll.on("scrollDrag",function(o){var s=o.next;s(r.gesto.getCurrentEvent())}).on("scroll",function(o){var s=o.container,l=o.direction,c=r.gesto.getEventData().innerScrollOptions;c?r.emit("innerScroll",{container:s,direction:l}):r.emit("scroll",{container:s,direction:l})}).on("move",function(o){var s=o.offsetX,l=o.offsetY,c=o.inputEvent,d=r.gesto;if(!(!d||!d.isFlag())){var f=r.gesto.getEventData(),h=f.boundArea;f.startX-=s,f.startY-=l;var g=r.gesto.getEventData().innerScrollOptions,A=g==null?void 0:g.container,b=!1;if(A){var y=f.selectableInnerScrollParentMap,x=y.get(A);x&&(x.paths.forEach(function(w){var k=y.get(w);k.points.forEach(function(T){T[0]-=s,T[1]-=l})}),x.indexes.forEach(function(w){f.selectablePoints[w].forEach(function(k){k[0]-=s,k[1]-=l})}),b=!0)}b||f.selectablePoints.forEach(function(w){w.forEach(function(k){k[0]-=s,k[1]-=l})}),r._refreshGroups(f),h.left-=s,h.right-=s,h.top-=l,h.bottom-=l,r.gesto.scrollBy(s,l,c.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},t._select=function(r,o,s,l,c){c===void 0&&(c=!1);var d=s.inputEvent,f=s.data,h=this.setSelectedTargets(r),g=va(f.startSelectedTargets,r),A=g.added,b=g.removed,y=g.prevList,x=g.list,w={startSelected:y,startAdded:A.map(function(k){return x[k]}),startRemoved:b.map(function(k){return y[k]})};l&&this.emit("selectStart",Sn(Sn(Sn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:s.isTrusted,isDragStartEnd:c})),(h.added.length||h.removed.length)&&this.emit("select",Sn(Sn(Sn({},h),w),{rect:o,inputEvent:d,data:f.data,isTrusted:s.isTrusted,isDragStartEnd:c}))},t._selectEnd=function(r,o,s,l,c){c===void 0&&(c=!1);var d=l.inputEvent,f=l.isDouble,h=l.data,g=d&&d.type,A=g==="mousedown"||g==="touchstart",b=va(r,this.selectedTargets),y=b.added,x=b.removed,w=b.prevList,k=b.list,T=va(o,this.selectedTargets),I=T.added,N=T.removed,L=T.prevList,M=T.list;this.emit("selectEnd",{startSelected:r,beforeSelected:o,selected:this.selectedTargets,added:y.map(function(S){return k[S]}),removed:x.map(function(S){return w[S]}),afterAdded:I.map(function(S){return M[S]}),afterRemoved:N.map(function(S){return L[S]}),isDragStart:A&&c,isDragStartEnd:A&&c,isClick:!!l.isClick,isDouble:!!f,rect:s,inputEvent:d,data:h.data,isTrusted:l.isTrusted})},t._checkSelected=function(r,o){o===void 0&&(o=eC(r,this.options.ratio));var s=r.data,l=o.top,c=o.left,d=o.width,f=o.height,h=s.selectFlag,g=s.containerX,A=s.containerY,b=s.scaleMatrix,y=Wf(b,[c-g,l-A]),x=Wf(b,[d,f]),w=[];if(h){this.target.style.cssText+="display: block;left:0px;top:0px;"+"transform: translate(".concat(y[0],"px, ").concat(y[1],"px);")+"width:".concat(x[0],"px;height:").concat(x[1],"px;");var k=this.hitTest(o,s,!0,r);w=tC(s.startPassedTargets,k,this.continueSelect&&this.continueSelectWithoutDeselect)}var T=this.emit("drag",Sn(Sn({},r),{data:s.data,isSelect:h,rect:o}));if(T===!1){this.target.style.cssText+="display: none;",r.stop();return}h&&this._select(w,o,r)},t._sameCombiKey=function(r,o,s){if(!o)return!1;var l=y5(r.inputEvent,r.key),c=[].concat(o),d=pu(c[0])?c:[c];if(s){var f=r.key;return d.some(function(h){return h.some(function(g){return g===f})})}return d.some(function(h){return h.every(function(g){return l.indexOf(g)>-1})})},t._findElement=function(r,o){for(var s=r;s&&!(o.indexOf(s)>-1);)s=s.parentElement;return s},t._refreshGroups=function(r){var o,s=r.innerWidth,l=r.innerHeight,c=r.selectablePoints;if(this.options.checkOverflow){var d=(o=this.gesto.getEventData().innerScrollOptions)===null||o===void 0?void 0:o.container,f=r.selectableInnerScrollParentMap,h=r.selectableInnerScrollPathsList;r.selectableInners=h.map(function(b,y){var x=!1;return b.every(function(w){if(x)return!0;if(w===d)return x=!0,!0;var k=f.get(w);if(k){var T=c[y],I=k.points,N=$2(T,I);if(!N.length)return!1}return!0})})}if(!s||!l)r.innerGroups=null;else{var g=r.selectablePoints,A={};g.forEach(function(b,y){var x=1/0,w=-1/0,k=1/0,T=-1/0;b.forEach(function(L){var M=Math.floor(L[0]/s),S=Math.floor(L[1]/l);x=Math.min(M,x),w=Math.max(M,w),k=Math.min(S,k),T=Math.max(S,T)});for(var I=x;I<=w;++I)for(var N=k;N<=T;++N)A[I]=A[I]||{},A[I][N]=A[I][N]||[],A[I][N].push(y)}),r.innerGroups=A}},n=nP([fO(tp,function(r,o){var s={enumerable:!0,configurable:!0,get:function(){return this.options[o]}},l=Mh("get ".concat(o));r[l]?s.get=function(){return this[l]()}:s.get=function(){return this.options[o]};var c=Mh("set ".concat(o));r[c]?s.set=function(d){this[c](d)}:s.set=function(d){this.options[o]=d},Object.defineProperty(r,o,s)})],n),n})(Gu),uP=(function(e){S5(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n})(cP),Wh=function(e,n){return Wh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Wh(e,n)};function dP(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Wh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var Au=function(){return Au=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},Au.apply(this,arguments)};function fP(e,n,t,r){var o=arguments.length,s=o<3?n:r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(s=(o<3?l(s):o>3?l(n,t,s):l(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}var rC=M5.map(function(e){return Mh("on ".concat(e))}),hP=(function(e){dP(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}var t=n.prototype;return t.render=function(){return m.createElement("div",{className:Fh,ref:dO(this,"selectionElement")})},t.componentDidMount=function(){var r=this,o=this.props,s={};aP.forEach(function(l){l in o&&(s[l]=o[l])}),this.selecto=new uP(Au(Au({},s),{portalContainer:this.selectionElement})),M5.forEach(function(l,c){r.selecto.on(l,function(d){var f=r.props,h=f[rC[c]]&&f[rC[c]](d);h===!1&&d.stop()})})},t.componentDidUpdate=function(r){var o=this.props,s=this.selecto;tp.forEach(function(l){r[l]!==o[l]&&(s[l]=o[l])})},t.componentWillUnmount=function(){this.selecto.destroy()},fP([hO(lP)],n.prototype,"selecto",void 0),n})(m.PureComponent);const pP=({editor:e})=>{const{disable:n}=m.useContext(ft),t=m.useRef(null),[r,o]=m.useState({depth:0,targets:uh});return m.useEffect(()=>{const s=()=>{var l;return(l=t.current)==null?void 0:l.checkScroll()};return window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[e]),m.useEffect(()=>{let s=null;const l=()=>{s=ve.mergeRegister(e.registerCommand(p.KEY_ESCAPE_COMMAND,()=>{var A;const f=((A=t.current)==null?void 0:A.getSelectedTargets())||[],{hasSelectedBlock:h,selectedAllDocument:g}=$o();if(h)f.forEach(b=>Do(b));else if(g){const b=document.querySelector("div.ContentEditable__root");b==null||b.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL),e.registerCommand(p.KEY_DOWN_COMMAND,f=>{var x,w;const{hasSelectedBlock:h,selectedAllDocument:g}=$o();if(lS(e,f,t.current))return!0;if((f.metaKey||f.ctrlKey)&&(f.code==="KeyX"||f.code==="KeyC")&&g){f.preventDefault();const k=p.$getRoot(),T=p.$createNodeSelection(),I=M=>{T.add(M.getKey()),p.$isElementNode(M)&&M.getChildren().forEach(I)};k.getChildren().forEach(I);const N=_a.$getClipboardDataFromSelection(T),L=f.code==="KeyX";if(L){const M=document.querySelector("div.ContentEditable__root");M==null||M.classList.remove("selected-all-document")}return setTimeout(()=>{_a.copyToClipboard(e,null,N).then(()=>{L&&(e.update(()=>{const M=p.$getRoot();M.getChildren().forEach(S=>S.remove()),M.getChildrenSize()===0&&M.append(p.$createParagraphNode())},{tag:"historic"}),e.dispatchCommand(ns,!0))})},0),!0}const b=f.ctrlKey||f.metaKey||f.altKey;if(b)return!1;const y=f.key.length===1&&!b&&!f.isComposing;if(y&&g)return f.preventDefault(),!0;if(y&&h){const k=((x=t.current)==null?void 0:x.getSelectedTargets())||[],T=k.length>0?k:Array.from(document.querySelectorAll('[contenteditable="true"] > .selected-block'));if(T.length===0)return!1;f.preventDefault();const I=f.key;return e.update(()=>{const N=T.map(S=>p.$getNearestNodeFromDOMNode(S)).filter(S=>S!=null);if(N.length===0)return;const L=N[0],M=p.$createParagraphNode().append(p.$createTextNode(I));L.replace(M),N.slice(1).forEach(S=>S.remove()),M.selectEnd()}),T.forEach(N=>Do(N)),(w=t.current)==null||w.setSelectedTargets([]),!0}return!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.CUT_COMMAND,()=>{const{selectedAllDocument:f}=$o();if(f){const h=document.querySelector("div.ContentEditable__root");h==null||h.classList.remove("selected-all-document")}return!1},p.COMMAND_PRIORITY_NORMAL))},c=e.registerUpdateListener(()=>{const{hasSelectedBlock:f,selectedAllDocument:h}=$o(),g=f||h;g&&!s?l():!g&&s&&(s(),s=null)}),d=f=>{const h=f.target;if(h.closest(".video-container"))return;const g=t.current;if(!g)return;const A=h.closest(".resizable-container__inner")||h.closest("iframe");A instanceof HTMLElement&&(A.classList.contains("selected-block")||(A.classList.add("selected-block"),g.setSelectedTargets([A]),setTimeout(()=>{var b,y;(y=(b=g.props).onSelectEnd)==null||y.call(b,e)},100)))};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d),s&&s(),c()}},[e]),n?null:i.jsx(hP,{ref:t,className:"editor-selecto",dragContainer:".editor",selectableTargets:r.targets,selectByClick:!1,selectFromInside:!1,checkInput:!0,toggleContinueSelect:"shift",toggleContinueSelectWithoutDeselect:[["ctrl"],["meta"]],ratio:0,hitRate:0,onDragStart:s=>{const l=s.inputEvent.target;if(!l.closest(".editor")&&!l.closest(".editor-scroller")){s.stop();return}if(document.body.classList.contains("table-drag-active")||l.closest(".dsd__theme__tableAddRows")||l.closest(".dsd__theme__tableAddColumns")||l.closest(".dsd__theme__tableAddCorner")||l.closest(".table-cell-action-button-container")){s.stop();return}if(l.closest(".draggable-block-container")||l.closest(".draggable-block-target-line")){s.stop();return}},onSelectEnd:()=>{sS(e),o({targets:uh,depth:0})},onSelect:s=>uS(s,e,r,o,t.current),scrollOptions:cS,onScroll:s=>{document.documentElement.scrollBy(s.direction[0]*10,s.direction[1]*10)}})};function mP({editor:e,value:n,disabled:t=!1,setElementFormat:r}){const{t:o,i18n:s}=Ke.useTranslation(),l=m.useMemo(()=>s5(o),[s.language]),c=m.useMemo(()=>n==="start"||n==="end"?l.left:l[n||"left"],[n,l]),d=A=>{r(A),e.dispatchCommand(p.FORMAT_ELEMENT_COMMAND,A)},f=n==="start"||n==="end"?"left":n||"left",[h,g]=m.useState(!1);return st?i.jsxs(i.Fragment,{children:[i.jsxs(v.UnstyledButton,{component:"button",type:"button",disabled:t,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text alignment","data-test-id":"toolbar-align-menu",onClick:()=>g(!0),children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx($,{icon:c.icon,size:20,color:"currentColor"})}),i.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:i.jsx($,{icon:Jr,size:16,color:"currentColor"})})]}),i.jsx(Bt,{opened:h,onClose:()=>g(!1),title:o("editor.toolbar.align"),children:i.jsx(v.Stack,{gap:2,pb:"sm",children:o5.map(A=>{const b=f===A.format;return i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item","data-active":b||void 0,"data-test-id":A.testIdToolbar,onClick:()=>{d(A.format),g(!1)},children:[i.jsx("div",{className:"mobile-slash-menu__item-icon",children:i.jsx($,{icon:A.icon,size:16})}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:l[A.format].name}),b&&i.jsx($,{className:"mobile-slash-menu__item-check",icon:Jn,size:16})]},A.format)})})})]}):i.jsxs(v.Menu,{transitionProps:Fn,shadow:"md",position:"bottom-start",classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},onChange:g,children:[i.jsx(v.Menu.Target,{children:i.jsx(v.Tooltip,{label:o("editor.toolbar.align"),children:i.jsxs("button",{disabled:t,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-align-menu",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx($,{icon:c.icon,size:20,color:"currentColor"})}),i.jsx("span",{className:`toolbar-light-btn__chevron${h?" toolbar-light-btn__chevron--open":""}`,children:i.jsx($,{icon:Jr,size:16,color:"currentColor"})})]})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:A=>A.preventDefault(),children:i.jsx("div",{className:"toolbar-dropdown-list",children:i.jsx(i5,{effectiveValue:f,onAlignmentSelect:d,showShortcuts:!0,testScope:"toolbar"})})})]})}function gP(e,n=40){const[t,r]=m.useState(""),o=m.useRef(0),s=m.useRef(null),l=m.useRef(null);return m.useEffect(()=>{if(s.current&&clearInterval(s.current),r(""),o.current=0,!!e)return s.current=window.setInterval(()=>{r(c=>{const d=e[o.current];return o.current+=1,o.current>=e.length&&clearInterval(s.current),c+(d||"")})},n),()=>{s.current&&clearInterval(s.current)}},[e,n]),m.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[t]),{displayedText:t,containerRef:l}}const CP=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([o]),r()}})},AP=(e,n,t,r)=>{e.update(()=>{if(p.$isRangeSelection(t)){const o=p.$createTextNode(n);t.insertNodes([]);const s=o.getParent()??t.focus.getNode().getParent();if(s){const l=t.focus.getNode().getNextSibling();l?l.insertBefore(o):s.append(o),r()}}})},bP=(e,n="",t,r)=>{e.update(()=>{if(!p.$isRangeSelection(t))return;const s=t.anchor.getNode().getTopLevelElementOrThrow(),l=p.$createParagraphNode();n&&l.append(p.$createTextNode(n)),s.insertAfter(l),r()})},yP=(e,n)=>{e.update(()=>{const t=p.$getSelection();if(p.$isRangeSelection(t)){const r=t.getTextContent();n(r)}})},xP=({editor:e,response:n,onSubmit:t,setTypeMenu:r,onClose:o,t:s,selection:l})=>i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-back",leftSection:i.jsx(Ee.IconArrowNarrowLeft,{size:14}),onClick:()=>r("main"),children:s("editor.ai.back")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-replace",onClick:()=>{CP(e,n,l,o)},leftSection:i.jsx(Ee.IconReplace,{size:14}),children:s("editor.ai.menu.answer.replaceSelection")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-inline",onClick:()=>{AP(e,` ${n}`,l,o)},leftSection:i.jsx(Ee.IconTextPlus,{size:14}),children:s("editor.ai.menu.answer.addTextInline")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-add-below",onClick:()=>{bP(e,n,l,o),o()},leftSection:i.jsx(Ee.IconIndentIncrease,{size:14}),children:s("editor.ai.menu.answer.addBelowParagraph")}),i.jsx(v.Menu.Divider,{}),i.jsx(v.Menu.Label,{children:s("editor.ai.menu.answer.modifyFurther")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-continue",onClick:()=>{t(`Start with this text and continue. Output this text at the start: "${n}"`,!1)},leftSection:i.jsx(Ee.IconPlayerPlay,{size:14}),children:s("editor.ai.menu.answer.continueWriting")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-regenerate",onClick:()=>{t("Regenerate this text with another way: ")},leftSection:i.jsx(Ee.IconReload,{size:14}),children:s("editor.ai.menu.answer.regenerate")}),i.jsx(v.Menu.Item,{"data-test-id":"ai-answer-discard",onClick:o,leftSection:i.jsx(Ee.IconTrash,{size:14}),children:s("editor.ai.menu.answer.discard")})]}),vP=["arabic","bengali","chinese","dutch","english","french","german","hindi","japanese","korean","nepali","portuguese","spanish"],wP=["professional","straightforward","friendly","poetic","passiveAggressive","pirate"],kP=[{title:"modifySelection",options:[{title:"improveWriting",prompt:"Improve the quality of the text",icon:i.jsx(Ee.IconWand,{size:14})},{title:"fixMistakes",prompt:"Fix any typos or general errors in the text",icon:i.jsx(Ee.IconTextSpellcheck,{size:14})},{title:"simplify",prompt:"Shorten the text, simplifying it",icon:i.jsx(Ee.IconSortAscending,{size:14})},{title:"addMoreDetail",prompt:"Lengthen the text, going into more detail",icon:i.jsx(Ee.IconSortDescending,{size:14})}]},{title:"generate",options:[{title:"summarise",prompt:"Summarise the text",icon:i.jsx(Ee.IconNotes,{size:14})},{title:"translate",icon:i.jsx(Ee.IconLanguage,{size:14}),type:"language"},{title:"changeStyle",icon:i.jsx(Ee.IconScript,{size:14}),type:"style"},{title:"explain",prompt:"Explain what the text is about",icon:i.jsx(Ee.IconHelpOctagon,{size:14})}]}],SP=({setTypeMenu:e,onSubmit:n,t})=>i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{"data-test-id":"ai-lang-back",leftSection:i.jsx(Ee.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),vP.map(r=>i.jsx(v.Menu.Item,{"data-test-id":`ai-lang-${r}`,onClick:()=>{n(`Translate text into the ${r} language`)},children:t(`editor.ai.menu.languages.${r}`)},r))]}),EP=({setTypeMenu:e,onSubmit:n,t})=>i.jsx(i.Fragment,{children:kP.map(r=>i.jsxs("div",{children:[i.jsx(v.Menu.Label,{children:t(`editor.ai.menu.main.${r.title}`)}),r.options.map(o=>i.jsx(v.Menu.Item,{"data-test-id":`ai-op-${o.title}`,onClick:()=>{if(o.type){e(o.type);return}n(o.prompt||"")},leftSection:o.icon,children:t(`editor.ai.menu.main.${o.title}`)},o.title))]},r.title))}),TP=({setTypeMenu:e,onSubmit:n,t})=>i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{"data-test-id":"ai-style-back",leftSection:i.jsx(Ee.IconArrowNarrowLeft,{size:14}),onClick:()=>e("main"),children:t("editor.ai.back")}),wP.map(r=>i.jsx(v.Menu.Item,{"data-test-id":`ai-style-${r}`,onClick:()=>{n(`Change text into ${r} style`)},children:t(`editor.ai.menu.style.${r}`)},r))]}),MP=({keyType:e,setTypeMenu:n,editor:t,onSubmit:r,response:o,onClose:s,t:l,selection:c})=>{switch(e){case"main":return i.jsx(EP,{t:l,setTypeMenu:n,onSubmit:r});case"answer":return i.jsx(xP,{t:l,onSubmit:r,editor:t,response:o,setTypeMenu:n,onClose:s,selection:c});case"language":return i.jsx(SP,{t:l,onSubmit:r,setTypeMenu:n});case"style":return i.jsx(TP,{t:l,onSubmit:r,setTypeMenu:n});default:return null}},LP=()=>{var z;const[e,n]=m.useState({top:"0px",bottom:"auto"}),[t,r]=m.useState(!1),[o,s]=m.useState(!1),[l]=it.useLexicalComposerContext(),[c,d]=m.useState("main"),[f,h]=m.useState(""),[g,A]=m.useState(""),[b,y]=m.useState(""),[x,w]=m.useState(null),[k,T]=m.useState(!1),{fetchPromptResult:I,onTrack:N}=m.useContext(ft),{t:L}=Ke.useTranslation(),[M,S]=Ft.useResizeObserver(),O=()=>{r(!1),s(!1),y(""),d("main"),setTimeout(()=>{n({top:"0px",bottom:"auto"})},200)},R=Ft.useClickOutside(()=>{O()});m.useEffect(()=>{t?(yP(l,A),document.documentElement.style.overflow="hidden",l.update(()=>{const H=p.$getSelection();H&&w(H)}),setTimeout(()=>{var H;(H=j.current)==null||H.focus()},400)):(d("main"),document.documentElement.style.overflow="auto",y(""))},[t]);const{displayedText:B,containerRef:_}=gP(b,10),j=m.useRef(null),D=(H,F=!0)=>{const Z=H+` "${F?g:""}"Only return the modified text. Do not include any explanations, introductions, or formatting.`;T(!0),I&&I(Z,q=>{y(q),T(!1),d("answer"),h("")},()=>{T(!1)})};return m.useEffect(()=>{var F,Z,q;const{bottom:H}=((F=M.current)==null?void 0:F.getBoundingClientRect())||{bottom:0};if(H>window.innerHeight){const ee=(((q=(Z=l._rootElement)==null?void 0:Z.getBoundingClientRect())==null?void 0:q.bottom)||0)-window.innerHeight;n({...e,top:"auto",bottom:`${ee}px`})}},[S.height,t,M.current]),(z=l._rootElement)!=null&&z.parentElement?i.jsxs(i.Fragment,{children:[e.top?Br.createPortal(i.jsx(v.Transition,{mounted:!!t,transition:"scale-x",duration:300,timingFunction:"ease",children:H=>i.jsx(v.Box,{ref:R,"data-test-id":"ai-menu",style:{position:"absolute",...e,...H},className:"ai-editor-menu",children:i.jsxs(v.Menu,{opened:!!o,closeOnItemClick:!1,position:"bottom-start",zIndex:99,transitionProps:{transition:"fade",duration:300},styles:{dropdown:{overflow:"auto"}},offset:8,middlewares:{flip:!0,size:{apply({availableHeight:F,elements:Z}){requestAnimationFrame(()=>{Object.assign(Z.floating.style,{maxHeight:`${F>=425?425:F}px`})})}}},disabled:k,children:[i.jsx(v.Menu.Target,{children:i.jsxs(v.Paper,{withBorder:!0,ref:M,shadow:"lg",radius:"md",p:"0",px:"xs",children:[b&&i.jsxs(i.Fragment,{children:[i.jsxs(v.Group,{"data-test-id":"ai-response",gap:3,align:"flex-start",style:{overflowY:"auto"},mah:120,ref:_,children:[i.jsx(v.Box,{style:{flex:1},w:"auto",py:"xs",children:B}),i.jsx(v.Box,{w:"auto",mt:"xs",children:i.jsx(v.CopyButton,{value:b,timeout:2e3,children:({copied:F,copy:Z})=>i.jsx(v.Tooltip,{label:F?"Copied":"Copy",withArrow:!0,position:"right",children:i.jsx(v.ActionIcon,{"data-test-id":"ai-copy-button",color:F?"teal":"gray",variant:"subtle",onClick:Z,children:F?i.jsx(Ee.IconCheck,{size:16}):i.jsx(Ee.IconCopy,{size:16})})})})})]}),i.jsx(v.Divider,{my:"0"})]}),i.jsx(v.Box,{onMouseDown:F=>F.stopPropagation(),onClick:F=>F.stopPropagation(),children:i.jsx(v.Input,{ref:j,"data-test-id":"ai-input",size:"md",placeholder:L("editor.ai.placeholder"),rightSectionPointerEvents:"all",variant:"unstyled",value:f,onKeyDown:F=>{if(F.key==="Enter"){if(k)return;D(f)}},onChange:F=>{h(F.target.value)},rightSection:i.jsx(i.Fragment,{children:k?i.jsx(v.Loader,{"data-test-id":"ai-loader",color:"violet",size:"16",mr:"xs"}):i.jsx(v.ActionIcon,{"data-test-id":"ai-submit",color:"violet",disabled:!f,variant:"subtle",onClick:()=>{D(f)},children:i.jsx(Ee.IconSparkles,{size:16})})})})})]})}),i.jsx(v.Menu.Dropdown,{"data-test-id":"ai-menu-dropdown",className:"menu-dropdown-ai",onMouseDown:F=>{F.stopPropagation()},children:i.jsx(MP,{keyType:c,setTypeMenu:d,editor:l,onSubmit:D,response:b,onClose:O,t:L,selection:x})})]})})}),l._rootElement.parentElement):null,i.jsx("svg",{width:"0",height:"0","aria-hidden":"true",style:{position:"absolute"},children:i.jsx("defs",{children:i.jsxs("linearGradient",{id:"ai-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[i.jsx("stop",{offset:"0%",stopColor:"#e599f7"}),i.jsx("stop",{offset:"36%",stopColor:"#f783ac"}),i.jsx("stop",{offset:"99%",stopColor:"#fab005"})]})})}),i.jsxs("button",{disabled:!1,className:"toolbar-light-btn toolbar-light-btn--ai","aria-label":L("editor.toolbar.ai","Improve writing"),type:"button","data-test-id":"toolbar-ai",onClick:()=>{const H=document.querySelector(".floating-text-format-popup");if(H.style.opacity="0",H.style.transform="translate(-10000px, -10000px)",H!=null&&H.style){const F=window.getSelection();if((F==null?void 0:F.rangeCount)===0)return null;if(F){const q=F.getRangeAt(0).getBoundingClientRect(),ee=document.querySelector(".content-editable-wrapper"),Q=ee.getBoundingClientRect(),J=q.top-Q.top+ee.scrollTop+q.height+"px";n({top:J,bottom:"auto"}),N==null||N("ai_menu_opened"),setTimeout(()=>{r(!0)},0),setTimeout(()=>{s(!0)},100)}}},children:[i.jsx("span",{className:"toolbar-light-btn__icon toolbar-ai-icon",children:i.jsx($,{icon:F8,size:20})}),!st&&i.jsx("span",{className:"toolbar-light-btn__text toolbar-ai-text",children:L("editor.toolbar.ai","Improve writing")})]})]}):null},L5=({children:e,inline:n=!1,nodeKey:t,popoverProps:r,defaultTabValue:o,onWriteTabToNode:s,galleryCollection:l,...c})=>{var L;const{imagePickerSettings:d,maxFileSize:f}=m.useContext(ft),{giphyToken:h,unsplashClientId:g,maxUploadFiles:A}=d,b=n&&!!t,y=(L=d.galleryCollection)!=null&&L.length?d.galleryCollection:l,w=Array.isArray(y)&&y.length>0||n,{showTabKeys:k,visibleInFilePicker:T}=m.useMemo(()=>m7(d,{hasOnUpload:!!c.onUpload,hasGalleryInPicker:w}),[d,w,c.onUpload]),I=m.useMemo(()=>$g(o,T),[o,T]);m.useLayoutEffect(()=>{if(!b||!s)return;const M=$g(o,T);M!==o&&s(M)},[b,o,s,T]);const N={showTabs:k,dropZoneProps:{maxFiles:A||1,maxSize:f*1024*1024},giphyToken:h,unsplashClientId:g,inline:n,tab:I,popoverProps:n?{...r,opened:!0}:r,children:n?null:e,...c,galleryCollection:y??[]};return i.jsx(At.FilePicker,{...N})},NP=({editor:e,isEditable:n,t})=>{const{fetchUploadMedia:r,imperativeHandleRef:o}=m.useContext(ft),[s,l]=m.useState(!1);return r?i.jsx(L5,{popoverProps:{opened:s,position:"bottom",onChange:l},onUpload:c=>{var d,f;!r||!c.length||(l(!1),(d=o==null?void 0:o.current)!=null&&d.insertImages&&((f=o.current)==null||f.insertImages(c)))},onChange:c=>{e.dispatchCommand(O1,{altText:"",src:c}),l(!1)},children:i.jsx(v.Tooltip,{label:t("editor.image.add_photo"),children:i.jsx("button",{disabled:!n,type:"button",onClick:()=>l(c=>!c),className:"toolbar-item spaced","data-test-id":"toolbar-insert-image",children:i.jsx(bn,{name:"photo"})})})}):null};function N5({editor:e,canUndo:n,canRedo:t,isEditable:r,onClearFormatting:o}){return[{type:"action",id:"undo",icon:Ek,label:"Undo",shortcut:_s?"(⌘Z)":"(Ctrl+Z)",disabled:!n,onClick:()=>e.dispatchCommand(p.UNDO_COMMAND,void 0),testId:"toolbar-undo"},{type:"action",id:"redo",icon:mk,label:"Redo",shortcut:_s?"(⌘⇧Z)":"(Ctrl+Shift+Z)",disabled:!t,onClick:()=>e.dispatchCommand(p.REDO_COMMAND,void 0),testId:"toolbar-redo"},{type:"divider",id:"divider-1"},{type:"action",id:"clear",icon:l1,label:"Clear format",disabled:!r,onClick:o,testId:"toolbar-more-clear-format"}]}function jP({opened:e,onClose:n,editor:t,canUndo:r,canRedo:o,isEditable:s,onClearFormatting:l}){const{t:c}=Ke.useTranslation(),d=N5({editor:t,canUndo:r,canRedo:o,isEditable:s,onClearFormatting:l});return i.jsx(Bt,{opened:e,onClose:n,title:c("editor.toolbar.moreSettings","More settings"),children:i.jsx(v.Stack,{gap:2,pb:"sm",children:d.map(f=>f.type==="divider"?null:i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item mobile-slash-menu__item--filled","data-test-id":f.testId,disabled:f.disabled,onClick:()=>{f.onClick(),n()},children:[i.jsx("div",{className:"mobile-slash-menu__item-icon",children:i.jsx($,{icon:f.icon,size:16})}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:f.label})]},f.id))})})}function RP({opened:e,onClose:n,editor:t,mode:r,excludeNodes:o,plugins:s,onTrack:l}){const{t:c}=Ke.useTranslation(),d=m.useMemo(()=>Q1({editor:t,isToolbar:!1,excludeNodes:o,t:c,plugins:s,onTrack:l}).map(g=>({...g,blocks:g.blocks.filter(A=>!A.hide)})).filter(g=>g.blocks.length>0),[t,o,c,s,l,r]),f=h=>{n(),requestAnimationFrame(()=>{t.focus(),h.onSelect()})};return i.jsx(Bt,{opened:e,onClose:n,title:c("editor.menu.mobileTitle","Insert blok"),children:i.jsx(v.Stack,{gap:"md",pb:"sm",children:d.map(h=>i.jsxs(v.Box,{className:"mobile-slash-menu__group",children:[i.jsx(v.Text,{className:"mobile-slash-menu__group-label",size:"xs",c:"dimmed",children:h.name}),i.jsx(v.Stack,{gap:2,children:h.blocks.map(g=>i.jsxs(v.UnstyledButton,{className:"mobile-slash-menu__item",onClick:()=>f(g),"data-test-id":g["data-test-id"],children:[i.jsx(v.Box,{className:"mobile-slash-menu__item-icon",children:g.icon}),i.jsx(v.Text,{className:"mobile-slash-menu__item-text",size:"sm",children:g.name})]},g.key))})]},h.key))})})}const IP={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"},DP={paragraph:wu,h1:t1,h2:n1,h3:r1,h4:Ta,h5:Ta,h6:Ta,bullet:Qc,number:o1,check:e1,code:Ka,quote:a1},hr=m.forwardRef((e,n)=>i.jsx(v.Tooltip,{...e,ref:n,disabled:st||e.disabled}));hr.displayName="Tooltip";function oC({mode:e,isFloating:n}){const[t]=it.useLexicalComposerContext(),{colorScheme:r}=v.useMantineColorScheme(),o=r==="dark",[s,l]=m.useState(t),[c,d]=m.useState("paragraph"),[f,h]=m.useState("root"),[g,A]=m.useState(null),[b,y]=m.useState("#000"),[x,w]=m.useState("#fff"),[k,T]=m.useState("left"),[I,N]=m.useState(!1),[L,M]=m.useState(!1),[S,O]=m.useState(!1),[R,B]=m.useState(!1),[_,j]=m.useState(!1),[D,z]=m.useState(!1),[H,F]=m.useState(!1),[Z,q]=m.useState(!1),[ee,Q]=m.useState(!1),[J,xe]=m.useState(!1),[we]=q1(),[Te,Fe]=m.useState(!1),[se,X]=m.useState(!0),[ae,pe]=m.useState(!0),[ge,G]=m.useState(0),[he,oe]=m.useState(()=>t.isEditable()),K=e||"default",{excludeNodes:Y,fetchUploadMedia:ne,fetchPromptResult:fe,commentController:Ce,onTrack:Le,plugins:Ue}=m.useContext(ft),{t:ce}=Ke.useTranslation(),je=m.useCallback(()=>{const be=p.$getSelection();if(p.$isRangeSelection(be)){const Se=be.anchor.getNode(),We=be.focus.getNode(),Be=p.$isRootNode(Se)?null:Se.getTopLevelElementOrThrow(),Xe=p.$isRootNode(We)?null:We.getTopLevelElementOrThrow();let Ye=Se.getKey()==="root"?Se:ve.$findMatchingParent(Se,Ot=>{const bt=Ot.getParent();return bt!==null&&p.$isRootOrShadowRoot(bt)});be.getNodes().length===1?X(!0):X(!1),Ye===null&&(Ye=Se.getTopLevelElementOrThrow());const ze=Ye.getKey(),at=s.getElementByKey(ze);t.update(()=>{M(be.hasFormat("bold")),O(be.hasFormat("italic")),B(be.hasFormat("underline")),j(be.hasFormat("strikethrough")),z(be.hasFormat("subscript")),F(be.hasFormat("superscript")),q(be.hasFormat("code"))});const tt=Mi(be),ot=tt.getParent();cn.$isLinkNode(ot)||cn.$isLinkNode(tt)?N(!0):N(!1),y(dn.$getSelectionStyleValueForProperty(be,"color","inherit")),w(dn.$getSelectionStyleValueForProperty(be,"background-color","inherit"));let qe;cn.$isLinkNode(ot)&&(qe=ve.$findMatchingParent(tt,Ot=>p.$isElementNode(Ot)&&!Ot.isInline())),T(p.$isElementNode(qe)?qe.getFormatType():p.$isElementNode(tt)?tt.getFormatType():(ot==null?void 0:ot.getFormatType())||"left");const ut=ve.$findMatchingParent(tt,St);if(St(ut)?h("table"):h("root"),at!==null&&(Be==null?void 0:Be.getKey())===(Xe==null?void 0:Xe.getKey()))if(A(ze),gt(Ye)){const Ot=ve.$getNearestNodeOfType(Se,br),bt=Ot?Ot.getListType():Ye.getListType();d(bt)}else{const Ot=fn.$isHeadingNode(Ye)?Ye.getTag():Ye.getType();Ot in IP&&d(Ot)}else d("")}},[s,X]);m.useEffect(()=>t.registerCommand(p.SELECTION_CHANGE_COMMAND,(be,Se)=>(je(),l(Se),!1),p.COMMAND_PRIORITY_CRITICAL),[t,je]),m.useEffect(()=>ve.mergeRegister(t.registerEditableListener(be=>{oe(be)}),s.registerUpdateListener(({editorState:be})=>{be.read(()=>{je()})}),s.registerCommand(p.CAN_UNDO_COMMAND,be=>(Q(be),!1),p.COMMAND_PRIORITY_CRITICAL),s.registerCommand(p.CAN_REDO_COMMAND,be=>(xe(be),!1),p.COMMAND_PRIORITY_CRITICAL)),[je,s,t]),m.useEffect(()=>ve.mergeRegister(s.registerCommand(p.KEY_MODIFIER_COMMAND,be=>{const Se=be,{code:We,metaKey:Be}=Se;if(We==="KeyK"&&Be){Se.preventDefault();let Xe;return I?Xe=null:Xe=Ia("https://"),s.dispatchCommand(cn.TOGGLE_LINK_COMMAND,Xe)}return!1},p.COMMAND_PRIORITY_NORMAL),s.registerCommand(p.CLICK_COMMAND,()=>{const be=p.$getSelection();if(p.$isRangeSelection(be)){const Se=be.getNodes(),We=Se.length>0&&Se.every(Be=>fo(Be)||St(Be)||Cr(Be)?!1:p.$isElementNode(Be)||p.$isTextNode(Be));pe(!We)}return!1},p.COMMAND_PRIORITY_NORMAL)),[s,I]),m.useEffect(()=>{const be=Se=>{var Ye,et;const We=t.getRootElement();if(!We||We.contains(document.activeElement)||!(Se.ctrlKey||Se.metaKey)&&!Se.altKey||!!!((Ye=document.activeElement)!=null&&Ye.closest(".toolbar-dark-dropdown")||(et=document.activeElement)!=null&&et.closest(".toolbar-wrapper")))return;t.dispatchCommand(p.KEY_DOWN_COMMAND,Se)&&(Se.preventDefault(),t.focus())};return document.addEventListener("keydown",be,!0),()=>document.removeEventListener("keydown",be,!0)},[t]),m.useCallback((be,Se)=>{s.update(()=>{const We=p.$getSelection();We!==null&&dn.$patchStyleText(We,be)},Se?{tag:"historic"}:{})},[s]);const Ze=m.useCallback(()=>{Le==null||Le("text_formatting_cleared"),setTimeout(()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"")}),s.update(()=>{const be=p.$getSelection();if(p.$isRangeSelection(be)){const Se=be.anchor,We=be.focus,Be=be.getNodes(),Xe=be.extract();if(Se.key===We.key&&Se.offset===We.offset)return;Be.forEach((Ye,et)=>{if(In(Ye)){let ze=Ye;et===0&&Se.offset!==0&&(ze=ze.splitText(Se.offset)[1]||ze),et===Be.length-1&&(ze=ze.splitText(We.offset)[0]||ze);const at=Xe[0];Be.length===1&&In(at)&&(ze=at),ze.__style!==""&&ze.setStyle(""),ze.__format!==0&&ze.setFormat(0);const tt=ve.$getNearestBlockElementAncestorOrThrow(ze);tt.__format!==0&&tt.setFormat(""),tt.__indent!==0&&tt.setIndent(0),Ye=ze}else fn.$isHeadingNode(Ye)||fn.$isQuoteNode(Ye)?Ye.replace(p.$createParagraphNode(),!0):eo.$isDecoratorBlockNode(Ye)&&Ye.setFormat("")})}})},[s]),dt=m.useCallback(()=>{Le==null||Le("block_link_inserted"),t.dispatchCommand(Tu,"create"),setTimeout(()=>{oe(!0)},1e3)},[t]),Ct=()=>{Le==null||Le("block_comment_added"),t.dispatchCommand(Hu,void 0),G(be=>be+1)},Wt=DP[c]??wu,Dt=!b||b==="inherit"||b==="",ue=!x||x==="inherit"||x==="",re=!Dt,ke=!ue,[_e,me]=m.useState(!1),ie=n&&st,[Ae,Oe]=m.useState(!1),[He,$e]=m.useState(!1),rt=()=>{Oe(!0)},Je=()=>{s.dispatchCommand(EA,void 0)},ct=m.useRef(!1);return m.useEffect(()=>{if(!ie)return;const be=We=>{const Be=We.target;Be&&(ct.current=!Be.closest('[contenteditable="true"]'))};document.addEventListener("pointerdown",be,!0);const Se=s.registerUpdateListener(({dirtyElements:We,dirtyLeaves:Be,tags:Xe})=>{(We.size>0||Be.size>0)&&ct.current&&!Xe.has("historic")&&!Xe.has("collaboration")&&(ct.current=!1,Je())});return()=>{document.removeEventListener("pointerdown",be,!0),Se()}},[ie,s]),i.jsxs("div",{className:`toolbar-wrapper${ie?" toolbar-wrapper--touch-floating":""}`,tabIndex:-1,children:[i.jsxs("div",{className:"toolbar",children:[ie&&i.jsx("div",{className:"toolbar-section toolbar-section--leading-sticky",children:i.jsx(v.UnstyledButton,{component:"button",type:"button",className:"toolbar-item",onMouseDown:be=>be.preventDefault(),onClick:rt,"data-test-id":"toolbar-insert-slash","aria-label":"Insert",children:i.jsx($,{icon:Bc,size:20,color:"currentColor"})})}),e==="editor"&&!0&&fe&&i.jsx("div",{className:"toolbar-section",children:i.jsx(m.Suspense,{fallback:null,children:i.jsx(LP,{})})}),i.jsx("div",{className:"toolbar-section",children:i.jsx(f5,{disabled:ae,blockType:c,rootType:f,editor:t,mode:K,fetchUploadMedia:ne,excludeNodes:Y,children:i.jsx(hr,{label:ce("editor.toolbar.turnInto"),children:i.jsxs("button",{disabled:ae,className:"toolbar-light-btn toolbar-light-btn--compact","aria-label":"Formatting options for text style",type:"button","data-test-id":"toolbar-block-controls",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx($,{icon:Wt,size:20,color:"currentColor"})}),i.jsx("span",{className:"toolbar-light-btn__chevron",children:i.jsx($,{icon:Jr,size:16,color:"currentColor"})})]})})})}),i.jsxs("div",{className:"toolbar-section",children:[i.jsx(hr,{label:ce("editor.toolbar.bold"),children:i.jsx("button",{disabled:!he,onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item"+(L?" active":""),type:"button","data-test-id":"toolbar-bold",children:i.jsx($,{icon:mA,size:20,color:"currentColor"})})}),i.jsx(hr,{label:ce("editor.toolbar.italic"),children:i.jsx("button",{disabled:!he,onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item"+(S?" active":""),type:"button","data-test-id":"toolbar-italic",children:i.jsx($,{icon:gA,size:20,color:"currentColor"})})}),i.jsx(hr,{label:ce("editor.toolbar.underline"),children:i.jsx("button",{disabled:!he,"data-test-id":"toolbar-underline",onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item"+(R?" active":""),type:"button",children:i.jsx($,{icon:AA,size:20,color:"currentColor"})})}),i.jsx(hr,{label:ce("editor.toolbar.strike"),children:i.jsx("button",{disabled:!he,className:"toolbar-item"+(_?" active":""),"data-test-id":"toolbar-strikethrough",onClick:()=>{s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"strikethrough")},children:i.jsx($,{icon:CA,size:20,color:"currentColor"})})}),i.jsx(hr,{disabled:!he,label:ce("editor.toolbar.link"),children:i.jsx("button",{onClick:dt,className:"toolbar-item"+(I?" active":""),onMouseDown:()=>{oe(!1)},type:"button","data-test-id":"toolbar-link",children:i.jsx($,{icon:ji,size:20,color:"currentColor"})})}),i.jsx(hr,{label:ce("editor.toolbar.code"),children:i.jsx("button",{disabled:!he,onClick:()=>{Le==null||Le("text_code_toggled"),s.dispatchCommand(p.FORMAT_TEXT_COMMAND,"code")},className:"toolbar-item"+(Z?" active":""),type:"button","data-test-id":"toolbar-code",children:i.jsx($,{icon:Ka,size:20,color:"currentColor"})})}),i.jsx(hr,{label:ce("editor.toolbar.equation","Inline equation"),children:i.jsx("button",{disabled:!he,className:"toolbar-item",onClick:()=>{Le==null||Le("block_inline_equation_inserted"),s.dispatchCommand(Ha,"inline")},"data-test-id":"toolbar-inline-equation",children:i.jsx($,{icon:Ua,size:20,color:"currentColor"})})}),i.jsx(Eh,{fontColor:b,bgColor:x,disabled:!he,onOpenChange:me,onChange:be=>{y(be.color),w(be["background-color"]),s.update(()=>{const Se=p.$getSelection();Se!==null&&dn.$patchStyleText(Se,be)})},children:i.jsx(hr,{label:ce("editor.toolbar.color","Text color"),children:i.jsxs("button",{disabled:!he,className:"toolbar-light-btn toolbar-light-btn--compact"+(ke?" toolbar-light-btn--color-active":""),style:ke?{backgroundColor:`color-mix(in srgb, ${x} 85%, transparent)`}:void 0,type:"button","data-test-id":"toolbar-color-picker",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx(At.TextColorIcon,{size:20,color:re?b:o?"#FFFFFF":"#000000",showBorder:!0})}),i.jsx("span",{className:`toolbar-light-btn__chevron${_e?" toolbar-light-btn__chevron--open":""}`,children:i.jsx($,{icon:Jr,size:16,color:"currentColor"})})]})})})]}),i.jsx("div",{className:"toolbar-section",children:i.jsx(mP,{disabled:!he,value:k,editor:t,isRTL:Te,setElementFormat:T})}),Ce&&i.jsx("div",{className:"toolbar-section",children:i.jsx(hr,{label:ce("editor.toolbar.comment"),children:i.jsxs("button",{onClick:Ct,className:"toolbar-light-btn",type:"button","data-test-id":"toolbar-comment",children:[i.jsx("span",{className:"toolbar-light-btn__icon",children:i.jsx($,{icon:$8,size:20,color:"currentColor"})}),!st&&i.jsx("span",{className:"toolbar-light-btn__text",children:ce("editor.toolbar.comment")})]})},ge)}),e==="default"&&i.jsx("div",{className:"toolbar-section",children:i.jsx(NP,{editor:t,t:ce,isEditable:he})}),i.jsx("div",{className:"toolbar-section",children:ie?i.jsx(hr,{label:ce("editor.toolbar.more"),children:i.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":ce("editor.toolbar.more"),onClick:()=>$e(!0),style:{width:"auto"},children:i.jsxs(v.Flex,{align:"center",justify:"center",gap:6,children:[i.jsx($,{icon:qn,size:20,color:"currentColor"}),i.jsx(v.Text,{size:"sm",children:ce("editor.toolbar.more")})]})})}):i.jsxs(v.Menu,{transitionProps:Fn,shadow:"md",position:"bottom-end",offset:4,withinPortal:!0,classNames:{dropdown:"toolbar-dark-dropdown"},styles:{dropdown:{zIndex:1e3},item:{gap:"var(--mantine-spacing-sm)"}},children:[i.jsx(v.Menu.Target,{children:i.jsx(hr,{label:ce("editor.toolbar.more"),children:i.jsx(v.UnstyledButton,{className:"toolbar-item",type:"button","data-test-id":"toolbar-more","aria-label":ce("editor.toolbar.more"),children:i.jsx(v.Flex,{align:"center",justify:"center",children:i.jsx($,{icon:qn,size:20,color:"currentColor"})})})})}),i.jsx(v.Menu.Dropdown,{onMouseDown:be=>be.preventDefault(),children:N5({editor:s,canUndo:ee,canRedo:J,isEditable:he,onClearFormatting:Ze}).map(be=>be.type==="divider"?i.jsx(v.Menu.Divider,{},be.id):i.jsx(v.Menu.Item,{leftSection:i.jsx(v.Flex,{align:"center",justify:"center",c:"gray.6",children:i.jsx($,{icon:be.icon,size:16})}),rightSection:be.shortcut?i.jsx(v.Text,{size:"xs",c:"dimmed",children:be.shortcut}):void 0,disabled:be.disabled,onClick:be.onClick,"data-test-id":be.testId,children:be.label},be.id))})]})}),we]}),ie&&i.jsx(jP,{opened:He,onClose:()=>$e(!1),editor:s,canUndo:ee,canRedo:J,isEditable:he,onClearFormatting:Ze}),ie&&i.jsx("div",{className:"toolbar-section toolbar-section--trailing-fixed",children:i.jsx(v.UnstyledButton,{component:"button",type:"button",className:"toolbar-item",onMouseDown:be=>be.preventDefault(),onClick:Je,"data-test-id":"toolbar-hide","aria-label":"Hide toolbar",children:i.jsx($,{icon:ik,size:20,color:"currentColor"})})}),ie&&i.jsx(RP,{opened:Ae,onClose:()=>Oe(!1),editor:s,mode:K,excludeNodes:Y,fetchUploadMedia:ne,plugins:Ue,onTrack:Le})]})}function sC(e){let n=0;const t=[];return e.split(/(<[^>]+>)/g).filter(Boolean).forEach(o=>{o.startsWith("</")?(n=Math.max(0,n-2),t.push(" ".repeat(n)+o)):o.startsWith("<")?(t.push(" ".repeat(n)+o),!o.endsWith("/>")&&!o.match(/<(br|img|hr|input)[^>]*>/)&&(n+=2)):o.trim()&&t.push(" ".repeat(n)+o)}),t.join(`
|
|
309
|
+
`)}function OP(){const[e]=it.useLexicalComposerContext(),[n,t]=m.useState("tree"),[r,o]=m.useState(""),[s,l]=m.useState(!1);m.useEffect(()=>{if(n==="dom"){const d=()=>{const f=e.getRootElement();f&&o(f.innerHTML)};return d(),e.registerUpdateListener(d)}},[n,e]);const c=async(d=!1)=>{try{const f=d?sC(r):r;await navigator.clipboard.writeText(f),l(!0),setTimeout(()=>l(!1),2e3)}catch(f){console.error("Failed to copy:",f)}};return i.jsxs("div",{className:"tree-view-output",children:[i.jsxs("div",{style:{display:"flex",gap:"4px",padding:"8px",borderBottom:"1px solid #333",background:"#1e1e1e"},children:[i.jsx("button",{onClick:()=>t("tree"),style:{padding:"6px 12px",background:n==="tree"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:n==="tree"?"bold":"normal"},children:"Tree View"}),i.jsx("button",{onClick:()=>t("dom"),style:{padding:"6px 12px",background:n==="dom"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:n==="dom"?"bold":"normal"},children:"DOM HTML"})]}),n==="tree"&&i.jsx(v9.TreeView,{viewClassName:"tree-view-output",treeTypeButtonClassName:"debug-treetype-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",editor:e}),n==="dom"&&i.jsxs("div",{style:{padding:"16px",background:"#1e1e1e",height:"100%",overflow:"auto"},children:[i.jsx("div",{style:{display:"flex",gap:"8px",marginBottom:"16px",position:"sticky",top:0,background:"#1e1e1e",paddingBottom:"8px",zIndex:10},children:i.jsx("button",{onClick:()=>c(!0),style:{padding:"6px 12px",background:s?"#28a745":"#6c757d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"11px",fontWeight:"bold"},children:s?"✓ Copied!":"Copy Formatted"})}),i.jsx("div",{style:{padding:"12px",background:"#252526",borderRadius:"4px",border:"1px solid #3e3e42"},children:i.jsx("pre",{style:{margin:0,whiteSpace:"pre",color:"#9cdcfe",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.4"},children:sC(r)})})]})]})}function iC({className:e}){return i.jsx(w9.ContentEditable,{className:e||"ContentEditable__root"})}const PP="_listContainer_1l5sq_1",BP="_list_1l5sq_1",_P="_text_1l5sq_55",Uf={listContainer:PP,list:BP,text:_P},FP=({editor:e})=>{var h;const[n,t]=m.useState(!1),{t:r,i18n:o}=Ke.useTranslation(),{excludeNodes:s,disable:l}=m.useContext(ft),c=g=>{const A=document.querySelector(".editor-container");if(g){A.classList.add("empty-editor");return}A.classList.remove("empty-editor")};m.useEffect(()=>{e.update(()=>{eh()&&(t(!0),c(!0))}),ve.mergeRegister(e.registerCommand(p.BLUR_COMMAND,()=>{const g=!!eh();return t(g),c(g),!1},p.COMMAND_PRIORITY_LOW),e.registerCommand(p.FOCUS_COMMAND,()=>(t(!1),c(!1),!1),p.COMMAND_PRIORITY_LOW))},[]);const d=(g,A)=>{g==null||g.update(()=>{g.focus();const y=p.$getRoot().getFirstChild();y&&A&&(A(y),t(!1))})},f=m.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:i.jsx(Ee.IconH1,{stroke:2,size:18}),onSelect:()=>d(e,g=>{g.replace(fn.$createHeadingNode("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:i.jsx(Ee.IconColumns2,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(V1,M1)})}},{title:r("editor.emptyPageOptions.list"),icon:i.jsx(Ee.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(Iu,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:i.jsx(Ee.IconCode,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(Gb,void 0)})}},{title:r("editor.menu.media.excalidraw.hint.description"),icon:i.jsx(Ee.IconPalette,{stroke:2,size:18}),onSelect:()=>{Promise.resolve().then(()=>require("./layers.CVCmClj2.js")).then(({INSERT_EXCALIDRAW_COMMAND:g})=>{d(e,()=>{e.dispatchCommand(g,void 0)})})}},s.template?{title:r("editor.emptyPageOptions.template"),icon:i.jsx(Ee.IconTemplate,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{e==null||e.dispatchCommand(kA,void 0)})}}:null,{title:r("editor.emptyPageOptions.callout"),icon:i.jsx(Ee.IconBaseline,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(Eu,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:i.jsx(Ee.IconTable,{stroke:2,size:18}),onSelect:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(Du,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:i.jsx(Ee.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[o.language]);return!n||l?null:i.jsx(v.Portal,{target:((h=e==null?void 0:e._rootElement)==null?void 0:h.parentElement)||document.body,children:i.jsx("ul",{className:`${Uf.listContainer} empty-page-options`,children:f.map((g,A)=>g?i.jsxs(v.Menu,{disabled:A!==f.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:u5,width:200,transitionProps:Fn,children:[i.jsx(v.Menu.Target,{children:i.jsxs("li",{className:Uf.list,onClick:g.onSelect,children:[g.icon," ",i.jsx("span",{className:Uf.text,children:g.title})]})}),i.jsx(v.Menu.Dropdown,{children:Gi.map(b=>i.jsx(v.Menu.Item,{className:"item "+vI(b.key==="1"),leftSection:b.icon,style:{borderRadius:"var(--mantine-radius-sm)",paddingBlock:"calc(var(--mantine-spacing-xs) / 1.5)"},onClick:()=>{d(e,()=>{setTimeout(()=>{e==null||e.dispatchCommand(cu,b.platform),t(!1)})})},children:b.name},b.name))})]},g.title):null)})})};function np(e,n){try{return Ba.$generateNodesFromDOM(e,n)}catch(t){if(t instanceof Error&&t.message.includes("to have a parent")){console.warn("[@layers-app/editor] $generateNodesFromDOM failed with orphaned node error, retrying with individual nodes");const r=n.body.childNodes,o=[];for(const s of r)try{const l=document.implementation.createHTMLDocument();l.body.appendChild(s.cloneNode(!0));const c=Ba.$generateNodesFromDOM(e,l);o.push(...c)}catch{}return o}throw t}}function WP({editor:e,outputFormat:n,debounceMs:t=500,onChange:r,onBlur:o,isCommentVariant:s,checkIsEmpty:l,onChangeCommand:c}){const d=Ft.useDebouncedCallback(g=>{c&&g.dispatchCommand(c,!0)},100),f=Ft.useDebouncedCallback((g,A)=>{if(n==="html")g.read(()=>{let y=Ba.$generateHtmlFromNodes(A,null);const x=p.$getRoot();x&&(l()&&(y=""),x.getChildrenSize()===0&&(A.update(()=>{x.append(p.$createParagraphNode())}),y=""));const w=p.$getRoot().getTextContent();r(y,w)});else{const b=g.toJSON();r(b)}},t),h=(g,A)=>{if(o)if(n==="html")A.update(()=>{const b=Ba.$generateHtmlFromNodes(A,null);o(b)});else{const b=g.toJSON();o(b)}};return m.useEffect(()=>e.registerCommand(p.PASTE_COMMAND,A=>{if(!s)return!1;try{const b=A.clipboardData||window.clipboardData;if(!b||!b.getData("application/x-lexical-editor"))return!1;const x=b.getData("text/html");if(!x)return!1;const k=new DOMParser().parseFromString(x,"text/html"),T=np(e,k);return p.$insertNodes(T),!0}catch{return!1}},p.COMMAND_PRIORITY_LOW),[e,s]),{triggerOnChangeCommand:d,onChangeValue:f,onBlurValue:h}}const zP={toolbar:{comment:!1,default:!0,editor:!1},componentPicker:{comment:!1,default:!0,editor:!0},floatingTextToolbar:{comment:!0,default:!0,editor:!0},floatingLinkEditor:{comment:!0,default:!0,editor:!0},actionMenu:{comment:!1,default:!0,editor:!0},mediaActions:{comment:!1,default:!0,editor:!0},previewCodeEquation:{comment:!1,default:!0,editor:!0},richText:{comment:!0,default:!0,editor:!0},history:{comment:!1,default:!0,editor:!0},treeView:{comment:!1,default:!0,editor:!0},actionsInspector:{comment:!1,default:!0,editor:!0},onChange:{comment:!0,default:!0,editor:!0},blur:{comment:!0,default:!0,editor:!0},focus:{comment:!0,default:!0,editor:!0},autoFocus:{comment:!0,default:!0,editor:!0},placeholder:{comment:!0,default:!0,editor:!0},clearEditor:{comment:!0,default:!1,editor:!1},maxLength:{comment:!1,default:!0,editor:!0},emoji:{comment:!0,default:!0,editor:!0},hashtag:{comment:!1,default:!0,editor:!0},markdownShortcut:{comment:!1,default:!0,editor:!0},extendCode:{comment:!1,default:!0,editor:!0},equation:{comment:!1,default:!0,editor:!0},codeHighlight:{comment:!1,default:!0,editor:!0},list:{comment:!0,default:!0,editor:!0},checkList:{comment:!0,default:!0,editor:!0},listMaxIndent:{comment:!0,default:!0,editor:!0},link:{comment:!0,default:!0,editor:!0},clickableLink:{comment:!0,default:!0,editor:!0},horizontalRule:{comment:!1,default:!0,editor:!0},tabFocus:{comment:!0,default:!0,editor:!0},tabIndentation:{comment:!0,default:!0,editor:!0},collapsible:{comment:!1,default:!0,editor:!0},callout:{comment:!1,default:!0,editor:!0},layout:{comment:!1,default:!0,editor:!0},table:{comment:!1,default:!0,editor:!0},draggableBlock:{comment:!1,default:!0,editor:!0},newParagraph:{comment:!0,default:!0,editor:!0},tableOfContents:{comment:!1,default:!0,editor:!0},embed:{comment:!1,default:!0,editor:!0},swagger:{comment:!1,default:!0,editor:!0},images:{comment:!1,default:!0,editor:!0},audio:{comment:!1,default:!0,editor:!0},file:{comment:!1,default:!0,editor:!0},excalidraw:{comment:!1,default:!0,editor:!0},childDocs:{comment:!1,default:!0,editor:!0},pageLink:{comment:!1,default:!0,editor:!0},comment:{comment:!1,default:!0,editor:!0},form:{comment:!1,default:!0,editor:!0},select:{comment:!1,default:!0,editor:!0},shortcuts:{comment:!1,default:!0,editor:!0},smartPaste:{comment:!1,default:!0,editor:!0},fastBackspace:{comment:!1,default:!0,editor:!0},emptyPage:{comment:!1,default:!1,editor:!0}},UP={images:"photo",codeHighlight:"code",checkList:"check",listMaxIndent:"list",collapsible:"caret-right",horizontalRule:"horizontal-rule",clickableLink:"link",floatingLinkEditor:"link",previewCodeEquation:"previewCodeEquation"};function KP(e,n){return t=>{if(!zP[t][e])return!1;const o=UP[t];return o?!n[o]:!(t in n&&n[t])}}const j5={comment:!1,default:!0,editor:!0};function HP(e,n,t,r,o){return n.filter(l=>(l.modes??j5)[r]&&!t[l.key]).map(l=>l.Provider).reduceRight((l,c)=>i.jsx(c,{imperativeHandleRef:o,children:l}),i.jsx(i.Fragment,{children:e}))}const aC=m.lazy(()=>Promise.resolve().then(()=>require("./layers.CVCmClj2.js")).then(e=>({default:e.ExcalidrawPlugin})));function YP(e){const{onRef:n,floatingAnchorElem:t,maxHeight:r,showTextToolbar:o,mode:s,isLoading:l,editor:c,onBlur:d,onFocus:f,onChange:h,outputFormat:g,debounceMs:A}=e,b=s==="editor",y=s==="comment",[x,w]=m.useState(!1),{excludeNodes:k,plugins:T,imperativeHandleRef:I,disable:N}=m.useContext(ft),L=st,M=KP(s,k),{settings:{isRichText:S,showTreeView:O,isMaxLength:R}}=P1(),{historyState:B}=B1(),{triggerOnChangeCommand:_,onChangeValue:j,onBlurValue:D}=WP({editor:c,outputFormat:g,debounceMs:A,onChange:h,onBlur:d,isCommentVariant:y,checkIsEmpty:eh,onChangeCommand:ns});let z={};r?z={maxHeight:r}:b&&(z={overflowY:"hidden"});const H=b?i.jsx("div",{className:"editor-scroller",style:z,children:i.jsx("div",{className:"editor",ref:n,children:i.jsx("div",{className:"content-editable-wrapper",children:i.jsx("div",{children:i.jsx(iC,{})})})})}):i.jsx("div",{className:"editor-scroller",style:z,children:i.jsx("div",{className:"editor",ref:n,children:i.jsx(iC,{})})}),F=i.jsxs(i.Fragment,{children:[M("toolbar")&&!b&&!L&&i.jsx(oC,{mode:s}),M("componentPicker")&&!L&&i.jsx(II,{mode:s,opened:x,setOpenedMenu:w}),M("history")&&i.jsx(Hh.HistoryPlugin,{externalHistoryState:B}),M("floatingTextToolbar")&&t&&(b||L?i.jsx(_2,{anchorElem:t,component:i.jsx(oC,{mode:s,isFloating:!0})}):i.jsx(_2,{anchorElem:t})),i.jsxs("div",{className:`editor-container ${S?"":"plain-text"}`,children:[M("placeholder")&&i.jsx(yM,{}),M("autoFocus")&&i.jsx(mM,{isLoading:l}),M("emoji")&&i.jsx(sD,{}),M("hashtag")&&i.jsx(f9.HashtagPlugin,{}),M("clearEditor")&&i.jsx(c9.ClearEditorPlugin,{}),M("richText")&&i.jsx(m9.RichTextPlugin,{contentEditable:H,ErrorBoundary:d9.LexicalErrorBoundary}),(M("extendCode")||M("equation"))&&!N&&i.jsx(z7,{}),M("markdownShortcut")&&i.jsx($M,{}),M("shortcuts")&&i.jsx(BL,{editor:c,setIsLinkEditMode:()=>{}}),M("extendCode")&&!N&&i.jsx(mj,{}),M("equation")&&!N&&i.jsx(cj,{}),M("codeHighlight")&&i.jsx(pM,{}),M("list")&&i.jsx(_M,{}),M("checkList")&&i.jsx(ij,{}),M("listMaxIndent")&&i.jsx(UM,{maxDepth:7}),!N&&i.jsx(OM,{}),M("link")&&i.jsx(PM,{}),M("comment")&&i.jsx(oL,{}),aC&&M("excalidraw")&&i.jsx(m.Suspense,{children:i.jsx(aC,{})}),M("swagger")&&i.jsx(iR,{}),M("childDocs")&&i.jsx(uE,{}),M("pageLink")&&i.jsx(oR,{}),M("newParagraph")&&!O&&i.jsx(PD,{}),M("form")&&i.jsx(Cj,{}),T==null?void 0:T.map(Z=>{const{key:q,Plugin:ee,modes:Q}=Z;return!(Q??j5)[s]||k[q]?null:i.jsx(ee,{},q)}),M("audio")&&i.jsx(Wj,{}),M("file")&&i.jsx(rM,{}),M("embed")&&i.jsx(aj,{}),M("images")&&i.jsx(eM,{}),M("onChange")&&i.jsx(p9.OnChangePlugin,{ignoreSelectionChange:!0,onChange:(Z,q)=>{j(Z,q),_(q)}}),M("maxLength")&&R&&i.jsx(eL,{maxLength:30}),M("blur")&&i.jsx(hM,{onBlur:D}),M("focus")&&i.jsx(IM,{onFocus:f}),M("treeView")&&O&&i.jsx(OP,{}),M("actionsInspector")&&O&&i.jsx($R,{isRichText:!0,shouldPreserveNewLinesInMarkdown:!0}),M("select")&&!Yn&&i.jsx(pP,{editor:c}),M("smartPaste")&&i.jsx(ZN,{containerSelector:"main[data-app-container]"}),M("fastBackspace")&&i.jsx(RM,{}),M("clickableLink")&&i.jsx(u9.ClickableLinkPlugin,{}),M("horizontalRule")&&i.jsx(h9.HorizontalRulePlugin,{}),M("tabFocus")&&i.jsx(JN,{}),M("tabIndentation")&&i.jsx(ej,{}),M("collapsible")&&i.jsx(mE,{}),M("callout")&&i.jsx(nj,{}),M("layout")&&i.jsx(_j,{anchorElem:t}),M("table")&&t&&(b||!L)&&i.jsx(FR,{floatingAnchorElem:t}),M("draggableBlock")&&t&&!L&&i.jsx(JI,{isShowAddButton:!L,anchorElem:t}),t&&i.jsxs(i.Fragment,{children:[M("floatingLinkEditor")&&i.jsx(ND,{showTextToolbar:o}),M("actionMenu")&&i.jsx(KR,{anchorElem:t}),M("mediaActions")&&ps&&i.jsx(bj,{anchorElem:t}),M("previewCodeEquation")&&i.jsx(FD,{anchorElem:t})]})]}),M("tableOfContents")&&(b?k.contents&&i.jsx(Sh,{}):(k.contents||k.contents===void 0)&&i.jsx(Sh,{})),M("emptyPage")&&b&&i.jsx(FP,{editor:c})]});return!T||T.length===0?i.jsx(i.Fragment,{children:F}):HP(F,T,k,s,I)}const ZP=()=>{const e=p.$getSelection(),n=en(),t=n==null?void 0:n.getParent(),r=t==null?void 0:t.getParent();if(n){if(H1())return p.$getRoot().clear(),e.insertParagraph(),!0;if(r instanceof Oo||r instanceof us)return jE();if(t instanceof Qn)return uj()}return!1},GP=e=>{const n=p.$getSelection();if(!p.$isRangeSelection(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode();if(t.getPreviousSibling()===null&&n.anchor.offset===0){const r=t.getParent();if(r){const o=p.$createParagraphNode();return o.append(...r.getChildren()),r.replace(o),e.preventDefault(),!0}}return!1},VP=/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob)$/i;function R5(e){return e.type.includes("video")||VP.test(e.name)}function qP(e){if(!e)return null;const t=new DOMParser().parseFromString(e,"text/html").body,r=Array.from(t.children);if(r.length!==1)return null;const o=r[0];return o.tagName!=="IMG"||t.textContent&&t.textContent.trim().length>0?null:o.getAttribute("src")||""||null}const QP=(e,n)=>{var t,r,o,s,l,c;if(e.target instanceof HTMLElement&&e.target.closest('[data-editor-dropzone="video"]')||e.target instanceof HTMLElement&&(e.target.closest("[data-editor-image-picker-drop-root]")||e.target.closest("[data-editor-file-picker-drop-root]")||e.target.closest(".mantine-Dropzone-root")))return!1;if(e.dataTransfer){const d=Object.values(e.dataTransfer.files);if(d&&d.length){if(e.preventDefault(),e.target instanceof HTMLElement&&((t=n.current)!=null&&t.insertImages)){(r=p.$getNearestNodeFromDOMNode(e.target))==null||r.selectEnd();const f=d[0];R5(f)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(d):f.type.includes("image")&&((s=n.current)!=null&&s.insertImages)?n.current.insertImages(d):f.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(d):(c=n.current)!=null&&c.insertFiles&&(n==null||n.current.insertFiles(d))}return!0}}return!1},lC=()=>{const e=en(),n=e==null?void 0:e.getParent();return e&&cs(n)?IE():!1},cC=()=>{const e=en(),n=e==null?void 0:e.getParent();return e&&Lo(n)?RE():!1},JP=(e,n,t)=>{var s,l;const r=en(),o=r==null?void 0:r.getParent();if(r){if(Lo(o))return DE(e);if(gs(o))(l=(s=t.current)==null?void 0:s.onDeleteCallout)==null||l.call(s,n);else{if(jr(o))return Oj(e);if(It(o))return GP(n);if(ls(o))return fj(e)}}return!1},XP=(e,n)=>{const t=n.ctrlKey||n.metaKey,r=n.shiftKey,o=n.code==="KeyZ";return t&&r&&o?(n.preventDefault(),e.dispatchCommand(p.REDO_COMMAND,void 0),!0):!1},$P=(e,n,t,r,o)=>{var c,d;if(o)return r.preventDefault(),r.key==="Enter"&&r.shiftKey&&n.insertParagraph(),!0;const s=en(),l=s==null?void 0:s.getParent();if(s){if(l instanceof Mn)return Dj(e);if(l instanceof Oo)return NE(e);if(l instanceof Ys)return zS(e);if(l instanceof Zr)return aR(e);if(l instanceof br||Mn)return rj()}return(d=(c=t.current)==null?void 0:c.decoratorEnterAction)==null||d.call(c),!1};function eB(e,n){var t,r,o,s,l,c,d,f;if("dataTransfer"in e&&((r=(t=e.dataTransfer)==null?void 0:t.files)!=null&&r.length)){const h=Array.from(e.dataTransfer.files),g=h[0];return R5(g)&&((o=n.current)!=null&&o.insertVideos)?n.current.insertVideos(h):g.type.includes("image")&&((s=n.current)!=null&&s.insertImages)?n.current.insertImages(h):g.type.includes("audio")&&((l=n.current)!=null&&l.insertMusics)?n.current.insertMusics(h):(c=n.current)!=null&&c.insertFiles&&n.current.insertFiles(h),!0}if("clipboardData"in e){const h=(f=(d=e.clipboardData)==null?void 0:d.getData("text/html"))==null?void 0:f.trim();if(qP(h))return!0}return!1}function tB(e){if(!e||e.classList.contains("video-container")||e.classList.contains("resizable-container")||e.classList.contains("editor-image"))return null;if(e.closest("ol, ul"))return e;let n=e;for(;n&&!n.classList.contains("ContentEditable__root");)n=n.parentElement;if(n!=null&&n.classList.contains("ContentEditable__root")){let t=e;for(;t&&t.parentElement!==n;)t=t.parentElement;return t}return null}function nB(e){const{mode:n,maxHeight:t,disable:r,isErrorWs:o,content:s,isLoading:l,imperativeHandleRef:c,editorRef:d,onBlur:f,onFocus:h,onChange:g,outputFormat:A,debounceMs:b}=e,[y,x]=m.useState(null),w=m.useRef(!1),[k,...T]=it.useLexicalComposerContext(),{shiftEnterInsertNewLine:I}=m.useContext(ft);oM({editor:k}),m.useEffect(()=>{k&&k.setEditable(!r)},[k,r]),m.useEffect(()=>{k&&(k.setEditable(!r),d&&(d.current=k),o&&k.update(()=>{if(typeof s=="string"){p.$getRoot().clear();const O=new DOMParser().parseFromString(s,"text/html"),R=np(k,O);p.$getRoot().select(),p.$insertNodes(R)}else{const M=k.parseEditorState(JSON.stringify(s));k.setEditorState(M)}}))},[o]),m.useEffect(()=>{function M(){k.dispatchCommand(nh,!0)}function S(R){const B=R.target,j=(B.tagName.toLowerCase()==="img"?B.closest("div.resizable-container__inner"):null)||tB(B);if(!j||B.classList.contains("dsd__theme__table-scrollable-wrapper"))return;(j.classList.contains("selected-block")||j.querySelector(".selected-block"))&&(R.preventDefault(),k.dispatchCommand(SA,{x:R.clientX,y:R.clientY,target:j}))}window.addEventListener("scroll",M);const O=k.getRootElement();return O==null||O.addEventListener("contextmenu",S),()=>{window.removeEventListener("scroll",M),O==null||O.removeEventListener("contextmenu",S)}},[k]);const N=M=>{M!==null&&x(M)};m.useEffect(()=>{const M=S=>{const O=document.activeElement;if(O&&O!==document.body&&O!==document.documentElement)return;const R=navigator.platform.toUpperCase().includes("MAC"),B=R&&S.metaKey&&!S.shiftKey&&S.code==="KeyZ"||!R&&S.ctrlKey&&!S.shiftKey&&S.code==="KeyZ",_=R&&S.metaKey&&S.shiftKey&&S.code==="KeyZ"||!R&&S.ctrlKey&&S.shiftKey&&S.code==="KeyZ";B&&(S.preventDefault(),k.dispatchCommand(p.UNDO_COMMAND,void 0)),_&&(S.preventDefault(),k.dispatchCommand(p.REDO_COMMAND,void 0))};return ve.mergeRegister(k.registerCommand(p.BLUR_COMMAND,()=>(window.addEventListener("keydown",M),!1),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.FOCUS_COMMAND,()=>(window.removeEventListener("keydown",M),!1),p.COMMAND_PRIORITY_LOW))},[k]),m.useEffect(()=>ve.mergeRegister(k.registerCommand(p.KEY_ENTER_COMMAND,M=>{const S=p.$getSelection();return $P(k,S,c,M,I)},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DELETE_CHARACTER_COMMAND,()=>ZP(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ESCAPE_COMMAND,M=>p.$getSelection()?(k.blur(),p.$setSelection(null),So(M),!0):!1,p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_DOWN_COMMAND,M=>XP(k,M),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_UP_COMMAND,()=>cC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_LEFT_COMMAND,()=>cC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_ARROW_DOWN_COMMAND,()=>lC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.PASTE_COMMAND,M=>eB(M,c),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.DROP_COMMAND,M=>QP(M,c),p.COMMAND_PRIORITY_HIGH),k.registerCommand(p.KEY_ARROW_RIGHT_COMMAND,()=>lC(),p.COMMAND_PRIORITY_LOW),k.registerCommand(p.INSERT_PARAGRAPH_COMMAND,()=>{const M=p.$getSelection();M.format=0,M.setStyle("");const S=M.insertParagraph();return S&&(S.__format=0),!0},p.COMMAND_PRIORITY_LOW),k.registerCommand(p.KEY_BACKSPACE_COMMAND,M=>JP(k,M,c),p.COMMAND_PRIORITY_HIGH)),[k]);const L={onRef:N,floatingAnchorElem:y,maxHeight:t,showTextToolbar:w,mode:n,isLoading:l,editor:k,onBlur:f,onFocus:h,onChange:g,outputFormat:A,debounceMs:b};return i.jsx(YP,{...L})}function rB(e){const n=new URL(e),t=`${n.origin}${n.pathname}`,r={};return n.searchParams.forEach((o,s)=>{r[s]=o}),{baseUrl:t,params:r}}function oB(e,n,t="http://localhost"){const r=sB(e,n),{baseUrl:o,params:s}=rB(t);return new JC(o,e,r,{connect:!1,params:s})}function sB(e,n){let t=n.get(e);return t===void 0?(t=new EC.Doc,n.set(e,t)):t.load(),t}const iB=_s?"":"os-windows",I5=({children:e})=>i.jsx("div",{className:`doc-space-styles-provider ${iB}`,children:e}),ft=m.createContext({maxFileSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{},pages:[],plugins:[]}),D5=({initialContent:e,onChange:n,outputFormat:t,mode:r,maxHeight:o,onBlur:s,onFocus:l,fetchUploadMedia:c,fileChunkUploadApi:d,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:g,fetchDeleteMedia:A,fetchRestoreMedia:b,pageId:y,commentController:x,maxFileSize:w,contentModalUploadImage:k,maxImageSizeError:T,debounce:I,disable:N,ws:L,excludeNodes:M={},imagePickerSettings:S={},childPages:O,linkablePages:R,language:B,shiftEnterInsertNewLine:_,editorRef:j,placeholder:D,plugins:z=[],onTrack:H})=>{const F=r||"default",Z=e||"<p></p>";let q=!!(L!=null&&L.url);const{historyState:ee}=B1(),Q=m.useRef({}),J=m.useRef(null),[xe,we]=m.useState("initial"),[Te,Fe]=m.useState(null),se=m.useCallback(oe=>{oe.update(()=>{if(typeof Z=="string"){const Y=new DOMParser().parseFromString(Z,"text/html"),ne=np(oe,Y);p.$insertNodes(ne),p.$setSelection(null)}})},[]),X=m.useMemo(()=>{window.editorAppVersion=`version @layers-app/editor:${L8.version}`,F==="comment"&&document.body.setAttribute("mode","true");const oe=JT(F,z),K=N?oe.filter(Y=>Y!==Dn&&Y!==to):oe;return{editable:!N,editorState:null,namespace:"layers",nodes:K,onError:Y=>{throw Y},theme:P8(F)}},[z,N,F]);m.useEffect(()=>{B&&Vf.changeLanguage(B)},[B]);const ae=()=>typeof Z=="string"?se:JSON.stringify(Z),pe=m.useCallback((oe,K)=>{const Y=oB(oe,K,L==null?void 0:L.url);return Y.on("status",ne=>{ne.status==="connecting"&&we(ne.status)}),setTimeout(()=>Fe(Y),0),Y},[]),ge=m.useCallback(()=>{var ne;const oe=Te.awareness,Y=Array.from(oe.getStates().entries()).map(([fe,Ce])=>({id:String(fe),userId:fe,name:Ce.name,color:Ce.color,awarenessData:Ce.awarenessData})).filter((fe,Ce,Le)=>Ce===Le.findIndex(Ue=>Ue.name===fe.name));(ne=L==null?void 0:L.getActiveUsers)==null||ne.call(L,Y)},[Te]);m.useEffect(()=>{if(Te!=null)return Te.awareness.on("update",ge),()=>Te.awareness.off("update",ge)},[Te,ge]),m.useEffect(()=>{if(Te!=null&&Te.ws){const oe=Te.ws;let K=0;oe?(oe.addEventListener("message",Y=>{if(typeof Y.data!="string"){K===1&&we("connected"),K++;return}const ne=JSON.parse(Y.data);ne["active-users"]&&console.log("message",ne["active-users"]),ne.error&&(ne.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),Te.disconnect()):ne.error==="No token provided"?(console.error("No token provided: You must provide a token."),Te.disconnect()):(console.error("Unknown error:",ne.error),Te.disconnect()),we("error"))}),oe.addEventListener("close",Y=>{console.error("WebSocket connection closed:",Y),we("error")})):console.error("WebSocket is not initialized yet.")}},[Te==null?void 0:Te.ws]),m.useEffect(()=>()=>{Te instanceof JC&&(Te.destroy(),Te.disconnect())},[Te]),q||(X.editorState=ae());const G=xe==="connecting"&&q,he=m.useMemo(()=>{const oe={...M};return c||(oe.photo=!0,oe.video=!0,oe.audio=!0,oe.file=!0),r!=="editor"&&(oe.childDocs=!0),N||(oe.previewCodeEquation=!0),{fetchDeleteMedia:A,fetchUploadMedia:c,fileChunkUploadApi:d,fetchRestoreMedia:b,fetchPromptResult:f,fetchSmartPastePrompt:h,fetchSmartPasteStreamPrompt:g,onTrack:H,maxFileSize:w||5,contentModalUploadImage:k,maxImageSizeError:T,shiftEnterInsertNewLine:_,commentController:x,disable:N||!1,pageId:y,mode:F,excludeNodes:oe,imagePickerSettings:S,imperativeHandleRef:Q,maxHeight:o,pages:(O==null?void 0:O.items)??[],childPagesLoading:(O==null?void 0:O.isLoading)??!1,linkablePages:R,placeholder:D,plugins:z}},[O,y,x,D,z,R,M,c,d,A,b,f,H,w,k,T,_,N,F,S,o]);return i.jsx(ft.Provider,{value:he,children:i.jsx(Ke.I18nextProvider,{i18n:Vf,children:i.jsx(I5,{children:i.jsxs(k7,{children:[i.jsx("div",{ref:J}),i.jsxs("div",{className:`doc-space-editor-wrapper ${F}${N?" disabled":""}`,children:[i.jsx(v.LoadingOverlay,{visible:G,overlayProps:{radius:"sm",blur:2}}),i.jsx(uM,{children:i.jsx(n9.LexicalCollaboration,{children:i.jsxs(o9.LexicalComposer,{initialConfig:X,children:[L&&xe!=="error"?i.jsx(r9.CollaborationPlugin,{id:L.id,providerFactory:pe,username:L.user.name,cursorColor:L.user.color,awarenessData:L.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:J,initialEditorState:ae()}):i.jsx(Hh.HistoryPlugin,{externalHistoryState:ee}),i.jsx(dM,{children:i.jsx(BR,{children:i.jsx(nL,{children:i.jsx(RS,{children:i.jsx("div",{className:"editor-shell",children:i.jsx(nB,{editorRef:j,maxHeight:o,mode:F,disable:N||!1,isErrorWs:xe==="error",content:Z,isLoading:G,imperativeHandleRef:Q,onBlur:s,onFocus:l,onChange:n,outputFormat:t,debounceMs:I})})})})})})]})})})]})]})})})})},O5=m.createContext(null);function aB({config:e,children:n,imperativeHandleRef:t}){const[r,o]=m.useState(0),s=m.useRef(new Set),l=m.useCallback(h=>{var g;if(!s.current.has(h)){s.current.add(h);const A=s.current.size;o(A),(g=e.onUploadStateChange)==null||g.call(e,A>0,A)}},[e]),c=m.useCallback(h=>{var g;if(s.current.has(h)){s.current.delete(h);const A=s.current.size;o(A),(g=e.onUploadStateChange)==null||g.call(e,A>0,A)}},[e]),d=m.useCallback((h,g,A)=>{if(!e.onError)return;let b;if(h&&typeof h=="object"&&"status"in h&&typeof h.status=="number"){const y=h;b={status:y.status,statusText:y.statusText||"",message:y.message||(y.data&&typeof y.data=="object"&&"message"in y.data&&typeof y.data.message=="string"?y.data.message:"Request failed"),data:y.data,source:g,videoId:A}}else h instanceof Error?b={status:0,statusText:"Error",message:h.message,source:g,videoId:A}:b={status:0,statusText:"Unknown Error",message:String(h),source:g,videoId:A};e.onError(b)},[e]),f=m.useMemo(()=>({pageId:e.pageId,maxFileSize:e.maxFileSize??5,imperativeHandleRef:t,registerUpload:l,unregisterUpload:c,isUploading:r>0,uploadingCount:r,reportError:d,onTrack:e.onTrack}),[e.pageId,e.maxFileSize,e.onTrack,t,l,c,r,d]);return i.jsx(O5.Provider,{value:f,children:n})}function rp(){const e=m.useContext(O5);if(!e)throw new Error("useVideoContext must be used within a VideoConfigProvider");return e}const zh=p.createCommand("INSERT_VIDEO_COMMAND"),P5=p.createCommand("UPLOAD_VIDEO_COMMAND");function B5(e,n=!1){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(t&&t[2].length===11)return{platform:"youtube",id:t[2]};const r=e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const c=r[1]||r[3],d=r[2]||r[4];return{platform:"vk",id:`${c}-${d}`}}const o=e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(o)return{platform:"rutube",id:o[1]};if(e==="upload")return{platform:"upload",id:null};if(n)return{platform:"link",id:e};const s=e.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);if(s)return{platform:"download",id:s[1]};const l=e.split("/").pop();return l?{platform:"download",id:l}:{platform:"unknown",id:null}}function es(e,n){let t="";switch(e){case"youtube":t=`https://www.youtube-nocookie.com/embed/${n}`;break;case"download":{t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n)?`/v1/vod/${n}/master.m3u8`:n;break}case"vk":const r=n.split("-");t=`https://vk.com/video_ext.php?oid=-${r[0]}&id=${r[1]}`;break;case"link":t=n;break;case"rutube":t=`https://rutube.ru/play/embed/${n}`;break}return t}function lB(e){const n=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return!!(n&&n[2].length===11||e.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/)||e.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/)||e.match(/\.(mp4|webm|ogg|mov|avi|mkv)(\?.*)?$/i))}function uC({children:e,className:n}){const t=["media-actions",n].filter(Boolean).join(" ");return i.jsx("div",{className:t,children:e})}function op({size:e=32}){return i.jsx("div",{className:"stars-animation",style:{width:e,height:e},children:i.jsxs("svg",{className:"stars-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none",children:[i.jsx("path",{d:"M28.3337 14.444C28.3334 14.0149 27.9856 13.6669 27.5563 13.6666C27.3116 13.6666 27.0808 13.782 26.9339 13.9778L23.667 18.332V20.3333L26.9339 24.6888C27.0808 24.8846 27.3117 25 27.5563 25C27.9856 24.9997 28.3334 24.6517 28.3337 24.2226V14.444ZM30.3337 24.2226C30.3334 25.7563 29.09 26.9997 27.5563 27C26.7913 27 26.0643 26.6853 25.5433 26.138L25.3337 25.8893L21.8675 21.2669C21.7377 21.0938 21.667 20.883 21.667 20.6666V18C21.667 17.7836 21.7377 17.5728 21.8675 17.3997L25.3337 12.7773L25.5433 12.5286C26.0643 11.9813 26.7913 11.6666 27.5563 11.6666C29.09 11.6669 30.3334 12.9103 30.3337 14.444V24.2226Z",fill:"currentColor"}),i.jsx("path",{className:"stars-animation__star stars-animation__star--a",d:"M13.0377 7.63672C13.3768 6.78166 14.6243 6.79378 14.9622 7.63803L15.0208 7.83073V7.83334C15.4133 9.75317 16.9135 11.2534 18.8333 11.6458C19.944 11.873 19.944 13.4604 18.8333 13.6875C16.9134 14.08 15.4133 15.5802 15.0208 17.5V17.5013C14.794 18.6022 13.2074 18.6194 12.9791 17.5C12.5866 15.5803 11.0864 14.08 9.16662 13.6875C8.05579 13.4604 8.05579 11.8729 9.16662 11.6458C11.0864 11.2534 12.5866 9.75313 12.9791 7.83334L13.0377 7.63672ZM14 10.5521C13.4583 11.403 12.7363 12.1251 11.8854 12.6667C12.7359 13.2081 13.4584 13.9295 14 14.78C14.5413 13.9298 15.2631 13.208 16.1132 12.6667C15.2628 12.1251 14.5413 11.4027 14 10.5521Z",fill:"#FAB005"}),i.jsx("path",{d:"M1.6665 19.1634C1.6665 16.9963 1.66552 15.2828 1.82536 13.9303C1.98784 12.5557 2.32831 11.4237 3.104 10.4785C3.36704 10.158 3.66108 9.86395 3.98161 9.60086C4.88967 8.85562 5.97067 8.51046 7.27327 8.34045C7.82065 8.26937 8.32162 8.65631 8.39307 9.20373C8.46429 9.7512 8.07858 10.2534 7.53109 10.3248C6.42818 10.4688 5.76031 10.7286 5.25114 11.1464C5.03175 11.3265 4.82966 11.5273 4.64958 11.7467C4.21474 12.2766 3.9512 12.9788 3.81104 14.1647C3.66826 15.3726 3.6665 16.9472 3.6665 19.1634C3.6665 21.3779 3.6677 22.9977 3.81104 24.2506C3.95301 25.4913 4.22137 26.2274 4.64958 26.7493C4.82978 26.9688 5.03186 27.1696 5.25114 27.3496C5.78094 27.7843 6.4823 28.0492 7.66781 28.1894C8.87569 28.3322 10.4504 28.3339 12.6665 28.3339C14.8826 28.3339 16.4573 28.3322 17.6652 28.1894C18.8508 28.0492 19.5521 27.7843 20.0819 27.3496C20.3011 27.1697 20.5033 26.9688 20.6834 26.7493C21.1182 26.2195 21.3818 25.5171 21.522 24.3313C21.6647 23.1236 21.6665 21.5496 21.6665 19.3339C21.6665 16.3651 21.6585 14.5741 21.3423 13.3144C21.2078 12.7788 21.5333 12.2355 22.0688 12.1009C22.6045 11.9664 23.1479 12.2918 23.2824 12.8274C23.6739 14.3871 23.6665 16.4847 23.6665 19.3339C23.6665 21.5009 23.6675 23.2146 23.5076 24.567C23.3452 25.9412 23.0045 27.0725 22.229 28.0175C21.966 28.338 21.6724 28.6331 21.3514 28.8964C20.4062 29.6721 19.2742 30.0126 17.8996 30.1751C16.547 30.3349 14.8336 30.3339 12.6665 30.3339C10.4994 30.3339 8.78597 30.3349 7.43343 30.1751C6.05888 30.0126 4.92684 29.6721 3.98161 28.8964C3.66082 28.6332 3.36705 28.338 3.104 28.0175C2.32195 27.0644 1.98474 25.8816 1.82406 24.4772C1.66477 23.0846 1.6665 21.3316 1.6665 19.1634Z",fill:"currentColor"}),i.jsx("path",{className:"stars-animation__star stars-animation__star--b",opacity:"0.5",d:"M20.1611 3.07952C20.2736 2.529 21.0601 2.529 21.1727 3.07952C21.4212 4.29541 22.3715 5.24561 23.5873 5.49413C24.1379 5.60666 24.1379 6.39325 23.5873 6.50578C22.3715 6.7543 21.4212 7.7045 21.1727 8.9204C21.0601 9.47092 20.2736 9.47092 20.1611 8.9204C19.9125 7.7045 18.9624 6.7543 17.7464 6.50578C17.1959 6.39325 17.1959 5.60666 17.7464 5.49413C18.9624 5.24561 19.9125 4.29541 20.1611 3.07952Z",fill:"currentColor"})]})})}function sp({size:e="sm",w:n=150,comboboxProps:t,rightSection:r,renderOption:o,data:s,value:l,defaultValue:c,onChange:d,inputClassName:f,...h}){var Q;const{onClick:g,type:A,onCopy:b,onCut:y,onPaste:x,classNames:w,allowDeselect:k,...T}=h,N=[typeof w=="object"&&w&&"input"in w?w.input:void 0,f].filter(Boolean).join(" ")||void 0,L=N?{...typeof w=="object"&&w?w:{},input:N}:w,[M,S]=m.useState(""),O=v.useCombobox({onDropdownClose:()=>{O.resetSelectedOption(),O.focusTarget(),S("")},onDropdownOpen:()=>{O.focusSearchInput()}}),R=m.useMemo(()=>(Array.isArray(s)?s:[]).map(J=>typeof J=="string"?{value:J,label:J}:J),[s]),B=l??c??null,_=((Q=R.find(J=>J.value===B))==null?void 0:Q.label)??"",{t:j}=Ke.useTranslation(),[D,{open:z,close:H}]=Ft.useDisclosure(!1);if(st)return i.jsxs(i.Fragment,{children:[i.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:L,pointer:!0,rightSection:r??i.jsx($,{icon:Jr,size:16,className:"editor-select__chevron"}),rightSectionPointerEvents:"none",onClick:J=>{g==null||g(J),z()},...T,children:_}),i.jsx(Bt,{opened:D,onClose:H,title:j("editor.video.source.drawerTitle","Source"),children:i.jsx(v.Stack,{gap:4,p:0,children:R.map(J=>i.jsx(Zs,{label:J.label,checked:J.value===B,onSelect:()=>{d==null||d(J.value,J),H()}},J.value))})})]});const F=(J,xe,we)=>o?o({option:{value:J,label:xe},checked:we}):i.jsxs(v.Group,{justify:"space-between",wrap:"nowrap",w:"100%",children:[xe,we&&i.jsx($,{icon:Jn,size:16,color:"var(--primary-color-text, #4C6EF5)"})]}),{width:Z,...q}=t||{},ee=Z??"target";return i.jsxs(v.Combobox,{store:O,withinPortal:!0,onOptionSubmit:J=>{const xe=R.find(we=>we.value===J)??{value:J,label:J};d==null||d(J,xe),O.closeDropdown()},width:ee,...q,children:[i.jsx(v.Combobox.Target,{children:i.jsx(v.InputBase,{component:"button",size:e,w:n,classNames:L,pointer:!0,rightSection:r??i.jsx($,{icon:Jr,size:16,className:"editor-select__chevron"}),rightSectionPointerEvents:"none",onClick:J=>{g==null||g(J),O.toggleDropdown()},...T,children:_})}),i.jsx(v.Combobox.Dropdown,{children:i.jsx(v.Combobox.Options,{style:{maxHeight:396,overflowY:"auto"},children:R.length>0?R.map(J=>{const xe=J.value===B;return i.jsx(v.Combobox.Option,{value:J.value,children:F(J.value,J.label,xe)},J.value)}):i.jsx(v.Combobox.Empty,{children:"Nothing found"})})})]})}function Vu(){return""}function cB(){return typeof window<"u"&&window.location.hostname==="dev-app.layers.md"?"https://api.layers.md":""}function Al(){return{}}async function uB(e,n,t,r,o,s,l,c){return new Promise((d,f)=>{const h=cB()+`/v1/videos/${e}/upload`,g=n.slice(t,r+1),A=`bytes ${t}-${r}/${o}`,b=new XMLHttpRequest;if(c(b),s.aborted){f(new Error("Upload cancelled"));return}s.addEventListener("abort",()=>b.abort(),{once:!0}),b.upload.addEventListener("progress",x=>{x.lengthComputable&&l(x.loaded)}),b.addEventListener("load",()=>{if(b.status>=200&&b.status<300)try{const w=(b.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(b.responseText):b.responseText;d(typeof w=="object"&&w!==null?w:{})}catch(x){f(x)}else if(b.status===409){try{const w=(b.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(b.responseText):{};if(w&&typeof w=="object"&&"expectedOffset"in w){d({expectedOffset:w.expectedOffset});return}}catch{}f({status:409,statusText:b.statusText,data:{message:"Upload conflict"}})}else{let x={};try{x=(b.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(b.responseText):b.responseText}catch{x={message:"Unknown error"}}f({status:b.status,statusText:b.statusText,data:x})}}),b.addEventListener("error",()=>{f({status:0,statusText:"Network Error",data:{message:"Network error occurred"}})}),b.addEventListener("abort",()=>{const x=new Error("Upload cancelled");x.isPaused=!0,f(x)}),b.open("PUT",h,!0);const y={"Content-Range":A,...Al()};Object.keys(y).forEach(x=>b.setRequestHeader(x,y[x])),b.withCredentials=!0,b.send(g)})}async function qu(e,n,t=6e4){const r=new AbortController,o=setTimeout(()=>r.abort(),t);try{const s=await fetch(e,{...n,signal:r.signal});return clearTimeout(o),s}catch(s){throw clearTimeout(o),s}}async function dB(e,n,t="PAGE",r,o){const s=Vu()+"/v1/videos/init",l={"Content-Type":"application/json",...Al()},c={parentId:n,parentType:t,file:{originalFileName:e.name,contentType:e.type||"application/octet-stream",bytesTotal:e.size}};try{const d=await qu(s,{method:"POST",headers:l,body:JSON.stringify(c),credentials:r?void 0:"include"},3e4);if(!d.ok){let h={};try{const A=await d.text();A&&(h=JSON.parse(A))}catch{h={message:"Unknown error"}}const g={status:d.status,statusText:d.statusText,data:h};throw console.error("initVideo API error:",{url:s,status:d.status,statusText:d.statusText,data:h,requestBody:c}),g}return await d.json()}catch(d){throw(d==null?void 0:d.name)==="AbortError"?(console.error("initVideo timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):d!=null&&d.status?d:(console.error("initVideo fetch error:",{url:s,error:(d==null?void 0:d.message)||d}),{status:0,statusText:"Network Error",data:{message:(d==null?void 0:d.message)||"Network error occurred"}})}}async function zi(e,n,t){const r=(n||Vu())+`/v1/videos/${e}/status`,o={...t||Al()};try{const s=await qu(r,{method:"GET",headers:o,credentials:n?void 0:"include"},1e4);if(!s.ok){const c=await s.json().catch(()=>({}));throw console.error("fetchStatus API error:",{url:r,status:s.status,statusText:s.statusText,data:c}),{status:s.status,statusText:s.statusText,data:c}}return await s.json()}catch(s){throw(s==null?void 0:s.name)==="AbortError"?(console.error("fetchStatus timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):s!=null&&s.status?s:(console.error("fetchStatus fetch error:",{url:r,error:(s==null?void 0:s.message)||s}),{status:0,statusText:"Network Error",data:{message:(s==null?void 0:s.message)||"Network error occurred"}})}}async function fB(e,n,t,r){const o=Vu()+`/v1/videos/${e}/cover`,s=new FormData;s.append("file",n);const l=await qu(o,{method:"POST",headers:Al(),body:s,credentials:"include"},3e4);if(!l.ok){const c=await l.json().catch(()=>({}));throw{status:l.status,statusText:l.statusText,data:c}}return l.json()}async function hB(e,n,t){const r=Vu()+`/v1/videos/${e}/retry`,o={...Al()};try{const s=await qu(r,{method:"POST",headers:o,credentials:n?void 0:"include"},3e4);if(!s.ok){const l=await s.json().catch(()=>({}));throw console.error("retryVideoProcessing API error:",{url:r,status:s.status,statusText:s.statusText,data:l}),{status:s.status,statusText:s.statusText,data:l}}}catch(s){throw(s==null?void 0:s.name)==="AbortError"?(console.error("retryVideoProcessing timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):s!=null&&s.status?s:(console.error("retryVideoProcessing fetch error:",{url:r,error:(s==null?void 0:s.message)||s}),{status:0,statusText:"Network Error",data:{message:(s==null?void 0:s.message)||"Network error occurred"}})}}const pB=2e3;function mB(e){return!e||e.playable!==!0?null:e.downloadUrl?e.downloadUrl:e.primaryUrl&&e.optimizedReady||e.proxyReady&&e.primaryUrl?e.primaryUrl:e.rawPlayable&&e.rawUrl?e.rawUrl:e.primaryUrl?e.primaryUrl:e.rawUrl?e.rawUrl:e.fallbackUrl?e.fallbackUrl:null}function gB(e){return!e||e.playable!==!0?null:e.rawPlayable&&e.rawUrl?e.rawUrl:e.proxyReady&&e.primaryUrl?e.primaryUrl:null}function CB({videoId:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,s]=m.useState(null),[l,c]=m.useState(!0),d=m.useRef(null),f=m.useCallback(()=>{d.current&&(clearInterval(d.current),d.current=null)},[]),h=m.useCallback(()=>{if(f(),!e||!r)return;c(!0);const k=e,T=async()=>{var I;if(k)try{const N=await zi(k,n,t);if(s(N),N.failure){f();return}if(((I=N.playback)==null?void 0:I.optimizedReady)===!0){f();return}}catch(N){if((N==null?void 0:N.status)===404||(N==null?void 0:N.statusText)==="Not Found"){c(!1),f();return}console.error("Video status polling error:",(N==null?void 0:N.message)||N)}};d.current=setInterval(T,pB),T()},[e,r,n,t,f]);m.useEffect(()=>(r&&e?h():(f(),c(!0)),()=>{f()}),[r,e,h,f]);const g=(o==null?void 0:o.playback)||null,A=mB(g),b=(g==null?void 0:g.primaryUrl)||null,y=(g==null?void 0:g.optimizedReady)===!0,x=(g==null?void 0:g.rawPlayable)===!0,w=gB(g);return{status:o,playback:g,videoUrl:A,primaryUrl:b,optimizedReady:y,nativeVideoUrl:w,rawPlayable:x,isStatusAvailable:l}}const AB=18e4;function bB(e){if(!e)return"analysis";switch(e){case"QUEUED":case"PROXY_LQ":case"TRANSCODING":return"analysis";case"PACKAGING":case"THUMBNAILS":return"conversion";default:return"analysis"}}function yB({videoId:e,status:n,onAnalysisComplete:t,onConversionComplete:r,onError:o}){const[s,l]=m.useState({percent:0,stage:"analysis",remaining:void 0}),[c,d]=m.useState(!1),[f,h]=m.useState(!1),g=m.useRef(!1),A=m.useRef(""),b=m.useRef(0),y=m.useRef(!1),x=m.useRef(!1),w=m.useRef(!1),k=m.useRef(0),T=m.useRef(t),I=m.useRef(r),N=m.useRef(o);T.current=t,I.current=r,N.current=o,m.useEffect(()=>{var D,z,H,F,Z,q;if(!c||f||!n)return;if(n.failure){const ee=n.failure,Q=(ee==null?void 0:ee.message)||(ee==null?void 0:ee.reason)||"Unknown error";console.error("Video processing failed:",Q),d(!1),(D=N.current)==null||D.call(N);return}const B=n.playback||null,_=(B==null?void 0:B.playable)===!0,j=(B==null?void 0:B.optimizedReady)===!0;if(_&&!x.current&&(x.current=!0,(z=T.current)==null||z.call(T)),_&&!w.current&&(w.current=!0,(H=I.current)==null||H.call(I)),j){x.current||(x.current=!0,(F=T.current)==null||F.call(T)),w.current||(w.current=!0,(Z=I.current)==null||Z.call(I)),d(!1);return}if(n.processing){const ee=n.processing,Q=ee.percent!=null?ee.percent:0,J=bB(ee.stage),xe=JSON.stringify({stage:ee.stage,percent:Q});xe!==A.current&&(A.current=xe,b.current=Date.now(),y.current=!1,J==="conversion"&&!x.current&&(x.current=!0,(q=T.current)==null||q.call(T)));const we=Date.now();!y.current&&b.current>0&&we-b.current>AB&&(y.current=!0);const Te=Math.max(k.current,Q);k.current=Te,l({percent:Te,stage:J,remaining:Te<100?Math.ceil((100-Te)/5):void 0})}},[c,f,n]);const L=m.useCallback(()=>{e&&(d(!0),g.current=!1,h(!1),x.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),A.current="",b.current=0,y.current=!1,w.current=!1)},[e]),M=m.useCallback(()=>{e&&(d(!0),g.current=!1,h(!1),l({percent:0,stage:"conversion",remaining:void 0}))},[e]),S=m.useCallback(()=>{g.current=!0,h(!0)},[]),O=m.useCallback(()=>{g.current=!1,h(!1)},[]),R=m.useCallback(()=>{d(!1),h(!1),g.current=!1,k.current=0,l({percent:0,stage:"analysis",remaining:void 0}),x.current=!1,A.current="",b.current=0,y.current=!1,w.current=!1},[]);return{transcodingProgress:s,isTranscoding:c,isPaused:f,startAnalysis:L,startConversion:M,handlePause:S,handleResume:O,handleCancel:R}}function xB({onError:e,parentId:n,parentType:t="PAGE"}){const r=m.useMemo(()=>({init:async(s,l,c)=>{var f,h;const d=await dB(s,l,c);return{id:d.videoId,startOffset:(h=(f=d.status)==null?void 0:f.upload)==null?void 0:h.nextOffset}},uploadChunk:uB,fetchOffset:async s=>{var c;const l=await zi(s);return{nextOffset:(c=l==null?void 0:l.upload)==null?void 0:c.nextOffset}}}),[]),o=TA({api:r,parentId:n,parentType:t,onError:s=>{const l=o.uploadId;(s==null?void 0:s.status)===409?e("offset-mismatch",l,s):e("interrupted",l,s)}});return{uploadProgress:o.uploadProgress,isUploading:o.isUploading,isPaused:o.isPaused,handleUpload:o.handleUpload,handlePause:o.handlePause,handleResume:o.handleResume,handleCancel:o.handleCancel,uploadVideoId:o.uploadId}}function _5({size:e=32}){return i.jsxs("div",{className:"video-analysis-animation",style:{width:e,height:e,display:"flex",alignItems:"center",justifyContent:"center"},children:[i.jsxs("svg",{className:"video-analysis-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none",children:[i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--1",d:"M17.3334 9.66663C17.8857 9.66663 18.3334 10.1143 18.3334 10.6666C18.3334 11.2189 17.8857 11.6666 17.3334 11.6666H14.6667C14.1145 11.6666 13.6667 11.2189 13.6667 10.6666C13.6667 10.1143 14.1145 9.66663 14.6667 9.66663H17.3334Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--2",d:"M21.6667 14.6667C21.6667 12.4388 21.665 10.8684 21.5053 9.67973C21.3493 8.51981 21.0592 7.87424 20.5925 7.40759C20.1258 6.94094 19.4803 6.65077 18.3204 6.49483C17.1318 6.33507 15.5613 6.33338 13.3334 6.33338H12.0001C9.77219 6.33338 8.20173 6.33508 7.0131 6.49483C5.85319 6.65078 5.20761 6.94095 4.74097 7.40759C4.27432 7.87424 3.98415 8.51982 3.82821 9.67973C3.66845 10.8684 3.66675 12.4388 3.66675 14.6667V17.3334C3.66675 19.5613 3.66845 21.1317 3.82821 22.3204C3.98415 23.4802 4.27432 24.1258 4.74097 24.5925C5.20761 25.0591 5.85319 25.3493 7.0131 25.5053C8.20173 25.665 9.7722 25.6667 12.0001 25.6667H13.3334C15.5613 25.6667 17.1318 25.665 18.3204 25.5053C19.4803 25.3493 20.1258 25.0591 20.5925 24.5925C21.0592 24.1258 21.3494 23.4802 21.5053 22.3204C21.665 21.1317 21.6667 19.5613 21.6667 17.3334V14.6667ZM23.6667 17.3334C23.6667 19.505 23.6689 21.2344 23.4871 22.5873C23.3013 23.9689 22.9067 25.1063 22.0066 26.0066C21.1064 26.9067 19.969 27.3013 18.5873 27.487C17.2344 27.6689 15.505 27.6667 13.3334 27.6667H12.0001C9.82846 27.6667 8.09909 27.6689 6.74618 27.487C5.36452 27.3013 4.22708 26.9067 3.32691 26.0066C2.42676 25.1063 2.03221 23.9689 1.84644 22.5873C1.66454 21.2344 1.66675 19.505 1.66675 17.3334V14.6667C1.66675 12.4951 1.66454 10.7657 1.84644 9.4128C2.0322 8.03114 2.42673 6.8937 3.32691 5.99353C4.22708 5.09335 5.36451 4.69883 6.74618 4.51306C8.0991 4.33117 9.82847 4.33338 12.0001 4.33338H13.3334C15.505 4.33338 17.2344 4.33117 18.5873 4.51306C19.969 4.69883 21.1064 5.09338 22.0066 5.99353C22.9067 6.89371 23.3013 8.03114 23.4871 9.4128C23.6689 10.7657 23.6667 12.4951 23.6667 14.6667V17.3334Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--3",d:"M28.3332 17.0429V14.957C28.3332 13.0616 28.331 11.7506 28.2017 10.8359C28.0693 9.90011 27.8504 9.74905 27.7551 9.70179C27.6735 9.66142 27.4467 9.57162 26.6666 10.0429C25.898 10.5072 24.9084 11.322 23.4712 12.5078L23.3033 12.6458C22.8773 12.9973 22.2472 12.9364 21.8957 12.5104C21.5443 12.0844 21.6039 11.4543 22.0298 11.1028L22.1978 10.9648C23.5816 9.82307 24.7074 8.89105 25.6327 8.332C26.5446 7.78112 27.5909 7.38889 28.6431 7.91012C29.6814 8.4248 30.0312 9.48824 30.1822 10.556C30.3361 11.6446 30.3332 13.1276 30.3332 14.957V17.0429C30.3332 18.8728 30.3362 20.3566 30.1822 21.4453C30.0311 22.5127 29.6822 23.5751 28.6444 24.0898H28.6431C27.5909 24.611 26.5446 24.2188 25.6327 23.6679C24.7074 23.1089 23.5816 22.1769 22.1978 21.0351L22.0298 20.8971C21.6039 20.5456 21.5443 19.9155 21.8957 19.4895C22.2473 19.0636 22.8773 19.0026 23.3033 19.3541L23.4712 19.4922C24.9084 20.678 25.898 21.4927 26.6666 21.957C27.4466 22.4282 27.6734 22.3385 27.7551 22.2981C27.8505 22.2509 28.0693 22.0998 28.2017 21.164C28.331 20.2494 28.3332 18.9384 28.3332 17.0429Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--4",d:"M3.82796 22.3203C3.6682 21.1317 3.66651 19.5612 3.66651 17.3333V16H1.6665V17.3333C1.66651 19.5049 1.6643 21.2343 1.84619 22.5872C2.03196 23.9689 2.42651 25.1063 3.32666 26.0065C4.22684 26.9067 5.36427 27.3012 6.74593 27.487C8.08281 27.6667 9.78728 27.6667 11.9228 27.6667H11.9998H13.3332H13.4102C15.5457 27.6667 17.2502 27.6667 18.5871 27.487C19.9687 27.3012 21.1061 26.9066 22.0063 26.0065C22.9065 25.1063 23.3011 23.9689 23.4868 22.5872C23.6666 21.2504 23.6665 19.5459 23.6665 17.4104V17.3333V16H21.6665V17.3333C21.6665 19.5612 21.6648 21.1317 21.505 22.3203C21.3491 23.4802 21.0589 24.1257 20.5923 24.5924C20.1256 25.0591 19.48 25.3493 18.3202 25.5052C17.1315 25.665 15.5611 25.6667 13.3332 25.6667H11.9998C9.77195 25.6667 8.20149 25.665 7.01286 25.5052C5.85294 25.3493 5.20737 25.0591 4.74072 24.5924C4.27407 24.1257 3.9839 23.4802 3.82796 22.3203Z"}),i.jsx("path",{className:"video-analysis-animation__path video-analysis-animation__path--5",d:"M30.3334 17.1443L30.3334 17.043V16H28.3334V17.043C28.3334 18.9384 28.3312 20.2494 28.2019 21.1641C28.0696 22.0998 27.8507 22.2509 27.7553 22.2982C27.6736 22.3386 27.4468 22.4283 26.6668 21.957C25.8982 21.4927 24.9086 20.678 23.4715 19.4922L23.3035 19.3542C22.8775 19.0026 22.2475 19.0636 21.8959 19.4896C21.5445 19.9155 21.6041 20.5456 22.0301 20.8971L22.198 21.0352L22.2585 21.0851C23.6147 22.2041 24.7211 23.1171 25.6329 23.668C26.5448 24.2189 27.5911 24.611 28.6433 24.0898H28.6446C29.6824 23.5752 30.0313 22.5127 30.1824 21.4453C30.3335 20.3768 30.3335 18.9277 30.3334 17.1443Z"})]}),i.jsx("div",{className:"video-analysis-animation__line"})]})}function vB({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:s}=Ke.useTranslation();return i.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?i.jsx(_5,{size:32}):i.jsx(op,{size:32}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[i.jsx(v.Text,{size:"md",fw:500,children:s("editor.video.transcoding.title")}),i.jsx(v.Text,{size:"sm",c:"dimmed",children:s("editor.video.transcoding.analysis")})]})]}),i.jsx("div",{style:{width:"100%"},children:i.jsx(Mu,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!1,showInfo:!1})})]}),i.jsx(il,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function wB({progress:e,onPause:n,onResume:t,onCancel:r,isPaused:o=!1}){const{t:s}=Ke.useTranslation();return i.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center"},children:[o?i.jsx(_5,{size:32}):i.jsx(op,{size:32}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[i.jsx(v.Text,{size:"md",fw:500,children:s("editor.video.transcoding.title")}),i.jsx(v.Text,{size:"sm",c:"dimmed",children:s("editor.video.transcoding.conversion")})]})]}),i.jsx("div",{style:{width:"100%"},children:i.jsx(Mu,{progress:{percent:e.percent,uploaded:0,total:100,speed:0,remaining:e.remaining||0},showSpeed:!1,showRemaining:!!e.remaining,showInfo:!1})})]}),i.jsx(il,{onPause:n,onResume:t,onCancel:r,isPaused:o})]})}function dC({onFileSelect:e,maxFileSize:n}){const t={type:"file",showTabs:["upload"],dropZoneProps:{multiple:!1,maxFiles:1,maxSize:n*1024*1024,accept:{"video/*":[]}},inline:!0,tab:"upload",popoverProps:{opened:!0},onUpload:r=>{r.length>0&&e(r[0])}};return i.jsx(At.FilePicker,{...t})}function kB({errorType:e,onRetry:n,onCancel:t,maxFileSize:r}){const{t:o}=Ke.useTranslation(),s=c=>c>=1024?`${(c/1024).toFixed(1)} GB`:`${c} MB`,l=()=>{switch(e){case"size-limit":return o("editor.video.errors.sizeLimit",{size:s(r)});case"format":return i.jsxs(i.Fragment,{children:[o("editor.video.errors.format"),i.jsx("br",{}),o("editor.video.errors.formatHint")]});case"interrupted":return o("editor.video.errors.interrupted");case"offset-mismatch":return o("editor.video.errors.offsetMismatch");case"stall":return o("editor.video.errors.stall");default:return o("editor.video.errors.unknown")}};return i.jsxs(v.Paper,{p:"xl",withBorder:!0,radius:12,style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg, 20px)",alignItems:"center",justifyContent:"center"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center"},children:[i.jsx($,{icon:Jh,size:32,color:"var(--mantine-color-red-filled)",className:"video-upload-error-icon"}),i.jsx(v.Text,{size:"md",fw:500,c:"var(--mantine-color-bright)",style:{lineHeight:1.55},children:o("editor.video.errors.uploadFailed")})]}),i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",justifyContent:"center",width:"100%"},children:[e==="interrupted"&&i.jsx("div",{style:{width:"100%"},children:i.jsx(v.Progress,{value:100,color:"red",size:6,radius:"md"})}),i.jsx(v.Text,{size:"xs",c:"var(--mantine-color-red-text)",ta:"center",style:{lineHeight:1.4},className:"video-upload-error-message",children:l()})]})]}),e==="interrupted"?i.jsx(il,{onRetry:n,onCancel:t,showRetry:!0}):i.jsx(v.Button,{variant:"default",size:"sm",onClick:n,style:{height:36,padding:"6px 18px"},children:o("editor.video.actions.selectAnotherFile")})]})}function SB({value:e,disabled:n=!1,error:t,onChange:r,onSubmit:o}){const{t:s}=Ke.useTranslation(),l=m.useCallback(d=>{d.stopPropagation()},[]),c=m.useCallback(d=>{d.stopPropagation()},[]);return i.jsxs("div",{className:"video-upload-link",style:{pointerEvents:"auto",position:"relative",zIndex:10},onClick:l,onMouseDown:l,onMouseUp:l,onPointerDown:c,onPointerUp:c,children:[i.jsx("div",{className:"video-upload-link-input",children:i.jsx(v.TextInput,{value:e,type:"url",variant:"filled",size:"sm",placeholder:s("editor.video.link.placeholder"),disabled:n,error:!!t,w:"100%",leftSection:i.jsx($,{icon:Jc,size:16}),styles:{input:{pointerEvents:"auto"}},onChange:d=>r(d.currentTarget.value),onKeyDown:d=>{d.stopPropagation(),d.key==="Enter"&&(d.preventDefault(),o())},onClick:l,onMouseDown:l,onPointerDown:c})}),t?i.jsx(v.Text,{size:"xs",className:"video-upload-link-error",children:t}):null,i.jsx("div",{className:"video-upload-link-actions",children:i.jsx(v.Button,{size:"sm",radius:"md",onClick:o,disabled:n||e.trim().length===0,"data-test-id":"video-link-save",children:s("editor.video.link.save")})})]})}function fC(e){const n=e.match(/(\d+):(\d+):(\d+)\.(\d+)/);if(!n)return 0;const t=Number(n[1]),r=Number(n[2]),o=Number(n[3]),s=Number(n[4]);return t*3600+r*60+o+s/1e3}function F5(e,n){if(e.startsWith("http://")||e.startsWith("https://"))return e;const t=n||(typeof window<"u"?window.location.origin:""),r=e.startsWith("/")?e:`/${e}`;return`${t}${r}`}function EB(e,n){const r=F5(e,n).split("/");return r.pop(),r.join("/")}function TB(e,n,t){const r=e.split(/\r?\n/),o=[],s=EB(n,t);let l=0;for(;l<r.length;){const c=r[l].trim();if(c.includes("-->")){const[d,f]=c.split("-->").map(y=>y.trim()),h=fC(d),g=fC(f),b=(r[l+1]||"").trim().match(/^(sheet_\d+\.jpg)#xywh=(\d+),(\d+),(\d+),(\d+)/);if(b){const y=b[1],x=Number(b[2]),w=Number(b[3]),k=Number(b[4]),T=Number(b[5]),I=`${s}/${y}`;o.push({start:h,end:g,sheetUrl:I,x,y:w,w:k,h:T})}l+=2;continue}l+=1}return o}function hC(e,n){return F5(e,n)}function MB(e){return Math.min(1,Math.max(0,e))}function LB({storyboard:e,baseUrl:n,authHeaders:t,enabled:r=!0}){const[o,s]=m.useState([]),[l,c]=m.useState(0),[d,f]=m.useState(!1),[h,g]=m.useState(()=>new Map),A=m.useRef(new Set),b=r&&(e==null?void 0:e.ready)&&e.vttUrl&&e.metaUrl;m.useEffect(()=>{if(!b){f(!1),s([]),c(0);return}let k=!0;return(async()=>{const I=hC(e.vttUrl,n),N=hC(e.metaUrl,n),M={method:"GET",headers:t||{},credentials:n?void 0:"include"},[S,O]=await Promise.all([fetch(I,M),fetch(N,M)]);if(!S.ok||!O.ok){k&&f(!1);return}const[R,B]=await Promise.all([S.text(),O.json().catch(()=>({}))]);if(!k)return;const _=TB(R,I,n),j=Number(B.durationSec||0);s(_),c(j),f(_.length>0&&j>0)})().catch(()=>{k&&f(!1)}),()=>{k=!1}},[b,e==null?void 0:e.vttUrl,e==null?void 0:e.metaUrl,n,t]);const y=m.useCallback(async k=>{if(h.has(k)||A.current.has(k))return h.get(k);A.current.add(k);const T=new Image,I=await new Promise(N=>{T.onload=()=>N({width:T.naturalWidth,height:T.naturalHeight}),T.onerror=()=>N(null),T.src=k});return A.current.delete(k),I?(g(N=>{const L=new Map(N);return L.set(k,I),L}),I):null},[h]),x=m.useCallback(k=>{if(!d||!l||o.length===0)return null;const T=MB(k),I=Math.min(o.length-1,Math.max(0,Math.floor(T*o.length))),N=o[I],L=h.get(N.sheetUrl);return{...N,sheetWidth:L==null?void 0:L.width,sheetHeight:L==null?void 0:L.height}},[d,l,o,h]),w=m.useMemo(()=>o.map(k=>k.sheetUrl),[o]);return m.useEffect(()=>{if(!d||w.length===0)return;const k=w[0];h.has(k)||y(k).catch(()=>{})},[d,w,h,y]),{ready:d,cues:o,durationSec:l,getFrameAtRatio:x,ensureSheetDimensions:y}}const NB=120,jB=64;function RB({frame:e,left:n,width:t=NB}){const r=m.useMemo(()=>{const o=t/e.w,s=jB,l=e.sheetWidth&&e.sheetHeight?`${e.sheetWidth*o}px ${e.sheetHeight*o}px`:void 0,c=`-${e.x*o}px -${e.y*o}px`;return{container:{left:n,width:t,height:s},image:{backgroundImage:`url('${e.sheetUrl}')`,backgroundSize:l,backgroundPosition:c}}},[e,n,t]);return i.jsx("div",{className:"video-player-storyboard-preview","data-test-id":"video-storyboard-preview",style:r.container,children:i.jsx("div",{className:"video-player-storyboard-preview-image",style:r.image})})}function yr(e){return function({size:t=20,color:r="currentColor"}){return i.jsx($,{icon:e,size:t,color:r})}}function W5({size:e=20,color:n="currentColor"}){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e*44/42,viewBox:"0 0 42 44",fill:"none","aria-hidden":"true",focusable:"false",children:i.jsx("path",{d:"M7.80209 0.289726C10.2068 -0.391222 12.6819 0.195277 15.3958 1.34962C18.1136 2.50569 21.4619 4.41001 25.724 6.83139C30.1341 9.33682 33.595 11.3004 36.0547 13.097C38.5092 14.8899 40.3262 16.7646 40.9766 19.235C41.4534 21.0471 41.4534 22.9542 40.9766 24.7663C40.3262 27.2368 38.5092 29.1114 36.0547 30.9043C33.595 32.7009 30.1341 34.6644 25.724 37.1699C21.4619 39.5912 18.1136 41.4956 15.3958 42.6517C12.6819 43.8061 10.2069 44.3926 7.80209 43.7116C6.03479 43.2107 4.4259 42.2585 3.13021 40.9512C1.3719 39.1771 0.664657 36.7249 0.330731 33.7741C-0.00366531 30.8183 1.69004e-06 26.9408 1.69004e-06 22.0007C1.68951e-06 17.0605 -0.00366606 13.183 0.330731 10.2272C0.664657 7.27644 1.37188 4.82417 3.13021 3.05014C4.42578 1.74306 6.03454 0.790589 7.80209 0.289726Z",fill:n})})}function IB({size:e=20,color:n="currentColor"}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("path",{d:"M8.9585 14.1666C8.9585 14.7382 8.9599 15.2299 8.90723 15.6217C8.85213 16.0313 8.72764 16.4238 8.40918 16.7423C8.09069 17.0607 7.69819 17.1852 7.28858 17.2403C6.89686 17.293 6.40509 17.2916 5.8335 17.2916C5.26191 17.2916 4.77014 17.293 4.37842 17.2403C3.96881 17.1852 3.5763 17.0607 3.25782 16.7423C2.93936 16.4238 2.81487 16.0313 2.75977 15.6217C2.7071 15.2299 2.7085 14.7382 2.7085 14.1666V5.83326C2.7085 5.26167 2.7071 4.7699 2.75977 4.37818C2.81486 3.96855 2.93933 3.57606 3.25782 3.25757C3.5763 2.93908 3.9688 2.81462 4.37842 2.75953C4.77014 2.70686 5.26191 2.70826 5.8335 2.70826C6.40509 2.70826 6.89686 2.70686 7.28858 2.75953C7.6982 2.81462 8.09069 2.93908 8.40918 3.25757C8.72767 3.57606 8.85213 3.96855 8.90723 4.37818C8.9599 4.7699 8.9585 5.26167 8.9585 5.83326V14.1666Z",fill:n}),i.jsx("path",{d:"M17.2915 14.1666C17.2915 14.7382 17.2929 15.2299 17.2402 15.6217C17.1851 16.0313 17.0606 16.4238 16.7422 16.7423C16.4237 17.0607 16.0312 17.1852 15.6216 17.2403C15.2299 17.293 14.7381 17.2916 14.1665 17.2916C13.5949 17.2916 13.1031 17.293 12.7114 17.2403C12.3018 17.1852 11.9093 17.0607 11.5908 16.7423C11.2724 16.4238 11.1479 16.0313 11.0928 15.6217C11.0401 15.2299 11.0415 14.7382 11.0415 14.1666V5.83326C11.0415 5.26167 11.0401 4.76989 11.0928 4.37818C11.1479 3.96856 11.2724 3.57606 11.5908 3.25757C11.9093 2.93911 12.3018 2.81462 12.7114 2.75953C13.1032 2.70686 13.5949 2.70826 14.1665 2.70826C14.7381 2.70826 15.2299 2.70686 15.6216 2.75953C16.0312 2.81462 16.4237 2.93911 16.7422 3.25757C17.0607 3.57606 17.1851 3.96856 17.2402 4.37818C17.2929 4.76989 17.2915 5.26167 17.2915 5.83326V14.1666Z",fill:n})]})}const DB=yr(yA),OB=yr(xA),pC=yr(Ck),rs=yr(Bs),PB=yr(ok),BB=yr(pk),Li=yr(tA),To=yr(Jn),z5=yr(vk),U5=yr(tk),K5=yr(bk),ip=yr(Pc),Rc=yr(i1);function _B({size:e=32}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("path",{d:"M16 1.66699C23.916 1.66699 30.333 8.08391 30.333 16C30.333 23.916 23.916 30.333 16 30.333C8.08391 30.333 1.66699 23.916 1.66699 16C1.66699 8.08392 8.08392 1.66699 16 1.66699Z",fill:"var(--mantine-primary-color-filled, #4c6ef5)"}),i.jsx("path",{d:"M20.5961 11.3243C20.9693 10.9172 21.6018 10.8899 22.0089 11.2631C22.4159 11.6363 22.4432 12.2687 22.0701 12.6758L14.7367 20.6758C14.5525 20.8767 14.2944 20.994 14.0219 21C13.7492 21.006 13.4856 20.8999 13.2927 20.7071L9.9594 17.3737C9.56887 16.9832 9.56887 16.3502 9.9594 15.9597C10.3499 15.5691 10.9829 15.5691 11.3735 15.9597L13.9672 18.5534L20.5961 11.3243Z",fill:"white"})]})}function Qu(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function Ju(e){return e?{Authorization:`Bearer ${e}`}:{}}async function mC(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function Xu(e){if(!e.ok){const n=await mC(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||e.statusText||"Request failed";throw new Error(t)}return mC(e)}function Ui(e){const n=(e==null?void 0:e.id)??(e==null?void 0:e.trackId)??(e==null?void 0:e.subtitleId)??"",t=(e==null?void 0:e.lang)??(e==null?void 0:e.language)??(e==null?void 0:e.srclang)??"",r=t?String(t):"und",o=(e==null?void 0:e.label)??(e==null?void 0:e.name)??(e==null?void 0:e.title)??r,s=o?String(o):r,l=(e==null?void 0:e.kind)??"subtitles",c=!!((e==null?void 0:e.isDefault)??(e==null?void 0:e.default)??!1),d=!!((e==null?void 0:e.isDisabled)??!1),f=typeof(e==null?void 0:e.url)=="string"?e.url:typeof(e==null?void 0:e.vttUrl)=="string"?e.vttUrl:typeof(e==null?void 0:e.src)=="string"?e.src:void 0,h=typeof(e==null?void 0:e.createdAt)=="string"?e.createdAt:void 0,g=typeof(e==null?void 0:e.fileName)=="string"?e.fileName:void 0,A=!!((e==null?void 0:e.auto)??(e==null?void 0:e.isAuto)??(e==null?void 0:e.source)==="auto");return{id:String(n),lang:r,label:s,kind:String(l),isDefault:c,isDisabled:d,url:f,createdAt:h,fileName:g,status:"ready",auto:A}}function bu(e){return e.label.length<=3}async function gC(e,n={}){const t=Qu(`/v1/videos/${e}/subtitles`,n.baseUrl),r=await fetch(t,{method:"GET",credentials:"include",headers:{...Ju(n.authToken)}}),o=await Xu(r);return(Array.isArray(o)?o:Array.isArray(o==null?void 0:o.tracks)?o.tracks:[]).map(Ui).filter(l=>l.id)}async function FB(e,n,t,r={}){const o=new URLSearchParams;o.set("lang",t.lang),t.label&&o.set("label",t.label),t.kind&&o.set("kind",t.kind),o.set("default","false");const s=Qu(`/v1/videos/${e}/subtitles?${o.toString()}`,r.baseUrl),l=new FormData;l.append("file",n);const c=await fetch(s,{method:"POST",credentials:"include",headers:{...Ju(r.authToken)},body:l,signal:t.signal}),d=await Xu(c);return d?Ui(d):null}async function WB(e,n,t,r={}){const o=Qu(`/v1/videos/${e}/subtitles/${n}/disabled`,r.baseUrl),s=await fetch(o,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...Ju(r.authToken)},body:JSON.stringify({isDisabled:t})});await Xu(s)}async function zB(e,n,t={}){const r=Qu(`/v1/videos/${e}/subtitles/${n}`,t.baseUrl),o=await fetch(r,{method:"DELETE",credentials:"include",headers:{...Ju(t.authToken)}});await Xu(o)}const UB={en:"English",es:"Español",fr:"Français",de:"Deutsch",it:"Italiano",pt:"Português",ru:"Русский",uk:"Українська",pl:"Polski",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",tr:"Türkçe",ar:"العربية",he:"עברית",hi:"हिन्दी",ja:"日本語",ko:"한국어",zh:"中文",ro:"Română"};function KB({opened:e,onClose:n,settings:t,isSettingsDisabled:r,onSubtitlesOpen:o,onSpeedClick:s,onQualityClick:l,onSubtitleSelect:c,optimisticSpeed:d,setOptimisticSpeed:f}){var N,L;const{t:h}=Ke.useTranslation(),[g,A]=m.useState("main"),b=()=>{n(),A("main")},y=(d??t.currentSpeed)===1?h("editor.video.settings.normal"):`${d??t.currentSpeed}x`,x=((N=t.qualities.find(M=>M.id===t.currentQualityId))==null?void 0:N.label)||h("editor.video.settings.auto"),w=((L=t.subtitles.find(M=>M.id===t.currentSubtitleId))==null?void 0:L.label)||h("editor.video.settings.off"),k=M=>M===1?h("editor.video.settings.normal"):M.toString(),T=d??t.currentSpeed,I=h("editor.video.settingsModal.autoGenerated");return i.jsx(v.Drawer,{opened:e,onClose:b,position:"bottom",size:"auto",withCloseButton:!1,padding:0,lockScroll:!1,withOverlay:!1,classNames:{content:"video-mobile-settings-drawer"},withinPortal:!0,children:i.jsxs("div",{className:"video-mobile-settings-drawer__inner",children:[g==="main"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header",children:[i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.player.settings")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:i.jsx(Rc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsxs("div",{className:"video-mobile-settings-drawer__list",children:[i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r,onClick:()=>{r||(o==null||o(),A("subtitles"))},children:[i.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:i.jsx(z5,{size:16})}),i.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.subtitlesCc")}),i.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:w}),i.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:i.jsx(rs,{size:16})})]}),i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealSpeeds,onClick:()=>{t.hasRealSpeeds&&A("speed")},children:[i.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:i.jsx(U5,{size:16})}),i.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.speed")}),i.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:y}),i.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:i.jsx(rs,{size:16})})]}),i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__item",disabled:r||!t.hasRealQualities,onClick:()=>{t.hasRealQualities&&A("quality")},children:[i.jsx("span",{className:"video-mobile-settings-drawer__item-icon",children:i.jsx(K5,{size:16})}),i.jsx("span",{className:"video-mobile-settings-drawer__item-label",children:h("editor.video.settings.quality")}),i.jsx("span",{className:"video-mobile-settings-drawer__item-value",children:x}),i.jsx("span",{className:"video-mobile-settings-drawer__item-chevron",children:i.jsx(rs,{size:16})})]})]})]}),g==="subtitles"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>A("main"),children:i.jsx(Li,{size:16})}),i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.subtitlesCc")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:i.jsx(Rc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.subtitles.map(M=>{const S=M.id===t.currentSubtitleId;let O=M.label;if(bu({label:O})){const R=M.lang?UB[M.lang.toLowerCase()]:null;R&&(O=R),O=`${O} (${I})`}return i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{c(M.id),b()},children:[i.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:O}),S&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(To,{size:16})})]},`subtitle-${M.id??"off"}`)})})]}),g==="speed"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>A("main"),children:i.jsx(Li,{size:16})}),i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.speed")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:i.jsx(Rc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsx("div",{className:"video-mobile-settings-drawer__scroll-list",children:t.speeds.map(M=>{const S=M===T;return i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{f(M),s(M),b()},children:[i.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:k(M)}),S&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(To,{size:16})})]},`speed-${M}`)})})]}),g==="quality"&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub",children:[i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__back",onClick:()=>A("main"),children:i.jsx(Li,{size:16})}),i.jsx(v.Text,{className:"video-mobile-settings-drawer__title",fw:600,children:h("editor.video.settings.quality")}),i.jsx("button",{type:"button",className:"video-mobile-settings-drawer__close",onClick:b,children:i.jsx(Rc,{size:16})})]}),i.jsx("div",{className:"video-mobile-settings-drawer__divider"}),i.jsxs("div",{className:"video-mobile-settings-drawer__scroll-list",children:[t.qualities.map(M=>{var R;const S=M.id===t.currentQualityId,O=(R=M.label)==null?void 0:R.includes("1080");return i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(M.id),b()},children:[i.jsxs("span",{className:"video-mobile-settings-drawer__option-label",children:[M.label,O&&i.jsx("sup",{className:"video-mobile-settings-drawer__hd-badge",children:"HD"})]}),S&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(To,{size:16})})]},`quality-${M.id}`)}),t.hasRealQualities&&i.jsxs("button",{type:"button",className:"video-mobile-settings-drawer__option",disabled:r,onClick:()=>{l(null),b()},children:[i.jsx("span",{className:"video-mobile-settings-drawer__option-label",children:h("editor.video.settings.auto")}),t.currentQualityId==null&&i.jsx("span",{className:"video-mobile-settings-drawer__option-check",children:i.jsx(To,{size:16})})]})]})]})]})})}function $u({header:e,items:n,width:t=300,maxHeight:r}){return i.jsxs(v.Menu.Dropdown,{w:t,mah:r,style:r?{overflowY:"auto"}:void 0,onClick:o=>{o.stopPropagation()},children:[e&&i.jsxs(i.Fragment,{children:[i.jsx(v.Menu.Item,{onClick:o=>{o.stopPropagation(),e.onClick()},disabled:e.disabled,leftSection:e.leftSection,closeMenuOnClick:!1,className:"video-menu-item","data-test-id":e.testId,children:i.jsxs("div",{className:"video-menu-row",children:[i.jsx(v.Text,{className:"video-menu-header",children:e.label}),e.rightSection&&i.jsx("span",{className:"video-menu-icon",onClick:o=>{o.stopPropagation()},children:e.rightSection})]})}),i.jsx(v.Menu.Divider,{})]}),n.map(o=>i.jsx(v.Menu.Item,{onClick:s=>{s.stopPropagation(),o.onClick()},disabled:o.disabled,closeMenuOnClick:!1,className:"video-menu-item","data-test-id":o.testId,children:i.jsxs("div",{className:"video-menu-row",children:[i.jsxs("div",{className:"video-menu-left",children:[o.leftIcon&&i.jsx("span",{className:"video-menu-icon",children:o.leftIcon}),i.jsx(v.Text,{className:"video-menu-item-text",children:o.leftLabel})]}),i.jsxs("div",{className:"video-menu-right",children:[i.jsx(v.Text,{className:"video-menu-item-text video-menu-value",children:o.centerLabel??""}),o.rightSection?i.jsx("span",{className:"video-menu-chevron",children:o.rightSection}):null]})]})},o.key))]})}function HB({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=Ke.useTranslation(),s=[...n.qualities.map(l=>{var f;const c=l.id===n.currentQualityId,d=(f=l.label)==null?void 0:f.includes("1080");return{key:`quality-${l.id}`,testId:`video-settings-quality-${l.id}`,onClick:()=>r(l.id),disabled:e,leftLabel:d?i.jsxs("span",{children:[l.label," ",i.jsx("sup",{className:"video-menu-hd-badge",children:"HD"})]}):l.label,rightSection:c?i.jsx(To,{size:16}):null}}),...n.hasRealQualities?[{key:"quality-auto",testId:"video-settings-quality-auto",onClick:()=>r(null),disabled:e,leftLabel:o("editor.video.settings.auto"),rightSection:n.currentQualityId==null?i.jsx(To,{size:16}):null}]:[]];return i.jsx($u,{width:264,header:{label:o("editor.video.settings.quality"),onClick:t,disabled:e,leftSection:i.jsx(Li,{size:16}),testId:"video-settings-quality-header"},items:s})}function YB({disabled:e,settings:n,onSpeedClick:t,onQualityClick:r,onSubtitlesClick:o}){var h,g;const{t:s}=Ke.useTranslation(),l=n.currentSpeed===1?s("editor.video.settings.normal"):`${n.currentSpeed}x`,c=((h=n.qualities.find(A=>A.id===n.currentQualityId))==null?void 0:h.label)||s("editor.video.settings.auto"),d=((g=n.subtitles.find(A=>A.id===n.currentSubtitleId))==null?void 0:g.label)||s("editor.video.settings.off"),f=[{key:"subtitles",testId:"video-settings-menu-subtitles",onClick:o,disabled:e,leftIcon:i.jsx(z5,{size:16}),leftLabel:s("editor.video.settings.subtitlesCc"),centerLabel:d,rightSection:i.jsx(rs,{size:16})},{key:"speed",testId:"video-settings-menu-speed",onClick:t,disabled:e||!n.hasRealSpeeds,leftIcon:i.jsx(U5,{size:16}),leftLabel:s("editor.video.settings.speed"),centerLabel:l,rightSection:i.jsx(rs,{size:16})},{key:"quality",testId:"video-settings-menu-quality",onClick:r,disabled:e||!n.hasRealQualities,leftIcon:i.jsx(K5,{size:16}),leftLabel:s("editor.video.settings.quality"),centerLabel:c,rightSection:i.jsx(rs,{size:16})}];return i.jsx($u,{width:300,items:f})}function ZB({disabled:e,settings:n,currentSpeed:t,onBack:r,onSelect:o}){const{t:s}=Ke.useTranslation(),l=f=>f===1?s("editor.video.settings.normal"):f.toString(),c=t??n.currentSpeed,d=n.speeds.map(f=>{const h=f===c;return{key:`speed-${f}`,testId:`video-settings-speed-${f}`,onClick:()=>o(f),disabled:e,leftLabel:l(f),rightSection:h?i.jsx(To,{size:16}):null}});return i.jsx($u,{width:264,maxHeight:244,header:{label:s("editor.video.settings.speed"),onClick:r,disabled:e,leftSection:i.jsx(Li,{size:16}),testId:"video-settings-speed-header"},items:d})}const GB={en:"English",es:"Español",fr:"Français",de:"Deutsch",it:"Italiano",pt:"Português",ru:"Русский",uk:"Українська",pl:"Polski",nl:"Nederlands",sv:"Svenska",no:"Norsk",da:"Dansk",fi:"Suomi",tr:"Türkçe",ar:"العربية",he:"עברית",hi:"हिन्दी",ja:"日本語",ko:"한국어",zh:"中文",ro:"Română"};function VB({disabled:e,settings:n,onBack:t,onSelect:r}){const{t:o}=Ke.useTranslation(),s=o("editor.video.settingsModal.autoGenerated"),l=n.subtitles.map(c=>{const d=c.id===n.currentSubtitleId;let f=c.label;if(bu({label:f})){const h=c.lang?GB[c.lang.toLowerCase()]:null;h&&(f=h),f=`${f} (${s})`}return{key:`subtitle-${c.id??"off"}`,testId:`video-settings-subtitle-${c.id??"off"}`,onClick:()=>r(c.id),disabled:e,leftLabel:f,rightSection:d?i.jsx(To,{size:16}):null}});return i.jsx($u,{width:264,header:{label:o("editor.video.settings.subtitlesCc"),onClick:t,disabled:e,leftSection:i.jsx(Li,{size:16}),testId:"video-settings-subtitles-header"},items:l})}function qB({text:e}){const n=m.useRef(null),[t,r]=m.useState(!1),o=m.useCallback(()=>{const s=n.current;s&&r(s.scrollWidth>s.clientWidth)},[]);return i.jsx(v.Tooltip,{label:e,openDelay:300,withinPortal:!0,disabled:!t,children:i.jsx("span",{ref:n,className:"video-player-chapters-item-title",onMouseEnter:o,children:e})})}function QB({video:e,containerRef:n,title:t,settings:r,isSettingsDisabled:o,onSubtitlesOpen:s,onSpeedClick:l,onQualityClick:c,onSubtitleSelect:d,storyboard:f,baseUrl:h,authHeaders:g,chapters:A=[],isProcessing:b=!1}){const{t:y}=Ke.useTranslation(),[x,w]=m.useState(0),[k,T]=m.useState(0),[I,N]=m.useState(!1),[L,M]=m.useState(1),[S,O]=m.useState(!1),[R,B]=m.useState([]),[_,j]=m.useState(!1),[D,z]=m.useState(!1),[H,F]=m.useState(!1),[Z,q]=m.useState(!1),ee=Ft.useClickOutside(()=>{Yn&&q(!1)}),Q=m.useRef(null),[J,xe]=m.useState(null),[we,Te]=m.useState(null),[Fe,se]=m.useState(!1),[X,ae]=m.useState("main"),[pe,ge]=m.useState(null),G=LB({storyboard:f,baseUrl:h,authHeaders:g,enabled:!!f}),he=m.useMemo(()=>J==null?null:G.getFrameAtRatio(J),[J,G]);m.useEffect(()=>{he!=null&&he.sheetUrl&&G.ensureSheetDimensions(he.sheetUrl).catch(()=>{})},[he,G]),m.useEffect(()=>{if(!e)return;const re=()=>{w(e.currentTime||0)},ke=()=>{T(e.duration||0),B(e0(e))},_e=()=>{N(!0)},me=()=>{N(!1)},ie=()=>{M(e.volume??1),O(e.muted)},Ae=()=>{B(e0(e))};return re(),ke(),ie(),N(!e.paused),e.addEventListener("timeupdate",re),e.addEventListener("durationchange",ke),e.addEventListener("loadedmetadata",ke),e.addEventListener("play",_e),e.addEventListener("pause",me),e.addEventListener("volumechange",ie),e.addEventListener("progress",Ae),()=>{e.removeEventListener("timeupdate",re),e.removeEventListener("durationchange",ke),e.removeEventListener("loadedmetadata",ke),e.removeEventListener("play",_e),e.removeEventListener("pause",me),e.removeEventListener("volumechange",ie),e.removeEventListener("progress",Ae)}},[e]),m.useEffect(()=>{const re=()=>{z(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",re),re(),()=>{document.removeEventListener("fullscreenchange",re)}},[]),m.useEffect(()=>{if(!e)return;const re=()=>F(!0),ke=()=>F(!1);return e.addEventListener("enterpictureinpicture",re),e.addEventListener("leavepictureinpicture",ke),F(document.pictureInPictureElement===e&&!!document.pictureInPictureElement),()=>{e.removeEventListener("enterpictureinpicture",re),e.removeEventListener("leavepictureinpicture",ke)}},[e]),m.useEffect(()=>{if(!_)return;const re=_e=>{var Oe;if(!e||!k)return;const me=(Oe=Q.current)==null?void 0:Oe.getBoundingClientRect();if(!me)return;const Ae=Kr((_e.clientX-me.left)/me.width,0,1)*k;e.currentTime=Ae,w(Ae)},ke=()=>{j(!1)};return window.addEventListener("pointermove",re),window.addEventListener("pointerup",ke),()=>{window.removeEventListener("pointermove",re),window.removeEventListener("pointerup",ke)}},[_,e,k]),m.useEffect(()=>{ge(null)},[r.currentSpeed]);const oe=k>0?Kr(x/k,0,1):0,K=b?[]:R,Y=m.useMemo(()=>!A||A.length===0?[]:[...A].filter(re=>k>0&&re.startSec<=k).sort((re,ke)=>re.startSec-ke.startSec),[A,k]),ne=m.useMemo(()=>{if(Y.length===0||k<=0)return[];const re=[],ke=Kr(Y[0].startSec/k,0,1);ke>0&&re.push({chapter:null,startRatio:0,endRatio:ke});for(let _e=0;_e<Y.length;_e++){const me=Y[_e],ie=Kr(me.startSec/k,0,1),Ae=Y[_e+1],Oe=Ae?Kr(Ae.startSec/k,0,1):1;re.push({chapter:me,startRatio:ie,endRatio:Oe})}return re},[Y,k]),fe=m.useMemo(()=>{if(Y.length===0)return null;for(let re=Y.length-1;re>=0;re--)if(x>=Y[re].startSec)return Y[re];return Y[0]},[Y,x]),Ce=m.useMemo(()=>{if(J==null||Y.length===0||k<=0)return null;const re=J*k;for(let ke=Y.length-1;ke>=0;ke--)if(re>=Y[ke].startSec)return Y[ke];return Y[0]},[J,Y,k]),Le=re=>{e&&(e.currentTime=re.startSec,w(re.startSec))},Ue=()=>{e&&(e.paused?e.play().catch(()=>{}):e.pause())},ce=()=>{e&&(e.muted=!e.muted,O(e.muted))},je=re=>{e&&(e.volume=re,re===0?e.muted=!0:e.muted&&(e.muted=!1),M(re),O(e.muted))},Ze=()=>{var ke,_e;const re=(n==null?void 0:n.current)||e;re&&(document.fullscreenElement?(ke=document.exitFullscreen)==null||ke.call(document):(_e=re.requestFullscreen)==null||_e.call(re))},dt=async()=>{if(!(!e||!document.pictureInPictureEnabled))try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch{return}},Ct=re=>{var ie;if(!e||!k)return;const ke=(ie=Q.current)==null?void 0:ie.getBoundingClientRect();if(!ke)return;const me=Kr((re.clientX-ke.left)/ke.width,0,1)*k;e.currentTime=me,w(me),j(!0)},Wt=re=>{var me;if(!k)return;const ke=(me=Q.current)==null?void 0:me.getBoundingClientRect();if(!ke)return;const _e=Kr((re.clientX-ke.left)/ke.width,0,1);xe(_e),Te(_e*ke.width)},Dt=()=>{xe(null),Te(null)},ue=ne.length>0;return i.jsxs("div",{className:`video-player-controls ${ue?"video-player-controls--with-chapters":"video-player-controls--no-chapters"}`,style:{"--video-subtitles-offset":ue?"48px":"16px"},children:[i.jsxs("div",{className:"video-player-timeline",ref:Q,"data-test-id":"video-player-timeline",children:[i.jsx("div",{className:"video-player-timeline-hitbox",onPointerDown:Ct,onPointerMove:Wt,onPointerLeave:Dt,role:"presentation",children:i.jsxs("div",{className:`video-player-timeline-track ${ue?"video-player-timeline-track--chapters":""}`,children:[ue?i.jsx("div",{className:"video-player-chapter-segments",children:ne.map((re,ke)=>{const _e=re.endRatio-re.startRatio,me=oe<=re.startRatio?0:oe>=re.endRatio?1:(oe-re.startRatio)/_e;return i.jsxs("div",{className:"video-player-chapter-segment",style:{flex:`${_e*100} 0 0`},children:[i.jsx("div",{className:"video-player-chapter-segment-progress",style:{width:`${me*100}%`}}),K.map((ie,Ae)=>{const Oe=Kr((ie.start-re.startRatio)/_e,0,1),He=Kr((ie.end-re.startRatio)/_e,0,1);return He<=0||Oe>=1?null:i.jsx("span",{className:"video-player-chapter-segment-buffered",style:{left:`${Oe*100}%`,width:`${(He-Oe)*100}%`}},`buf-${ke}-${Ae}`)})]},`chapter-${ke}`)})}):i.jsxs(i.Fragment,{children:[K.map((re,ke)=>i.jsx("span",{className:"video-player-buffered",style:{left:`${re.start*100}%`,width:`${(re.end-re.start)*100}%`}},`${re.start}-${re.end}-${ke}`)),i.jsx("span",{className:"video-player-progress",style:{width:`${oe*100}%`}})]}),i.jsx("span",{className:"video-player-knob",style:{left:`${oe*100}%`}})]})}),we!=null&&i.jsxs("div",{"data-test-id":"video-player-hover-preview",className:"video-player-hover-preview",style:{left:we,transform:"translateX(-50%)"},children:[he&&G.ready&&i.jsx(RB,{frame:he,left:0}),J!=null&&i.jsxs("div",{className:"video-player-hover-preview-info",children:[i.jsx("span",{className:"video-player-hover-preview-time",children:gi(J*k)}),((Ce==null?void 0:Ce.title)||t)&&i.jsx("span",{className:"video-player-hover-preview-title",children:(Ce==null?void 0:Ce.title)??t})]})]})]}),i.jsxs("div",{className:"video-player-controls-row",children:[i.jsxs("div",{className:"video-player-left",children:[i.jsx("button",{className:"video-player-button",type:"button",onClick:Ue,"aria-label":y(I?"editor.video.player.pause":"editor.video.player.play"),"data-test-id":I?"video-player-pause":"video-player-play",children:I?i.jsx(IB,{size:20}):i.jsx(W5,{size:20})}),i.jsxs(v.Box,{ref:ee,onMouseEnter:Yn?void 0:()=>q(!0),onMouseLeave:Yn?void 0:()=>q(!1),style:{display:"inline-flex",alignItems:"center",height:28,borderRadius:8,padding:Z?"0 8px":0,gap:6,background:Z?"rgba(134, 142, 150, 0.15)":"transparent",backdropFilter:Z?"blur(4px)":"none",transition:"padding 120ms ease, background 120ms ease, backdrop-filter 120ms ease"},children:[i.jsx("button",{type:"button",className:Z?void 0:"video-player-button",onClick:()=>{if(Yn&&!Z){q(!0);return}ce()},"aria-label":y(S||L===0?"editor.video.player.unmute":"editor.video.player.mute"),"data-test-id":S||L===0?"video-player-unmute":"video-player-mute",style:Z?{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:16,height:16,padding:0,border:"none",background:"transparent",color:"#fff",cursor:"pointer"}:void 0,children:S||L===0?i.jsx(OB,{size:Z?16:20}):i.jsx(DB,{size:Z?16:20})}),i.jsx(v.Box,{className:"video-player-volume-slider",style:{width:Z?57:0,opacity:Z?1:0,overflow:Z?"visible":"hidden",pointerEvents:Z?"auto":"none",transition:"width 120ms ease, opacity 120ms ease",display:"flex",alignItems:"center"},children:i.jsx(v.Slider,{w:57,min:0,max:1,step:.01,value:S?0:L,onChange:je,label:null,"aria-label":y("editor.video.player.volume"),size:3})})]}),i.jsxs("div",{className:"video-player-time",children:[gi(x)," / ",gi(k)]}),fe&&i.jsxs("div",{className:"video-player-chapter-title",children:[i.jsx("span",{children:fe.title}),i.jsx(rs,{size:16})]}),!fe&&t&&i.jsxs("div",{className:"video-player-title",children:[i.jsx("span",{children:t}),i.jsx(rs,{size:16})]})]}),i.jsxs("div",{className:"video-player-right",children:[st?i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"video-player-button",type:"button","aria-label":y("editor.video.player.settings"),onClick:()=>se(!0),"data-test-id":"video-player-settings",children:i.jsx(pC,{size:20})}),i.jsx(KB,{opened:Fe,onClose:()=>{se(!1)},settings:r,isSettingsDisabled:o,onSubtitlesOpen:s,onSpeedClick:l,onQualityClick:c,onSubtitleSelect:d,optimisticSpeed:pe,setOptimisticSpeed:ge})]}):i.jsxs(v.Menu,{opened:Fe,onChange:re=>{se(re),re||ae("main")},position:"top-end",offset:8,withinPortal:!0,classNames:{dropdown:"video-player-menu-dropdown"},portalProps:D&&document.fullscreenElement?{target:document.fullscreenElement instanceof HTMLElement?document.fullscreenElement:void 0}:void 0,shadow:"md",radius:"md",closeOnItemClick:!1,closeOnEscape:!0,trapFocus:!0,children:[i.jsx(v.Menu.Target,{children:i.jsx("button",{className:"video-player-button",type:"button","aria-label":y("editor.video.player.settings"),"data-test-id":"video-player-settings",children:i.jsx(pC,{size:20})})}),X==="main"&&i.jsx(YB,{isOpen:!0,disabled:o,settings:r,onSpeedClick:()=>{r.hasRealSpeeds&&ae("speed")},onQualityClick:()=>{r.hasRealQualities&&ae("quality")},onSubtitlesClick:()=>{o||(s==null||s(),ae("subtitles"))}}),X==="speed"&&i.jsx(ZB,{disabled:o,settings:r,currentSpeed:pe??r.currentSpeed,onBack:()=>ae("main"),onSelect:re=>{ge(re),l(re),ae("main"),se(!1)}}),X==="subtitles"&&i.jsx(VB,{disabled:o,settings:r,onBack:()=>ae("main"),onSelect:re=>{d(re),ae("main"),se(!1)}}),X==="quality"&&i.jsx(HB,{disabled:o,settings:r,onBack:()=>ae("main"),onSelect:re=>{c(re),ae("main"),se(!1)}})]}),i.jsx("button",{className:"video-player-button",type:"button","aria-label":y("editor.video.player.pictureInPicture"),onClick:dt,disabled:!document.pictureInPictureEnabled,"aria-pressed":H,"data-test-id":"video-player-pip",children:i.jsx(BB,{size:20})}),i.jsx("button",{className:"video-player-button",type:"button",onClick:Ze,"aria-label":y(D?"editor.video.player.exitFullscreen":"editor.video.player.enterFullscreen"),"data-test-id":D?"video-player-fullscreen-exit":"video-player-fullscreen-enter",children:i.jsx(PB,{size:20})})]})]}),Y.length>0&&i.jsx("div",{className:"video-player-chapters-list",children:Y.map((re,ke)=>{const _e=fe===re;return i.jsxs("button",{type:"button",className:`video-player-chapters-item ${_e?"video-player-chapters-item--active":""}`,onClick:()=>Le(re),children:[i.jsx("span",{className:"video-player-chapters-item-time",children:gi(re.startSec)}),i.jsx(qB,{text:re.title})]},`chapter-list-${ke}`)})})]})}const CC=[.25,.5,.75,1,1.25,1.5,2],AC=[{id:1,label:"English (Automatic)"},{id:2,label:"Русский (Автоматические)"},{id:3,label:"Spanish (automatic)"}],JB=e=>e.height?`${e.height}p`:e.bandwidth?`${(e.bandwidth/1e6).toFixed(1)} Mbps`:"Auto",H5=e=>e!=null&&e.textTracks?Array.from(e.textTracks).filter(n=>n.kind==="subtitles"||n.kind==="captions"):[],fr=(e,n)=>{var b,y,x;if(!e){const w=H5(n),k=w.length>0,T=w.findIndex(N=>N.mode==="showing"),I=k?[{id:null,label:"Off"},...w.map((N,L)=>({id:L,label:N.label||N.language||"Unknown",lang:N.language||void 0,isDefault:N.default??!1}))]:[{id:null,label:"Off"},...AC];return{speeds:CC,currentSpeed:(n==null?void 0:n.playbackRate)??1,hasRealSpeeds:!0,qualities:[],currentQualityId:null,hasRealQualities:!1,subtitles:I,currentSubtitleId:T>=0?T:null,hasRealSubtitles:k}}const t=CC,r=((b=e.getPlaybackRate)==null?void 0:b.call(e))??(n==null?void 0:n.playbackRate)??1,o=t.length>0,s=((y=e.getVariantTracks)==null?void 0:y.call(e))??[],l=s.map(w=>({id:w.id,label:JB(w)})),c=s.find(w=>w.active),d=l.length>0,f=((x=e.getTextTracks)==null?void 0:x.call(e))??[],h=f.length>0,g=h?[{id:null,label:"Off"},...f.map(w=>({id:w.id,label:w.label||w.language||"Unknown",lang:w.language||void 0,isDefault:!!(w.default??w.isDefault??!1)}))]:[{id:null,label:"Off"},...AC],A=f.find(w=>w.active);return{speeds:t,currentSpeed:r,hasRealSpeeds:o,qualities:l,currentQualityId:(c==null?void 0:c.id)??null,hasRealQualities:d,subtitles:g,currentSubtitleId:(A==null?void 0:A.id)??null,hasRealSubtitles:h}},XB=(e,n)=>{var t;(t=e==null?void 0:e.setPlaybackRate)==null||t.call(e,n)},$B=(e,n)=>{var o,s;if(!e)return;const r=(((o=e.getVariantTracks)==null?void 0:o.call(e))??[]).find(l=>l.id===n);r&&((s=e.selectVariantTrack)==null||s.call(e,r,!0))},Ic=(e,n,t)=>{var o,s,l,c;if(e){if(n===null){(o=e.setTextTrackVisibility)==null||o.call(e,!1);return}const f=(((s=e.getTextTracks)==null?void 0:s.call(e))??[]).find(h=>h.id===n);f&&((l=e.selectTextTrack)==null||l.call(e,f),(c=e.setTextTrackVisibility)==null||c.call(e,!0));return}if(!t)return;const r=H5(t);if(n===null){r.forEach(d=>{d.mode="disabled"});return}r.forEach((d,f)=>{d.mode=f===n?"showing":"disabled"})};function wo(e,n){return e?e.startsWith("http://")||e.startsWith("https://")?e:e.startsWith("/")?`${n||window.location.origin}${e}`:e:null}function e_(e){return Array.from(e.textTracks||[]).filter(n=>n.kind==="subtitles"||n.kind==="captions")}function Kf(e,n){return e.url?wo(e.url,n):null}function t_({videoId:e,language:n,baseUrl:t,videoUrl:r,primaryUrl:o,optimizedReady:s,nativeVideoUrl:l,rawUrl:c,storyboard:d,chapters:f,subtitles:h,isProcessing:g=!1,posterUrl:A,onPlayerInfo:b,onFallback:y}){const{t:x,i18n:w}=Ke.useTranslation(),[k,T]=m.useState(null),[I,N]=m.useState(null),[L,M]=m.useState(null),[S,O]=m.useState(!1),R=m.useRef(null),B=m.useRef(null),_=m.useRef(null),[j,D]=m.useState(null),[z,H]=m.useState(()=>fr(null,null)),[F,Z]=m.useState(!0),[q,ee]=m.useState([]),[Q,J]=m.useState([{id:null,label:x("editor.video.settings.off")}]),[xe,we]=m.useState(null),[Te,Fe]=m.useState(null),[se,X]=m.useState(!0),[ae,pe]=m.useState(0),ge=m.useRef(null),G=m.useRef(null),he=m.useRef(null),oe=m.useRef(null),K=m.useRef([]),Y=m.useRef(!1),ne=m.useRef(new Set),fe=m.useRef(null),Ce=m.useRef(!1);m.useEffect(()=>{n&&w.changeLanguage(n).catch(()=>{})},[n]),m.useEffect(()=>{if(!e){ee([]);return}if(h!=null){const ue=(h||[]).map(Ui).filter(re=>re.id&&!re.isDisabled);ee(ue)}},[e,h]),m.useEffect(()=>{Z(!0),fe.current=null},[e]);const Le=m.useCallback(()=>{if(!e||h==null)return;const ue=(h||[]).map(Ui).filter(re=>re.id&&!re.isDisabled);ee(ue)},[e,h]);m.useEffect(()=>{if(q.length===0){J([{id:null,label:x("editor.video.settings.off")}]),we(null);return}const ue=[{id:null,label:x("editor.video.settings.off")},...q.map((re,ke)=>({id:ke,label:re.label||re.lang||"Unknown",lang:re.lang||void 0,isDefault:re.isDefault||!1}))];J(ue),we(re=>re!=null&&re>=0&&re<q.length?re:null)},[q,x]),m.useEffect(()=>{var me;let ue=!1;const re=((me=R.current)==null?void 0:me.player)||null;return s?(async()=>{var Je,ct,be;if(!re)return;if(xe==null){Ic(re,null),H(fr(re,j));return}const ie=q[xe],Ae=(ie==null?void 0:ie.label)||(ie==null?void 0:ie.lang)||"und",Oe=(ie==null?void 0:ie.lang)||"und",He=(ie==null?void 0:ie.kind)||"subtitles",$e=((Je=re.getTextTracks)==null?void 0:Je.call(re))||[];let rt=$e.find(Se=>(Se.language||"")===Oe&&(Se.label||"")===Ae&&(Se.kind||"subtitles")===He);if(!rt&&Te&&(rt=$e.find(Se=>(Se.language||"")===Te.lang&&(Se.label||"")===Te.label&&(Se.kind||"subtitles")===Te.kind)),!rt){const Se=Te&&q.length>0&&q.find(Ye=>(Ye.lang||"und")===Te.lang&&(Ye.label||Ye.lang||"und")===Te.label&&(Ye.kind||"subtitles")===Te.kind)||null,We=ie||Se,Be=We?Kf(We,t):null;if(!Be||typeof re.addTextTrackAsync!="function")return;let Xe=null;Xe=await re.addTextTrackAsync(Be,(We==null?void 0:We.lang)||Oe,(We==null?void 0:We.kind)||He,"text/vtt",void 0,(We==null?void 0:We.label)||Ae),Xe&&typeof Xe.id=="number"&&(rt=Xe)}ue||rt&&((ct=re.selectTextTrack)==null||ct.call(re,rt),(be=re.setTextTrackVisibility)==null||be.call(re,!0),H(fr(re,j)))})().catch(()=>{}):(()=>{j&&(Ic(null,xe,j),H(fr(null,j)))})(),()=>{ue=!0}},[xe,q,s,j,t,e,Te]),m.useEffect(()=>{if(!k)return;let ue=!1,re=null;const ke=Ae=>{if(ue)return;wo(l,t)||wo(c??null,t)?(O(!0),y==null||y(!0)):M(x("editor.video.player.playbackError",{code:Ae.code}))},_e=Ae=>{const Oe=Ae.detail;if(Oe.severity===2)ke(Oe);else try{re==null||re.recover()}catch{}},me=()=>{var Ae;if(re=(Ae=R.current)==null?void 0:Ae.player,!re){const Oe=requestAnimationFrame(me);return()=>cancelAnimationFrame(Oe)}if(he.current)try{re.removeEventListener("error",he.current)}catch{}he.current=_e,re.addEventListener("error",_e),re.load(k).catch(Oe=>{ue||Oe.code!==7e3&&ke(Oe)})},ie=requestAnimationFrame(me);return()=>{if(ue=!0,cancelAnimationFrame(ie),re&&he.current)try{re.removeEventListener("error",he.current)}catch{}}},[k,l,c,t,y]),m.useEffect(()=>{let ue=!1,re=null;if(s&&o){const ke=wo(o,t);if(ke){if(!I&&c){const He=wo(c,t);He&&N(He)}if(fe.current===ke)return;const _e=B.current;_e&&_e.currentTime>0&&(G.current={time:_e.currentTime,paused:_e.paused},Ce.current=!0);const me=He=>{ue||fetch(ke,{method:"HEAD",credentials:"include"}).then($e=>{ue||(fe.current=ke,$e.ok?(T(ke),M(null),O(!1),y==null||y(!1),ne.current.clear()):(ne.current.clear(),O(!0),y==null||y(!0),Oe(He)))}).catch($e=>{ue||(ne.current.clear(),O(!0),y==null||y(!0),Oe(He))})},ie=10,Ae=5e3,Oe=He=>{ue||He>=ie||(re=setTimeout(()=>me(He+1),Ae))};me(0)}}else if(l){const ke=wo(l,t);if(ke){if(ge.current===ke)return;const _e=B.current;if(_e&&_e.readyState>0&&!_e.error&&_e.src){ge.current=ke;return}ge.current&&_e&&_e.currentTime>0&&(G.current={time:_e.currentTime,paused:_e.paused}),N(ke),T(null),ge.current=ke}}return()=>{ue=!0,re&&clearTimeout(re)}},[o,t,s,l]),m.useEffect(()=>{if(s&&k&&R.current){const ue=R.current.videoElement;if(ue){const re=()=>{ue.readyState>=1&&(G.current&&(ue.currentTime=G.current.time,G.current.paused||ue.play().catch(()=>{}),G.current=null),Ce.current=!1)};if(ue.readyState>=1)re();else{const ke=()=>{re()},_e=()=>{re()};return ue.addEventListener("loadedmetadata",ke,{once:!0}),ue.addEventListener("canplay",_e,{once:!0}),()=>{ue.removeEventListener("loadedmetadata",ke),ue.removeEventListener("canplay",_e)}}}}},[s,k]),m.useEffect(()=>{const ue=B.current;ue&&k&&!S&&(ue.currentTime>0&&(G.current={time:ue.currentTime,paused:ue.paused}),ue.paused||ue.pause())},[k,S]),m.useEffect(()=>{var ue;if(k&&!S){const re=((ue=R.current)==null?void 0:ue.videoElement)||null;if(re&&re.readyState>=1)D(re);else if(re){const ke=()=>D(re);return re.addEventListener("loadedmetadata",ke,{once:!0}),()=>re.removeEventListener("loadedmetadata",ke)}}else D(B.current)},[s,S,k,I]),m.useEffect(()=>{if(!j)return;const ue=()=>{X(j.paused)};return ue(),j.addEventListener("play",ue),j.addEventListener("pause",ue),j.addEventListener("ended",ue),()=>{j.removeEventListener("play",ue),j.removeEventListener("pause",ue),j.removeEventListener("ended",ue)}},[j]),m.useEffect(()=>{const ue=_.current;if(!ue)return;const re=new ResizeObserver(ke=>{const _e=ke[0];_e&&pe(Math.round(_e.contentRect.width))});return re.observe(ue),()=>re.disconnect()},[]),m.useEffect(()=>{var ie,Ae;if(!b)return;const ue=((ie=R.current)==null?void 0:ie.player)||null,re=B.current||null,ke=_.current||null,_e=k&&!S&&ue?"shaka":"native";let me=null;try{const Oe=(Ae=ue==null?void 0:ue.seekRange)==null?void 0:Ae.call(ue);Oe&&Number.isFinite(Oe.end)&&Oe.end>0&&(me=Oe.end)}catch{}if(me==null&&j){const Oe=j.duration;Number.isFinite(Oe)&&Oe>0&&(me=Oe)}b({shakaPlayer:ue,nativeVideo:re,mode:_e,containerEl:ke,videoDuration:me})},[b,s,S,k,I,j]),m.useEffect(()=>{var ke;const ue=B.current;ue&&(ue.poster=A||"");const re=(ke=R.current)==null?void 0:ke.videoElement;re&&(re.poster=A||"")},[A,k,I]),m.useEffect(()=>{var re;const ue=((re=R.current)==null?void 0:re.player)||null;if(!s||!ue){H(fr(null,j));return}H(fr(ue,j))},[s,k,j]),m.useEffect(()=>{var _e;const ue=((_e=R.current)==null?void 0:_e.player)||null;if(!s||!ue)return;const re=()=>{H(fr(ue,j))},ke=["variantchanged","adaptation","trackschanged"];return ke.forEach(me=>{var ie;(ie=ue.addEventListener)==null||ie.call(ue,me,re)}),()=>{ke.forEach(me=>{var ie;(ie=ue.removeEventListener)==null||ie.call(ue,me,re)})}},[s,k,j]),m.useEffect(()=>{if(!j)return;const ue=()=>{var ke;const re=((ke=R.current)==null?void 0:ke.player)||null;H(fr(re,j))};return j.addEventListener("ratechange",ue),()=>{j.removeEventListener("ratechange",ue)}},[j]),m.useEffect(()=>()=>{var ie,Ae;const ue=document.pictureInPictureElement;if(!ue)return;const re=((ie=R.current)==null?void 0:ie.videoElement)||null,ke=B.current||null,_e=_.current||null,me=ue instanceof HTMLVideoElement&&(ke&&ke.currentSrc===ue.currentSrc||re&&re.currentSrc===ue.currentSrc);(ue===re||ue===ke||_e&&_e.contains(ue)||me)&&((Ae=document.exitPictureInPicture)==null||Ae.call(document).catch(()=>{}))},[]),m.useEffect(()=>{const ue=B.current;if(!ue||!I)return;const re=()=>{G.current&&(ue.currentTime=G.current.time,G.current.paused||ue.play().catch(()=>{}),Ce.current=!1)};ue.readyState>=1?re():ue.addEventListener("loadedmetadata",re,{once:!0});const ke=()=>{Ce.current||(oe.current&&clearTimeout(oe.current),oe.current=setTimeout(()=>{Ce.current||(G.current||(G.current={time:0,paused:!0}),G.current.time=ue.currentTime)},100))},_e=()=>{Ce.current||(G.current?G.current.paused=!1:G.current={time:0,paused:!1})},me=()=>{Ce.current||(G.current?G.current.paused=!0:G.current={time:ue.currentTime,paused:!0})};return ue.addEventListener("timeupdate",ke),ue.addEventListener("play",_e),ue.addEventListener("pause",me),()=>{ue.removeEventListener("loadedmetadata",re),ue.removeEventListener("timeupdate",ke),ue.removeEventListener("play",_e),ue.removeEventListener("pause",me),oe.current&&clearTimeout(oe.current),ue.currentTime>0&&(G.current={time:ue.currentTime,paused:ue.paused})}},[I]),m.useEffect(()=>{if(s)return;const ue=B.current;if(!ue)return;ue.querySelectorAll('track[data-subtitle-track="managed"]').forEach(me=>me.remove()),e&&q.forEach(me=>{const ie=Kf(me,t);if(!ie)return;const Ae=document.createElement("track");Ae.setAttribute("data-subtitle-track","managed"),Ae.kind=me.kind||"subtitles",Ae.label=me.label||me.lang||"und",Ae.srclang=me.lang||"und",Ae.src=ie,Ae.setAttribute("crossorigin","use-credentials"),Ae.default=!1,ue.appendChild(Ae)});try{ue.textTracks}catch{}const ke=e_(ue);ke.some(me=>me.mode==="showing")&&ke.forEach(me=>{me.mode="disabled"}),H(fr(null,ue))},[s,I,q,e,t]),m.useEffect(()=>{var ie,Ae,Oe,He;if(!s){K.current=[];return}const ue=((ie=R.current)==null?void 0:ie.player)||null;if(!ue)return;const re=(Ae=ue.getNetworkingEngine)==null?void 0:Ae.call(ue);re&&!Y.current&&((Oe=re.registerRequestFilter)==null||Oe.call(re,($e,rt)=>{rt.allowCrossSiteCredentials=!0}),Y.current=!0),(((He=ue.getTextTracks)==null?void 0:He.call(ue))||[]).forEach($e=>{var rt;K.current.includes($e.id)&&((rt=ue.removeTextTrack)==null||rt.call(ue,$e))}),K.current=[];let _e=!1;return(async()=>{var rt,Je;const $e=((rt=ue.getTextTracks)==null?void 0:rt.call(ue))||[];if(e)for(const ct of q){const be=Kf(ct,t);if(!be||typeof ue.addTextTrackAsync!="function")continue;const Se=ct.label||ct.lang||"und",We=ct.lang||"und",Be=ct.kind||"subtitles";if($e.some(et=>(et.language||"")===We&&(et.label||"")===Se&&(et.kind||"subtitles")===Be))continue;let Ye=null;if(Ye=await ue.addTextTrackAsync(be,We,Be,"text/vtt",void 0,Se),_e)return;Ye&&typeof Ye.id=="number"&&(K.current.push(Ye.id),$e.push(Ye))}(Je=ue.setTextTrackVisibility)==null||Je.call(ue,!1),H(fr(ue,j))})().catch(()=>{}),()=>{_e=!0}},[s,k,q,e,t,j]);const Ue=m.useMemo(()=>({...z,subtitles:Q,currentSubtitleId:xe,currentQualityId:F?null:z.currentQualityId,hasRealSubtitles:Q.length>1}),[z,Q,xe,F]),ce=ue=>{if(!j)return;ue.target.closest(".video-player-controls")!==null||(j.paused?j.play().catch(()=>{}):j.pause())};if(L)return i.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,padding:16}},children:i.jsx("div",{style:{textAlign:"center",color:"red"},children:L})});const je=wo(c??null,t)||I,Ze=!!(k&&!S),dt=ae>0&&ae<500,Ct=ae>0&&ae<380,Dt=((f==null?void 0:f.length)??0)>0&&!Ct?"48px":"16px";return i.jsx(v.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,position:"relative"}},children:i.jsxs("div",{"data-test-id":"video-player-container",className:`video-player-container video-player-container--with-player ${dt?"video-player--compact":""} ${Ct?"video-player--narrow":""}`,style:{"--video-subtitles-offset":Dt},ref:_,onClick:ce,children:[i.jsx("video",{ref:B,src:I||(S?je:null)||void 0,className:"video-player-media",style:Ze?{display:"none"}:void 0,poster:A||void 0,onError:ue=>{const re=ue.currentTarget,ke=re.currentSrc||re.src;if(!ke||!re.error)return;ne.current.add(ke);const me=[wo(c??null,t),wo(l,t)].filter(ie=>!!ie&&!ne.current.has(ie));me.length>0&&(re.src=me[0],re.load())}}),Ze&&i.jsx(b9,{ref:R,autoPlay:!1,className:"video-player-media"}),(I||k||o||S&&je)&&i.jsxs(i.Fragment,{children:[se&&!dt&&i.jsx("button",{className:"video-player-center-play",type:"button","aria-label":x("editor.video.player.play"),onClick:ue=>{ue.stopPropagation(),j==null||j.play().catch(()=>{})},children:i.jsx(W5,{size:32})}),i.jsxs("div",{className:"video-player-overlay",children:[i.jsx("div",{className:"video-player-gradient"}),i.jsx(QB,{video:j,containerRef:_,settings:Ue,isSettingsDisabled:!1,onSubtitlesOpen:Le,storyboard:d,chapters:s?f:void 0,isProcessing:g,baseUrl:t,onSpeedClick:ue=>{var ke;const re=((ke=R.current)==null?void 0:ke.player)||null;H(_e=>({..._e,currentSpeed:ue})),re&&XB(re,ue),j&&(j.playbackRate=ue)},onQualityClick:ue=>{var _e,me,ie;const re=((_e=R.current)==null?void 0:_e.player)||null;if(!re||z.qualities.length===0)return;if(ue==null){(me=re.configure)==null||me.call(re,{abr:{enabled:!0}}),Z(!0),H(fr(re,j));return}(ie=re.configure)==null||ie.call(re,{abr:{enabled:!1}});const ke=z.qualities.find(Ae=>Ae.id===ue)||null;ke&&$B(re,ke.id),Z(!1),H(Ae=>({...Ae,currentQualityId:ue}))},onSubtitleSelect:ue=>{var _e,me;const re=((_e=R.current)==null?void 0:_e.player)||null,ke=typeof ue=="number"?ue:null;if(we(ke),re){const ie=((me=re.getTextTracks)==null?void 0:me.call(re))??[];if(ke==null)Fe(null);else{const Oe=ie.find(He=>He.id===ke);if(Oe)Fe({lang:Oe.language||"und",label:Oe.label||"und",kind:Oe.kind||"subtitles"});else{const He=q[ke];He&&Fe({lang:He.lang||"und",label:He.label||He.lang||"und",kind:He.kind||"subtitles"})}}let Ae=ke;if(typeof ke=="number"&&!ie.find(Oe=>Oe.id===ke)){const Oe=q[ke];if(Oe){const He=Oe.label||Oe.lang||"und",$e=Oe.lang||"und",rt=ie.find(Je=>(Je.language||"")===$e&&(Je.label||"")===He);rt&&(Ae=rt.id)}}Ic(re,Ae),H(fr(re,j));return}if(j){if(ke==null)Fe(null);else{const ie=q[ke];ie&&Fe({lang:ie.lang||"und",label:ie.label||ie.lang||"und",kind:ie.kind||"subtitles"})}Ic(null,ke,j),H(fr(null,j))}}})]})]})]})})}const Dc=e=>e==="link"||e==="youtube"||e==="vk"||e==="rutube",n_=e=>e==="upload"||e==="download";function r_({className:e,format:n,nodeKey:t,onUploadComplete:r,initialVideoId:o,initialVideoState:s,onStateChange:l,posterUrl:c,chaptersOverride:d,subtitlesOverride:f,platform:h,fallbackNativeVideoUrl:g,onStatusAvailabilityChange:A,onOptimizedReadyChange:b,onStatusChange:y,onPlayerInfo:x}){var Xt,_r;const[w]=it.useLexicalComposerContext(),{t:k,i18n:T}=Ke.useTranslation(),{pageId:I,maxFileSize:N,registerUpload:L,unregisterUpload:M,reportError:S}=rp(),O=sp,[R,B]=m.useState(s??"default"),[_,j]=m.useState(()=>Dc(h)?"link":"upload"),[D,z]=m.useState(null),[H,F]=m.useState(o??null),[Z,q]=m.useState(""),[ee,Q]=m.useState(null),[J,xe]=m.useState(!1),we=m.useRef(null),Te=m.useRef(!1),Fe=m.useRef(null),{uploadProgress:se,isUploading:X,isPaused:ae,handleUpload:pe,handlePause:ge,handleResume:G,handleCancel:he,uploadVideoId:oe}=xB({parentId:I,parentType:"PAGE",onError:(Ve,wt,wn)=>{z(Ve),B(`error-${Ve}`),wt!=null&&F(wt),wn&&S(wn,"upload",wt??void 0)}});m.useEffect(()=>{if(X){const Ve=`upload-${t}-${Date.now()}`;Fe.current=Ve,L(Ve)}else Fe.current&&(M(Fe.current),Fe.current=null);return()=>{Fe.current&&M(Fe.current)}},[X,t,L,M]),m.useEffect(()=>{oe&&F(oe)},[oe]),m.useEffect(()=>{Dc(h)?j("link"):n_(h)&&j("upload")},[h]),m.useEffect(()=>{Te.current=!1},[H]),m.useEffect(()=>{if(_==="link"&&!(Z.trim().length>0)&&!(!h||!H)){if(h==="link"){q(H);return}Dc(h)&&q(es(h,H))}},[_,Z,h,H]);const{status:K,playback:Y,videoUrl:ne,primaryUrl:fe,optimizedReady:Ce,nativeVideoUrl:Le,rawPlayable:Ue,isStatusAvailable:ce}=CB({videoId:H,enabled:_==="upload"&&!X}),je=_==="upload"?K:null,Ze=_==="upload"?Y:null,dt=_==="upload"?ne:null,Ct=_==="upload"?fe:null,Wt=_==="upload"?Ce:!1,Dt=_==="upload"?Ue:!1,ue=_==="upload"?ce:!1,re=d??(je==null?void 0:je.chapters)??void 0,ke=f??(je==null?void 0:je.subtitles)??void 0,_e=m.useRef(ke),me=m.useMemo(()=>ke===_e.current||JSON.stringify(ke)===JSON.stringify(_e.current)?_e.current:(_e.current=ke,ke),[ke]),ie=m.useMemo(()=>{if(g)return g;if(h==="link"){const Ve=H??o;if(Ve)return es(h,Ve)}return null},[g,h,H,o]),Ae=(_==="upload"?Le:null)??ie??null,Oe=(Ze==null?void 0:Ze.rawUrl)??null;m.useEffect(()=>{A==null||A(ue)},[ue,A]),m.useEffect(()=>{b==null||b(Wt)},[Wt,b]),m.useEffect(()=>{y==null||y(je)},[je,y]),m.useEffect(()=>{if(_!=="upload")return;const Ve=H?es("download",H):null,wt=Ct??Oe??dt??Ae??Ve;!Te.current&&wt&&H&&!X&&(Te.current=!0,r(wt,H))},[Ct,Oe,dt,Ae,H,X,r,_]),m.useEffect(()=>{h!=="download"||!Ct||y_(w,t,Ct)},[w,t,h,Ct]),m.useEffect(()=>{if(!X)return;const Ve=wt=>{wt.preventDefault(),wt.returnValue=""};return window.addEventListener("beforeunload",Ve),()=>{window.removeEventListener("beforeunload",Ve)}},[X]),m.useEffect(()=>{R==="upload"&&!X&&H&&B("analysis")},[R,X,H]);const{transcodingProgress:He,isTranscoding:$e,isPaused:rt,startAnalysis:Je,startConversion:ct,handlePause:be,handleResume:Se,handleCancel:We}=yB({videoId:H,status:je,onAnalysisComplete:()=>{B("conversion"),ct()},onConversionComplete:()=>{B("video-preview")},onError:()=>{z("interrupted"),B("error-interrupted")}}),Be=X||$e||R==="upload"||R==="analysis"||R==="conversion",Ye=R==="video-preview"&&(_==="link"?!0:ue?Wt:Wt||Dt||(!!Ae||!!dt)),et=(je==null?void 0:je.state)==="PROCESSING"||(je==null?void 0:je.state)==="UPLOADING",ze=typeof((Xt=je==null?void 0:je.processing)==null?void 0:Xt.percent)=="number",at=R==="video-preview"&&_==="upload"&&!!Ae&&ue&&!Wt&&!J&&(et||ze),tt=m.useRef(0),ot=Math.max(0,Math.min(100,((_r=je==null?void 0:je.processing)==null?void 0:_r.percent)??0));ot>tt.current&&(tt.current=ot),at||(tt.current=0);const qe=tt.current,ut=Ve=>{if(_!=="upload")return;const wt=N*1024*1024;if(Ve.size>wt){z("size-limit"),B("error-size-limit");return}if(!Ve.type.startsWith("video/")&&!Ve.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i)){z("format"),B("error-format");return}B("upload"),we.current=Ve,pe(Ve)},Ot=Be,bt=Ve=>{j(Ve),z(null),Q(null),B("default")},Lt=()=>{const Ve=Z.trim();if(!Ve||!lB(Ve)){Q(k("editor.video.link.invalid"));return}if(!Z5(w,t,{url:Ve,isLink:!0})){Q(k("editor.video.link.invalid"));return}Q(null),B("video-preview")},Nt=m.useRef(H);Nt.current=H;const tn=m.useRef(oe);tn.current=oe,m.useEffect(()=>w.registerCommand(P5,Ve=>_==="upload"&&Ve.length>0&&!Nt.current&&!tn.current?(ut(Ve[0]),!0):!1,p.COMMAND_PRIORITY_LOW),[w,_,ut]);const Ut=async()=>{const Ve=H??oe;if(D==="interrupted"&&Ve)try{await hB(Ve),z(null),B("analysis")}catch(wt){S(wt,"retry",Ve)}else we.current?(z(null),B("upload"),pe(we.current)):(z(null),B("default"))},an=()=>{he(),we.current=null,B("default"),F(null)},Kt=()=>{We(),we.current=null,B("default"),F(null)};m.useEffect(()=>{R==="analysis"&&H&&!$e&&Je()},[R,H,$e,Je]),m.useEffect(()=>{o&&F(o),s&&B(s)},[o,s]),m.useEffect(()=>{l==null||l(R)},[R,l]);const Vt=()=>{var Ve;if(_==="link"&&R!=="video-preview")return i.jsx(SB,{value:Z,disabled:Ot,error:ee,onChange:wt=>{q(wt),ee&&Q(null)},onSubmit:Lt});switch(R){case"default":case"hover":case"focus":return i.jsx(dC,{onFileSelect:ut,maxFileSize:N});case"upload":return i.jsx(RA,{progress:se,onPause:ge,onResume:G,onCancel:an,isPaused:ae});case"error-size-limit":case"error-format":case"error-interrupted":case"error-offset-mismatch":case"error-stall":return i.jsx(kB,{errorType:D||"interrupted",onRetry:Ut,onCancel:an,maxFileSize:N});case"analysis":return i.jsx(vB,{progress:He,onPause:be,onResume:Se,onCancel:Kt,isPaused:rt});case"conversion":return i.jsx(wB,{progress:He,onPause:be,onResume:Se,onCancel:Kt,isPaused:rt});case"video-preview":if(!H)return null;if(h&&Dc(h)&&h!=="link")return i.jsx("div",{className:"video-embed-container",children:i.jsx("iframe",{src:es(h,H),className:"video-embed-frame",width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Video embed"})});const wt=c??((Ve=je==null?void 0:je.cover)==null?void 0:Ve.url)??null;return i.jsx(t_,{videoId:H,language:T.resolvedLanguage||T.language,videoUrl:dt,primaryUrl:Ct,optimizedReady:Wt,nativeVideoUrl:Ae,rawUrl:Oe,storyboard:(je==null?void 0:je.storyboard)??null,chapters:at?void 0:re,isProcessing:at,subtitles:me,posterUrl:wt,onPlayerInfo:x,onFallback:xe});default:return i.jsx(dC,{onFileSelect:ut,maxFileSize:N})}};return i.jsx(Xo.BlockWithAlignableContents,{className:e,format:n,nodeKey:t,children:i.jsxs(v.Box,{className:"video-upload-container","data-state":R,"data-ready":Ye?"true":"false",children:[R!=="video-preview"?i.jsx("div",{className:"video-upload-header",onClick:Ve=>Ve.stopPropagation(),onMouseDown:Ve=>Ve.stopPropagation(),onPointerDown:Ve=>Ve.stopPropagation(),children:i.jsx(O,{data:[{value:"upload",label:k("editor.video.source.uploadVideo")},{value:"link",label:k("editor.video.source.embedLink")}],value:_,w:"max-content",disabled:Ot,size:"sm",className:"video-upload-source-select",classNames:{root:"video-upload-source-select__root",wrapper:"video-upload-source-select__wrapper",input:"editor-select__input video-upload-source-select__input"},rightSectionWidth:32,comboboxProps:{position:"bottom-start",width:237},onChange:Ve=>{Ve&&bt(Ve)},"data-test-id":"video-upload-source-select",renderOption:({option:Ve})=>i.jsx("div",{"data-test-id":Ve.value==="link"?"video-source-option-link":"video-source-option-upload",children:Ve.label})})}):null,at?i.jsxs("div",{className:"video-upload-processing-banner",children:[i.jsx(op,{size:20}),i.jsx(v.Text,{className:"video-upload-processing-text",children:k("editor.video.upload.processed",{percent:Math.round(qe)})})]}):null,i.jsx("div",{className:"video-upload-plugin",children:Vt()})]})})}function wa(e){const n=Math.max(0,Number(e)||0),t=Math.floor(n/3600),r=Math.floor(n%3600/60),o=Math.floor(n%60);return t>0?`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`:`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`}function bC(e){const n=e.split(":").map(t=>t.trim());if(n.length===2){const t=Number(n[0]),r=Number(n[1]);return!Number.isFinite(t)||!Number.isFinite(r)?null:t*60+r}if(n.length===3){const t=Number(n[0]),r=Number(n[1]),o=Number(n[2]);return!Number.isFinite(t)||!Number.isFinite(r)||!Number.isFinite(o)?null:t*3600+r*60+o}return null}function o_(e,n){return e.startsWith("http://")||e.startsWith("https://")?e:`${n||(typeof window<"u"?window.location.origin:"")}${e}`}function s_(e){return e?{Authorization:`Bearer ${e}`}:{}}async function yC(e){const n=await e.text();if(!n)return null;try{return JSON.parse(n)}catch{return n}}async function i_(e){if(!e.ok){const n=await yC(e),t=(n&&typeof n=="object"&&"message"in n?n.message:null)||(n&&typeof n=="object"&&"error"in n?n.error:null)||e.statusText||"Request failed";throw new Error(t)}return yC(e)}async function a_(e,n,t={}){const r=o_(`/v1/videos/${e}/chapters`,t.baseUrl),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json",...s_(t.authToken)},body:JSON.stringify({chapters:n})});await i_(o)}function Y5(){try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(16).slice(2)}`}}function l_(e){return e.map(n=>({id:Y5(),startSec:n.startSec??0,title:(n.title??"").trim()})).sort((n,t)=>n.startSec-t.startSec)}function c_({chapter:e,index:n,startSec:t,endSec:r,isLast:o,disabled:s,startTimePlaceholder:l,endTimePlaceholder:c,titlePlaceholder:d,deleteChapterLabel:f,startMin:h,startMax:g,endMin:A,endMax:b,onStartSecChange:y,onEndSecChange:x,onTitleChange:w,onRemove:k}){const[T,I]=m.useState(()=>wa(t)),[N,L]=m.useState(()=>r==null?"":wa(r)),[M,S]=m.useState(!1),[O,R]=m.useState(!1),[B,_]=m.useState(!1),[j,D]=m.useState(!1);m.useEffect(()=>{B||I(wa(t))},[t,B]),m.useEffect(()=>{j||L(r==null?"":wa(r))},[r,j]);const z=F=>{I(F);const Z=bC(F);if(Z!==null){const q=Math.floor(Number(Z)||0),ee=q<h,Q=g!=null&&q>g;if(ee||Q){S(!0);return}S(!1),y(n,q)}else if(F.trim()===""){const ee=0<h,Q=g!=null&&0>g;if(ee||Q){S(!0);return}S(!1),y(n,0)}else S(!0)},H=F=>{if(L(F),o)return;const Z=bC(F);if(Z!==null){const q=Math.floor(Number(Z)||0),Q=q<(A??-1/0),J=b!=null&&q>b;if(Q||J){R(!0);return}R(!1),x(n,q)}else F.trim()===""?R(!1):R(!0)};return i.jsxs(v.Group,{gap:10,align:"flex-start",wrap:"nowrap",className:"video-settings-modal-chapter-row",style:{maxWidth:"100%"},children:[i.jsxs(v.Stack,{className:"video-settings-modal-chapter-times",children:[i.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:l,value:T,onChange:F=>z(F.currentTarget.value),style:{width:"100%"},styles:{input:{height:36,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,lineHeight:1.45}},error:M,disabled:s,onFocus:()=>_(!0),onBlur:()=>_(!1)}),i.jsx(v.TextInput,{size:"sm",radius:8,variant:"default",placeholder:c,value:N,onChange:F=>H(F.currentTarget.value),style:{width:"100%"},styles:{input:{height:36,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,lineHeight:1.45}},error:O,disabled:s||o||r==null,onFocus:()=>D(!0),onBlur:()=>D(!1)})]}),i.jsx(v.Flex,{className:"video-settings-modal-chapter-title",children:i.jsx(v.Textarea,{size:"sm",radius:8,variant:"default",placeholder:d,value:e.title,onChange:F=>w(n,F.currentTarget.value),styles:{root:{width:"100%",height:"100%"},wrapper:{height:"100%"},input:{height:"100%",paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,lineHeight:1.45,resize:"none"}},style:{width:"100%",height:"100%"},disabled:s})}),i.jsx(v.Flex,{className:"video-settings-modal-chapter-actions",children:i.jsxs(v.Menu,{position:"bottom-end",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Chapter actions",disabled:s,radius:8,"data-test-id":"video-settings-transcript-row-menu",children:i.jsx(ip,{size:20})})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(v.Menu.Item,{color:"red",onClick:()=>k(n),"data-test-id":"video-settings-transcript-delete",children:f})})]})})]})}function u_({videoId:e,initialChapters:n,nativeVideo:t,shakaPlayer:r,videoDuration:o,baseUrl:s,authToken:l,title:c,customLabel:d,dontShowLabel:f,chaptersDisabled:h,onChaptersDisabledChange:g,onSave:A,timePlaceholder:b,endTimePlaceholder:y,titlePlaceholder:x,addChapterLabel:w,deleteChapterLabel:k,emptyLabel:T,errorLabel:I,invalidRangeLabel:N,addTranscriptManuallyLabel:L}){const M=sp,[S,O]=m.useState([]),[R,B]=m.useState(null),[_,j]=m.useState(null),[D,z]=m.useState(!1),[H,F]=m.useState(!1),[Z,q]=m.useState(null),ee=m.useRef(!1),Q=m.useRef(!1),J=m.useMemo(()=>({baseUrl:s,authToken:l}),[s,l]),xe=m.useCallback(ge=>{Q.current||ee.current||O(l_(ge))},[]);m.useEffect(()=>{var ge;if(o!=null&&o>0){q(o);return}try{const G=(ge=r==null?void 0:r.seekRange)==null?void 0:ge.call(r);if(G&&Number.isFinite(G.end)&&G.end>0){q(G.end);return}}catch{}if(t){const G=t.duration;if(Number.isFinite(G)&&G>0){q(G);return}}},[o,r,t]);const we=m.useCallback(()=>Z==null?null:Math.floor(Z),[Z]);m.useCallback(()=>{const ge=[...S].filter(he=>he.title.trim()).sort((he,oe)=>he.startSec-oe.startSec),G=we();for(let he=0;he<ge.length;he++){const oe=Math.floor(Number(ge[he].startSec)||0),K=he<ge.length-1?Math.floor(Number(ge[he+1].startSec)||0):null;if(oe<0||K!=null&&oe>=K||G!=null&&oe>=G)return!1;const Y=K??G??null;if(Y!=null&&oe>=Y||G!=null&&Y!=null&&Y>G)return!1}return!0},[S,we]);const Te=m.useCallback(async()=>{if(!e)return null;j(null),F(!0),Q.current=!0,B(null);try{const ge=S.filter(G=>G.title.trim()).filter(G=>Z==null||G.startSec<Z).sort((G,he)=>G.startSec-he.startSec).map(({startSec:G,title:he})=>({startSec:G,title:he}));return await a_(e,ge,J),ee.current=!1,ge}catch(ge){const G=ge instanceof Error?ge.message:I;return/exceeds/i.test(G)||B(G),null}finally{F(!1),Q.current=!1}},[e,S,J,I,we]);m.useEffect(()=>{A==null||A(Te)},[Te,A]);const Fe=m.useCallback(()=>{ee.current=!0,j(null),O(ge=>{const G=Z!=null?Math.floor(Z):null,he=[...ge].sort((ne,fe)=>ne.startSec-fe.startSec),oe=he.length>0?Math.floor(he[he.length-1].startSec):-1,K=Math.max(0,oe+1),Y=G!=null?Math.min(K,Math.max(0,G-1)):K;return[...he,{id:Y5(),startSec:Y,title:""}]})},[Z]),se=m.useCallback((ge,G)=>{ee.current=!0,O(he=>{const K=[...[...he].sort((ne,fe)=>ne.startSec-fe.startSec)],Y=K[ge];return Y?(K[ge]={...Y,title:G},K):he})},[]),X=m.useCallback((ge,G)=>{ee.current=!0,j(null),O(he=>{const oe=[...he].sort((ne,fe)=>ne.startSec-fe.startSec),K=oe[ge];if(!K)return he;const Y=[...oe];return Y[ge]={...K,startSec:G},Y.sort((ne,fe)=>ne.startSec-fe.startSec)})},[]),ae=m.useCallback((ge,G)=>{ee.current=!0,j(null),O(he=>{const oe=[...he].sort((ne,fe)=>ne.startSec-fe.startSec);if(ge>=oe.length-1)return he;const K=oe[ge+1];if(!K)return he;const Y=[...oe];return Y[ge+1]={...K,startSec:G},Y.sort((ne,fe)=>ne.startSec-fe.startSec)})},[]),pe=m.useCallback(ge=>{ee.current=!0,j(null),O(G=>[...G].sort((oe,K)=>oe.startSec-K.startSec).filter((oe,K)=>K!==ge))},[]);return m.useEffect(()=>{if(!e){O([]),B(null),ee.current=!1;return}Q.current||ee.current||Array.isArray(n)&&xe(n)},[e,n,xe]),i.jsxs(v.Stack,{gap:"xs","data-test-id":"video-settings-transcript-section",children:[i.jsx(v.Text,{className:"video-settings-modal-section-title","data-test-id":"video-settings-transcript-title",children:c}),i.jsx(M,{size:"sm",radius:8,allowDeselect:!1,value:h?"disabled":"custom",data:[{value:"custom",label:d},{value:"disabled",label:f}],onChange:ge=>{g(ge==="disabled")},classNames:{root:"video-settings-modal-select-fullwidth",input:"video-settings-modal-language-select"},comboboxProps:{position:"bottom-start",width:"target"},"data-test-id":"video-settings-transcript-mode-select",renderOption:({option:ge})=>i.jsx("div",{"data-test-id":ge.value==="disabled"?"video-settings-transcript-mode-disabled":"video-settings-transcript-mode-custom",children:ge.label})}),!h&&i.jsxs(i.Fragment,{children:[i.jsx(v.Divider,{my:4}),L&&i.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-text-label",children:L}),R&&i.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:R}),_&&i.jsx(v.Text,{size:"sm",c:"red",mb:"xs",children:_}),i.jsx(v.Stack,{gap:12,children:[...S].sort((ge,G)=>ge.startSec-G.startSec).map((ge,G,he)=>{const oe=he[G+1]||null,K=he[G+2]||null,Y=Z!=null?Math.floor(Z):null,ne=oe!=null?Math.floor(oe.startSec):Y??null,fe=Math.floor(ge.startSec),Ce=G>0?Math.floor(he[G-1].startSec):null,Le=oe!=null?Math.floor(oe.startSec):null,Ue=Ce!=null?Ce+1:0,ce=Le!=null?Le-1:null,je=Y!=null?Y-1:null,Ze=ce!=null&&je!=null?Math.min(ce,je):ce??je,dt=G<he.length-1?fe+1:null,Ct=K!=null?Math.floor(K.startSec):null,Wt=Ct!=null?Ct-1:null,Dt=Y??null,ue=Wt!=null&&Dt!=null?Math.min(Wt,Dt):Wt??Dt;return i.jsx(c_,{chapter:ge,index:G,startSec:fe,endSec:ne,isLast:G===he.length-1,startMin:Ue,startMax:Ze,endMin:dt,endMax:ue,disabled:!1,startTimePlaceholder:b,endTimePlaceholder:Z!=null?wa(Math.floor(Z)):y,titlePlaceholder:x,deleteChapterLabel:k,onStartSecChange:X,onEndSecChange:ae,onTitleChange:se,onRemove:pe},ge.id)})}),i.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:Fe,"data-test-id":"video-settings-transcript-add",children:w}),S.length===0&&!D&&i.jsx(v.Text,{size:"xs",c:"dimmed",children:T})]})]})}function d_({opened:e,videoId:n,initialStatus:t,title:r,uploadLabel:o,cropLabel:s,emptyCoverLabel:l,loadErrorLabel:c,retryLabel:d,onCoverUpload:f,onCropCover:h,onPosterChange:g,onSelectedPosterChange:A,selectedPosterUrl:b}){var Te,Fe;const[y,x]=m.useState(null),[w,k]=m.useState(null),[T,I]=m.useState(!1),[N,L]=m.useState(!1),[M,S]=m.useState(new Set),[O,R]=m.useState(new Set),[B,_]=m.useState(null),j=m.useRef(null),D=m.useRef(!1),z=m.useMemo(()=>{const se=(y==null?void 0:y.previews)??[];return B?[...se,{id:"uploaded",url:B,order:se.length}]:se},[y==null?void 0:y.previews,B]),H=m.useMemo(()=>{var se,X;return((se=y==null?void 0:y.cover)==null?void 0:se.previewId)??((X=z[0])==null?void 0:X.id)??null},[(Te=y==null?void 0:y.cover)==null?void 0:Te.previewId,z]),F=w??H;z.length>0;const Z=z.length+1,q=Z>3,ee=m.useCallback(se=>{S(X=>{const ae=new Set(X);return ae.delete(se),ae}),R(X=>{const ae=new Set(X);return ae.delete(se),ae})},[]),Q=m.useCallback(se=>{S(X=>{const ae=new Set(X);return ae.delete(se),ae}),R(X=>new Set(X).add(se))},[]),J=m.useCallback(async()=>{var se,X,ae;if(n){I(!0),L(!1);try{const pe=await zi(n);x(pe);const ge=((X=(se=pe==null?void 0:pe.previews)==null?void 0:se[0])==null?void 0:X.id)??null,G=((ae=pe==null?void 0:pe.cover)==null?void 0:ae.previewId)??ge;k(G),S(new Set),R(new Set)}catch(pe){console.error("cover status fetch failed",pe instanceof Error?pe.message:pe),L(!0)}finally{I(!1)}}},[n]),xe=m.useCallback(async se=>{var pe,ge,G,he;const X=se[0];if(!X||!f)return;const ae=URL.createObjectURL(X);_(ae),S(new Set(["uploaded"])),k("uploaded"),A==null||A(ae);try{const oe=await Promise.resolve(f(X));_(null),ae&&URL.revokeObjectURL(ae);const K=oe==null?void 0:oe.previews,Y=Array.isArray(K)&&K.length>0;if(oe&&Y&&K){D.current=!0,x(oe);const ne=((pe=K[K.length-1])==null?void 0:pe.id)??((ge=oe==null?void 0:oe.cover)==null?void 0:ge.previewId)??((G=K[0])==null?void 0:G.id);if(k(ne??"uploaded"),ne){const fe=(he=K.find(Ce=>Ce.id===ne))==null?void 0:he.url;fe&&(A==null||A(fe))}S(new Set),R(new Set)}else J()}catch(oe){_(null),ae&&URL.revokeObjectURL(ae),k(null),console.error("cover upload failed",oe instanceof Error?oe.message:oe),J()}},[f,J,A]),we=m.useMemo(()=>{var se,X;return b||(((se=z.find(ae=>ae.id===F))==null?void 0:se.url)??((X=y==null?void 0:y.cover)==null?void 0:X.url)??null)},[b,z,F,(Fe=y==null?void 0:y.cover)==null?void 0:Fe.url]);return m.useEffect(()=>{var se,X,ae;if(!(!e||!n))if(t){x(t);const pe=((X=(se=t==null?void 0:t.previews)==null?void 0:se[0])==null?void 0:X.id)??null,ge=((ae=t==null?void 0:t.cover)==null?void 0:ae.previewId)??pe;k(ge),S(new Set),R(new Set),I(!1),L(!1)}else J()},[e,n]),m.useEffect(()=>{if(!B||!j.current)return;const X=requestAnimationFrame(()=>{var ge;const pe=((y==null?void 0:y.previews)??[]).length+1;(ge=j.current)==null||ge.scrollTo(pe)});return()=>cancelAnimationFrame(X)},[B,y==null?void 0:y.previews]),m.useEffect(()=>{if(!D.current)return;D.current=!1;const se=j.current;if(!se)return;const ae=((y==null?void 0:y.previews)??[]).length;requestAnimationFrame(()=>se.scrollTo(ae))},[y==null?void 0:y.previews]),m.useEffect(()=>()=>{j.current=null},[]),i.jsxs(v.Stack,{gap:"xs","data-test-id":"video-settings-cover-section",children:[i.jsx(v.Text,{className:"video-settings-modal-section-title","data-test-id":"video-settings-cover-title",children:r}),N&&i.jsxs(v.Group,{gap:"xs",mb:"xs",children:[i.jsx(v.Text,{size:"sm",c:"red",children:c}),d&&i.jsx(v.Button,{variant:"light",size:"xs",onClick:J,children:d})]}),i.jsxs(df.Carousel,{className:"video-settings-modal-cover-carousel",classNames:{controls:"video-settings-modal-cover-controls",control:"video-settings-modal-cover-control"},slideSize:"33.333%",slideGap:"10px",emblaOptions:{loop:!1},withControls:q,draggable:Z>1,nextControlIcon:i.jsx($,{icon:Bs,size:20,color:"currentColor"}),previousControlIcon:i.jsx($,{icon:tA,size:20,color:"currentColor"}),getEmblaApi:se=>{j.current=se},children:[i.jsx(df.Carousel.Slide,{children:i.jsx(v.Box,{className:"video-settings-modal-cover-cell",children:i.jsx(Rg.Dropzone,{className:"video-settings-modal-cover-upload",onDrop:xe,accept:Rg.IMAGE_MIME_TYPE,maxFiles:1,disabled:!f,style:f?void 0:{opacity:.7,pointerEvents:"none"},children:i.jsxs(v.Box,{className:"video-settings-modal-cover-upload-inner",children:[i.jsx($,{icon:rA,size:20,color:"var(--mantine-color-bright)"}),i.jsx(v.Text,{size:"sm",fw:500,className:"video-settings-modal-cover-upload-label",children:o})]})})})}),z.map(se=>{const X=we!=null?se.url===we:F!=null&&se.id===F,ae=M.has(se.id),pe=O.has(se.id);return i.jsx(df.Carousel.Slide,{children:i.jsxs(v.Box,{className:`video-settings-modal-cover-cell video-settings-modal-cover-thumb ${X&&!pe?"selected":""} ${ae?"loading":""} ${pe?"error":""}`,onClick:()=>{pe||(k(se.id),A==null||A(se.url))},role:"button",tabIndex:0,onKeyDown:ge=>ge.key==="Enter"&&!pe&&(()=>{k(se.id),A==null||A(se.url)})(),children:[i.jsx("img",{src:se.url,alt:"",onLoad:()=>ee(se.id),onError:()=>Q(se.id)}),ae&&i.jsx("span",{className:"video-settings-modal-cover-spinner","aria-hidden":!0,children:i.jsx(v.Loader,{size:"sm",color:"gray"})}),pe&&i.jsx("span",{className:"video-settings-modal-cover-error-icon","aria-hidden":!0,children:i.jsx($,{icon:Jh,size:24,color:"#fff"})}),X&&!pe&&i.jsx("span",{className:"video-settings-modal-cover-check","aria-hidden":!0,children:i.jsx(_B,{size:32})})]})},se.id)})]})]})}function f_({cancelLabel:e,saveLabel:n,onCancel:t,onSave:r,isSaving:o}){return i.jsxs(v.Group,{justify:"flex-end",gap:8,children:[i.jsx(v.Button,{size:"sm",variant:"subtle",color:"gray",radius:"md",onClick:t,disabled:o,"data-test-id":"video-settings-cancel",children:e}),i.jsx(v.Button,{size:"sm",radius:"md",onClick:r,loading:o,"data-test-id":"video-settings-save",children:n})]})}const yu=[{value:"en",label:"English"},{value:"es",label:"Español"},{value:"fr",label:"Français"},{value:"de",label:"Deutsch"},{value:"it",label:"Italiano"},{value:"pt",label:"Português"},{value:"ru",label:"Русский"},{value:"uk",label:"Українська"},{value:"pl",label:"Polski"},{value:"nl",label:"Nederlands"},{value:"sv",label:"Svenska"},{value:"no",label:"Norsk"},{value:"da",label:"Dansk"},{value:"fi",label:"Suomi"},{value:"tr",label:"Türkçe"},{value:"ar",label:"العربية"},{value:"he",label:"עברית"},{value:"hi",label:"हिन्दी"},{value:"ja",label:"日本語"},{value:"ko",label:"한국어"},{value:"zh",label:"中文"},{value:"ro",label:"Română"}],xC="ru",Uh=yu.reduce((e,n)=>(e[n.value]=n.label,e),{});function h_({videoId:e,baseUrl:n,authToken:t,statusSubtitles:r,onTracksChange:o,onSave:s}){const{t:l}=Ke.useTranslation(),{reportError:c}=rp(),d=sp,[f,h]=m.useState([]),[g,A]=m.useState([]),b=m.useRef(new Map),[y,x]=m.useState(!1),w=m.useMemo(()=>f.find(bu)??null,[f]);m.useEffect(()=>{w&&x(w.isDisabled)},[w]);const k=m.useMemo(()=>({baseUrl:n,authToken:t}),[n,t]),T=m.useCallback(j=>{w&&(x(j),h(D=>D.map(z=>z.id===w.id?{...z,isDisabled:j}:z)))},[w]),I=m.useRef(null);m.useEffect(()=>{w&&I.current===null&&(I.current=w.isDisabled)},[w]);const N=m.useCallback(async(j=!1)=>{if(e){if(j||r==null)try{const D=await gC(e,k);h(D);return}catch{}try{const D=await gC(e,k);h(D)}catch{if(r!=null){const D=(r||[]).map(Ui).filter(z=>z.id);h(D)}else try{const D=await zi(e),z=((D==null?void 0:D.subtitles)||[]).map(Ui).filter(H=>H.id);h(z)}catch(D){c(D,"subtitles",e)}}}},[e,k,c,r]);m.useEffect(()=>{if(!e){h([]),A([]);return}N().catch(()=>{})},[e,N]),m.useEffect(()=>{o==null||o(f)},[f,o]),m.useEffect(()=>{s==null||s(async()=>{!e||!w||y!==I.current&&(await WB(e,w.id,y,k),I.current=y)})},[s,e,w,y,k]);const L=m.useMemo(()=>{const j=f.filter(z=>!bu(z)),D=new Map;for(const z of j)D.set(z.lang,z);return Array.from(D.values())},[f]),M=m.useMemo(()=>{const j=new Set(L.map(D=>D.lang));return g.forEach(D=>{D.lang&&j.add(D.lang)}),j},[L,g]),S=m.useCallback(()=>{var z;const j=((z=yu.find(H=>!M.has(H.value)))==null?void 0:z.value)??(M.has(xC)?null:xC),D=j?Uh[j]||j:null;A(H=>[...H,{id:crypto.randomUUID(),lang:j,label:D,status:"draft"}])},[M]),O=m.useCallback((j,D)=>{A(z=>z.map(H=>H.id===j?{...H,...D}:H))},[]),R=m.useCallback(async(j,D)=>{if(!e)return;const z=g.find(F=>F.id===j);if(!(z!=null&&z.lang))return;const H=new AbortController;b.current.set(j,H),O(j,{status:"uploading",fileName:D.name});try{const F=await FB(e,D,{lang:z.lang,label:z.label||Uh[z.lang]||z.lang,kind:"subtitles",default:!1,signal:H.signal},k);b.current.delete(j),A(Z=>Z.filter(q=>q.id!==j)),F?h(Z=>Z.find(q=>q.id===F.id)?Z:[...Z,F]):await N(!0)}catch(F){b.current.delete(j),O(j,{status:"error"}),c(F,"subtitles",e)}},[e,g,k,N,O,c]),B=m.useCallback(async j=>{e&&(h(D=>D.filter(z=>z.id!==j)),await zB(e,j,k))},[e,k]),_=m.useCallback(j=>{A(D=>D.filter(z=>z.id!==j))},[]);return i.jsxs("div",{className:"video-settings-modal-subtitles",children:[w&&i.jsxs(v.Flex,{align:"center",gap:"md",className:"video-settings-modal-subtitles-auto-toggle",children:[i.jsx(v.Text,{size:"sm",fw:500,c:"var(--mantine-color-bright)",flex:1,children:l("editor.video.settingsModal.hideAutoSubtitles")}),i.jsx(v.Switch,{size:"sm",checked:y,onChange:j=>T(j.currentTarget.checked)})]}),w&&i.jsx(v.Divider,{my:4}),i.jsx(v.Text,{size:"sm",mb:0,className:"video-settings-modal-subtitles-label video-settings-modal-text-label",children:l("editor.video.settingsModal.uploadSubtitlesManually")}),L.map(j=>i.jsxs(v.Flex,{align:"center",gap:"xs",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[i.jsx(d,{size:"sm",data:yu,value:j.lang,disabled:!0,flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},classNames:{input:"video-settings-modal-language-select"}}),i.jsxs(v.Flex,{align:"center",gap:6,flex:1,children:[i.jsx(To,{size:20,color:"var(--mantine-color-green-6)"}),i.jsx(v.Text,{size:"sm","data-test-id":"video-settings-subtitle-success",children:l("editor.video.settingsModal.successfullyLoaded")})]}),i.jsxs(v.Menu,{position:"bottom-end",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions","data-test-id":"video-settings-subtitle-row-menu",children:i.jsx(ip,{size:20})})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(v.Menu.Item,{color:"red",onClick:()=>B(j.id),"data-test-id":"video-settings-subtitle-delete",children:l("editor.video.settingsModal.deleteSubtitle")})})]})]},j.id)),g.map(j=>i.jsx(p_,{draft:j,usedLanguages:M,onChange:D=>O(j.id,D),onUpload:D=>R(j.id,D),onRemove:()=>_(j.id),SelectComponent:d},j.id)),i.jsx(v.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:S,"data-test-id":"video-settings-subtitle-add",children:l("editor.video.settingsModal.addSubtitleTrack")})]})}function p_({draft:e,usedLanguages:n,onChange:t,onUpload:r,onRemove:o,SelectComponent:s}){const{t:l}=Ke.useTranslation(),c=m.useRef(null),d=m.useMemo(()=>yu.filter(h=>h.value===e.lang||!n.has(h.value)),[n,e.lang]),f=h=>{var A;const g=(A=h.target.files)==null?void 0:A[0];h.target.value="",g&&r(g)};return i.jsx(v.Box,{children:i.jsxs(v.Flex,{align:"center",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[i.jsx(s,{size:"sm",placeholder:l("editor.video.settingsModal.selectLanguage"),data:d,value:e.lang,onChange:h=>t({lang:h,label:h?Uh[h]:null}),flex:1,miw:140,w:"auto",comboboxProps:{width:"target"},inputClassName:"video-settings-modal-language-select"}),i.jsx(v.Flex,{align:"center",gap:6,flex:1,children:e.status==="uploading"?i.jsx(v.Loader,{size:22}):i.jsxs(i.Fragment,{children:[i.jsx("input",{ref:c,type:"file",accept:".srt,.vtt",hidden:!0,onChange:f}),i.jsx(v.Button,{variant:"light",size:"sm",className:"video-settings-modal-upload-button",disabled:!e.lang,onClick:()=>{var h;return(h=c.current)==null?void 0:h.click()},"data-test-id":"video-settings-subtitle-upload-file",children:l("editor.video.settingsModal.uploadFile")})]})}),i.jsxs(v.Menu,{position:"bottom-end",children:[i.jsx(v.Menu.Target,{children:i.jsx(v.ActionIcon,{size:36,variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:i.jsx(ip,{size:20})})}),i.jsx(v.Menu.Dropdown,{children:i.jsx(v.Menu.Item,{color:"red",onClick:o,children:l("editor.video.settingsModal.deleteSubtitle")})})]}),e.status==="error"&&i.jsx(v.Text,{size:"sm",c:"red",children:l("editor.video.settingsModal.uploadError")})]})})}function vC({opened:e,onClose:n,videoId:t,initialStatus:r,onStatusChange:o,onPosterChange:s,onChaptersSaved:l,onChaptersDisabledChange:c,onSubtitlesSaved:d,posterUrl:f,chaptersDisabled:h=!1,shakaPlayer:g,nativeVideo:A,videoDuration:b,playerMode:y="native"}){const{t:x}=Ke.useTranslation(),[w,k]=m.useState(h),[T,I]=m.useState(null),[N,L]=m.useState(r??null),[M,S]=m.useState([]),O=m.useRef(null),R=m.useRef(null),[B,_]=m.useState(!1),j=m.useCallback(F=>{I(F)},[]);m.useEffect(()=>{r&&L(r)},[r]),m.useEffect(()=>{!e||!t||zi(t).then(F=>{F&&(L(F),o==null||o(F))}).catch(()=>{})},[e,t]),m.useEffect(()=>{e&&k(h)},[e,h]);const D=m.useCallback(async F=>{if(t)return fB(t,F)},[t]),z=m.useCallback(async()=>{_(!0);try{if(O.current){const F=await O.current();Array.isArray(F)&&(l==null||l(F))}if(c==null||c(w),R.current&&await R.current(),d==null||d(M),T!==null&&(s==null||s(T)),t){const F=await zi(t);o==null||o(F)}n()}finally{_(!1)}},[t,w,c,l,n,s,o,d,T,M]),H=i.jsxs(i.Fragment,{children:[i.jsx(v.Box,{className:"video-settings-modal-body",children:i.jsxs(v.Stack,{gap:32,children:[i.jsx(d_,{opened:e,videoId:t,initialStatus:N,title:x("editor.video.settingsModal.cover"),uploadLabel:x("editor.video.settingsModal.uploadFile"),cropLabel:x("editor.video.settingsModal.cropCoverImage"),emptyCoverLabel:x("editor.video.settingsModal.emptyCovers"),loadErrorLabel:x("editor.video.settingsModal.loadError"),retryLabel:x("editor.video.settingsModal.retry"),onCoverUpload:D,onSelectedPosterChange:j,selectedPosterUrl:T??f??null}),i.jsxs(v.Stack,{gap:"xs",children:[i.jsxs(v.Flex,{align:"center",gap:6,children:[i.jsx(v.Text,{className:"video-settings-modal-section-title",children:x("editor.video.settingsModal.subtitles")}),i.jsx(v.Tooltip,{label:x("editor.video.settingsModal.subtitlesFormatHint"),position:"right",withArrow:!0,children:i.jsx($,{icon:sk,size:16,color:"var(--mantine-color-dimmed)"})})]}),i.jsx(h_,{videoId:t,mode:y,shakaPlayer:g,nativeVideo:A,statusSubtitles:N==null?void 0:N.subtitles,onTracksChange:S,onSave:F=>{R.current=F}})]}),i.jsx(u_,{videoId:t,initialChapters:N==null?void 0:N.chapters,nativeVideo:A,shakaPlayer:g,videoDuration:b,title:x("editor.video.settingsModal.chapters"),customLabel:x("editor.video.settingsModal.chaptersCustom"),dontShowLabel:x("editor.video.settingsModal.chaptersDontShow"),chaptersDisabled:w,onChaptersDisabledChange:k,onSave:F=>{O.current=F},timePlaceholder:x("editor.video.settingsModal.chaptersTimePlaceholder"),titlePlaceholder:x("editor.video.settingsModal.chaptersTitlePlaceholder"),endTimePlaceholder:x("editor.video.settingsModal.chaptersEndTimePlaceholder"),addChapterLabel:x("editor.video.settingsModal.addChapter"),deleteChapterLabel:x("editor.video.settingsModal.deleteChapter"),emptyLabel:x("editor.video.settingsModal.emptyChapters"),errorLabel:x("editor.video.settingsModal.chaptersError"),invalidRangeLabel:x("editor.video.settingsModal.chaptersInvalidTimeRange"),addTranscriptManuallyLabel:x("editor.video.settingsModal.addTranscriptManually")})]})}),i.jsx(v.Box,{className:"video-settings-modal-footer",children:i.jsx(f_,{cancelLabel:x("editor.video.settingsModal.cancel"),saveLabel:x("editor.video.settingsModal.save"),onCancel:n,onSave:z,isSaving:B})})]});return st?i.jsx(v.Drawer,{opened:e,onClose:n,title:x("editor.video.settingsModal.title"),position:"bottom",size:"auto",radius:"lg",zIndex:300,className:"video-settings-modal",classNames:{content:"video-settings-drawer",header:"video-settings-drawer__header",title:"video-settings-drawer__title",body:"video-settings-drawer__body"},children:H}):i.jsx(v.Modal,{opened:e,onClose:n,title:x("editor.video.settingsModal.title"),size:"md",radius:"lg",zIndex:300,className:"video-settings-modal",children:H})}function wC(e){if(e==="inherit")return 100;if(typeof e=="number")return e;if(typeof e=="string"){const n=parseFloat(e);if(!isNaN(n))return n}return 100}function m_({className:e,format:n,platform:t,videoID:r,editor:o,nodeKey:s,width:l,height:c,alignment:d}){const f=Z1,[h,{open:g,close:A}]=Ft.useDisclosure(!1),[,b]=m.useState(!1),[y,x]=m.useState(!0),[w,k]=m.useState(!1),[T,I]=m.useState(!1),[N,L]=m.useState(null),[M,S]=m.useState(!1),[O,R]=m.useState(null),[B,_]=m.useState(null),[j,D]=m.useState(null),[z,H]=m.useState(!0),[F,Z]=m.useState(!1),[q,ee]=m.useState({shakaPlayer:null,nativeVideo:null,mode:"native",containerEl:null,videoDuration:null}),Q=m.useMemo(()=>t==="download"||t==="link"?es(t,r):null,[t,r]),{t:J}=Ke.useTranslation(),xe=(G,he=!1,oe,K)=>{Z5(o,s,{url:G,isLink:he,platformOverride:oe,overrideId:K})||b(!0)},we=(G,he)=>{A_(o,s,G,he)},Te=G=>{x(["video-preview"].includes(G))},Fe=()=>{var he,oe,K;const G=document.pictureInPictureElement;if(G){const Y=((oe=(he=q.shakaPlayer)==null?void 0:he.getMediaElement)==null?void 0:oe.call(he))||null,ne=q.nativeVideo||null,fe=q.containerEl||null,Ce=G instanceof HTMLVideoElement&&(ne&&ne.currentSrc===G.currentSrc||Y&&Y.currentSrc===G.currentSrc);(G===Y||G===ne||fe&&fe.contains(G)||Ce)&&((K=document.exitPictureInPicture)==null||K.call(document).catch(()=>{}))}v_(o,s)},se=m.useCallback(G=>{L(G),b_(o,s,G)},[o,s]),X=m.useCallback(G=>{S(G),x_(o,s,G)},[o,s]),ae=m.useCallback(G=>{ee(G)},[]);m.useEffect(()=>{o.getEditorState().read(()=>{const G=p.$getNodeByKey(s);Ji(G)&&(L(G.getPosterUrl()||null),S(G.getChaptersDisabled()))})},[o,s]);const pe=M?[]:O,ge={className:e,format:n,nodeKey:s,onUploadComplete:(G,he)=>{xe(G,!1,"download",he)},onStateChange:Te,initialVideoState:r&&(t==="download"||t==="link"||t==="youtube"||t==="vk"||t==="rutube")?"video-preview":void 0};return i.jsx(N1,{editor:o,isIcon:!1,isEmbed:!0,width:wC(l),height:wC(c),onResizeEnd:we,alignment:d,type:"video",disableInteractions:!y||T,children:i.jsxs("div",{className:"media-wrapper",children:[st?i.jsxs(i.Fragment,{children:[i.jsx(uC,{className:"visible",children:i.jsx(Jt,{label:J("editor.video.mobile.actions"),tooltipDisabled:!0,icon:qn,iconColor:"var(--mantine-color-gray-text)","aria-label":J("editor.video.mobile.actions"),className:"media-action",onClick:G=>{G.stopPropagation(),g()}})}),i.jsx(Bt,{opened:h,onClose:A,title:J("editor.video.mobile.actions"),children:i.jsxs(v.Stack,{gap:4,p:0,children:[z&&F&&i.jsx(v.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{A(),I(!0)},leftSection:i.jsx($,{icon:Kg,size:16,color:"var(--mantine-color-dimmed)"}),children:J("editor.video.player.settings")}),i.jsx(v.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",onClick:()=>{A(),Fe()},leftSection:i.jsx($,{icon:sn,size:16,color:"var(--mantine-color-red-6)"}),children:J("editor.video.delete")})]})}),z&&F&&i.jsx(vC,{opened:T,onClose:()=>I(!1),videoId:r,initialStatus:j,onStatusChange:D,posterUrl:N,onPosterChange:se,onChaptersSaved:G=>R(G),onSubtitlesSaved:G=>_(G),chaptersDisabled:M,onChaptersDisabledChange:X,shakaPlayer:q.shakaPlayer,nativeVideo:q.nativeVideo,playerMode:q.mode,videoDuration:q.videoDuration})]}):i.jsxs(uC,{children:[z&&F&&i.jsxs(i.Fragment,{children:[i.jsx(Jt,{label:J("editor.video.player.settings"),"aria-label":"Settings",className:"media-action",icon:Kg,iconColor:"var(--mantine-color-gray-text)",onClick:G=>{G.stopPropagation(),I(!0)}}),i.jsx(vC,{opened:T,onClose:()=>I(!1),videoId:r,initialStatus:j,onStatusChange:D,posterUrl:N,onPosterChange:se,onChaptersSaved:G=>R(G),onSubtitlesSaved:G=>_(G),chaptersDisabled:M,onChaptersDisabledChange:X,shakaPlayer:q.shakaPlayer,nativeVideo:q.nativeVideo,playerMode:q.mode,videoDuration:q.videoDuration})]}),f&&i.jsx(f,{opened:w,setOpened:k,t:J,editor:o,nodeKey:s}),i.jsx(Jt,{label:J("editor.video.delete"),"aria-label":"Delete",className:"media-action",icon:sn,iconColor:"var(--mantine-color-red-outline)",onClick:Fe})]}),i.jsx(r_,{...ge,initialVideoId:r,posterUrl:N,chaptersOverride:pe,subtitlesOverride:B,platform:t,fallbackNativeVideoUrl:Q,onStatusChange:D,onStatusAvailabilityChange:H,onOptimizedReadyChange:Z,onPlayerInfo:ae})]})})}function g_(e){return i.jsx(m_,{...e})}function kC(e){const n=e.getAttribute("data-lexical-platform"),t=e.getAttribute("data-lexical-videoid"),r=e.getAttribute("src"),o=e.getAttribute("poster"),s=e.getAttribute("data-lexical-chapters-disabled")==="true",l=parseFloat(e.getAttribute("width")??"100%"),c=parseFloat(e.getAttribute("height")??"100%"),d=e.getAttribute("data-lexical-alignment")||e.style.justifyContent||"left";if(n==="upload"||n==="unknown"&&!t&&!r){const A=Kh("upload",l,c,d,!0);return o&&A.setPosterUrl(o),s&&A.setChaptersDisabled(!0),{node:A}}const h=n||null,g=(typeof t=="string"&&t.length>0?t:null)||r||null;if(h&&g){const A=Kh(es(h,g),l,c,d);return h==="download"&&r&&A.setUrl(r),o&&A.setPosterUrl(o),s&&A.setChaptersDisabled(!0),{node:A}}return{node:null}}class Hs extends p.DecoratorNode{constructor(t,r,o,s,l,c,d="left",f){super(c);Ne(this,"__platform");Ne(this,"__id");Ne(this,"__url");Ne(this,"__posterUrl");Ne(this,"__chaptersDisabled");Ne(this,"__create");Ne(this,"__width");Ne(this,"__height");Ne(this,"__alignment");Ne(this,"__format");this.__platform=t,this.__id=r,this.__url="",this.__posterUrl="",this.__chaptersDisabled=!1,this.__create=f||!1,this.__width=s||560,this.__height=l||315,this.__alignment=d||"left",this.__format=o??null}static getType(){return"video"}static clone(t){const r=new Hs(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__alignment,t.__create);return r.__url=t.__url,r.__posterUrl=t.__posterUrl,r.__chaptersDisabled=t.__chaptersDisabled,r}static importJSON(t){let r=t.videoID;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)&&t.url){const l=t.url.match(/([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/i);l&&(r=l[1])}const s=new Hs(t.platform,r,t.format??null,t.width,t.height,void 0,t.alignment??"left",t.create);return t.url&&s.setUrl(t.url),t.posterUrl&&s.setPosterUrl(t.posterUrl),typeof t.chaptersDisabled=="boolean"&&s.setChaptersDisabled(t.chaptersDisabled),t.create&&s.setCreated(!0),s}exportJSON(){return{...super.exportJSON(),type:"video",version:1,platform:this.__platform,videoID:this.__id,url:this.__url,posterUrl:this.__posterUrl,chaptersDisabled:this.__chaptersDisabled,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment,format:this.__format}}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-videoid");return r!=="download"&&typeof o=="string"?{conversion:kC,priority:1}:null},video:t=>{const r=t.getAttribute("data-lexical-platform"),o=t.getAttribute("data-lexical-videoid"),s=t.getAttribute("src");return(r==="download"||r==="link")&&(typeof o=="string"||typeof s=="string")?{conversion:kC,priority:1}:null}}}isInline(){return!1}createDOM(){const t=document.createElement("div");return t.className="video-container",t.style.justifyContent=this.__alignment||"left",t.style.display="flex",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=this.__platform==="download"||this.__platform==="link"?"video":"iframe",r=document.createElement(t),o=this.__platform==="download"&&this.__url?this.__url:this.__id,s=es(this.__platform,o),l=s==="upload"?"":s;this.__platform==="download"||this.__platform==="link"?(r.setAttribute("controls","true"),this.__posterUrl&&r.setAttribute("poster",this.__posterUrl)):(r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen","true")),r.setAttribute("src",l),r.setAttribute("data-lexical-platform",this.__platform),r.setAttribute("data-lexical-videoid",this.__id),r.setAttribute("data-lexical-alignment",this.__alignment||"left"),this.__chaptersDisabled&&r.setAttribute("data-lexical-chapters-disabled","true"),r.setAttribute("width",this.__width.toString()+"%"),r.setAttribute("height",this.__height.toString()+"%"),r.setAttribute("style","aspect-ratio: 128 / 72 ");const c=document.createElement("span");return c.setAttribute("data-src",l),c.className="video-container",c.style.justifyContent=this.__alignment||"left",r.style.justifyContent=this.__alignment||"left",c.appendChild(r),{element:c}}decorate(t,r){const s={base:(r.theme.embedBlock||{}).base||"",focus:""};return m.createElement(g_,{editor:t,nodeKey:this.getKey(),format:this.__format,className:s,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment})}setPlatform(t){const r=this.getWritable();r.__platform=t}setFormat(t){const r=this.getWritable();r.__format=t}setId(t){const r=this.getWritable();r.__id=t}setUrl(t){const r=this.getWritable();r.__url=t}setPosterUrl(t){const r=this.getWritable();r.__posterUrl=t}setChaptersDisabled(t){const r=this.getWritable();r.__chaptersDisabled=t}setCreated(t){const r=this.getWritable();r.__create=t}getId(){return this.__id}getUrl(){return this.__url}getPosterUrl(){return this.__posterUrl}getChaptersDisabled(){return this.__chaptersDisabled}getFormat(){return this.__format}setAlignment(t){const r=this.getWritable();r.__alignment=t}getTextContent(){const t=this.__platform==="download"&&this.__url?this.__url:this.__id;return es(this.__platform,t)}setWidthAndHeight(t,r){const o=this.getWritable();o.__width=t,o.__height=r}}function Kh(e,n,t,r,o){const s=e.startsWith("https")||e.startsWith("http"),{platform:l,id:c}=B5(e,s);return new Hs(l,c||"",void 0,n,t,void 0,r,o)}function Ji(e){return e instanceof Hs}function C_(e,n){e.update(()=>{const t=Kh(n,"100%","100%","left",n==="upload");t.setChaptersDisabled(!0),_i(t)},{tag:"skip-scroll-into-view"})}function Z5(e,n,{url:t,isLink:r=!1,platformOverride:o,overrideId:s}){const{platform:l,id:c}=o&&s?{platform:o,id:s}:B5(t,r);if(!c&&l!=="upload")return!1;const d=c??"";return e.update(()=>{const f=p.$getNodeByKey(n);if(!f||!Ji(f))return;f.setPlatform(l),f.setId(d),f.setUrl(t),f.setCreated(!1);const h=f.getNextSibling();h&&p.$setSelection(h.selectNext())},{tag:"skip-scroll-into-view"}),!0}function A_(e,n,t,r){e.update(()=>{const o=p.$getNodeByKey(n);!o||!Ji(o)||o.setWidthAndHeight(t,r)},{tag:"skip-scroll-into-view"})}function b_(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!Ji(r)||r.setPosterUrl(t||"")},{tag:"skip-scroll-into-view"})}function y_(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!Ji(r)||r.setUrl(t)},{tag:"skip-scroll-into-view"})}function x_(e,n,t){e.update(()=>{const r=p.$getNodeByKey(n);!r||!Ji(r)||r.setChaptersDisabled(t)},{tag:"skip-scroll-into-view"})}function v_(e,n){Su(e,n)}function w_(){const[e]=it.useLexicalComposerContext(),{t:n}=Ke.useTranslation(),{imperativeHandleRef:t,maxFileSize:r,onTrack:o}=rp();return m.useEffect(()=>{if(!e.hasNodes([Hs]))throw new Error("VideoPlugin: VideoNode not registered on editor");const s=l=>{if(l.length>1){At.showErrorNotification({message:n("editor.validation.doNotUploadMoreThanSingleFile")});return}const c=l[0];if(!c)return;if(!(c.type.includes("video/")||c.name.match(/\.(mp4|webm|ogg|mov|avi|mkv|flv|wmv|m4v|3gp|mpg|mpeg|ts|mts|m2ts|vob|asf|rm|rmvb|divx|xvid)$/i))){At.showErrorNotification({message:n("editor.video.errors.format")});return}if(c.size>r*1024*1024){At.showErrorNotification({message:n("editor.validation.shouldNotExceed",{maxSize:r})});return}o==null||o("media_video_added",{source:"upload"}),e.dispatchCommand(zh,"upload"),setTimeout(()=>{e.dispatchCommand(P5,l)})};return t!=null&&t.current&&(t.current.insertVideos=s),e.registerCommand(zh,l=>(C_(e,l),!1),p.COMMAND_PRIORITY_LOW)},[e,t,r,n,o]),null}function k_(e){return{key:"video",node:Hs,Plugin:w_,modes:{comment:!1,default:!0,editor:!0},Provider:({children:t,imperativeHandleRef:r})=>i.jsx(aB,{config:e,imperativeHandleRef:r,children:t}),slashMenu:{parentKey:"media",name:"editor.menu.media.video.name",description:"editor.menu.media.video.subtitle",hint:"editor.menu.media.video.hint.description",keywords:["video","youtube","rutube","vkvideos","mp4","webm","media"],icon:i.jsx($,{icon:Tk,size:16}),command:zh,commandPayload:"upload"}}}function S_(e,n=!0){const t=n?"rootStart":"rootEnd";e.focus(()=>{},{defaultSelection:t})}exports.$createExcalidrawNode=R1;exports.$createNewParagraph=wA;exports.$isEquationNode=Po;exports.$isExcalidrawNode=NT;exports.$isImageNode=Pr;exports.$tr=Ua;exports.$writeImagePickerTabToNode=oh;exports.ActionIcon=Jt;exports.AlignmentImage=Z1;exports.AlignmentMenu=hb;exports.CREATE_TEMPLATE=kA;exports.Context=ft;exports.EDITOR_UI_MIN_Z_INDEX=ki;exports.Editor=D5;exports.ExcalidrawNode=ds;exports.HugeiconsIcon=$;exports.INSERT_EXCALIDRAW_COMMAND=bb;exports.IS_HOVER_CAPABLE=ps;exports.IS_TOUCH_DEVICE=st;exports.IS_TOUCH_TABLET=Yn;exports.Icon=bn;exports.ImageNode=gr;exports.ImagePicker=L5;exports.K1=qn;exports.MediaActionMenu=Qb;exports.MobileDrawer=Bt;exports.O1=Hi;exports.OPEN_EQUATION_POPUP_COMMAND=Xc;exports.PreviewImage=Jb;exports.ResizableContainer=N1;exports.StylesProvider=I5;exports.Tm=Ni;exports.UPLOAD_IMAGE_COMMAND=vb;exports.blockScroll=ll;exports.commonjsGlobal=ba;exports.createMediaComponent=_i;exports.createPopupKeyDownHandler=t5;exports.deleteNode=Su;exports.downloadImageFromExternalUrl=qb;exports.focusEditor=S_;exports.getDefaultExportFromCjs=UI;exports.gn=eA;exports.inferImageFilenameFromUrl=Vb;exports.lg=sn;exports.mediaMap=Lr;exports.parseContainerSize=pb;exports.tf=nA;exports.unblockScroll=cl;exports.useCancelUpload=NA;exports.useExcalidrawBehaviour=jT;exports.useSettings=P1;exports.useSharedHistoryContext=B1;exports.videoPlugin=k_;
|