@layers-app/editor 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/{layers.vlkCR4ya.js → layers.-lV2lwGH.js} +1 -1
- package/dist/{layers.BvbL_AZ7.js → layers.-vdm32Kk.js} +1 -1
- package/dist/{layers.B1fRMA0Z.js → layers.0Zs6l4wv.js} +1 -1
- package/dist/{layers.DiZDRCpZ.js → layers.3gYdDS6F.js} +2 -2
- package/dist/{layers.k9hrlkXb.js → layers.45IQRqoO.js} +1 -1
- package/dist/{layers.w8D_vh7N.js → layers.4V1F07EB.js} +1 -1
- package/dist/{layers.Hu2VXCgo.js → layers.5unTKxEU.js} +1 -1
- package/dist/{layers.BzM7GSA-.js → layers.7X3hPKmt.js} +1 -1
- package/dist/{layers.CtihRJtL.js → layers.7sd_9f42.js} +1 -1
- package/dist/{layers.x3AXILzz.js → layers.B-xQhUPg.js} +1 -1
- package/dist/{layers.BYVvja2q.js → layers.B02kvQyc.js} +1 -1
- package/dist/{layers.CFGyrFzG.js → layers.B21kRLes.js} +1 -1
- package/dist/{layers.yPbDu8O2.js → layers.B3-ko3T8.js} +1 -1
- package/dist/{layers.BkWBw86S.js → layers.B3KlJjVx.js} +1 -1
- package/dist/{layers.CB01VchX.js → layers.B3lXtQox.js} +1 -1
- package/dist/{layers.CsTTh_qI.js → layers.B4bEIufK.js} +1 -1
- package/dist/{layers.D7_FyNWr.js → layers.B5iWOKiD.js} +1 -1
- package/dist/{layers.l0oO2G-l.js → layers.B8JuChWK.js} +1 -1
- package/dist/{layers.D9zRAry_.js → layers.BBm5ADQE.js} +1 -1
- package/dist/{layers.CkbQvYXr.js → layers.BEH2Lrrt.js} +1 -1
- package/dist/{layers.B245KuVv.js → layers.BFOI1HlH.js} +4 -4
- package/dist/{layers.BYYSb9L7.js → layers.BHTeqvkt.js} +1 -1
- package/dist/{layers.VVYmLGsf.js → layers.BJvqVNTU.js} +1 -1
- package/dist/{layers.CUmZJVeC.js → layers.BLWDa4jr.js} +1 -1
- package/dist/{layers.D1KNjEjx.js → layers.BM4m64gR.js} +1 -1
- package/dist/{layers.Dw8EnXU6.js → layers.BMtdTHcG.js} +1 -1
- package/dist/{layers.Cx0tVUEt.js → layers.BP0iDzdK.js} +1 -1
- package/dist/{layers.aS0v40Ow.js → layers.BQC3ZQo1.js} +3 -3
- package/dist/{layers.C4d2ivsW.js → layers.BQU_nSe4.js} +1 -1
- package/dist/{layers.BZ5PLk6l.js → layers.BQci2M01.js} +12747 -12633
- package/dist/{layers.DMRqhfXL.js → layers.BRCxgJZ9.js} +1 -1
- package/dist/{layers.CSJ1_ALT.js → layers.BSW0hiM2.js} +1 -1
- package/dist/{layers.CZffXnuI.js → layers.BSWulGum.js} +3 -3
- package/dist/{layers.Dtchd8rf.js → layers.BTxIAmV0.js} +1 -1
- package/dist/{layers.DDJ63W1S.js → layers.BUYp6i47.js} +1 -1
- package/dist/{layers.5yTjEzBb.js → layers.BXyk5Nf4.js} +1 -1
- package/dist/{layers.DUhFFfRB.js → layers.BYqYLcYX.js} +1 -1
- package/dist/{layers.DganaPy0.js → layers.B_mLrIa4.js} +1 -1
- package/dist/{layers.AooImD_K.js → layers.BbEZKqIE.js} +1 -1
- package/dist/{layers.BsaiEm2A.js → layers.Bbo2B6tu.js} +1 -1
- package/dist/{layers.CHM-F8UA.js → layers.Bdq78wrM.js} +1 -1
- package/dist/{layers.DUaQxHuc.js → layers.Bf9A-ye-.js} +1 -1
- package/dist/{layers.DvEwcn9C.js → layers.BhpjyPXA.js} +1 -1
- package/dist/{layers.C7CxwSmZ.js → layers.Bi7lHC-I.js} +1 -1
- package/dist/{layers.M3mPT6bT.js → layers.Bl0537vE.js} +1 -1
- package/dist/{layers.IcYu1FtG.js → layers.Bp7zZzTR.js} +1 -1
- package/dist/{layers.CSbF64QW.js → layers.BpABqCqH.js} +1 -1
- package/dist/{layers.DKISK9Yl.js → layers.Bq2ESuzk.js} +1 -1
- package/dist/{layers.B3Fy2J7c.js → layers.BqFssDSB.js} +4 -4
- package/dist/{layers.C8N1FXB5.js → layers.Bqvw0aJ6.js} +1 -1
- package/dist/{layers.28f8Ic1N.js → layers.Brz9SKXS.js} +1 -1
- package/dist/{layers.C8HjBPWY.js → layers.BtftYzeJ.js} +1 -1
- package/dist/{layers.CZ8ngw8l.js → layers.BuFe7YGR.js} +1 -1
- package/dist/{layers.i5mO6stD.js → layers.BurGzwaR.js} +1 -1
- package/dist/{layers.C_toHOHr.js → layers.BvDafq6i.js} +1 -1
- package/dist/{layers.DVOQIMZA.js → layers.BxV4q6F1.js} +1 -1
- package/dist/{layers.5mKYQfYu.js → layers.BzGt5IHU.js} +1 -1
- package/dist/{layers.CZpgoAb0.js → layers.C-zWLB2V.js} +1 -1
- package/dist/{layers.Ma8khBS9.js → layers.C0Qcfwhk.js} +1 -1
- package/dist/{layers.yxwUMoJc.js → layers.C12744dd.js} +1 -1
- package/dist/{layers.Dr7qiXkj.js → layers.C1Id_3en.js} +5 -5
- package/dist/{layers.PwxOANQI.js → layers.C3vo-cky.js} +1 -1
- package/dist/{layers.DZnLttF9.js → layers.C5DnxTAO.js} +3 -3
- package/dist/{layers.B4Kl4o5m.js → layers.C8WrJ-XQ.js} +1 -1
- package/dist/{layers.BxTAkSmV.js → layers.CA7D9r1V.js} +1 -1
- package/dist/{layers.Iaz9KXJf.js → layers.CAGdSWDT.js} +1 -1
- package/dist/{layers.DtYkIdNp.js → layers.CBLLm67F.js} +1 -1
- package/dist/{layers.DwRGDhKS.js → layers.CBXvxB3p.js} +1 -1
- package/dist/{layers.Dxut6t1W.js → layers.CBvSYvjy.js} +1 -1
- package/dist/{layers.D_rQgEgo.js → layers.CJZ01PKj.js} +1 -1
- package/dist/{layers.I3QrsOdJ.js → layers.CK63fygI.js} +1 -1
- package/dist/{layers.CJbMPuti.js → layers.CKNnhB5v.js} +1 -1
- package/dist/{layers.CMr0-SfN.js → layers.CNEWS4_p.js} +1 -1
- package/dist/{layers.D0-673dS.js → layers.COUg3gCJ.js} +1 -1
- package/dist/{layers.CCvG2Yim.js → layers.CWHrbk2M.js} +1 -1
- package/dist/{layers.BHfNyhgU.js → layers.CZivhNSz.js} +1 -1
- package/dist/{layers.D7_s7m7x.js → layers.CZosalSu.js} +2 -2
- package/dist/{layers.Bke-TiQX.js → layers.CafHVVJN.js} +1 -1
- package/dist/{layers.DakUxxVk.js → layers.CahM6icn.js} +1 -1
- package/dist/{layers.Bqt7xs4Q.js → layers.CccT_YG8.js} +1 -1
- package/dist/layers.CdKbdGMo.js +6 -0
- package/dist/{layers.DUj8mTPQ.js → layers.Cdbj5ntB.js} +4 -4
- package/dist/{layers.3K1UryuB.js → layers.CddRtC6g.js} +1 -1
- package/dist/{layers.DNzENpPl.js → layers.Ce2Q3raC.js} +1 -1
- package/dist/{layers.qUhfJQV8.js → layers.CehYMLGz.js} +1 -1
- package/dist/layers.CfVOq-SM.js +198 -0
- package/dist/{layers.Dl_TzBcl.js → layers.CfcZ3mH_.js} +5 -5
- package/dist/{layers.B2rOB10m.js → layers.CiI8Ak36.js} +2 -2
- package/dist/{layers.j7cr9oe0.js → layers.CjAS90kB.js} +1 -1
- package/dist/{layers.DeKiY2n5.js → layers.CjGFL0zQ.js} +1 -1
- package/dist/{layers.-SU2R0S_.js → layers.CkK9-eW7.js} +4 -4
- package/dist/{layers.R8jJFXGW.js → layers.CkkjjjNl.js} +1 -1
- package/dist/{layers.BfRpwcZO.js → layers.ClH4tykX.js} +3 -3
- package/dist/{layers.DD7TOHnD.js → layers.Cld5h-sx.js} +1 -1
- package/dist/{layers.BY49ir--.js → layers.CmD_r9ow.js} +1 -1
- package/dist/{layers.CRbCVfeA.js → layers.Cooy31bN.js} +1 -1
- package/dist/{layers.Bf3M8X4U.js → layers.Cp7KwYiF.js} +1 -1
- package/dist/{layers.CK_8G_5M.js → layers.CqiPGE_V.js} +1 -1
- package/dist/{layers.Bi6BBDZg.js → layers.Cr3R05Vr.js} +1 -1
- package/dist/{layers.DI6NSUbZ.js → layers.CrIBiGTR.js} +4 -4
- package/dist/{layers.DY5aXt_u.js → layers.CrTSZIH5.js} +1 -1
- package/dist/{layers.BRAFtCHR.js → layers.CsqEfQl5.js} +2 -2
- package/dist/{layers.BJHBWvpW.js → layers.CuaGHSEI.js} +1 -1
- package/dist/{layers.IpkpS6pB.js → layers.CueJrF4C.js} +1 -1
- package/dist/{layers.kyTLjHhm.js → layers.CueMpi21.js} +1 -1
- package/dist/{layers.BwKRdHXT.js → layers.CunXDsQ6.js} +1 -1
- package/dist/{layers.BYGbSQ_f.js → layers.CxNqEo9x.js} +1 -1
- package/dist/{layers.LKa2EwqH.js → layers.CymPjzct.js} +1 -1
- package/dist/{layers.Dj6i3sXU.js → layers.CzM-fKOt.js} +1 -1
- package/dist/{layers.e1dFXBng.js → layers.D1LaQ1rE.js} +1 -1
- package/dist/{layers.CjxkF_0n.js → layers.D21bbrkH.js} +1 -1
- package/dist/{layers.4IPLZY8C.js → layers.D2MhRdsU.js} +1 -1
- package/dist/{layers.CPUdF5EU.js → layers.D3Ss9JmR.js} +1 -1
- package/dist/layers.D4Q0iz96.js +8 -0
- package/dist/{layers.D9AODIUy.js → layers.D5Dscy4R.js} +4 -4
- package/dist/{layers.DhN5i15k.js → layers.D5IE_CMg.js} +1 -1
- package/dist/{layers.BzbZdaQK.js → layers.D629OejO.js} +1 -1
- package/dist/{layers.B0YOsIwQ.js → layers.D6oD2uFn.js} +1 -1
- package/dist/{layers.n-jIxMLY.js → layers.D7CXyMXN.js} +1 -1
- package/dist/{layers.DkMyEmyj.js → layers.D82C63cz.js} +1 -1
- package/dist/{layers.BrkaAE-O.js → layers.D8IIcWHp.js} +1 -1
- package/dist/{layers.CEkKWkoV.js → layers.D8e5tqX5.js} +1 -1
- package/dist/{layers.Pm9fUcYK.js → layers.DA4hhlt0.js} +1 -1
- package/dist/{layers.J1J6nYJj.js → layers.DAmXv6JO.js} +1 -1
- package/dist/{layers.BiV1K1-1.js → layers.DC6ncSkN.js} +1 -1
- package/dist/{layers.Cb3PnAyE.js → layers.DCsTbhRm.js} +1 -1
- package/dist/{layers.Gpj5PnBW.js → layers.DCzVabeF.js} +1 -1
- package/dist/{layers.B6-S3DpI.js → layers.DExVsGcg.js} +3 -3
- package/dist/{layers.qZy9eRfp.js → layers.DFTHuZqO.js} +1 -1
- package/dist/{layers.BkG6D25w.js → layers.DHYeDfLj.js} +1 -1
- package/dist/{layers.DxcbYX52.js → layers.DHxBpSqW.js} +1 -1
- package/dist/{layers.DJ96Hd6D.js → layers.DIqMS2HE.js} +1 -1
- package/dist/{layers.BHUv6Hwz.js → layers.DMcwM-58.js} +8 -8
- package/dist/{layers.C0goQeOV.js → layers.DRW1OnZH.js} +1 -1
- package/dist/{layers.DnPPThk3.js → layers.DSWHBv2N.js} +1 -1
- package/dist/{layers.D3HbmRtD.js → layers.DSrtE71b.js} +1 -1
- package/dist/{layers.UnEZCmOW.js → layers.DW0fw1Fv.js} +1 -1
- package/dist/{layers.CQwwZLLu.js → layers.DWr38gUT.js} +1 -1
- package/dist/{layers.BBxdjSrk.js → layers.DYgEmtkU.js} +3 -3
- package/dist/{layers.B7awHpXn.js → layers.Da9HR4cG.js} +1 -1
- package/dist/layers.DapfPpk1.js +1 -0
- package/dist/{layers.HcwolGtX.js → layers.DbxCfFFt.js} +1 -1
- package/dist/{layers.B5DIU6ap.js → layers.DcKTQ2bb.js} +1 -1
- package/dist/{layers.BTJN_g40.js → layers.Dcw0nh7u.js} +1 -1
- package/dist/{layers.CSraBvA-.js → layers.Dh-tgff-.js} +1 -1
- package/dist/{layers.CW5yjbhj.js → layers.Dj9f1RKJ.js} +1 -1
- package/dist/{layers.CdBJm1ZK.js → layers.DjjApu-l.js} +1 -1
- package/dist/{layers.C_Q9J5PN.js → layers.Dkkc06qx.js} +2 -2
- package/dist/{layers.B_Nrue1C.js → layers.DktblR8j.js} +6 -6
- package/dist/{layers.B6PvL60q.js → layers.DkzDR6Mc.js} +1 -1
- package/dist/{layers.C47AjcGH.js → layers.DqwINRyK.js} +1 -1
- package/dist/{layers.BeU6TTbX.js → layers.DrbJcoa8.js} +1 -1
- package/dist/layers.DrcpvlDZ.js +1 -0
- package/dist/{layers.DNlDoUEC.js → layers.DsbW3uau.js} +1 -1
- package/dist/{layers.NhFhu3Fs.js → layers.DtGhbQiA.js} +1 -1
- package/dist/{layers.BgzWayDD.js → layers.DuBV5QNA.js} +1 -1
- package/dist/{layers.nf_znrTV.js → layers.DuMH6Rcp.js} +1 -1
- package/dist/{layers.DzIFUnEl.js → layers.Dv8EEEGP.js} +3 -3
- package/dist/{layers.DCqy70LV.js → layers.Dw6DaJ57.js} +1 -1
- package/dist/{layers.B5DcDsRq.js → layers.Dx8uiE7b.js} +3 -3
- package/dist/{layers.Ctki-MR3.js → layers.DxJErbmI.js} +4 -4
- package/dist/{layers.vupBKycF.js → layers.Dy7QOSft.js} +1 -1
- package/dist/{layers.CB8AldBc.js → layers.Dz29E8L9.js} +2 -2
- package/dist/{layers.CErFoq9y.js → layers.EAHtqO1A.js} +1 -1
- package/dist/{layers.iSjr2hEB.js → layers.ELkGuDBl.js} +1 -1
- package/dist/{layers.BTdvn7NC.js → layers.GAyPuRrM.js} +1 -1
- package/dist/{layers.ZAFoS2q6.js → layers.GevvJTuk.js} +3 -3
- package/dist/{layers.CLKaidbs.js → layers.HNTRef_l.js} +2 -2
- package/dist/{layers.DWvyOlZi.js → layers.JivW3OAn.js} +1 -1
- package/dist/{layers.CIA6jCGY.js → layers.JxUfT8P4.js} +1 -1
- package/dist/{layers.GeLfXNrh.js → layers.KnBS6zI2.js} +1 -1
- package/dist/{layers.Bm84APcq.js → layers.MDuTrUkd.js} +1 -1
- package/dist/{layers.CRE6noK7.js → layers.Nzpxu2-N.js} +1 -1
- package/dist/{layers.CZX1be-P.js → layers.OPTAZnMz.js} +3 -3
- package/dist/{layers.CUwI_NIG.js → layers.PzvPl_aK.js} +1 -1
- package/dist/{layers.C_igTmBr.js → layers.QMnkxoL4.js} +1 -1
- package/dist/{layers.fDFlciWK.js → layers.QPtHBBQY.js} +1 -1
- package/dist/{layers.Csn0Ekzp.js → layers.QpYham_7.js} +1 -1
- package/dist/{layers.BOb4wEA9.js → layers.S5M2Os3o.js} +7 -7
- package/dist/{layers.BSsBahq4.js → layers.WaXPDp_M.js} +1 -1
- package/dist/{layers.Dlmbt5Y7.js → layers.YvetgjPz.js} +4 -4
- package/dist/{layers.DRasDDBx.js → layers.b1-NWk1V.js} +3 -3
- package/dist/{layers.QCD7wSni.js → layers.bqsIoBZ6.js} +1 -1
- package/dist/{layers.DoWVmbC8.js → layers.d6mM-Tg3.js} +4 -4
- package/dist/{layers.B8UUPnqJ.js → layers.fUzcGiab.js} +1 -1
- package/dist/{layers.DDBrzv-U.js → layers.g6LUKpac.js} +1 -1
- package/dist/{layers.CaW0I6pO.js → layers.gMvBPYjl.js} +1 -1
- package/dist/{layers.CMXNG8EV.js → layers.hAiL03pO.js} +24 -24
- package/dist/{layers.uhhMCAkE.js → layers.iJ4BVON3.js} +1 -1
- package/dist/{layers.D9NprNpV.js → layers.ibuByC-I.js} +1 -1
- package/dist/{layers.BIlDiXI_.js → layers.kWwsiPTz.js} +1 -1
- package/dist/{layers.W-AQmbl2.js → layers.lKCuPbB_.js} +1 -1
- package/dist/{layers.CvLklSz2.js → layers.mLI6TseH.js} +3 -3
- package/dist/{layers.Dxu5l0ms.js → layers.qiT3BO3y.js} +1 -1
- package/dist/{layers.C_76Fkdi.js → layers.rVk78JhT.js} +1 -1
- package/dist/{layers.YlheRSit.js → layers.rwZpheop.js} +1 -1
- package/dist/{layers.DUirlViz.js → layers.rxGrPm7z.js} +1 -1
- package/dist/{layers.DnIKJmyW.js → layers.seBRaPMO.js} +1 -1
- package/dist/{layers.DpbM4yhZ.js → layers.sho1kcJb.js} +1 -1
- package/dist/{layers.aH-1Sex4.js → layers.vIN-1RbZ.js} +1 -1
- package/dist/{layers.jOrxe7qe.js → layers.y8k_FlXF.js} +1 -1
- package/dist/{layers.DK_kInhA.js → layers.yo_BbAc9.js} +1 -1
- package/dist/{layers.oz51xZH5.js → layers.ytyC-52R.js} +1 -1
- package/dist/{layers.DW11GA8W.js → layers.zSNosXHY.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.CA4BSVgc.js +0 -6
- package/dist/layers.CAEjePWb.js +0 -198
- package/dist/layers.D_E8TG3f.js +0 -1
- package/dist/layers.hX5u36c8.js +0 -8
- package/dist/layers.k8N6sAp0.js +0 -1
package/dist/layers.CAEjePWb.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";var oP=Object.defineProperty;var lP=(n,t,e)=>t in n?oP(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var U=(n,t,e)=>lP(n,typeof t!="symbol"?t+"":t,e);const HA=require("@mantine/dropzone"),p=require("react/jsx-runtime"),x=require("react"),Je=require("react-i18next"),Dr=require("react-dom"),L=require("@mantine/core"),aP=require("i18next"),Rt=require("@layers-app/shared"),ie=require("@tabler/icons-react"),dl=require("lodash-es"),cP=require("shaka-player-react"),Om=require("@mantine/carousel"),uP=require("react-dom/server"),Ja=require("@mantine/hooks");function dP(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const xT=dP(x);function Ce(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function vT(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);e.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ts=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,fP=Ts&&"documentMode"in document?document.documentMode:null,gs=Ts&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),bl=Ts&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ch=!(!Ts||!("InputEvent"in window)||fP)&&"getTargetRanges"in new window.InputEvent("input"),vu=Ts&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Va=Ts&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,hP=Ts&&/Android/.test(navigator.userAgent),ST=Ts&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Rv=Ts&&hP&&ST,Su=Ts&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&gs&&!ST;function ET(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}const gP=0,pP=1,mP=2,kT=128,AP=1,yP=2,bP=3,wP=4,CP=5,xP=6,cg=vu||Va||Su?" ":"",vo=`
|
|
2
|
-
|
|
3
|
-
`,vP=bl?" ":cg,TT="֑-߿יִ-﷽ﹰ-ﻼ",_T="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",SP=new RegExp("^[^"+_T+"]*["+TT+"]"),EP=new RegExp("^[^"+TT+"]*["+_T+"]"),Pi={bold:1,capitalize:1024,code:16,highlight:kT,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},kP={directionless:1,unmergeable:2},jv={center:2,end:6,justify:4,left:1,right:3,start:5},TP={[yP]:"center",[xP]:"end",[wP]:"justify",[AP]:"left",[bP]:"right",[CP]:"start"},_P={normal:0,segmented:2,token:1},NP={[gP]:"normal",[mP]:"segmented",[pP]:"token"},Pv="$config";function NT(n,t,e,r,s,i){let o=n.getFirstChild();for(;o!==null;){const l=o.__key;o.__parent===t&&(X(o)&&NT(o,l,e,r,s,i),e.has(l)||i.delete(l),s.push(l)),o=o.getNextSibling()}}let YA=!1,Ly=0;function MP(n){Ly=n.timeStamp}function Rm(n,t,e){const r=n.nodeName==="BR",s=t.__lexicalLineBreak;return s&&(n===s||r&&n.previousSibling===s)||r&&Cg(n,e)!==void 0}function IP(n,t,e){const r=os(is(e));let s=null,i=null;r!==null&&r.anchorNode===n&&(s=r.anchorOffset,i=r.focusOffset);const o=n.nodeValue;o!==null&&Jy(t,o,s,i,!1)}function LP(n,t,e){if(J(n)){const r=n.anchor.getNode();if(r.is(e)&&n.format!==r.getFormat())return!1}return Qi(t)&&e.isAttached()}function DP(n,t,e,r){for(let s=n;s&&!mB(s);s=id(s)){const i=Cg(s,t);if(i!==void 0){const o=Te(i,e);if(o)return ft(o)||!Nt(s)?void 0:[s,o]}else if(s===r)return[r,b2(e)]}}function MT(n,t,e){YA=!0;const r=performance.now()-Ly>100;try{Tr(n,()=>{const s=Q()||(function(g){return g.getEditorState().read(()=>{const m=Q();return m!==null?m.clone():null})})(n),i=new Map,o=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let u=!1,d="";for(let g=0;g<t.length;g++){const m=t[g],A=m.type,y=m.target,b=DP(y,n,l,o);if(!b)continue;const[v,C]=b;if(A==="characterData")r&&fe(C)&&Qi(y)&&LP(s,y,C)&&IP(y,C,n);else if(A==="childList"){u=!0;const S=m.addedNodes;for(let T=0;T<S.length;T++){const N=S[T],M=A2(N),I=N.parentNode;if(I!=null&&N!==a&&M===null&&!Rm(N,I,n)){if(bl){const D=(Nt(N)?N.innerText:null)||N.nodeValue;D&&(d+=D)}I.removeChild(N)}}const k=m.removedNodes,_=k.length;if(_>0){let T=0;for(let N=0;N<_;N++){const M=k[N];(Rm(M,y,n)||a===M)&&(y.appendChild(M),T++)}_!==T&&i.set(v,C)}}}if(i.size>0)for(const[g,m]of i)m.reconcileObservedMutation(g,n);const h=e.takeRecords();if(h.length>0){for(let g=0;g<h.length;g++){const m=h[g],A=m.addedNodes,y=m.target;for(let b=0;b<A.length;b++){const v=A[b],C=v.parentNode;C==null||v.nodeName!=="BR"||Rm(v,y,n)||C.removeChild(v)}}e.takeRecords()}s!==null&&(u&&rt(s),bl&&S2(n)&&s.insertRawText(d))})}finally{YA=!1}}function IT(n){const t=n._observer;t!==null&&MT(n,t.takeRecords(),t)}function LT(n){(function(t){Ly===0&&is(t).addEventListener("textInput",MP,!0)})(n),n._observer=new MutationObserver((t,e)=>{MT(n,t,e)})}let OP=class{constructor(t,e){U(this,"key");U(this,"parse");U(this,"unparse");U(this,"isEqual");U(this,"defaultValue");this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||jP).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0)}};function DT(n,t){return new OP(n,t)}function OT(n,t,e="latest"){const r=(e==="latest"?n.getLatest():n).__state;return r?r.getValue(t):t.defaultValue}function jm(n,t,e){let r;if(In(),typeof e=="function"){const i=n.getLatest(),o=OT(i,t);if(r=e(o),t.isEqual(o,r))return i}else r=e;const s=n.getWritable();return ug(s).updateFromKnown(t,r),s}function RT(n){const t=new Map,e=new Set;for(let r=typeof n=="function"?n:n.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:s}=vg(r);if(s&&s.stateConfigs)for(const i of s.stateConfigs){let o;"stateConfig"in i?(o=i.stateConfig,i.flat&&e.add(o.key)):o=i,t.set(o.key,o)}}return{flatKeys:e,sharedConfigMap:t}}let RP=class jT{constructor(t,e,r=void 0,s=new Map,i=void 0){U(this,"node");U(this,"knownState");U(this,"unknownState");U(this,"sharedNodeState");U(this,"size");this.node=t,this.sharedNodeState=e,this.unknownState=r,this.knownState=s;const{sharedConfigMap:o}=this.sharedNodeState,l=i!==void 0?i:(function(a,u,d){let h=d.size;if(u)for(const g in u){const m=a.get(g);m&&d.has(m)||h++}return h})(o,r,s);this.size=l}getValue(t){const e=this.knownState.get(t);if(e!==void 0)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const s=this.unknownState[t.key];s!==void 0&&(r=t.parse(s)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[r,s]of this.knownState)r.isEqual(s,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(s);for(const r of this.sharedNodeState.flatKeys)r in t&&(e[r]=t[r],delete t[r]);return Bv(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:r}=this,s=new Map(this.knownState);return new jT(t,e,(function(i,o,l){let a;if(l)for(const[u,d]of Object.entries(l)){const h=i.get(u);h?o.has(h)||o.set(h,h.parse(d)):(a=a||{},a[u]=d)}return a})(e.sharedConfigMap,s,r),s,this.size)}updateFromKnown(t,e){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:s,unknownState:i}=this;s.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=Bv(i)),this.size++),s.set(t,e)}updateFromUnknown(t,e){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const r of e.keys())e.set(r,r.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[r,s]of Object.entries(t))this.updateFromUnknown(r,s)}};function ug(n){const t=n.getWritable(),e=t.__state?t.__state.getWritable(t):new RP(t,PT(t));return t.__state=e,e}function PT(n){return n.__state?n.__state.sharedNodeState:h2(Jl(),n.getType()).sharedNodeState}function Bv(n){if(n)for(const t in n)return n}function jP(n){return n}function Fv(n,t,e){for(const[r,s]of t.knownState){if(n.has(r.key))continue;n.add(r.key);const i=e?e.getValue(r):r.defaultValue;if(i!==s&&!r.isEqual(i,s))return!0}return!1}function zv(n,t,e){const{unknownState:r}=t,s=e?e.unknownState:void 0;if(r){for(const[i,o]of Object.entries(r))if(!n.has(i)&&(n.add(i),o!==(s?s[i]:void 0)))return!0}return!1}function Uv(n,t){const e=n.__state;return e&&e.node===n?e.getWritable(t):e}function Kv(n,t){const e=n.__mode,r=n.__format,s=n.__style,i=t.__mode,o=t.__format,l=t.__style,a=n.__state,u=t.__state;return(e===null||e===i)&&(r===null||r===o)&&(s===null||s===l)&&(n.__state===null||a===u||(function(d,h){if(d===h)return!0;if(d&&h&&d.size!==h.size)return!1;const g=new Set;return!(d&&Fv(g,d,h)||h&&Fv(g,h,d)||d&&zv(g,d,h)||h&&zv(g,h,d))})(a,u))}function Wv(n,t){const e=n.mergeWithSibling(t),r=tn()._normalizedNodes;return r.add(n.__key),r.add(t.__key),e}function Hv(n){let t,e,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&fe(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Kv(t,r)){r=Wv(t,r);break}break}t.remove()}for(;(e=r.getNextSibling())!==null&&fe(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Kv(r,e)){r=Wv(r,e);break}break}e.remove()}}else r.remove()}function So(n){return Yv(n.anchor),Yv(n.focus),n}function Yv(n){for(;n.type==="element";){const t=n.getNode(),e=n.offset;let r,s;if(e===t.getChildrenSize()?(r=t.getChildAtIndex(e-1),s=!0):(r=t.getChildAtIndex(e),s=!1),fe(r)){n.set(r.__key,s?r.getTextContentSize():0,"text",!0);break}if(!X(r))break;n.set(r.__key,s?r.getChildrenSize():0,"element",!0)}}let wl,Xn,Eu,dg,GA,ZA,Cl,As,JA,ku,Sn="",Ds=null,Os="",vi="",Ea=!1,uh=!1;function dh(n,t){const e=Cl.get(n);if(t!==null){const r=qA(n);r.parentNode===t&&t.removeChild(r)}if(As.has(n)||Xn._keyToDOMMap.delete(n),X(e)){const r=hh(e,Cl);VA(r,0,r.length-1,null)}e!==void 0&&Vy(ku,Eu,dg,e,"destroyed")}function VA(n,t,e,r){let s=t;for(;s<=e;++s){const i=n[s];i!==void 0&&dh(i,r)}}function qo(n,t){n.setProperty("text-align",t)}const PP="40px";function BT(n,t){const e=wl.theme.indent;if(typeof e=="string"){const s=n.classList.contains(e);t>0&&!s?n.classList.add(e):t<1&&s&&n.classList.remove(e)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||PP;n.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function FT(n,t){const e=n.style;t===0?qo(e,""):t===1?qo(e,"left"):t===2?qo(e,"center"):t===3?qo(e,"right"):t===4?qo(e,"justify"):t===5?qo(e,"start"):t===6&&qo(e,"end")}function QA(n,t){const e=(function(r){const s=r.__dir;if(s!==null)return s;if(Vt(r))return null;const i=r.getParentOrThrow();return Vt(i)&&i.__dir===null?"auto":null})(t);e!==null?n.dir=e:n.removeAttribute("dir")}function fh(n,t){const e=As.get(n);e===void 0&&Ce(60);const r=e.createDOM(wl,Xn);if((function(s,i,o){const l=o._keyToDOMMap;(function(a,u,d){const h=`__lexicalKey_${u._key}`;a[h]=d})(i,o,s),l.set(s,i)})(n,r,Xn),fe(e)?r.setAttribute("data-lexical-text","true"):ft(e)&&r.setAttribute("data-lexical-decorator","true"),X(e)){const s=e.__indent,i=e.__size;if(QA(r,e),s!==0&&BT(r,s),i!==0){const l=i-1;XA(hh(e,As),e,0,l,e.getDOMSlot(r))}const o=e.__format;o!==0&&FT(r,o),e.isInline()||zT(null,e,r),xg(e)&&(Sn+=vo,vi+=vo)}else{const s=e.getTextContent();if(ft(e)){const i=e.decorate(Xn,wl);i!==null&&UT(n,i),r.contentEditable="false"}Sn+=s,vi+=s}return t!==null&&t.insertChild(r),Vy(ku,Eu,dg,e,"created"),r}function XA(n,t,e,r,s){const i=Sn;Sn="";let o=e;for(;o<=r;++o){fh(n[o],s);const l=As.get(n[o]);l!==null&&fe(l)&&(Ds===null&&(Ds=l.getFormat()),Os===""&&(Os=l.getStyle()))}xg(t)&&(Sn+=vo),s.element.__lexicalTextContent=Sn,Sn=i+Sn}function Gv(n,t){if(n){const e=n.__last;if(e){const r=t.get(e);if(r)return jt(r)?"line-break":ft(r)&&r.isInline()?"decorator":null}return"empty"}return null}function zT(n,t,e){const r=Gv(n,Cl),s=Gv(t,As);r!==s&&t.getDOMSlot(e).setManagedLineBreak(s)}function BP(n,t,e){var r;Ds=null,Os="",(function(s,i,o){const l=Sn,a=s.__size,u=i.__size;Sn="";const d=o.element;if(a===1&&u===1){const h=s.__first,g=i.__first;if(h===g)eu(h,d);else{const A=qA(h),y=fh(g,null);try{d.replaceChild(y,A)}catch(b){if(typeof b=="object"&&b!=null){const v=`${b.toString()} Parent: ${d.tagName}, new child: {tag: ${y.tagName} key: ${g}}, old child: {tag: ${A.tagName}, key: ${h}}.`;throw new Error(v)}throw b}dh(h,null)}const m=As.get(g);fe(m)&&(Ds===null&&(Ds=m.getFormat()),Os===""&&(Os=m.getStyle()))}else{const h=hh(s,Cl),g=hh(i,As);if(h.length!==a&&Ce(227),g.length!==u&&Ce(228),a===0)u!==0&&XA(g,i,0,u-1,o);else if(u===0){if(a!==0){const m=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;VA(h,0,a-1,m?null:d),m&&(d.textContent="")}}else(function(m,A,y,b,v,C){const S=b-1,k=v-1;let _,T,N=C.getFirstChild(),M=0,I=0;for(;M<=S&&I<=k;){const B=A[M],R=y[I];if(B===R)N=Pm(eu(R,C.element)),M++,I++;else{_===void 0&&(_=new Set(A)),T===void 0&&(T=new Set(y));const G=T.has(B),ce=_.has(R);if(G)if(ce){const oe=kl(Xn,R);oe===N?N=Pm(eu(R,C.element)):(C.withBefore(N).insertChild(oe),eu(R,C.element)),M++,I++}else fh(R,C.withBefore(N)),I++;else N=Pm(qA(B)),dh(B,C.element),M++}const z=As.get(R);z!==null&&fe(z)&&(Ds===null&&(Ds=z.getFormat()),Os===""&&(Os=z.getStyle()))}const D=M>S,j=I>k;if(D&&!j){const B=y[k+1],R=B===void 0?null:Xn.getElementByKey(B);XA(y,m,I,k,C.withBefore(R))}else j&&!D&&VA(A,M,S,C.element)})(i,h,g,a,u,o)}xg(i)&&(Sn+=vo),d.__lexicalTextContent=Sn,Sn=l+Sn})(n,t,t.getDOMSlot(e)),r=t,Ds==null||Ds===r.__textFormat||uh||r.setTextFormat(Ds),(function(s){Os===""||Os===s.__textStyle||uh||s.setTextStyle(Os)})(t)}function hh(n,t){const e=[];let r=n.__first;for(;r!==null;){const s=t.get(r);s===void 0&&Ce(101),e.push(r),r=s.__next}return e}function eu(n,t){const e=Cl.get(n);let r=As.get(n);e!==void 0&&r!==void 0||Ce(61);const s=Ea||ZA.has(n)||GA.has(n),i=kl(Xn,n);if(e===r&&!s){if(X(e)){const o=i.__lexicalTextContent;o!==void 0&&(Sn+=o,vi+=o)}else{const o=e.getTextContent();vi+=o,Sn+=o}return i}if(e!==r&&s&&Vy(ku,Eu,dg,r,"updated"),r.updateDOM(e,i,wl)){const o=fh(n,null);return t===null&&Ce(62),t.replaceChild(o,i),dh(n,null),o}if(X(e)&&X(r)){const o=r.__indent;(Ea||o!==e.__indent)&&BT(i,o);const l=r.__format;if((Ea||l!==e.__format)&&FT(i,l),s&&(BP(e,r,i),Vt(r)||r.isInline()||zT(e,r,i)),xg(r)&&(Sn+=vo,vi+=vo),(Ea||r.__dir!==e.__dir)&&(QA(i,r),Vt(r)&&!Ea))for(const a of r.getChildren())X(a)&&QA(kl(Xn,a.getKey()),a)}else{const o=r.getTextContent();if(ft(r)){const l=r.decorate(Xn,wl);l!==null&&UT(n,l)}Sn+=o,vi+=o}if(!uh&&Vt(r)&&r.__cachedText!==vi){const o=r.getWritable();o.__cachedText=vi,r=o}return i}function UT(n,t){let e=Xn._pendingDecorators;const r=Xn._decorators;if(e===null){if(r[n]===t)return;e=y2(Xn)}e[n]=t}function Pm(n){let t=n.nextSibling;return t!==null&&t===Xn._blockCursorElement&&(t=t.nextSibling),t}function FP(n,t,e,r,s,i){Sn="",vi="",Ea=r===2,Xn=e,wl=e._config,Eu=e._nodes,dg=Xn._listeners.mutation,GA=s,ZA=i,Cl=n._nodeMap,As=t._nodeMap,uh=t._readOnly,JA=new Map(e._keyToDOMMap);const o=new Map;return ku=o,eu("root",null),Xn=void 0,Eu=void 0,GA=void 0,ZA=void 0,Cl=void 0,As=void 0,wl=void 0,JA=void 0,ku=void 0,o}function qA(n){const t=JA.get(n);return t===void 0&&Ce(75,n),t}function Ee(n){return{type:n}}const Xr=Ee("SELECTION_CHANGE_COMMAND"),KT=Ee("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Gi=Ee("CLICK_COMMAND"),Hs=Ee("DELETE_CHARACTER_COMMAND"),fl=Ee("INSERT_LINE_BREAK_COMMAND"),Bi=Ee("INSERT_PARAGRAPH_COMMAND"),yo=Ee("CONTROLLED_TEXT_INSERTION_COMMAND"),Fl=Ee("PASTE_COMMAND"),$A=Ee("REMOVE_TEXT_COMMAND"),Qa=Ee("DELETE_WORD_COMMAND"),xl=Ee("DELETE_LINE_COMMAND"),Ot=Ee("FORMAT_TEXT_COMMAND"),dc=Ee("UNDO_COMMAND"),zl=Ee("REDO_COMMAND"),Ul=Ee("KEYDOWN_COMMAND"),fg=Ee("KEY_ARROW_RIGHT_COMMAND"),e0=Ee("MOVE_TO_END"),hg=Ee("KEY_ARROW_LEFT_COMMAND"),gh=Ee("MOVE_TO_START"),Xs=Ee("KEY_ARROW_UP_COMMAND"),Eo=Ee("KEY_ARROW_DOWN_COMMAND"),vl=Ee("KEY_ENTER_COMMAND"),Dy=Ee("KEY_SPACE_COMMAND"),Kl=Ee("KEY_BACKSPACE_COMMAND"),fc=Ee("KEY_ESCAPE_COMMAND"),hc=Ee("KEY_DELETE_COMMAND"),gc=Ee("KEY_TAB_COMMAND"),t0=Ee("INSERT_TAB_COMMAND"),Ys=Ee("INDENT_CONTENT_COMMAND"),ho=Ee("OUTDENT_CONTENT_COMMAND"),Oy=Ee("DROP_COMMAND"),go=Ee("FORMAT_ELEMENT_COMMAND"),Ry=Ee("DRAGSTART_COMMAND"),jy=Ee("DRAGOVER_COMMAND"),zP=Ee("DRAGEND_COMMAND"),Wl=Ee("COPY_COMMAND"),qu=Ee("CUT_COMMAND"),n0=Ee("SELECT_ALL_COMMAND"),gg=Ee("CLEAR_EDITOR_COMMAND"),Py=Ee("CLEAR_HISTORY_COMMAND"),Ia=Ee("CAN_REDO_COMMAND"),La=Ee("CAN_UNDO_COMMAND"),Bo=Ee("FOCUS_COMMAND"),pg=Ee("BLUR_COMMAND"),WT=Ee("KEY_MODIFIER_COMMAND"),Ai=Object.freeze({}),r0=[["keydown",function(n,t){if(cu=n.timeStamp,HT=n.key,!t.isComposing()&&!Pe(t,Ul,n)&&n.key!=null){if(Bm&&C1(n))return Tr(t,()=>{Af(t,Fm)}),Bm=!1,void(Fm="");if((function(e){return Lt(e,"ArrowRight",{shiftKey:"any"})})(n))Pe(t,fg,n);else if((function(e){return Lt(e,"ArrowRight",xi)})(n))Pe(t,e0,n);else if((function(e){return Lt(e,"ArrowLeft",{shiftKey:"any"})})(n))Pe(t,hg,n);else if((function(e){return Lt(e,"ArrowLeft",xi)})(n))Pe(t,gh,n);else if((function(e){return Lt(e,"ArrowUp",{altKey:"any",shiftKey:"any"})})(n))Pe(t,Xs,n);else if((function(e){return Lt(e,"ArrowDown",{altKey:"any",shiftKey:"any"})})(n))Pe(t,Eo,n);else if((function(e){return Lt(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(n))uu=!0,Pe(t,vl,n);else if((function(e){return e.key===" "})(n))Pe(t,Dy,n);else if((function(e){return gs&&Lt(e,"o",{ctrlKey:!0})})(n))n.preventDefault(),uu=!0,Pe(t,fl,!0);else if((function(e){return Lt(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(n))uu=!1,Pe(t,vl,n);else if((function(e){return Lt(e,"Backspace",{shiftKey:"any"})||gs&&Lt(e,"h",{ctrlKey:!0})})(n))C1(n)?Pe(t,Kl,n):(n.preventDefault(),Pe(t,Hs,!0));else if((function(e){return e.key==="Escape"})(n))Pe(t,fc,n);else if((function(e){return Lt(e,"Delete",{})||gs&&Lt(e,"d",{ctrlKey:!0})})(n))(function(e){return e.key==="Delete"})(n)?Pe(t,hc,n):(n.preventDefault(),Pe(t,Hs,!1));else if((function(e){return Lt(e,"Backspace",w1)})(n))n.preventDefault(),Pe(t,Qa,!0);else if((function(e){return Lt(e,"Delete",w1)})(n))n.preventDefault(),Pe(t,Qa,!1);else if((function(e){return gs&&Lt(e,"Backspace",{metaKey:!0})})(n))n.preventDefault(),Pe(t,xl,!0);else if((function(e){return gs&&(Lt(e,"Delete",{metaKey:!0})||Lt(e,"k",{ctrlKey:!0}))})(n))n.preventDefault(),Pe(t,xl,!1);else if((function(e){return Lt(e,"b",xi)})(n))n.preventDefault(),Pe(t,Ot,"bold");else if((function(e){return Lt(e,"u",xi)})(n))n.preventDefault(),Pe(t,Ot,"underline");else if((function(e){return Lt(e,"i",xi)})(n))n.preventDefault(),Pe(t,Ot,"italic");else if((function(e){return Lt(e,"Tab",{shiftKey:"any"})})(n))Pe(t,gc,n);else if((function(e){return Lt(e,"z",xi)})(n))n.preventDefault(),Pe(t,dc,void 0);else if((function(e){return gs?Lt(e,"z",{metaKey:!0,shiftKey:!0}):Lt(e,"y",{ctrlKey:!0})||Lt(e,"z",{ctrlKey:!0,shiftKey:!0})})(n))n.preventDefault(),Pe(t,zl,void 0);else{const e=t._editorState._selection;e===null||J(e)?x1(n)&&(n.preventDefault(),Pe(t,n0,n)):(function(r){return Lt(r,"c",xi)})(n)?(n.preventDefault(),Pe(t,Wl,n)):(function(r){return Lt(r,"x",xi)})(n)?(n.preventDefault(),Pe(t,qu,n)):x1(n)&&(n.preventDefault(),Pe(t,n0,n))}(function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey})(n)&&Pe(t,WT,n)}}],["pointerdown",function(n,t){const e=n.target,r=n.pointerType;Zl(e)&&r!=="touch"&&r!=="pen"&&n.button===0&&Tr(t,()=>{A1(e)||(o0=!0)})}],["compositionstart",function(n,t){Tr(t,()=>{const e=Q();if(J(e)&&!t.isComposing()){const r=e.anchor,s=e.anchor.getNode();Kn(r.key),(n.timeStamp<cu+30||r.type==="element"||!e.isCollapsed()||s.getFormat()!==e.format||fe(s)&&s.getStyle()!==e.style)&&Pe(t,yo,vP)}})}],["compositionend",function(n,t){bl?Gc=!0:Va||!vu&&!Su?Tr(t,()=>{Af(t,n.data)}):(Bm=!0,Fm=n.data)}],["input",function(n,t){n.stopPropagation(),Tr(t,()=>{if(Nt(n.target)&&A1(n.target))return;const e=Q(),r=n.data,s=VT(n);if(r!=null&&J(e)&&ZT(e,s,r,n.timeStamp,!1)){Gc&&(Af(t,r),Gc=!1);const i=e.anchor.getNode(),o=os(is(t));if(o===null)return;const l=e.isBackward(),a=l?e.anchor.offset:e.focus.offset,u=l?e.focus.offset:e.anchor.offset;ch&&!e.isCollapsed()&&fe(i)&&o.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+u)===x2(o.anchorNode)||Pe(t,yo,r);const d=r.length;bl&&d>1&&n.inputType==="insertCompositionText"&&!t.isComposing()&&(e.anchor.offset-=d),vu||Va||Su||!t.isComposing()||(cu=0,Kn(null))}else Zy(!1,t,r!==null?r:void 0),Gc&&(Af(t,r||void 0),Gc=!1);(function(){In();const i=tn();IT(i)})()},{event:n}),ka=null}],["click",function(n,t){Tr(t,()=>{const e=Q(),r=os(is(t)),s=Ji();if(r){if(J(e)){const i=e.anchor,o=i.getNode();if(i.type==="element"&&i.offset===0&&e.isCollapsed()&&!Vt(o)&&Ue().getChildrenSize()===1&&o.getTopLevelElementOrThrow().isEmpty()&&s!==null&&e.is(s))r.removeAllRanges(),e.dirty=!0;else if(n.detail===3&&!e.isCollapsed()&&o!==e.focus.getNode()){const l=Le(o,a=>X(a)&&!a.isInline());X(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(Nt(i)||Qi(i))&&rt(Ag(s,r,t,n))}}Pe(t,Gi,n)})}],["cut",Ai],["copy",Ai],["dragstart",Ai],["dragover",Ai],["dragend",Ai],["paste",Ai],["focus",Ai],["blur",Ai],["drop",Ai]];ch&&r0.push(["beforeinput",(n,t)=>(function(e,r){const s=e.inputType,i=VT(e);s==="deleteCompositionText"||bl&&S2(r)||s!=="insertCompositionText"&&Tr(r,()=>{const o=Q();if(s==="deleteContentBackward"){if(o===null){const m=Ji();if(!J(m))return;rt(m.clone())}if(J(o)){const m=o.anchor.key===o.focus.key;if(l=e.timeStamp,HT==="MediaLast"&&l<cu+30&&r.isComposing()&&m){if(Kn(null),cu=0,setTimeout(()=>{Tr(r,()=>{Kn(null)})},30),J(o)){const A=o.anchor.getNode();A.markDirty(),fe(A)||Ce(142),JT(o,A)}}else{Kn(null),e.preventDefault();const A=o.anchor.getNode(),y=A.getTextContent(),b=A.canInsertTextAfter(),v=o.anchor.offset===0&&o.focus.offset===y.length;let C=Rv&&m&&!v&&b;if(C&&o.isCollapsed()&&(C=!ft(d0(o.anchor,!0))),!C){Pe(r,Hs,!0);const S=Q();Rv&&J(S)&&S.isCollapsed()&&(rl=S,setTimeout(()=>rl=null))}}return}}var l;if(!J(o))return;const a=e.data;ka!==null&&Zy(!1,r,ka),o.dirty&&ka===null||!o.isCollapsed()||Vt(o.anchor.getNode())||i===null||o.applyDOMRange(i),ka=null;const u=o.anchor,d=o.focus,h=u.getNode(),g=d.getNode();if(s!=="insertText"&&s!=="insertTranspose")switch(e.preventDefault(),s){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Pe(r,yo,e);break;case"insertFromComposition":Kn(null),Pe(r,yo,e);break;case"insertLineBreak":Kn(null),Pe(r,fl,!1);break;case"insertParagraph":Kn(null),uu&&!Va?(uu=!1,Pe(r,fl,!1)):Pe(r,Bi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Pe(r,Fl,e);break;case"deleteByComposition":(function(m,A){return m!==A||X(m)||X(A)||!hl(m)||!hl(A)})(h,g)&&Pe(r,$A,e);break;case"deleteByDrag":case"deleteByCut":Pe(r,$A,e);break;case"deleteContent":Pe(r,Hs,!1);break;case"deleteWordBackward":Pe(r,Qa,!0);break;case"deleteWordForward":Pe(r,Qa,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Pe(r,xl,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Pe(r,xl,!1);break;case"formatStrikeThrough":Pe(r,Ot,"strikethrough");break;case"formatBold":Pe(r,Ot,"bold");break;case"formatItalic":Pe(r,Ot,"italic");break;case"formatUnderline":Pe(r,Ot,"underline");break;case"historyUndo":Pe(r,dc,void 0);break;case"historyRedo":Pe(r,zl,void 0)}else{if(a===`
|
|
4
|
-
`)e.preventDefault(),Pe(r,fl,!1);else if(a===vo)e.preventDefault(),Pe(r,Bi,void 0);else if(a==null&&e.dataTransfer){const m=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(m)}else a!=null&&ZT(o,i,a,e.timeStamp,!0)?(e.preventDefault(),Pe(r,yo,a)):ka=a;YT=e.timeStamp}})})(n,t)]);let cu=0,HT=null,YT=0,ka=null;const s0=new WeakMap,ph=new WeakMap;let i0=!1,o0=!1,uu=!1,Gc=!1,Bm=!1,Fm="",rl=null,GT=[0,"",0,"root",0];function ZT(n,t,e,r,s){const i=n.anchor,o=n.focus,l=i.getNode(),a=tn(),u=os(is(a)),d=u!==null?u.anchorNode:null,h=i.key,g=a.getElementByKey(h),m=e.length;return h!==o.key||!fe(l)||(!s&&(!ch||YT<r+50)||l.isDirty()&&m<2||w2(e))&&i.offset!==o.offset&&!l.isComposing()||js(l)||l.isDirty()&&m>1||(s||!ch)&&g!==null&&!l.isComposing()&&d!==Xa(g)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||(function(A,y){if(y.isSegmented())return!0;if(!A.isCollapsed())return!1;const b=A.anchor.offset,v=y.getParentOrThrow(),C=hl(y);return b===0?!y.canInsertTextBefore()||!v.canInsertTextBefore()&&!y.isComposing()||C||(function(S){const k=S.getPreviousSibling();return(fe(k)||X(k)&&k.isInline())&&!k.canInsertTextAfter()})(y):b===y.getTextContentSize()&&(!y.canInsertTextAfter()||!v.canInsertTextAfter()&&!y.isComposing()||C)})(n,l)}function Zv(n,t){return Qi(n)&&n.nodeValue!==null&&t!==0&&t!==n.nodeValue.length}function Jv(n,t,e){const{anchorNode:r,anchorOffset:s,focusNode:i,focusOffset:o}=n;i0&&(i0=!1,Zv(r,s)&&Zv(i,o)&&!rl)||Tr(t,()=>{if(!e)return void rt(null);if(!rd(t,r,i))return;let l=Q();if(rl&&J(l)&&l.isCollapsed()){const a=l.anchor,u=rl.anchor;(a.key===u.key&&a.offset===u.offset+1||a.offset===1&&u.getNode().is(a.getNode().getPreviousSibling()))&&(l=rl.clone(),rt(l))}if(rl=null,J(l)){const a=l.anchor,u=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=is(t).event,h=d?d.timeStamp:performance.now(),[g,m,A,y,b]=GT,v=Ue(),C=t.isComposing()===!1&&v.getTextContent()==="";if(h<b+200&&a.offset===A&&a.key===y)Qf(l,g,m);else if(a.type==="text")fe(u)||Ce(141),JT(l,u);else if(a.type==="element"&&!C){X(u)||Ce(259);const S=a.getNode();S.isEmpty()?(function(k,_){const T=_.getTextFormat(),N=_.getTextStyle();Qf(k,T,N)})(l,S):Qf(l,0,"")}}else{const d=a.key,h=l.focus.key,g=l.getNodes(),m=g.length,A=l.isBackward(),y=A?o:s,b=A?s:o,v=A?h:d,C=A?d:h;let S=2047,k=!1;for(let _=0;_<m;_++){const T=g[_],N=T.getTextContentSize();if(fe(T)&&N!==0&&!(_===0&&T.__key===v&&y===N||_===m-1&&T.__key===C&&b===0)&&(k=!0,S&=T.getFormat(),S===0))break}l.format=k?S:0}}Pe(t,Xr,void 0)})}function Qf(n,t,e){n.format===t&&n.style===e||(n.format=t,n.style=e,n.dirty=!0)}function JT(n,t){Qf(n,t.getFormat(),t.getStyle())}function VT(n){if(!n.getTargetRanges)return null;const t=n.getTargetRanges();return t.length===0?null:t[0]}function Af(n,t){const e=n._compositionKey;if(Kn(null),e!==null&&t!=null){if(t===""){const r=Te(e),s=Xa(n.getElementByKey(e));return void(s!==null&&s.nodeValue!==null&&fe(r)&&Jy(r,s.nodeValue,null,null,!0))}if(t[t.length-1]===`
|
|
5
|
-
`){const r=Q();if(J(r)){const s=r.focus;return r.anchor.set(s.key,s.offset,s.type),void Pe(n,vl,null)}}}Zy(!0,n,t)}function QT(n){let t=n.__lexicalEventHandles;return t===void 0&&(t=[],n.__lexicalEventHandles=t),t}const Ba=new Map;function XT(n){const t=hB(n.target);if(t===null)return;const e=sd(t.anchorNode);if(e===null)return;o0&&(o0=!1,Tr(e,()=>{const a=Ji(),u=t.anchorNode;(Nt(u)||Qi(u))&&rt(Ag(a,t,e,n))}));const r=Gy(e),s=r[r.length-1],i=s._key,o=Ba.get(i),l=o||s;l!==e&&Jv(t,l,!1),Jv(t,e,!0),e!==s?Ba.set(i,e):o&&Ba.delete(i)}function Vv(n){n._lexicalHandled=!0}function Qv(n){return n._lexicalHandled===!0}function UP(n){const t=s0.get(n);if(t===void 0)return;const e=ph.get(t);if(e===void 0)return;const r=e-1;r>=0||Ce(164),s0.delete(n),ph.set(t,r),r===0&&t.removeEventListener("selectionchange",XT);const s=wg(n);Yy(s)?((function(o){if(o._parentEditor!==null){const l=Gy(o),a=l[l.length-1]._key;Ba.get(a)===o&&Ba.delete(a)}else Ba.delete(o._key)})(s),n.__lexicalEditor=null):s&&Ce(198);const i=QT(n);for(let o=0;o<i.length;o++)i[o]();n.__lexicalEventHandles=[]}function l0(n,t,e){In();const r=n.__key,s=n.getParent();if(s===null)return;const i=(function(l){const a=Q();if(!J(a)||!X(l))return a;const{anchor:u,focus:d}=a,h=u.getNode(),g=d.getNode();return f0(h,l)&&u.set(l.__key,0,"element"),f0(g,l)&&d.set(l.__key,0,"element"),a})(n);let o=!1;if(J(i)&&t){const l=i.anchor,a=i.focus;l.key===r&&(yh(l,n,s,n.getPreviousSibling(),n.getNextSibling()),o=!0),a.key===r&&(yh(a,n,s,n.getPreviousSibling(),n.getNextSibling()),o=!0)}else $t(i)&&t&&n.isSelected()&&n.selectPrevious();if(J(i)&&t&&!o){const l=n.getIndexWithinParent();Di(n),Ah(i,s,l,-1)}else Di(n);e||$n(s)||s.canBeEmpty()||!s.isEmpty()||l0(s,t),t&&i&&Vt(s)&&s.isEmpty()&&s.selectEnd()}const qT=Symbol.for("ephemeral");function mh(n){return n[qT]||!1}class ys{constructor(t){U(this,"__type");U(this,"__key");U(this,"__parent");U(this,"__prev");U(this,"__next");U(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),m2(this,t)}static getType(){const{ownNodeType:t}=vg(this);return t===void 0&&Ce(64,this.name),t}static clone(t){Ce(65,this.name)}$config(){return{}}config(t,e){const r=e.extends||Object.getPrototypeOf(this.constructor);return Object.assign(e,{extends:r,type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){Ce(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const e=Te(t);if(e===null)break;t=e.__parent}return!1}isSelected(t){const e=t||Q();if(e==null)return!1;const r=e.getNodes().some(s=>s.__key===this.__key);if(fe(this))return r;if(J(e)&&e.anchor.type==="element"&&e.focus.type==="element"){if(e.isCollapsed())return!1;const s=this.getParent();if(ft(this)&&this.isInline()&&s){const i=e.isBackward()?e.focus:e.anchor;if(s.is(i.getNode())&&i.offset===s.getChildrenSize()&&this.is(s.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let e=t.getFirstChild(),r=0;for(;e!==null;){if(this.is(e))return r;r++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Te(t)}getParentOrThrow(){const t=this.getParent();return t===null&&Ce(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const e=t.getParent();if($n(e))return X(t)||t===this&&ft(t)||Ce(194),t;t=e}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&Ce(67,this.__key),t}getParents(){const t=[];let e=this.getParent();for(;e!==null;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;e!==null;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Te(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(e===null)return t;let r=e.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Te(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;e!==null;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=X(this)?this:this.getParent(),r=X(t)?t:t.getParent(),s=e&&r?qf(e,r):null;return s?s.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const e=qf(this,t);return e!==null&&(e.type==="descendant"||(e.type==="branch"?L2(e)===-1:(e.type!=="same"&&e.type!=="ancestor"&&Ce(279),!1)))}isParentOf(t){const e=qf(this,t);return e!==null&&e.type==="ancestor"}getNodesBetween(t){const e=this.isBefore(t),r=[],s=new Set;let i=this;for(;i!==null;){const o=i.__key;if(s.has(o)||(s.add(o),r.push(i)),i===t)break;const l=X(i)?e?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=e?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const u=i.getParentOrThrow();if(s.has(u.__key)||r.push(u),u===t)break;let d=null,h=u;do{if(h===null&&Ce(68),d=e?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||s.has(h.__key)||r.push(h)}while(d===null);i=d}return e||r.reverse(),r}isDirty(){const t=tn()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(mh(this))return this;const t=Te(this.__key);return t===null&&Ce(113),t}getWritable(){if(mh(this))return this;In();const t=Fo(),e=tn(),r=t._nodeMap,s=this.__key,i=this.getLatest(),o=e._cloneNotNeeded,l=Q();if(l!==null&&l.setCachedNodes(null),o.has(s))return wh(i),i;const a=qy(i);return o.add(s),wh(a),r.set(s,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,e){Ce(70)}updateDOM(t,e,r){Ce(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){Ce(18,this.name)}updateFromJSON(t){return(function(e,r){const s=e.getWritable(),i=r.$;let o=i;for(const l of PT(s).flatKeys)l in r&&(o!==void 0&&o!==i||(o={...i}),o[l]=r[l]);return(s.__state||o)&&ug(e).updateFromJSON(o),s})(this,t)}static transform(){return null}remove(t){l0(this,!0,t)}replace(t,e){In();let r=Q();r!==null&&(r=r.clone()),Ym(this,t);const s=this.getLatest(),i=this.__key,o=t.__key,l=t.getWritable(),a=this.getParentOrThrow().getWritable(),u=a.__size;Di(l);const d=s.getPreviousSibling(),h=s.getNextSibling(),g=s.__prev,m=s.__next,A=s.__parent;if(l0(s,!1,!0),d===null?a.__first=o:d.getWritable().__next=o,l.__prev=g,h===null?a.__last=o:h.getWritable().__prev=o,l.__next=m,l.__parent=A,a.__size=u,e&&(X(this)&&X(l)||Ce(139),this.getChildren().forEach(y=>{l.append(y)})),J(r)){rt(r);const y=r.anchor,b=r.focus;y.key===i&&t1(y,l),b.key===i&&t1(b,l)}return po()===i&&Kn(o),l}insertAfter(t,e=!0){In(),Ym(this,t);const r=this.getWritable(),s=t.getWritable(),i=s.getParent(),o=Q();let l=!1,a=!1;if(i!==null){const m=t.getIndexWithinParent();if(Di(s),J(o)){const A=i.__key,y=o.anchor,b=o.focus;l=y.type==="element"&&y.key===A&&y.offset===m+1,a=b.type==="element"&&b.key===A&&b.offset===m+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=s.__key,g=r.__next;if(u===null?d.__last=h:u.getWritable().__prev=h,d.__size++,r.__next=h,s.__next=g,s.__prev=r.__key,s.__parent=r.__parent,e&&J(o)){const m=this.getIndexWithinParent();Ah(o,d,m+1);const A=d.__key;l&&o.anchor.set(A,m+2,"element"),a&&o.focus.set(A,m+2,"element")}return t}insertBefore(t,e=!0){In(),Ym(this,t);const r=this.getWritable(),s=t.getWritable(),i=s.__key;Di(s);const o=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,u=this.getIndexWithinParent();o===null?l.__first=i:o.getWritable().__next=i,l.__size++,r.__prev=i,s.__prev=a,s.__next=r.__key,s.__parent=r.__parent;const d=Q();return e&&J(d)&&Ah(d,this.getParentOrThrow(),u),t}isParentRequired(){return!1}createParentElementNode(){return Me()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){In();const r=this.getPreviousSibling(),s=this.getParentOrThrow();if(r===null)return s.select(0,0);if(X(r))return r.select();if(!fe(r)){const i=r.getIndexWithinParent()+1;return s.select(i,i)}return r.select(t,e)}selectNext(t,e){In();const r=this.getNextSibling(),s=this.getParentOrThrow();if(r===null)return s.select();if(X(r))return r.select(0,0);if(!fe(r)){const i=r.getIndexWithinParent();return s.select(i,i)}return r.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}U(ys,"importDOM");const Sl="historic",KP="history-push",qr="history-merge",WP="paste",$u="collaboration",Xv="skip-collab",$T="skip-scroll-into-view",HP="skip-dom-selection",YP="skip-selection-focus";class pc extends ys{static getType(){return"linebreak"}static clone(t){return new pc(t.__key)}constructor(t){super(t)}getTextContent(){return`
|
|
6
|
-
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(e){const r=e.parentElement;if(r!==null&&Ch(r)){const s=r.firstChild;if(s===e||s.nextSibling===e&&yf(s)){const i=r.lastChild;if(i===e||i.previousSibling===e&&yf(i))return!0}}return!1})(t)||(function(e){const r=e.parentElement;if(r!==null&&Ch(r)){const s=r.firstChild;if(s===e||s.nextSibling===e&&yf(s))return!1;const i=r.lastChild;if(i===e||i.previousSibling===e&&yf(i))return!0}return!1})(t)?null:{conversion:GP,priority:0}}}static importJSON(t){return cr().updateFromJSON(t)}}function GP(n){return{node:cr()}}function cr(){return Bt(new pc)}function jt(n){return n instanceof pc}function yf(n){return Qi(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function zm(n,t){return 16&t?"code":t&kT?"mark":32&t?"sub":64&t?"sup":null}function Um(n,t){return 1&t?"strong":2&t?"em":"span"}function e2(n,t,e,r,s){const i=r.classList;let o=Fa(s,"base");o!==void 0&&i.add(...o),o=Fa(s,"underlineStrikethrough");let l=!1;const a=8&t&&4&t;o!==void 0&&(8&e&&4&e?(l=!0,a||i.add(...o)):a&&i.remove(...o));for(const u in Pi){const d=Pi[u];if(o=Fa(s,u),o!==void 0)if(e&d){if(l&&(u==="underline"||u==="strikethrough")){t&d&&i.remove(...o);continue}((t&d)===0||a&&u==="underline"||u==="strikethrough")&&i.add(...o)}else t&d&&i.remove(...o)}}function t2(n,t,e){const r=t.firstChild,s=e.isComposing(),i=n+(s?cg:"");if(r==null)t.textContent=i;else{const o=r.nodeValue;if(o!==i)if(s||bl){const[l,a,u]=(function(d,h){const g=d.length,m=h.length;let A=0,y=0;for(;A<g&&A<m&&d[A]===h[A];)A++;for(;y+A<g&&y+A<m&&d[g-y-1]===h[m-y-1];)y++;return[A,g-A-y,h.slice(A,m-y)]})(o,i);a!==0&&r.deleteData(l,a),r.insertData(l,u)}else r.nodeValue=i}}function qv(n,t,e,r,s,i){t2(s,n,t);const o=i.theme.text;o!==void 0&&e2(0,0,r,n,o)}function bf(n,t){const e=document.createElement(t);return e.appendChild(n),e}class On extends ys{constructor(e="",r){super(r);U(this,"__text");U(this,"__format");U(this,"__style");U(this,"__mode");U(this,"__detail");this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(e){return new On(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return NP[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===po()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const r=Pi[e];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,r){return bh(this.getLatest().__format,e,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,r){const s=this.__format,i=zm(0,s),o=Um(0,s),l=i===null?o:i,a=document.createElement(l);let u=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(u=document.createElement(o),a.appendChild(u)),qv(u,this,0,s,this.__text,e);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(e,r,s){const i=this.__text,o=e.__format,l=this.__format,a=zm(0,o),u=zm(0,l),d=Um(0,o),h=Um(0,l);if((a===null?d:a)!==(u===null?h:u))return!0;if(a===u&&d!==h){const b=r.firstChild;b==null&&Ce(48);const v=document.createElement(h);return qv(v,this,0,l,i,s),r.replaceChild(v,b),!1}let g=r;u!==null&&a!==null&&(g=r.firstChild,g==null&&Ce(49)),t2(i,g,this);const m=s.theme.text;m!==void 0&&o!==l&&e2(0,o,l,g,m);const A=e.__style,y=this.__style;return A!==y&&(r.style.cssText=y),!1}static importDOM(){return{"#text":()=>({conversion:QP,priority:0}),b:()=>({conversion:JP,priority:0}),code:()=>({conversion:yi,priority:0}),em:()=>({conversion:yi,priority:0}),i:()=>({conversion:yi,priority:0}),mark:()=>({conversion:yi,priority:0}),s:()=>({conversion:yi,priority:0}),span:()=>({conversion:ZP,priority:0}),strong:()=>({conversion:yi,priority:0}),sub:()=>({conversion:yi,priority:0}),sup:()=>({conversion:yi,priority:0}),u:()=>({conversion:yi,priority:0})}}static importJSON(e){return Ct().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:r}=super.exportDOM(e);return Nt(r)||Ce(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=bf(r,"b")),this.hasFormat("italic")&&(r=bf(r,"i")),this.hasFormat("strikethrough")&&(r=bf(r,"s")),this.hasFormat("underline")&&(r=bf(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,r){}setFormat(e){const r=this.getWritable();return r.__format=typeof e=="string"?Pi[e]:e,r}setDetail(e){const r=this.getWritable();return r.__detail=typeof e=="string"?kP[e]:e,r}setStyle(e){const r=this.getWritable();return r.__style=e,r}toggleFormat(e){const r=bh(this.getFormat(),e,null);return this.setFormat(r)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const r=_P[e];if(this.__mode===r)return this;const s=this.getWritable();return s.__mode=r,s}setTextContent(e){if(this.__text===e)return this;const r=this.getWritable();return r.__text=e,r}select(e,r){In();let s=e,i=r;const o=Q(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const u=l.length;s===void 0&&(s=u),i===void 0&&(i=u)}else s=0,i=0;if(!J(o))return s2(a,s,a,i,"text","text");{const u=po();u!==o.anchor.key&&u!==o.focus.key||Kn(a),o.setTextNodeRange(this,s,this,i)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,r,s,i){const o=this.getWritable(),l=o.__text,a=s.length;let u=e;u<0&&(u=a+u,u<0&&(u=0));const d=Q();if(i&&J(d)){const g=e+a;d.setTextNodeRange(o,g,o,g)}const h=l.slice(0,u)+s+l.slice(u+r);return o.__text=h,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){In();const r=this.getLatest(),s=r.getTextContent();if(s==="")return[];const i=r.__key,o=po(),l=s.length;e.sort((I,D)=>I-D),e.push(l);const a=[],u=e.length;for(let I=0,D=0;I<l&&D<=u;D++){const j=e[D];j>I&&(a.push(s.slice(I,j)),I=j)}const d=a.length;if(d===1)return[r];const h=a[0],g=r.getParent();let m;const A=r.getFormat(),y=r.getStyle(),b=r.__detail;let v=!1,C=null,S=null;const k=Q();if(J(k)){const[I,D]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];I.type==="text"&&I.key===i&&(C=I),D.type==="text"&&D.key===i&&(S=D)}r.isSegmented()?(m=Ct(h),m.__format=A,m.__style=y,m.__detail=b,m.__state=Uv(r,m),v=!0):m=r.setTextContent(h);const _=[m];for(let I=1;I<d;I++){const D=Ct(a[I]);D.__format=A,D.__style=y,D.__detail=b,D.__state=Uv(r,D);const j=D.__key;o===i&&Kn(j),_.push(D)}const T=C?C.offset:null,N=S?S.offset:null;let M=0;for(const I of _){if(!C&&!S)break;const D=M+I.getTextContentSize();if(C!==null&&T!==null&&T<=D&&T>=M&&(C.set(I.getKey(),T-M,"text"),T<D&&(C=null)),S!==null&&N!==null&&N<=D&&N>=M){S.set(I.getKey(),N-M,"text");break}M=D}if(g!==null){(function(j){const B=j.getPreviousSibling(),R=j.getNextSibling();B!==null&&wh(B),R!==null&&wh(R)})(this);const I=g.getWritable(),D=this.getIndexWithinParent();v?(I.splice(D,0,_),this.remove()):I.splice(D,1,_),J(k)&&Ah(k,g,D,d-1)}return _}mergeWithSibling(e){const r=e===this.getPreviousSibling();r||e===this.getNextSibling()||Ce(50);const s=this.__key,i=e.__key,o=this.__text,l=o.length;po()===i&&Kn(s);const a=Q();if(J(a)){const g=a.anchor,m=a.focus;g!==null&&g.key===i&&a1(g,r,s,e,l),m!==null&&m.key===i&&a1(m,r,s,e,l)}const u=e.__text,d=r?u+o:o+u;this.setTextContent(d);const h=this.getWritable();return e.remove(),h}isTextEntity(){return!1}}function ZP(n){return{forChild:By(n.style),node:null}}function JP(n){const t=n,e=t.style.fontWeight==="normal";return{forChild:By(t.style,e?void 0:"bold"),node:null}}const $v=new WeakMap;function VP(n){if(!Nt(n))return!1;if(n.nodeName==="PRE")return!0;const t=n.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function QP(n){const t=n;n.parentElement===null&&Ce(129);let e=t.textContent||"";if((function(r){let s,i=r.parentNode;const o=[r];for(;i!==null&&(s=$v.get(i))===void 0&&!VP(i);)o.push(i),i=i.parentNode;const l=s===void 0?i:s;for(let a=0;a<o.length;a++)$v.set(o[a],l);return l})(t)!==null){const r=e.split(/(\r?\n|\t)/),s=[],i=r.length;for(let o=0;o<i;o++){const l=r[o];l===`
|
|
7
|
-
`||l===`\r
|
|
8
|
-
`?s.push(cr()):l===" "?s.push(ts()):l!==""&&s.push(Ct(l))}return{node:s}}if(e=e.replace(/\r/g,"").replace(/[ \t\n]+/g," "),e==="")return{node:null};if(e[0]===" "){let r=t,s=!0;for(;r!==null&&(r=e1(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(e=e.slice(1)),s=!1;break}}s&&(e=e.slice(1))}if(e[e.length-1]===" "){let r=t,s=!0;for(;r!==null&&(r=e1(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){s=!1;break}s&&(e=e.slice(0,e.length-1))}return e===""?{node:null}:{node:Ct(e)}}function e1(n,t){let e=n;for(;;){let r;for(;(r=t?e.nextSibling:e.previousSibling)===null;){const i=e.parentElement;if(i===null)return null;e=i}if(e=r,Nt(e)){const i=e.style.display;if(i===""&&!m0(e)||i!==""&&!i.startsWith("inline"))return null}let s=e;for(;(s=t?e.firstChild:e.lastChild)!==null;)e=s;if(Qi(e))return e;if(e.nodeName==="BR")return null}}const XP={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function yi(n){const t=XP[n.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:By(n.style,t),node:null}}function Ct(n=""){return Bt(new On(n))}function fe(n){return n instanceof On}function By(n,t){const e=n.fontWeight,r=n.textDecoration.split(" "),s=e==="700"||e==="bold",i=r.includes("line-through"),o=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return u=>(fe(u)&&(s&&!u.hasFormat("bold")&&u.toggleFormat("bold"),i&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),o&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),a!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),a!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),t&&!u.hasFormat(t)&&u.toggleFormat(t)),u)}class mc extends On{static getType(){return"tab"}static clone(t){return new mc(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),r=Fa(t.theme,"tab");return r!==void 0&&e.classList.add(...r),e}static importJSON(t){return ts().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&vT(126),super.setTextContent(" ")}spliceText(t,e,r,s){return r===""&&e===0||r===" "&&e===1||Ce(286),this}setDetail(t){return t!==2&&Ce(127),this}setMode(t){return t!=="normal"&&Ce(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function ts(){return Bt(new mc)}function Wn(n){return n instanceof mc}class qP{constructor(t,e,r){U(this,"key");U(this,"offset");U(this,"type");U(this,"_selection");this._selection=null,this.key=t,this.offset=e,this.type=r}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:I2($r(qs(this,"next")),$r(qs(t,"next")))<0}getNode(){const t=Te(this.key);return t===null&&Ce(20),t}set(t,e,r,s){const i=this._selection,o=this.key;s&&this.key===t&&this.offset===e&&this.type===r||(this.key=t,this.offset=e,this.type=r,Yl()||(po()===o&&Kn(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function jn(n,t,e){return new qP(n,t,e)}function Km(n,t){let e=t.__key,r=n.offset,s="element";if(fe(t)){s="text";const i=t.getTextContentSize();r>i&&(r=i)}else if(!X(t)){const i=t.getNextSibling();if(fe(i))e=i.__key,r=0,s="text";else{const o=t.getParent();o&&(e=o.__key,r=t.getIndexWithinParent()+1)}}n.set(e,r,s)}function t1(n,t){if(X(t)){const e=t.getLastDescendant();X(e)||fe(e)?Km(n,e):Km(n,t)}else Km(n,t)}class mg{constructor(t){U(this,"_nodes");U(this,"_cachedNodes");U(this,"dirty");this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!$t(t))return!1;const e=this._nodes,r=t._nodes;return e.size===r.size&&Array.from(e).every(s=>r.has(s))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new mg(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),r=e.length,s=e[r-1];let i;if(fe(s))i=s.select();else{const o=s.getIndexWithinParent()+1;i=s.getParentOrThrow().select(o,o)}i.insertNodes(t);for(let o=0;o<r;o++)e[o].remove()}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const e=this._nodes,r=[];for(const s of e){const i=Te(s);i!==null&&r.push(i)}return Yl()||(this._cachedNodes=r),r}getTextContent(){const t=this.getNodes();let e="";for(let r=0;r<t.length;r++)e+=t[r].getTextContent();return e}deleteNodes(){const t=this.getNodes();if((Q()||Ji())===this&&t[0]){const e=sn(t[0],"next");ib(Fi(e,e))}for(const e of t)e.remove()}}function J(n){return n instanceof Hl}class Hl{constructor(t,e,r,s){U(this,"format");U(this,"style");U(this,"anchor");U(this,"focus");U(this,"_cachedNodes");U(this,"dirty");this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=r,this.style=s,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!J(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const e=(function(r){const s=[],[i,o]=r.getTextSlices();i&&s.push(i.caret.origin);const l=new Set,a=new Set;for(const u of r)if(ns(u)){const{origin:d}=u;s.length===0?l.add(d):(a.add(d),s.push(d))}else{const{origin:d}=u;X(d)&&a.has(d)||s.push(d)}if(o&&s.push(o.caret.origin),Nl(r.focus)&&X(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let u=ls(r.focus.origin,"previous");ns(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(s[s.length-1]);u=qa(u))l.delete(u.origin),s.pop();for(;s.length>1;){const u=s[s.length-1];if(!X(u)||a.has(u)||u.isEmpty()||l.has(u))break;s.pop()}if(s.length===0&&r.isCollapsed()){const u=$r(r.anchor),d=$r(r.anchor.getFlipped()),h=m=>Gs(m)?m.origin:m.getNodeAtCaret(),g=h(u)||h(d)||(r.anchor.getNodeAtCaret()?u.origin:d.origin);s.push(g)}return s})(ob(A0(this),"next"));return Yl()||(this._cachedNodes=e),e}setTextNodeRange(t,e,r,s){this.anchor.set(t.__key,e,"text"),this.focus.set(r.__key,s,"text")}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const e=t[0],r=t[t.length-1],s=this.anchor,i=this.focus,o=s.isBefore(i),[l,a]=a0(this);let u="",d=!0;for(let h=0;h<t.length;h++){const g=t[h];if(X(g)&&!g.isInline())d||(u+=`
|
|
9
|
-
`),d=!g.isEmpty();else if(d=!1,fe(g)){let m=g.getTextContent();g===e?g===r?s.type==="element"&&i.type==="element"&&i.offset!==s.offset||(m=l<a?m.slice(l,a):m.slice(a,l)):m=o?m.slice(l):m.slice(a):g===r&&(m=o?m.slice(0,a):m.slice(0,l)),u+=m}else!ft(g)&&!jt(g)||g===r&&this.isCollapsed()||(u+=g.getTextContent())}return u}applyDOMRange(t){const e=tn(),r=e.getEditorState()._selection,s=r2(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,r);if(s===null)return;const[i,o]=s;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),So(this)}clone(){const t=this.anchor,e=this.focus;return new Hl(jn(t.key,t.offset,t.type),jn(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=bh(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=Pi[t];return(this.format&e)!==0}insertRawText(t){const e=t.split(/(\r?\n|\t)/),r=[],s=e.length;for(let i=0;i<s;i++){const o=e[i];o===`
|
|
10
|
-
`||o===`\r
|
|
11
|
-
`?r.push(cr()):o===" "?r.push(ts()):r.push(Ct(o))}this.insertNodes(r)}insertText(t){const e=this.anchor,r=this.focus,s=this.format,i=this.style;let o=e,l=r;!this.isCollapsed()&&r.isBefore(e)&&(o=r,l=e),o.type==="element"&&(function(b,v,C,S){const k=b.getNode(),_=k.getChildAtIndex(b.offset),T=Ct();if(T.setFormat(C),T.setStyle(S),fn(_))_.splice(0,0,[T]);else{const N=Vt(k)?Me().append(T):T;_===null?k.append(N):_.insertBefore(N)}b.is(v)&&v.set(T.__key,0,"text"),b.set(T.__key,0,"text")})(o,l,s,i),l.type==="element"&&_u(l,$r(qs(l,"next")));const a=o.offset;let u=l.offset;const d=this.getNodes(),h=d.length;let g=d[0];fe(g)||Ce(26);const m=g.getTextContent().length,A=g.getParentOrThrow();let y=d[h-1];if(h===1&&l.type==="element"&&(u=m,l.set(o.key,u,"text")),this.isCollapsed()&&a===m&&(js(g)||!g.canInsertTextAfter()||!A.canInsertTextAfter()&&g.getNextSibling()===null)){let b=g.getNextSibling();if(fe(b)&&b.canInsertTextBefore()&&!js(b)||(b=Ct(),b.setFormat(s),b.setStyle(i),A.canInsertTextAfter()?g.insertAfter(b):A.insertAfter(b)),b.select(0,0),g=b,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&a===0&&(js(g)||!g.canInsertTextBefore()||!A.canInsertTextBefore()&&g.getPreviousSibling()===null)){let b=g.getPreviousSibling();if(fe(b)&&!js(b)||(b=Ct(),b.setFormat(s),A.canInsertTextBefore()?g.insertBefore(b):A.insertBefore(b)),b.select(),g=b,t!=="")return void this.insertText(t)}else if(g.isSegmented()&&a!==m){const b=Ct(g.getTextContent());b.setFormat(s),g.replace(b),g=b}else if(!this.isCollapsed()&&t!==""){const b=y.getParent();if(!A.canInsertTextBefore()||!A.canInsertTextAfter()||X(b)&&(!b.canInsertTextBefore()||!b.canInsertTextAfter()))return this.insertText(""),n2(this.anchor,this.focus,null),void this.insertText(t)}if(h===1){if(hl(g)){const S=Ct(t);return S.select(),void g.replace(S)}const b=g.getFormat(),v=g.getStyle();if(a!==u||b===s&&v===i){if(Wn(g)){const S=Ct(t);return S.setFormat(s),S.setStyle(i),S.select(),void g.replace(S)}}else{if(g.getTextContent()!==""){const S=Ct(t);if(S.setFormat(s),S.setStyle(i),S.select(),a===0)g.insertBefore(S,!1);else{const[k]=g.splitText(a);k.insertAfter(S,!1)}return void(S.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}g.setFormat(s),g.setStyle(i)}const C=u-a;g=g.spliceText(a,C,t,!0),g.getTextContent()===""?g.remove():this.anchor.type==="text"&&(g.isComposing()?this.anchor.offset-=t.length:(this.format=b,this.style=v))}else{const b=new Set([...g.getParentKeys(),...y.getParentKeys()]),v=X(g)?g:g.getParentOrThrow();let C=X(y)?y:y.getParentOrThrow(),S=y;if(!v.is(C)&&C.isInline())do S=C,C=C.getParentOrThrow();while(C.isInline());if(l.type==="text"&&(u!==0||y.getTextContent()==="")||l.type==="element"&&y.getIndexWithinParent()<u)if(fe(y)&&!hl(y)&&u!==y.getTextContentSize()){if(y.isSegmented()){const M=Ct(y.getTextContent());y.replace(M),y=M}Vt(l.getNode())||l.type!=="text"||(y=y.spliceText(0,u,"")),b.add(y.__key)}else{const M=y.getParentOrThrow();M.canBeEmpty()||M.getChildrenSize()!==1?y.remove():M.remove()}else b.add(y.__key);const k=C.getChildren(),_=new Set(d),T=v.is(C),N=v.isInline()&&g.getNextSibling()===null?v:g;for(let M=k.length-1;M>=0;M--){const I=k[M];if(I.is(g)||X(I)&&I.isParentOf(g))break;I.isAttached()&&(!_.has(I)||I.is(S)?T||N.insertAfter(I,!1):I.remove())}if(!T){let M=C,I=null;for(;M!==null;){const D=M.getChildren(),j=D.length;(j===0||D[j-1].is(I))&&(b.delete(M.__key),I=M),M=M.getParent()}}if(hl(g))if(a===m)g.select();else{const M=Ct(t);M.select(),g.replace(M)}else g=g.spliceText(a,m-a,t,!0),g.getTextContent()===""?g.remove():g.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let M=1;M<h;M++){const I=d[M],D=I.__key;b.has(D)||I.remove()}}}removeText(){const t=Q()===this;$f(this,vB(A0(this))),t&&Q()!==this&&rt(this)}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Kn(null);const r=this.getNodes(),s=[];for(const k of r)fe(k)&&s.push(k);const i=k=>{r.forEach(_=>{if(X(_)){const T=_.getFormatFlags(t,k);_.setTextFormat(T)}})},o=s.length;if(o===0)return this.toggleFormat(t),Kn(null),void i(e);const l=this.anchor,a=this.focus,u=this.isBackward(),d=u?a:l,h=u?l:a;let g=0,m=s[0],A=d.type==="element"?0:d.offset;if(d.type==="text"&&A===m.getTextContentSize()&&(g=1,m=s[1],A=0),m==null)return;const y=m.getFormatFlags(t,e);i(y);const b=o-1;let v=s[b];const C=h.type==="text"?h.offset:v.getTextContentSize();if(m.is(v)){if(A===C)return;if(js(m)||A===0&&C===m.getTextContentSize())m.setFormat(y);else{const k=m.splitText(A,C),_=A===0?k[0]:k[1];_.setFormat(y),d.type==="text"&&d.set(_.__key,0,"text"),h.type==="text"&&h.set(_.__key,C-A,"text")}return void(this.format=y)}A===0||js(m)||([,m]=m.splitText(A),A=0),m.setFormat(y);const S=v.getFormatFlags(t,y);C>0&&(C===v.getTextContentSize()||js(v)||([v]=v.splitText(C)),v.setFormat(S));for(let k=g+1;k<b;k++){const _=s[k],T=_.getFormatFlags(t,S);_.setFormat(T)}d.type==="text"&&d.set(m.__key,A,"text"),h.type==="text"&&h.set(v.__key,C,"text"),this.format=y|S}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const A=Q();return J(A)||Ce(134),A.insertNodes(t)}const e=(this.isBackward()?this.focus:this.anchor).getNode(),r=Le(e,Zr),s=t[t.length-1];if(X(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const A=Wm(this);r.splice(A,0,t),s.selectEnd()}return}if(!t.some(A=>(X(A)||ft(A))&&!A.isInline())){X(r)||Ce(211,e.constructor.name,e.getType());const A=Wm(this);return r.splice(A,0,t),void s.selectEnd()}const i=(function(A){const y=Me();let b=null;for(let v=0;v<A.length;v++){const C=A[v],S=jt(C);if(S||ft(C)&&C.isInline()||X(C)&&C.isInline()||fe(C)||C.isParentRequired()){if(b===null&&(b=C.createParentElementNode(),y.append(b),S))continue;b!==null&&b.append(C)}else y.append(C),b=null}return y})(t),o=i.getLastDescendant(),l=i.getChildren(),a=!X(r)||!r.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var h;X(h=d)&&Zr(h)&&!h.isEmpty()&&X(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(X(r)||Ce(211,e.constructor.name,e.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&Ce(212,e.constructor.name,e.getType()),(function(A,y){const b=y.getParentOrThrow().getLastChild();let v=y;const C=[y];for(;v!==b;)v.getNextSibling()||Ce(140),v=v.getNextSibling(),C.push(v);let S=A;for(const k of C)S=S.insertAfter(k)})(r,d));const g=Le(o,Zr);a&&X(g)&&(a.canMergeWhenEmpty()||Zr(u))&&(g.append(...a.getChildren()),a.remove()),X(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const m=X(r)?r.getLastChild():null;jt(m)&&g!==r&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const o=Me();return Ue().splice(this.anchor.offset,0,[o]),o.select(),o}const t=Wm(this),e=Le(this.anchor.getNode(),Zr);X(e)||Ce(213);const r=e.getChildAtIndex(t),s=r?[r,...r.getNextSiblings()]:[],i=e.insertNewAfter(this,!1);return i?(i.append(...s),i.selectStart(),i):null}insertLineBreak(t){const e=cr();if(this.insertNodes([e]),t){const r=e.getParentOrThrow(),s=e.getIndexWithinParent();r.select(s,s)}}extract(){const t=[...this.getNodes()],e=t.length;let r=t[0],s=t[e-1];const[i,o]=a0(this),l=this.isBackward(),[a,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[o,i]:[i,o];if(e===0)return[];if(e===1){if(fe(r)&&!this.isCollapsed()){const g=r.splitText(d,h),m=d===0?g[0]:g[1];return m?(a.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[r]}if(fe(r)&&(d===r.getTextContentSize()?t.shift():d!==0&&([,r]=r.splitText(d),t[0]=r,a.set(r.getKey(),0,"text"))),fe(s)){const g=s.getTextContent().length;h===0?t.pop():h!==g&&([s]=s.splitText(h),t[t.length-1]=s,u.set(s.getKey(),s.getTextContentSize(),"text"))}return t}modify(t,e,r){if(c1(this,t,e,r))return;const s=t==="move",i=tn(),o=os(is(i));if(!o)return;const l=i._blockCursorElement,a=i._rootElement,u=this.focus.getNode();if(a===null||l===null||!X(u)||u.isInline()||u.canBeEmpty()||g0(l,i,a),this.dirty){let d=kl(i,this.anchor.key),h=kl(i,this.focus.key);this.anchor.type==="text"&&(d=Xa(d)),this.focus.type==="text"&&(h=Xa(h)),d&&h&&i2(o,d,this.anchor.offset,h,this.focus.offset)}if((function(d,h,g,m){d.modify(h,g,m)})(o,t,e?"backward":"forward",r),o.rangeCount>0){const d=o.getRangeAt(0),h=this.anchor.getNode(),g=Vt(h)?h:fB(h);if(this.applyDOMRange(d),this.dirty=!0,!s){const m=this.getNodes(),A=[];let y=!1;for(let b=0;b<m.length;b++){const v=m[b];f0(v,g)?A.push(v):y=!0}if(y&&A.length>0)if(e){const b=A[0];X(b)?b.selectStart():b.getParentOrThrow().selectStart()}else{const b=A[A.length-1];X(b)?b.selectEnd():b.getParentOrThrow().selectEnd()}o.anchorNode===d.startContainer&&o.anchorOffset===d.startOffset||(function(b){const v=b.focus,C=b.anchor,S=C.key,k=C.offset,_=C.type;C.set(v.key,v.offset,v.type,!0),v.set(S,k,_,!0)})(this)}}r==="lineboundary"&&c1(this,t,e,r,"decorators")}forwardDeletion(t,e,r){if(!r&&(t.type==="element"&&X(e)&&t.offset===e.getChildrenSize()||t.type==="text"&&t.offset===e.getTextContentSize())){const s=e.getParent(),i=e.getNextSibling()||(s===null?null:s.getNextSibling());if(X(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let s=r.getNode();if(this.forwardDeletion(r,s,t))return;const i=rb(qs(r,t?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(ns(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(X(i.anchor.origin)&&i.anchor.origin.isEmpty()){const u=$r(a);$f(this,Fi(u,u)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Nl(a)){if(X(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(ft(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&X(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const u=Fy();u.add(a.origin.getKey()),rt(u)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:u}=l;return $f(this,Fi(!a.origin.isEmpty()&&u.isEmpty()?od(sn(u,a.direction)):i.anchor,a)),this.removeText()}}const o=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&r1(this,r.getNode()))return}else{const l=o.type==="text"?o.getNode():null;if(s=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=o.offset,u=l.getTextContentSize();if(l.is(s)||t&&a!==u||!t&&a!==0)return void s1(l,t,a)}else if(s!==null&&s.isSegmented()){const a=r.offset,u=s.getTextContentSize();if(s.is(l)||t&&a!==0||!t&&a!==u)return void s1(s,t,a)}(function(a,u){const d=a.anchor,h=a.focus,g=d.getNode(),m=h.getNode();if(g===m&&d.type==="text"&&h.type==="text"){const A=d.offset,y=h.offset,b=A<y,v=b?A:y,C=b?y:A,S=C-1;v!==S&&(function(k){return!(w2(k)||$P(k))})(g.getTextContent().slice(v,C))&&(u?h.set(h.key,S,h.type):d.set(d.key,S,d.type))}})(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Vt(r.getParent())&&r.getPreviousSibling()===null&&r1(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,r=e.getNode();if(this.forwardDeletion(e,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function $t(n){return n instanceof mg}function n1(n){const t=n.offset;if(n.type==="text")return t;const e=n.getNode();return t===e.getChildrenSize()?e.getTextContent().length:0}function a0(n){const t=n.getStartEndPoints();if(t===null)return[0,0];const[e,r]=t;return e.type==="element"&&r.type==="element"&&e.key===r.key&&e.offset===r.offset?[0,0]:[n1(e),n1(r)]}function r1(n,t){for(let e=t;e;e=e.getParent()){if(X(e)){if(e.collapseAtStart(n))return!0;if($n(e))break}if(e.getPreviousSibling())break}return!1}const $P=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),t=n.test.bind(n);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function s1(n,t,e){const r=n,s=r.getTextContent().split(/(?=\s)/g),i=s.length;let o=0,l=0;for(let u=0;u<i;u++){const d=u===i-1;if(l=o,o+=s[u].length,t&&o===e||o>e||d){s.splice(u,1),d&&(l=void 0);break}}const a=s.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function i1(n,t,e,r){let s,i=t;if(Nt(n)){let o=!1;const l=n.childNodes,a=l.length,u=r._blockCursorElement;i===a&&(o=!0,i=a-1);let d=l[i],h=!1;if(d===u)d=l[i+1],h=!0;else if(u!==null){const g=u.parentNode;n===g&&t>Array.prototype.indexOf.call(g.children,u)&&i--}if(s=Da(d),fe(s))i=Zs(s,o?"next":"previous");else{let g=Da(n);if(g===null)return null;if(X(g)){const m=r.getElementByKey(g.getKey());m===null&&Ce(214),[g,i]=g.getDOMSlot(m).resolveChildIndex(g,m,n,t),X(g)||Ce(215),o&&i>=g.getChildrenSize()&&(i=Math.max(0,g.getChildrenSize()-1));let y=g.getChildAtIndex(i);if(X(y)&&(function(b,v,C){const S=b.getParent();return C===null||S===null||!S.canBeEmpty()||S!==C.getNode()})(y,0,e)){const b=o?y.getLastDescendant():y.getFirstDescendant();b===null?g=y:(y=b,g=X(y)?y:y.getParentOrThrow()),i=0}fe(y)?(s=y,g=null,i=Zs(y,o?"next":"previous")):y!==g&&o&&!h&&(X(g)||Ce(216),i=Math.min(g.getChildrenSize(),i+1))}else{const m=g.getIndexWithinParent();i=t===0&&ft(g)&&Da(n)===g?m:m+1,g=g.getParentOrThrow()}if(X(g))return jn(g.__key,i,"element")}}else s=Da(n);return fe(s)?jn(s.__key,Zs(s,i,"clamp"),"text"):null}function o1(n,t,e){const r=n.offset,s=n.getNode();if(r===0){const i=s.getPreviousSibling(),o=s.getParent();if(t){if((e||!t)&&i===null&&X(o)&&o.isInline()){const l=o.getPreviousSibling();fe(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else X(i)&&!e&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):fe(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===s.getTextContent().length){const i=s.getNextSibling(),o=s.getParent();if(t&&X(i)&&i.isInline())n.set(i.__key,0,"element");else if((e||t)&&i===null&&X(o)&&o.isInline()&&!o.canInsertTextAfter()){const l=o.getNextSibling();fe(l)&&n.set(l.__key,0,"text")}}}function n2(n,t,e){if(n.type==="text"&&t.type==="text"){const r=n.isBefore(t),s=n.is(t);o1(n,r,s),o1(t,!r,s),s&&t.set(n.key,n.offset,n.type);const i=tn();if(i.isComposing()&&i._compositionKey!==n.key&&J(e)){const o=e.anchor,l=e.focus;n.set(o.key,o.offset,o.type,!0),t.set(l.key,l.offset,l.type,!0)}}}function r2(n,t,e,r,s,i){if(n===null||e===null||!rd(s,n,e))return null;const o=i1(n,t,J(i)?i.anchor:null,s);if(o===null)return null;const l=i1(e,r,J(i)?i.focus:null,s);if(l===null)return null;if(o.type==="element"&&l.type==="element"){const a=Da(n),u=Da(e);if(ft(a)&&ft(u))return null}return n2(o,l,i),[o,l]}function c0(n){return X(n)&&!n.isInline()}function s2(n,t,e,r,s,i){const o=Fo(),l=new Hl(jn(n,t,s),jn(e,r,i),0,"");return l.dirty=!0,o._selection=l,l}function Zi(){const n=jn("root",0,"element"),t=jn("root",0,"element");return new Hl(n,t,0,"")}function Fy(){return new mg(new Set)}function eB(n,t){return Ag(null,n,t,null)}function Ag(n,t,e,r){const s=e._window;if(s===null)return null;const i=r||s.event,o=i?i.type:void 0,l=o==="selectionchange",a=!YA&&(l||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o==="drop"||o===void 0);let u,d,h,g;if(J(n)&&!a)return n.clone();if(t===null)return null;if(u=t.anchorNode,d=t.focusNode,h=t.anchorOffset,g=t.focusOffset,(l||o===void 0)&&J(n)&&!rd(e,u,d))return n.clone();const m=r2(u,h,d,g,e,n);if(m===null)return null;const[A,y]=m;return new Hl(A,y,J(n)?n.format:0,J(n)?n.style:"")}function Q(){return Fo()._selection}function Ji(){return tn()._editorState._selection}function Ah(n,t,e,r=1){const s=n.anchor,i=n.focus,o=s.getNode(),l=i.getNode();if(!t.is(o)&&!t.is(l))return;const a=t.__key;if(n.isCollapsed()){const u=s.offset;if(e<=u&&r>0||e<u&&r<0){const d=Math.max(0,u+r);s.set(a,d,"element"),i.set(a,d,"element"),l1(n)}}else{const u=n.isBackward(),d=u?i:s,h=d.getNode(),g=u?s:i,m=g.getNode();if(t.is(h)){const A=d.offset;(e<=A&&r>0||e<A&&r<0)&&d.set(a,Math.max(0,A+r),"element")}if(t.is(m)){const A=g.offset;(e<=A&&r>0||e<A&&r<0)&&g.set(a,Math.max(0,A+r),"element")}}l1(n)}function l1(n){const t=n.anchor,e=t.offset,r=n.focus,s=r.offset,i=t.getNode(),o=r.getNode();if(n.isCollapsed()){if(!X(i))return;const l=i.getChildrenSize(),a=e>=l,u=a?i.getChildAtIndex(l-1):i.getChildAtIndex(e);if(fe(u)){let d=0;a&&(d=u.getTextContentSize()),t.set(u.__key,d,"text"),r.set(u.__key,d,"text")}return}if(X(i)){const l=i.getChildrenSize(),a=e>=l,u=a?i.getChildAtIndex(l-1):i.getChildAtIndex(e);if(fe(u)){let d=0;a&&(d=u.getTextContentSize()),t.set(u.__key,d,"text")}}if(X(o)){const l=o.getChildrenSize(),a=s>=l,u=a?o.getChildAtIndex(l-1):o.getChildAtIndex(s);if(fe(u)){let d=0;a&&(d=u.getTextContentSize()),r.set(u.__key,d,"text")}}}function yh(n,t,e,r,s){let i=null,o=0,l=null;r!==null?(i=r.__key,fe(r)?(o=r.getTextContentSize(),l="text"):X(r)&&(o=r.getChildrenSize(),l="element")):s!==null&&(i=s.__key,fe(s)?l="text":X(s)&&(l="element")),i!==null&&l!==null?n.set(i,o,l):(o=t.getIndexWithinParent(),o===-1&&(o=e.getChildrenSize()),n.set(e.__key,o,"element"))}function a1(n,t,e,r,s){n.type==="text"?n.set(e,n.offset+(t?0:s),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function i2(n,t,e,r,s){try{n.setBaseAndExtent(t,e,r,s)}catch{}}function tB(n,t,e,r,s,i,o){const l=r.anchorNode,a=r.focusNode,u=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(s.has($u)&&h!==i||h!==null&&Hy(h))return;if(!J(t))return void(n!==null&&rd(e,l,a)&&r.removeAllRanges());const g=t.anchor,m=t.focus,A=g.key,y=m.key,b=kl(e,A),v=kl(e,y),C=g.offset,S=m.offset,k=t.format,_=t.style,T=t.isCollapsed();let N=b,M=v,I=!1;if(g.type==="text"){N=Xa(b);const G=g.getNode();I=G.getFormat()!==k||G.getStyle()!==_}else J(n)&&n.anchor.type==="text"&&(I=!0);var D,j,B,R,z;if(m.type==="text"&&(M=Xa(v)),N!==null&&M!==null&&(T&&(n===null||I||J(n)&&(n.format!==k||n.style!==_))&&(D=k,j=_,B=C,R=A,z=performance.now(),GT=[D,j,B,R,z]),u!==C||d!==S||l!==N||a!==M||r.type==="Range"&&T||(h!==null&&i.contains(h)||s.has(YP)||i.focus({preventScroll:!0}),g.type==="element"))){if(i2(r,N,C,M,S),!s.has($T)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const G=J(t)&&t.anchor.type==="element"?N.childNodes[C]||null:r.rangeCount>0?r.getRangeAt(0):null;if(G!==null){let ce;if(G instanceof Text){const oe=document.createRange();oe.selectNode(G),ce=oe.getBoundingClientRect()}else ce=G.getBoundingClientRect();(function(oe,W,Z){const ae=E2(Z),q=Qy(ae);if(ae===null||q===null)return;let{top:K,bottom:Y}=W,te=0,ue=0,re=Z;for(;re!==null;){const se=re===ae.body;if(se)te=0,ue=is(oe).innerHeight;else{const xe=re.getBoundingClientRect();te=xe.top,ue=xe.bottom}let he=0;if(K<te?he=-(te-K):Y>ue&&(he=Y-ue),he!==0)if(se)q.scrollBy(0,he);else{const xe=re.scrollTop;re.scrollTop+=he;const pe=re.scrollTop-xe;K-=pe,Y-=pe}if(se)break;re=id(re)}})(e,ce,i)}}i0=!0}}function ed(n){let t=Q()||Ji();t===null&&(t=Ue().selectEnd()),t.insertNodes(n)}function Wm(n){let t=n;n.isCollapsed()||t.removeText();const e=Q();J(e)&&(t=e),J(t)||Ce(161);const r=t.anchor;let s=r.getNode(),i=r.offset;for(;!Zr(s);){const o=s;if([s,i]=nB(s,i),o.is(s))break}return i}function nB(n,t){const e=n.getParent();if(!e){const s=Me();return Ue().append(s),s.select(),[Ue(),0]}if(fe(n)){const s=n.splitText(t);if(s.length===0)return[e,n.getIndexWithinParent()];const i=t===0?0:1;return[e,s[0].getIndexWithinParent()+i]}if(!X(n)||t===0)return[e,n.getIndexWithinParent()];const r=n.getChildAtIndex(t);if(r){const s=new Hl(jn(n.__key,t,"element"),jn(n.__key,t,"element"),0,""),i=n.insertNewAfter(s);i&&i.append(r,...r.getNextSiblings())}return[e,n.getIndexWithinParent()+1]}function c1(n,t,e,r,s="decorators-and-blocks"){if(t==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=e===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=qs(n.focus,e?"previous":"next"),o=r==="lineboundary",l=t==="move";let a=i,u=s==="decorators-and-blocks";if(!D2(a)){for(const d of a){u=!1;const{origin:h}=d;if(!ft(h)||h.isIsolated()||(a=d,!o||!h.isInline()))break}if(u)for(const d of rb(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(ns(d))d.origin.isInline()||(a=d);else{if(X(d.origin))continue;ft(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!o&&ft(a.origin)&&a.origin.isKeyboardSelectable()){const d=Fy();return d.add(a.origin.getKey()),rt(d),!0}return a=$r(a),l&&_u(n.anchor,a),_u(n.focus,a),u||!o}let Ln=null,Dn=null,yr=!1,Hm=!1,Xf=0;const u1={characterData:!0,childList:!0,subtree:!0};function Yl(){return yr||Ln!==null&&Ln._readOnly}function In(){yr&&Ce(13)}function o2(){Xf>99&&Ce(14)}function Fo(){return Ln===null&&Ce(195,l2()),Ln}function tn(){return Dn===null&&Ce(196,l2()),Dn}function l2(){let n=0;const t=new Set,e=El.version;if(typeof window<"u")for(const s of document.querySelectorAll("[contenteditable]")){const i=wg(s);if(Yy(i))n++;else if(i){let o=String(i.constructor.version||"<0.17.1");o===e&&(o+=" (separately built, likely a bundler configuration issue)"),t.add(o)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${e}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function rB(){return Dn}function d1(n,t,e){const r=t.__type,s=h2(n,r);let i=e.get(r);i===void 0&&(i=Array.from(s.transforms),e.set(r,i));const o=i.length;for(let l=0;l<o&&(i[l](t),t.isAttached());l++);}function f1(n,t){return n!==void 0&&n.__key!==t&&n.isAttached()}function a2(n,t){if(!t)return;const e=n._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const s of r)e.add(s)}function sB(n){return zy(n,tn()._nodes)}function zy(n,t){const e=n.type,r=t.get(e);r===void 0&&Ce(17,e);const s=r.klass;n.type!==s.getType()&&Ce(18,s.name);const i=s.importJSON(n),o=n.children;if(X(i)&&Array.isArray(o))for(let l=0;l<o.length;l++){const a=zy(o[l],t);i.append(a)}return i}function h1(n,t,e){const r=Ln,s=yr,i=Dn;Ln=t,yr=!0,Dn=n;try{return e()}finally{Ln=r,yr=s,Dn=i}}function Ei(n,t){const e=n._pendingEditorState,r=n._rootElement,s=n._headless||r===null;if(e===null)return;const i=n._editorState,o=i._selection,l=e._selection,a=n._dirtyType!==0,u=Ln,d=yr,h=Dn,g=n._updating,m=n._observer;let A=null;if(n._pendingEditorState=null,n._editorState=e,!s&&a&&m!==null){Dn=n,Ln=e,yr=!1,n._updating=!0;try{const T=n._dirtyType,N=n._dirtyElements,M=n._dirtyLeaves;m.disconnect(),A=FP(i,e,n,T,N,M)}catch(T){if(T instanceof Error&&n._onError(T),Hm)throw T;return d2(n,null,r,e),LT(n),n._dirtyType=2,Hm=!0,Ei(n,i),void(Hm=!1)}finally{m.observe(r,u1),n._updating=g,Ln=u,yr=d,Dn=h}}e._readOnly||(e._readOnly=!0);const y=n._dirtyLeaves,b=n._dirtyElements,v=n._normalizedNodes,C=n._updateTags,S=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),(function(T,N){const M=T._decorators;let I=T._pendingDecorators||M;const D=N._nodeMap;let j;for(j in I)D.has(j)||(I===M&&(I=y2(T)),delete I[j])})(n,e);const k=s?null:os(is(n));if(n._editable&&k!==null&&(a||l===null||l.dirty||!l.is(o))&&r!==null&&!C.has(HP)){Dn=n,Ln=e;try{if(m!==null&&m.disconnect(),a||l===null||l.dirty){const T=n._blockCursorElement;T!==null&&g0(T,n,r),tB(o,l,n,k,C,r)}(function(T,N,M){let I=T._blockCursorElement;if(J(M)&&M.isCollapsed()&&M.anchor.type==="element"&&N.contains(document.activeElement)){const D=M.anchor,j=D.getNode(),B=D.offset;let R=!1,z=null;if(B===j.getChildrenSize())Gm(j.getChildAtIndex(B-1))&&(R=!0);else{const G=j.getChildAtIndex(B);if(G!==null&&Gm(G)){const ce=G.getPreviousSibling();(ce===null||Gm(ce))&&(R=!0,z=T.getElementByKey(G.__key))}}if(R){const G=T.getElementByKey(j.__key);return I===null&&(T._blockCursorElement=I=(function(ce){const oe=ce.theme,W=document.createElement("div");W.contentEditable="false",W.setAttribute("data-lexical-cursor","true");let Z=oe.blockCursor;if(Z!==void 0){if(typeof Z=="string"){const ae=ET(Z);Z=oe.blockCursor=ae}Z!==void 0&&W.classList.add(...Z)}return W})(T._config)),N.style.caretColor="transparent",void(z===null?G.appendChild(I):G.insertBefore(I,z))}}I!==null&&g0(I,T,N)})(n,r,l)}finally{m!==null&&m.observe(r,u1),Dn=h,Ln=u}}A!==null&&(function(T,N,M,I,D){const j=Array.from(T._listeners.mutation),B=j.length;for(let R=0;R<B;R++){const[z,G]=j[R];for(const ce of G){const oe=N.get(ce);oe!==void 0&&z(oe,{dirtyLeaves:I,prevEditorState:D,updateTags:M})}}})(n,A,C,y,i),J(l)||l===null||o!==null&&o.is(l)||n.dispatchCommand(Xr,void 0);const _=n._pendingDecorators;_!==null&&(n._decorators=_,n._pendingDecorators=null,du("decorator",n,!0,_)),(function(T,N,M){const I=y1(N),D=y1(M);I!==D&&du("textcontent",T,!0,D)})(n,t||i,e),du("update",n,!0,{dirtyElements:b,dirtyLeaves:y,editorState:e,mutatedNodes:A,normalizedNodes:v,prevEditorState:t||i,tags:C}),(function(T,N){if(T._deferred=[],N.length!==0){const M=T._updating;T._updating=!0;try{for(let I=0;I<N.length;I++)N[I]()}finally{T._updating=M}}})(n,S),(function(T){const N=T._updates;if(N.length!==0){const M=N.shift();if(M){const[I,D]=M;yg(T,I,D)}}})(n)}function du(n,t,e,...r){const s=t._updating;t._updating=e;try{const i=Array.from(t._listeners[n]);for(let o=0;o<i.length;o++)i[o].apply(null,r)}finally{t._updating=s}}function g1(n,t){const e=n._updates;let r=t||!1;for(;e.length!==0;){const s=e.shift();if(s){const[i,o]=s,l=n._pendingEditorState;let a;o!==void 0&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(l===null&&Ce(191),l._flushSync=!0),a&&n._deferred.push(a),a2(n,o.tag)),l==null?yg(n,i,o):i()}}return r}function yg(n,t,e){const r=n._updateTags;let s,i=!1,o=!1;e!==void 0&&(s=e.onUpdate,a2(n,e.tag),i=e.skipTransforms||!1,o=e.discrete||!1),s&&n._deferred.push(s);const l=n._editorState;let a=n._pendingEditorState,u=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=c2(a||l),u=!0),a._flushSync=o;const d=Ln,h=yr,g=Dn,m=n._updating;Ln=a,yr=!1,n._updating=!0,Dn=n;const A=n._headless||n.getRootElement()===null;Wy(null);try{u&&(A?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=(function(C,S){const k=C.getEditorState()._selection,_=os(is(C));return J(k)||k==null?Ag(k,_,C,S):k.clone()})(n,e&&e.event||null));const b=n._compositionKey;t(),i=g1(n,i),(function(C,S){const k=S.getEditorState()._selection,_=C._selection;if(J(_)){const T=_.anchor,N=_.focus;let M;if(T.type==="text"&&(M=T.getNode(),M.selectionTransform(k,_)),N.type==="text"){const I=N.getNode();M!==I&&I.selectionTransform(k,_)}}})(a,n),n._dirtyType!==0&&(i?(function(C,S){const k=S._dirtyLeaves,_=C._nodeMap;for(const T of k){const N=_.get(T);fe(N)&&N.isAttached()&&N.isSimpleText()&&!N.isUnmergeable()&&Hv(N)}})(a,n):(function(C,S){const k=S._dirtyLeaves,_=S._dirtyElements,T=C._nodeMap,N=po(),M=new Map;let I=k,D=I.size,j=_,B=j.size;for(;D>0||B>0;){if(D>0){S._dirtyLeaves=new Set;for(const R of I){const z=T.get(R);fe(z)&&z.isAttached()&&z.isSimpleText()&&!z.isUnmergeable()&&Hv(z),z!==void 0&&f1(z,N)&&d1(S,z,M),k.add(R)}if(I=S._dirtyLeaves,D=I.size,D>0){Xf++;continue}}S._dirtyLeaves=new Set,S._dirtyElements=new Map,j.delete("root")&&j.set("root",!0);for(const R of j){const z=R[0],G=R[1];if(_.set(z,G),!G)continue;const ce=T.get(z);ce!==void 0&&f1(ce,N)&&d1(S,ce,M)}I=S._dirtyLeaves,D=I.size,j=S._dirtyElements,B=j.size,Xf++}S._dirtyLeaves=k,S._dirtyElements=_})(a,n),g1(n),(function(C,S,k,_){const T=C._nodeMap,N=S._nodeMap,M=[];for(const[I]of _){const D=N.get(I);D!==void 0&&(D.isAttached()||(X(D)&&NT(D,I,T,N,M,_),T.has(I)||_.delete(I),M.push(I)))}for(const I of M)N.delete(I);for(const I of k){const D=N.get(I);D===void 0||D.isAttached()||(T.has(I)||k.delete(I),N.delete(I))}})(l,a,n._dirtyLeaves,n._dirtyElements)),b!==n._compositionKey&&(a._flushSync=!0);const v=a._selection;if(J(v)){const C=a._nodeMap,S=v.anchor.key,k=v.focus.key;C.get(S)!==void 0&&C.get(k)!==void 0||Ce(19)}else $t(v)&&v._nodes.size===0&&(a._selection=null)}catch(b){return b instanceof Error&&n._onError(b),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void Ei(n)}finally{Ln=d,yr=h,Dn=g,n._updating=m,Xf=0}n._dirtyType!==0||n._deferred.length>0||(function(b,v){const C=v.getEditorState()._selection,S=b._selection;if(S!==null){if(S.dirty||!S.is(C))return!0}else if(C!==null)return!0;return!1})(a,n)?a._flushSync?(a._flushSync=!1,Ei(n)):u&&aB(()=>{Ei(n)}):(a._flushSync=!1,u&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Tr(n,t,e){Dn===n&&e===void 0?t():yg(n,t,e)}class fu{constructor(t,e,r){U(this,"element");U(this,"before");U(this,"after");this.element=t,this.before=e||null,this.after=r||null}withBefore(t){return new fu(this.element,t,this.after)}withAfter(t){return new fu(this.element,this.before,t)}withElement(t){return this.element===t?this:new fu(t,this.before,this.after)}insertChild(t){const e=this.before||this.getManagedLineBreak();return e!==null&&e.parentElement!==this.element&&Ce(222),this.element.insertBefore(t,e),this}removeChild(t){return t.parentElement!==this.element&&Ce(223),this.element.removeChild(t),this}replaceChild(t,e){return e.parentElement!==this.element&&Ce(224),this.element.replaceChild(t,e),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const e=t==="decorator"&&(Su||Va||vu);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&e.removeChild(r),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===(e.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,s=this.before,i=document.createElement("br");if(r.insertBefore(i,s),t){const o=document.createElement("img");o.setAttribute("data-lexical-linebreak","true"),o.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",o.alt="",r.insertBefore(o,i),r.__lexicalLineBreak=o}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let e=this.after;e!==null;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,r,s){if(r===this.element){const a=this.getFirstChildOffset();return[t,Math.min(a+t.getChildrenSize(),Math.max(a,s))]}const i=p1(e,r);i.push(s);const o=p1(e,this.element);let l=t.getIndexWithinParent();for(let a=0;a<o.length;a++){const u=i[a],d=o[a];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[t.getParentOrThrow(),l]}}function p1(n,t){const e=[];let r=t;for(;r!==n&&r!==null;r=r.parentNode){let s=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)s++;e.push(s)}return r!==n&&Ce(225),e.reverse()}class xt extends ys{constructor(e){super(e);U(this,"__first");U(this,"__last");U(this,"__size");U(this,"__format");U(this,"__style");U(this,"__indent");U(this,"__dir");U(this,"__textFormat");U(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return TP[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let r=this.getFirstChild();for(;r!==null;)e.push(r),r=r.getNextSibling();return e}getChildrenKeys(){const e=[];let r=this.getFirstChild();for(;r!==null;)e.push(r.__key),r=r.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=tn()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(e)}getAllTextNodes(){const e=[];let r=this.getFirstChild();for(;r!==null;){if(fe(r)&&e.push(r),X(r)){const s=r.getAllTextNodes();e.push(...s)}r=r.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;X(e);){const r=e.getFirstChild();if(r===null)break;e=r}return e}getLastDescendant(){let e=this.getLastChild();for(;X(e);){const r=e.getLastChild();if(r===null)break;e=r}return e}getDescendantByIndex(e){const r=this.getChildren(),s=r.length;if(e>=s){const o=r[s-1];return X(o)&&o.getLastDescendant()||o||null}const i=r[e];return X(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:Te(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&Ce(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:Te(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&Ce(96,this.__key),e}getChildAtIndex(e){const r=this.getChildrenSize();let s,i;if(e<r/2){for(s=this.getFirstChild(),i=0;s!==null&&i<=e;){if(i===e)return s;s=s.getNextSibling(),i++}return null}for(s=this.getLastChild(),i=r-1;s!==null&&i>=e;){if(i===e)return s;s=s.getPreviousSibling(),i--}return null}getTextContent(){let e="";const r=this.getChildren(),s=r.length;for(let i=0;i<s;i++){const o=r[i];e+=o.getTextContent(),X(o)&&i!==s-1&&!o.isInline()&&(e+=vo)}return e}getTextContentSize(){let e=0;const r=this.getChildren(),s=r.length;for(let i=0;i<s;i++){const o=r[i];e+=o.getTextContentSize(),X(o)&&i!==s-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==""){const r=jv[e];return(this.getFormat()&r)!==0}return!1}hasTextFormat(e){const r=Pi[e];return(this.getTextFormat()&r)!==0}getFormatFlags(e,r){return bh(this.getLatest().__textFormat,e,r)}getTextStyle(){return this.getLatest().__textStyle}select(e,r){In();const s=Q();let i=e,o=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&r===0){const u=this.getFirstChild();if(fe(u)||X(u))return u.select(0,0)}else if(!(e!==void 0&&e!==l||r!==void 0&&r!==l)){const u=this.getLastChild();if(fe(u)||X(u))return u.select()}}i===void 0&&(i=l),o===void 0&&(o=l);const a=this.__key;return J(s)?(s.anchor.set(a,i,"element"),s.focus.set(a,o,"element"),s.dirty=!0,s):s2(a,i,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(r=>r.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const r=this.getWritable();return r.__dir=e,r}setFormat(e){return this.getWritable().__format=e!==""?jv[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const r=this.getWritable();return r.__textFormat=e,r}setTextStyle(e){const r=this.getWritable();return r.__textStyle=e,r}setIndent(e){return this.getWritable().__indent=e,this}splice(e,r,s){mh(this)&&Ce(324,this.__key,this.__type);const i=this.getChildrenSize(),o=this.getWritable();e+r<=i||Ce(226,String(e),String(r),String(i));const l=o.__key,a=[],u=[],d=this.getChildAtIndex(e+r);let h=null,g=i-r+s.length;if(e!==0)if(e===i)h=this.getLastChild();else{const A=this.getChildAtIndex(e);A!==null&&(h=A.getPreviousSibling())}if(r>0){let A=h===null?this.getFirstChild():h.getNextSibling();for(let y=0;y<r;y++){A===null&&Ce(100);const b=A.getNextSibling(),v=A.__key;Di(A.getWritable()),u.push(v),A=b}}let m=h;for(const A of s){m!==null&&A.is(m)&&(h=m=m.getPreviousSibling());const y=A.getWritable();y.__parent===l&&g--,Di(y);const b=A.__key;if(m===null)o.__first=b,y.__prev=null;else{const v=m.getWritable();v.__next=b,y.__prev=v.__key}A.__key===l&&Ce(76),y.__parent=l,a.push(b),m=A}if(e+r===i)m!==null&&(m.getWritable().__next=null,o.__last=m.__key);else if(d!==null){const A=d.getWritable();if(m!==null){const y=m.getWritable();A.__prev=m.__key,y.__next=d.__key}else A.__prev=null}if(o.__size=g,u.length){const A=Q();if(J(A)){const y=new Set(u),b=new Set(a),{anchor:v,focus:C}=A;m1(v,y,b)&&yh(v,v.getNode(),this,h,d),m1(C,y,b)&&yh(C,C.getNode(),this,h,d),g!==0||this.canBeEmpty()||$n(this)||this.remove()}}return o}getDOMSlot(e){return new fu(e)}exportDOM(e){const{element:r}=super.exportDOM(e);if(Nt(r)){const s=this.getIndent();s>0&&(r.style.paddingInlineStart=40*s+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),s=this.getTextStyle();return r!==0&&(e.textFormat=r),s!==""&&(e.textStyle=s),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,r){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,r,s){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,r){const s=this.getDOMSlot(e);let i=s.getFirstChild();for(let o=this.getFirstChild();o;o=o.getNextSibling()){const l=r.getElementByKey(o.getKey());l!==null&&(i==null?(s.insertChild(l),i=l):i!==l&&s.replaceChild(l,i),i=i.nextSibling)}}}function X(n){return n instanceof xt}function m1(n,t,e){let r=n.getNode();for(;r;){const s=r.__key;if(t.has(s)&&!e.has(s))return!0;r=r.getParent()}return!1}class _s extends ys{decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ft(n){return n instanceof _s}class Gl extends xt{constructor(){super("root");U(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Gl}getTopLevelElementOrThrow(){Ce(51)}getTextContent(){const e=this.__cachedText;return!Yl()&&tn()._dirtyType!==0||e===null?super.getTextContent():e}remove(){Ce(52)}replace(e){Ce(53)}insertBefore(e){Ce(54)}insertAfter(e){Ce(55)}updateDOM(e,r){return!1}splice(e,r,s){for(const i of s)X(i)||ft(i)||Ce(282);return super.splice(e,r,s)}static importJSON(e){return Ue().updateFromJSON(e)}collapseAtStart(){return!0}}function Vt(n){return n instanceof Gl}function c2(n){return new td(new Map(n._nodeMap))}function Uy(){return new td(new Map([["root",new Gl]]))}function u2(n){const t=n.exportJSON(),e=n.constructor;if(t.type!==e.getType()&&Ce(130,e.name),X(n)){const r=t.children;Array.isArray(r)||Ce(59,e.name);const s=n.getChildren();for(let i=0;i<s.length;i++){const o=u2(s[i]);r.push(o)}}return t}function iB(n){return n instanceof td}class td{constructor(t,e){U(this,"_nodeMap");U(this,"_selection");U(this,"_flushSync");U(this,"_readOnly");this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,e){return h1(e&&e.editor||null,this,t)}clone(t){const e=new td(this._nodeMap,t===void 0?this._selection:t);return e._readOnly=!0,e}toJSON(){return h1(null,this,()=>({root:u2(Ue())}))}}class Ky extends xt{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Vi extends xt{static getType(){return"paragraph"}static clone(t){return new Vi(t.__key)}createDOM(t){const e=document.createElement("p"),r=Fa(t.theme,"paragraph");return r!==void 0&&e.classList.add(...r),e}updateDOM(t,e,r){return!1}static importDOM(){return{p:t=>({conversion:oB,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Nt(e)){this.isEmpty()&&e.append(document.createElement("br"));const r=this.getFormatType();r&&(e.style.textAlign=r)}return{element:e}}static importJSON(t){return Me().updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const r=Me();r.setTextFormat(t.format),r.setTextStyle(t.style);const s=this.getDirection();return r.setDirection(s),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,e),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||fe(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function oB(n){const t=Me();return n.style&&(t.setFormat(n.style.textAlign),$y(n,t)),{node:t}}function Me(){return Bt(new Vi)}function fn(n){return n instanceof Vi}const Ze=0,De=1,Ss=2,ki=3,vn=4;function d2(n,t,e,r){const s=n._keyToDOMMap;s.clear(),n._editorState=Uy(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),t!==null&&(t.textContent=""),e!==null&&(e.textContent="",s.set("root",e))}function f2(n){const t=new Set,e=new Set;let r=n;for(;r;){const{ownNodeConfig:s}=vg(r),i=r.transform;if(!e.has(i)){e.add(i);const o=r.transform();o&&t.add(o)}if(s){const o=s.$transform;o&&t.add(o),r=s.extends}else{const o=Object.getPrototypeOf(r);r=o.prototype instanceof ys&&o!==ys?o:void 0}}return t}function nd(n){const t=n||{},e=rB(),r=t.theme||{},s=n===void 0?e:t.parentEditor||null,i=t.disableEvents||!1,o=Uy(),l=t.namespace||(s!==null?s._config.namespace:C2()),a=t.editorState,u=[Gl,On,pc,mc,Vi,Ky,...t.nodes||[]],{onError:d,html:h}=t,g=t.editable===void 0||t.editable;let m;if(n===void 0&&e!==null)m=e._nodes;else{m=new Map;for(let y=0;y<u.length;y++){let b=u[y],v=null,C=null;if(typeof b!="function"){const _=b;b=_.replace,v=_.with,C=_.withKlass||null}vg(b);const S=b.getType(),k=f2(b);m.set(S,{exportDOM:h&&h.export?h.export.get(b):void 0,klass:b,replace:v,replaceWithKlass:C,sharedNodeState:RT(u[y]),transforms:k})}}const A=new El(o,s,m,{disableEvents:i,namespace:l,theme:r},d||console.error,(function(y,b){const v=new Map,C=new Set,S=k=>{Object.keys(k).forEach(_=>{let T=v.get(_);T===void 0&&(T=[],v.set(_,T)),T.push(k[_])})};return y.forEach(k=>{const _=k.klass.importDOM;if(_==null||C.has(_))return;C.add(_);const T=_.call(k.klass);T!==null&&S(T)}),b&&S(b),v})(m,h?h.import:void 0),g,n);return a!==void 0&&(A._pendingEditorState=a,A._dirtyType=2),A}class El{constructor(t,e,r,s,i,o,l,a){U(this,"_headless");U(this,"_parentEditor");U(this,"_rootElement");U(this,"_editorState");U(this,"_pendingEditorState");U(this,"_compositionKey");U(this,"_deferred");U(this,"_keyToDOMMap");U(this,"_updates");U(this,"_updating");U(this,"_listeners");U(this,"_commands");U(this,"_nodes");U(this,"_decorators");U(this,"_pendingDecorators");U(this,"_config");U(this,"_dirtyType");U(this,"_cloneNotNeeded");U(this,"_dirtyLeaves");U(this,"_dirtyElements");U(this,"_normalizedNodes");U(this,"_updateTags");U(this,"_observer");U(this,"_key");U(this,"_onError");U(this,"_htmlConversions");U(this,"_window");U(this,"_editable");U(this,"_blockCursorElement");U(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=s,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=C2(),this._onError=i,this._htmlConversions=o,this._editable=l,this._headless=e!==null&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t)}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t)}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t)}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t)}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t)}}registerCommand(t,e,r){r===void 0&&Ce(35);const s=this._commands;s.has(t)||s.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=s.get(t);i===void 0&&Ce(36,String(t));const o=i[r];return o.add(e),()=>{o.delete(e),i.every(l=>l.size===0)&&s.delete(t)}}registerMutationListener(t,e,r){const s=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let o=i.get(e);o===void 0&&(o=new Set,i.set(e,o)),o.add(s);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(e,s),()=>{o.delete(s),o.size===0&&i.delete(e)}}getRegisteredNode(t){const e=this._nodes.get(t.getType());return e===void 0&&Ce(37,t.name),e}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const r=this._editorState,s=E1(r).get(e.getType());if(!s)return;const i=new Map;for(const o of s.keys())i.set(o,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const r=this.getRegisteredNode(t);return r.transforms.add(e),r}registerNodeTransform(t,e){const r=this.registerNodeTransformToKlass(t,e),s=[r],i=r.replaceWithKlass;if(i!=null){const o=this.registerNodeTransformToKlass(i,e);s.push(o)}return(function(o,l){const a=E1(o.getEditorState()),u=[];for(const d of l){const h=a.get(d);h&&u.push(h)}u.length!==0&&o.update(()=>{for(const d of u)for(const h of d.keys()){const g=Te(h);g&&g.markDirty()}},o._pendingEditorState===null?{tag:qr}:void 0)})(this,s.map(o=>o.klass.getType())),()=>{s.forEach(o=>o.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Pe(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const r=Fa(this._config.theme,"root"),s=this._pendingEditorState||this._editorState;if(this._rootElement=t,d2(this,e,t,s),e!==null&&(this._config.disableEvents||UP(e),r!=null&&e.classList.remove(...r)),t!==null){const i=Qy(t),o=t.style;o.userSelect="text",o.whiteSpace="pre-wrap",o.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,LT(this),this._updateTags.add(qr),Ei(this),this._config.disableEvents||(function(l,a){const u=l.ownerDocument;s0.set(l,u);const d=ph.get(u)??0;d<1&&u.addEventListener("selectionchange",XT),ph.set(u,d+1),l.__lexicalEditor=a;const h=QT(l);for(let g=0;g<r0.length;g++){const[m,A]=r0[g],y=typeof A=="function"?b=>{Qv(b)||(Vv(b),(a.isEditable()||m==="click")&&A(b,a))}:b=>{if(Qv(b))return;Vv(b);const v=a.isEditable();switch(m){case"cut":return v&&Pe(a,qu,b);case"copy":return Pe(a,Wl,b);case"paste":return v&&Pe(a,Fl,b);case"dragstart":return v&&Pe(a,Ry,b);case"dragover":return v&&Pe(a,jy,b);case"dragend":return v&&Pe(a,zP,b);case"focus":return v&&Pe(a,Bo,b);case"blur":return v&&Pe(a,pg,b);case"drop":return v&&Pe(a,Oy,b)}};l.addEventListener(m,y),h.push(()=>{l.removeEventListener(m,y)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(qr),Ei(this);du("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,e){t.isEmpty()&&Ce(38);let r=t;r._readOnly&&(r=c2(t),r._selection=t._selection?t._selection.clone():null),IT(this);const s=this._pendingEditorState,i=this._updateTags,o=e!==void 0?e.tag:null;s===null||s.isEmpty()||(o!=null&&i.add(o),Ei(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,o!=null&&i.add(o),this._updating||Ei(this)}parseEditorState(t,e){return(function(r,s,i){const o=Uy(),l=Ln,a=yr,u=Dn,d=s._dirtyElements,h=s._dirtyLeaves,g=s._cloneNotNeeded,m=s._dirtyType;s._dirtyElements=new Map,s._dirtyLeaves=new Set,s._cloneNotNeeded=new Set,s._dirtyType=0,Ln=o,yr=!1,Dn=s,Wy(null);try{const A=s._nodes;zy(r.root,A),i&&i(),o._readOnly=!0}catch(A){A instanceof Error&&s._onError(A)}finally{s._dirtyElements=d,s._dirtyLeaves=h,s._cloneNotNeeded=g,s._dirtyType=m,Ln=l,yr=a,Dn=u}return o})(typeof t=="string"?JSON.parse(t):t,this,e)}read(t){return Ei(this),this.getEditorState().read(t,{editor:this})}update(t,e){(function(r,s,i){r._updating?r._updates.push([s,i]):yg(r,s,i)})(this,t,e)}focus(t,e={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Tr(this,()=>{const s=Q(),i=Ue();s!==null?s.dirty||rt(s.clone()):i.getChildrenSize()!==0&&(e.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),k2("focus"),uB(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const e=os(this._window);e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,du("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}U(El,"version");El.version="0.38.2+prod.esm";let u0=null;function Wy(n){u0=n}let lB=1;function h2(n,t){const e=bg(n,t);return e===void 0&&Ce(30,t),e}function bg(n,t){return n._nodes.get(t)}const aB=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function A1(n){return ft(He(n))}function Hy(n){const t=document.activeElement;if(!Nt(t))return!1;const e=t.nodeName;return ft(He(n))&&(e==="INPUT"||e==="TEXTAREA"||t.contentEditable==="true"&&wg(t)==null)}function rd(n,t,e){const r=n.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(e)&&t!==null&&!Hy(t)&&sd(t)===n}catch{return!1}}function Yy(n){return n instanceof El}function sd(n){let t=n;for(;t!=null;){const e=wg(t);if(Yy(e))return e;t=id(t)}return null}function wg(n){return n?n.__lexicalEditor:null}function cB(n){return SP.test(n)?"rtl":EP.test(n)?"ltr":null}function hl(n){return Wn(n)||n.isToken()}function js(n){return hl(n)||n.isSegmented()}function Qi(n){return Zl(n)&&n.nodeType===3}function g2(n){return Zl(n)&&n.nodeType===9}function Xa(n){let t=n;for(;t!=null;){if(Qi(t))return t;t=t.firstChild}return null}function bh(n,t,e){const r=Pi[t];if(e!==null&&(n&r)===(e&r))return n;let s=n^r;return t==="subscript"?s&=-65:t==="superscript"?s&=-33:t==="lowercase"?(s&=-513,s&=-1025):t==="uppercase"?(s&=-257,s&=-1025):t==="capitalize"&&(s&=-257,s&=-513),s}function p2(n){return fe(n)||jt(n)||ft(n)}function m2(n,t){const e=(function(){const o=u0;return u0=null,o})();if((t=t||e&&e.__key)!=null)return void(n.__key=t);In(),o2();const r=tn(),s=Fo(),i=""+lB++;s._nodeMap.set(i,n),X(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function Di(n){const t=n.getParent();if(t!==null){const e=n.getWritable(),r=t.getWritable(),s=n.getPreviousSibling(),i=n.getNextSibling(),o=i!==null?i.__key:null,l=s!==null?s.__key:null,a=s!==null?s.getWritable():null,u=i!==null?i.getWritable():null;s===null&&(r.__first=o),i===null&&(r.__last=l),a!==null&&(a.__next=o),u!==null&&(u.__prev=l),e.__prev=null,e.__next=null,e.__parent=null,r.__size--}}function wh(n){o2(),mh(n)&&Ce(323,n.__key,n.__type);const t=n.getLatest(),e=t.__parent,r=Fo(),s=tn(),i=r._nodeMap,o=s._dirtyElements;e!==null&&(function(a,u,d){let h=a;for(;h!==null;){if(d.has(h))return;const g=u.get(h);if(g===void 0)break;d.set(h,!1),h=g.__parent}})(e,i,o);const l=t.__key;s._dirtyType=1,X(n)?o.set(l,!0):s._dirtyLeaves.add(l)}function Kn(n){In();const t=tn(),e=t._compositionKey;if(n!==e){if(t._compositionKey=n,e!==null){const r=Te(e);r!==null&&r.getWritable()}if(n!==null){const r=Te(n);r!==null&&r.getWritable()}}}function po(){return Yl()?null:tn()._compositionKey}function Te(n,t){const e=(t||Fo())._nodeMap.get(n);return e===void 0?null:e}function A2(n,t){const e=Cg(n,tn());return e!==void 0?Te(e,t):null}function Cg(n,t){return n[`__lexicalKey_${t._key}`]}function He(n,t){let e=n;for(;e!=null;){const r=A2(e,t);if(r!==null)return r;e=id(e)}return null}function y2(n){const t=n._decorators,e=Object.assign({},t);return n._pendingDecorators=e,e}function y1(n){return n.read(()=>Ue().getTextContent())}function Ue(){return b2(Fo())}function b2(n){return n._nodeMap.get("root")}function rt(n){In();const t=Fo();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),t._selection=n}function Da(n){const t=tn(),e=(function(r,s){let i=r;for(;i!=null;){const o=Cg(i,s);if(o!==void 0)return o;i=id(i)}return null})(n,t);return e===null?n===t.getRootElement()?Te("root"):null:Te(e)}function w2(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function Gy(n){const t=[];let e=n;for(;e!==null;)t.push(e),e=e._parentEditor;return t}function C2(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function x2(n){return Qi(n)?n.nodeValue:null}function Zy(n,t,e){const r=os(is(t));if(r===null)return;const s=r.anchorNode;let{anchorOffset:i,focusOffset:o}=r;if(s!==null){let l=x2(s);const a=He(s);if(l!==null&&fe(a)){if(l===cg&&e){const u=e.length;l=e,i=u,o=u}l!==null&&Jy(a,l,i,o,n)}}}function Jy(n,t,e,r,s){let i=n;if(i.isAttached()&&(s||!i.isDirty())){const o=i.isComposing();let l=t;(o||s)&&t[t.length-1]===cg&&(l=t.slice(0,-1));const a=i.getTextContent();if(s||l!==a){if(l===""){if(Kn(null),vu||Va||Su)i.remove();else{const y=tn();setTimeout(()=>{y.update(()=>{i.isAttached()&&i.remove()})},20)}return}const u=i.getParent(),d=Ji(),h=i.getTextContentSize(),g=po(),m=i.getKey();if(i.isToken()||g!==null&&m===g&&!o||J(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!o||d.focus.key===n.__key&&d.focus.offset===h&&!i.canInsertTextAfter()&&!o))return void i.markDirty();const A=Q();if(!J(A)||e===null||r===null)return void b1(i,l,A);if(A.setTextNodeRange(i,e,i,r),i.isSegmented()){const y=Ct(i.getTextContent());i.replace(y),i=y}b1(i,l,A)}}}function b1(n,t,e){if(n.setTextContent(t),J(e)){const r=n.getKey();for(const s of["anchor","focus"]){const i=e[s];i.type==="text"&&i.key===r&&(i.offset=Zs(n,i.offset,"clamp"))}}}function wf(n,t,e){const r=t[e]||!1;return r==="any"||r===n[e]}function Ht(n,t){return wf(n,t,"altKey")&&wf(n,t,"ctrlKey")&&wf(n,t,"shiftKey")&&wf(n,t,"metaKey")}function Lt(n,t,e){return Ht(n,e)&&n.key.toLowerCase()===t.toLowerCase()}const xi={ctrlKey:!gs,metaKey:gs},w1={altKey:gs,ctrlKey:!gs};function C1(n){return n.key==="Backspace"}function x1(n){return Lt(n,"a",xi)}function v2(n){const t=Ue();if(J(n)){const e=n.anchor,r=n.focus,s=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(s.getKey(),0,"element"),r.set(s.getKey(),s.getChildrenSize(),"element"),So(n),n}{const e=t.select(0,t.getChildrenSize());return rt(So(e)),e}}function Fa(n,t){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const e=n.__lexicalClassNameCache,r=e[t];if(r!==void 0)return r;const s=n[t];if(typeof s=="string"){const i=ET(s);return e[t]=i,i}return s}function Vy(n,t,e,r,s){if(e.size===0)return;const i=r.__type,o=r.__key,l=t.get(i);l===void 0&&Ce(33,i);const a=l.klass;let u=n.get(a);u===void 0&&(u=new Map,n.set(a,u));const d=u.get(o),h=d==="destroyed"&&s==="created";(d===void 0||h)&&u.set(o,h?"updated":s)}function v1(n,t,e){const r=n.getParent();let s=e,i=n;return r!==null&&(t&&e===0?(s=i.getIndexWithinParent(),i=r):t||e!==i.getChildrenSize()||(s=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?s-1:s)}function d0(n,t){const e=n.offset;if(n.type==="element")return v1(n.getNode(),t,e);{const r=n.getNode();if(t&&e===0||!t&&e===r.getTextContentSize()){const s=t?r.getPreviousSibling():r.getNextSibling();return s===null?v1(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):s}}return null}function S2(n){const t=is(n).event,e=t&&t.inputType;return e==="insertFromPaste"||e==="insertFromPasteAsQuotation"}function Pe(n,t,e){return(function(r,s,i){const o=Gy(r);for(let l=4;l>=0;l--)for(let a=0;a<o.length;a++){const u=o[a],d=u._commands.get(s);if(d!==void 0){const h=d[l];if(h!==void 0){const g=Array.from(h),m=g.length;let A=!1;if(Tr(u,()=>{for(let y=0;y<m;y++)if(g[y](i,r))return void(A=!0)}),A)return A}}}return!1})(n,t,e)}function xg(n){return!Vt(n)&&!n.isLastChild()&&!n.isInline()}function kl(n,t){const e=n._keyToDOMMap.get(t);return e===void 0&&Ce(75,t),e}function id(n){const t=n.assignedSlot||n.parentElement;return p0(t)?t.host:t}function E2(n){return g2(n)?n:Nt(n)?n.ownerDocument:null}function k2(n){In(),tn()._updateTags.add(n)}function uB(n){In(),tn()._deferred.push(n)}function f0(n,t){let e=n.getParent();for(;e!==null;){if(e.is(t))return!0;e=e.getParent()}return!1}function Qy(n){const t=E2(n);return t?t.defaultView:null}function is(n){const t=n._window;return t===null&&Ce(78),t}function dB(n){return X(n)&&n.isInline()||ft(n)&&n.isInline()}function fB(n){let t=n.getParentOrThrow();for(;t!==null;){if($n(t))return t;t=t.getParentOrThrow()}return t}function $n(n){return Vt(n)||X(n)&&n.isShadowRoot()}function h0(n){const t=n.constructor.clone(n);return m2(t,null),t.afterCloneFrom(n),t}function Bt(n){const t=tn(),e=n.getType(),r=bg(t,e);r===void 0&&Ce(200,n.constructor.name,e);const{replace:s,replaceWithKlass:i}=r;if(s!==null){const o=s(n),l=o.constructor;return i!==null?o instanceof i||Ce(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,e):o instanceof n.constructor&&l!==n.constructor||Ce(202,l.name,l.getType(),n.constructor.name,e),o.__key===n.__key&&Ce(203,n.constructor.name,e,l.name,l.getType()),o}return n}function Ym(n,t){!Vt(n.getParent())||X(t)||ft(t)||Ce(99)}function Ta(n){const t=Te(n);return t===null&&Ce(63,n),t}function Gm(n){return(ft(n)||X(n)&&!n.canBeEmpty())&&!n.isInline()}function g0(n,t,e){e.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function os(n){return Ts?(n||window).getSelection():null}function hB(n){const t=Qy(n);return t?t.getSelection():null}function Xy(n){return Nt(n)&&n.tagName==="A"}function Nt(n){return Zl(n)&&n.nodeType===1}function Zl(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function p0(n){return Zl(n)&&n.nodeType===11}function m0(n){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(t)!==null}function Ch(n){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(t)!==null}function Zr(n){if(ft(n)&&!n.isInline())return!0;if(!X(n)||$n(n))return!1;const t=n.getFirstChild(),e=t===null||jt(t)||fe(t)||t.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&e}function Jl(){return tn()}const S1=new WeakMap,gB=new Map;function E1(n){if(!n._readOnly&&n.isEmpty())return gB;n._readOnly||Ce(192);let t=S1.get(n);return t||(t=(function(e){const r=new Map;for(const[s,i]of e._nodeMap){const o=i.__type;let l=r.get(o);l||(l=new Map,r.set(o,l)),l.set(s,i)}return r})(n),S1.set(n,t)),t}function qy(n){const t=n.constructor.clone(n);return t.afterCloneFrom(n),t}function pB(n){return(t=qy(n))[qT]=!0,t;var t}function $y(n,t){const e=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(e/40);t.setIndent(r)}function T2(n){n.__lexicalUnmanaged=!0}function mB(n){return n.__lexicalUnmanaged===!0}function Zc(n,t){return(function(e,r){return Object.prototype.hasOwnProperty.call(e,r)})(n,t)&&n[t]!==ys[t]}function vg(n){const t=Pv in n.prototype?n.prototype[Pv]():void 0,e=(function(o){if(!(o===ys||o.prototype instanceof ys)){let l="<unknown>",a="<unknown>";try{l=o.getType()}catch{}try{El.version&&(a=JSON.parse(El.version))}catch{}Ce(290,o.name,l,a)}return o===_s||o===xt||o===ys})(n),r=!e&&Zc(n,"getType")?n.getType():void 0;let s,i=r;if(t)if(r)s=t[r];else for(const[o,l]of Object.entries(t))i=o,s=l;if(!e&&i&&(Zc(n,"getType")||(n.getType=()=>i),Zc(n,"clone")||(n.clone=o=>(Wy(o),new n)),Zc(n,"importJSON")||(n.importJSON=s&&s.$importJSON||(o=>new n().updateFromJSON(o))),!Zc(n,"importDOM")&&s)){const{importDOM:o}=s;o&&(n.importDOM=()=>o)}return{ownNodeConfig:s,ownNodeType:i}}function _2(n){const t=Jl();return In(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(n))).klass}const Le=(n,t)=>{let e=n;for(;e!=null&&!Vt(e);){if(t(e))return e;e=e.getParent()}return null},AB={next:"previous",previous:"next"};class eb{constructor(t){U(this,"origin");this.origin=t}[Symbol.iterator](){return sb({hasNext:Nl,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return sn(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return sn(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,e)),this}splice(t,e,r="next"){const s=r===this.direction?e:Array.from(e).reverse();let i=this;const o=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<t;a=a.getAdjacentCaret()){const u=a.origin.getWritable();l.set(u.getKey(),u)}for(const a of s){if(l.size>0){const u=i.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(a.getKey()),!(u.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(o)&&a.remove(),u.replace(a)}}else u===null&&Ce(263,Array.from(l).join(" "))}else i.insert(a);i=sn(a,this.direction)}for(const a of l.values())a.remove();return this}}class Tu extends eb{constructor(){super(...arguments);U(this,"type","child")}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ls(e,this.direction)}getParentCaret(e="root"){return sn(tb(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Vl(this.direction);return sn(this.getNodeAtCaret(),e)||ls(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Tu&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const yB={root:Vt,shadowRoot:$n};function Vl(n){return AB[n]}function tb(n,t="root"){return yB[t](n)?null:n}class Tl extends eb{constructor(){super(...arguments);U(this,"type","sibling")}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:sn(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return X(this.origin)?ls(this.origin,this.direction):null}getParentCaret(e="root"){return sn(tb(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Vl(this.direction);return sn(this.getNodeAtCaret(),e)||ls(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Tl&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Tl||e instanceof _l)&&this.direction===e.direction&&this.origin.is(e.origin)}}class _l extends eb{constructor(e,r){super(e);U(this,"type","text");U(this,"offset");this.offset=r}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ko(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return sn(tb(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ko(this.origin,Vl(this.direction),this.offset)}isSamePointCaret(e){return e instanceof _l&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Tl||e instanceof _l)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return sn(this.origin,this.direction)}}function Gs(n){return n instanceof _l}function Nl(n){return n instanceof Tl}function ns(n){return n instanceof Tu}const bB={next:class extends _l{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends _l{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},wB={next:class extends Tl{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Tl{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},CB={next:class extends Tu{constructor(){super(...arguments);U(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Tu{constructor(){super(...arguments);U(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function sn(n,t){return n?new wB[t](n):null}function ko(n,t,e){return n?new bB[t](n,Zs(n,e)):null}function Zs(n,t,e="error"){const r=n.getTextContentSize();let s=t==="next"?r:t==="previous"?0:t;return(s<0||s>r)&&(e!=="clamp"&&vT(284,String(t),String(r),n.getKey()),s=s<0?0:r),s}function k1(n,t){return new xB(n,t)}function ls(n,t){return X(n)?new CB[t](n):null}function N2(n){return n&&n.getChildCaret()||n}function qa(n){return n&&N2(n.getAdjacentCaret())}class nb{constructor(t,e,r){U(this,"type","node-caret-range");U(this,"direction");U(this,"anchor");U(this,"focus");this.anchor=t,this.focus=e,this.direction=r}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new nb(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=s=>{const i=this[s].getLatest();return Gs(i)?(function(o,l){const{direction:a,origin:u}=o,d=Zs(u,l==="focus"?Vl(a):a);return k1(o,d-o.offset)})(i,s):null},e=t("anchor"),r=t("focus");if(e&&r){const{caret:s}=e,{caret:i}=r;if(s.isSameNodeCaret(i))return[k1(s,i.offset-s.offset),null]}return[e,r]}iterNodeCarets(t="root"){const e=Gs(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),s=Gs(r),i=o=>o.isSameNodeCaret(r)?null:qa(o)||o.getParentCaret(t);return sb({hasNext:o=>o!==null&&!(s&&r.isSameNodeCaret(o)),initial:e.isSameNodeCaret(r)?null:i(e),map:o=>o,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class xB{constructor(t,e){U(this,"type","slice");U(this,"caret");U(this,"distance");this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,r=e+t;return r<e?[r,e]:[e,r]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[r,s]=this.getSliceIndices(),i=t.getTextContent();return ko(t.setTextContent(i.slice(0,r)+i.slice(s)),e,r)}}function rb(n){return Fi(n,sn(Ue(),n.direction))}function M2(n){return Fi(n,n)}function Fi(n,t){return n.direction!==t.direction&&Ce(265),new nb(n,t,n.direction)}function sb(n){const{initial:t,hasNext:e,step:r,map:s}=n;let i=t;return{[Symbol.iterator](){return this},next(){if(!e(i))return{done:!0,value:void 0};const o={done:!1,value:s(i)};return i=r(i),o}}}function I2(n,t){const e=qf(n.origin,t.origin);switch(e===null&&Ce(275,n.origin.getKey(),t.origin.getKey()),e.type){case"same":{const r=n.type==="text",s=t.type==="text";return r&&s?(function(i,o){return Math.sign(i-o)})(n.offset,t.offset):n.type===t.type?0:r?-1:s?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return L2(e)}}function L2(n){const{a:t,b:e}=n,r=t.__key,s=e.__key;let i=t,o=e;for(;i&&o;i=i.getNextSibling(),o=o.getNextSibling()){if(i.__key===s)return-1;if(o.__key===r)return 1}return i===null?1:-1}function Cf(n,t){return t.is(n)}function T1(n){return X(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function qf(n,t){if(n.is(t))return{commonAncestor:n,type:"same"};const e=new Map;for(let[r,s]=T1(n);r;s=r,r=r.getParent())e.set(r,s);for(let[r,s]=T1(t);r;s=r,r=r.getParent()){const i=e.get(r);if(i!==void 0)return i===null?(Cf(n,r)||Ce(276),{commonAncestor:r,type:"ancestor"}):s===null?(Cf(t,r)||Ce(277),{commonAncestor:r,type:"descendant"}):((X(i)||Cf(n,i))&&(X(s)||Cf(t,s))&&r.is(i.getParent())&&r.is(s.getParent())||Ce(278),{a:i,b:s,commonAncestor:r,type:"branch"})}return null}function qs(n,t){const{type:e,key:r,offset:s}=n,i=Ta(n.key);return e==="text"?(fe(i)||Ce(266,i.getType(),r),ko(i,t,s)):(X(i)||Ce(267,i.getType(),r),SB(i,n.offset,t))}function _u(n,t){const{origin:e,direction:r}=t,s=r==="next";Gs(t)?n.set(e.getKey(),t.offset,"text"):Nl(t)?fe(e)?n.set(e.getKey(),Zs(e,r),"text"):n.set(e.getParentOrThrow().getKey(),e.getIndexWithinParent()+(s?1:0),"element"):(ns(t)&&X(e)||Ce(268),n.set(e.getKey(),s?0:e.getChildrenSize(),"element"))}function ib(n){const t=Q(),e=J(t)?t:Zi();return $f(e,n),rt(e),e}function $f(n,t){_u(n.anchor,t.anchor),_u(n.focus,t.focus)}function A0(n){const{anchor:t,focus:e}=n,r=qs(t,"next"),s=qs(e,"next"),i=I2(r,s)<=0?"next":"previous";return Fi(zi(r,i),zi(s,i))}function od(n){const{direction:t,origin:e}=n,r=sn(e,Vl(t)).getNodeAtCaret();return r?sn(r,t):ls(e.getParentOrThrow(),t)}function _1(n,t="root"){const e=[n];for(let r=ns(n)?n.getParentCaret(t):n.getSiblingCaret();r!==null;r=r.getParentCaret(t))e.push(od(r));return e}function Zm(n){return!!n&&n.origin.isAttached()}function vB(n,t="removeEmptySlices"){if(n.isCollapsed())return n;const e="root",r="next";let s=t;const i=ob(n,r),o=_1(i.anchor,e),l=_1(i.focus.getFlipped(),e),a=new Set,u=[];for(const A of i.iterNodeCarets(e))if(ns(A))a.add(A.origin.getKey());else if(Nl(A)){const{origin:y}=A;X(y)&&!a.has(y.getKey())||u.push(y)}for(const A of u)A.remove();for(const A of i.getTextSlices()){if(!A)continue;const{origin:y}=A.caret,b=y.getTextContentSize(),v=od(sn(y,r)),C=y.getMode();if(Math.abs(A.distance)===b&&s==="removeEmptySlices"||C==="token"&&A.distance!==0)v.remove();else if(A.distance!==0){s="removeEmptySlices";let S=A.removeTextSlice();const k=A.caret.origin;if(C==="segmented"){const _=S.origin,T=Ct(_.getTextContent()).setStyle(_.getStyle()).setFormat(_.getFormat());v.replaceOrInsert(T),S=ko(T,r,S.offset)}k.is(o[0].origin)&&(o[0]=S),k.is(l[0].origin)&&(l[0]=S.getFlipped())}}let d,h;for(const A of o)if(Zm(A)){d=$r(A);break}for(const A of l)if(Zm(A)){h=$r(A);break}const g=(function(A,y,b){if(!A||!y)return null;const v=A.getParentAtCaret(),C=y.getParentAtCaret();if(!v||!C)return null;const S=v.getParents().reverse();S.push(v);const k=C.getParents().reverse();k.push(C);const _=Math.min(S.length,k.length);let T;for(T=0;T<_&&S[T]===k[T];T++);const N=(D,j)=>{let B;for(let R=T;R<D.length;R++){const z=D[R];if($n(z))return;!B&&j(z)&&(B=z)}return B},M=N(S,Zr),I=M&&N(k,D=>b.has(D.getKey())&&Zr(D));return M&&I?[M,I]:null})(d,h,a);if(g){const[A,y]=g;ls(A,"previous").splice(0,y.getChildren()),y.remove()}const m=[d,h,...o,...l].find(Zm);if(m)return M2(zi($r(m),n.direction));Ce(269,JSON.stringify(o.map(A=>A.origin.__key)))}function $r(n){const t=(function(s){let i=s;for(;ns(i);){const o=qa(i);if(!ns(o))break;i=o}return i})(n.getLatest()),{direction:e}=t;if(fe(t.origin))return Gs(t)?t:ko(t.origin,e,e);const r=t.getAdjacentCaret();return Nl(r)&&fe(r.origin)?ko(r.origin,e,Vl(e)):t}function D2(n){return Gs(n)&&n.offset!==Zs(n.origin,n.direction)}function zi(n,t){return n.direction===t?n:n.getFlipped()}function ob(n,t){return n.direction===t?n:Fi(zi(n.focus,t),zi(n.anchor,t))}function SB(n,t,e){let r=ls(n,"next");for(let s=0;s<t;s++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return zi(r,e)}function EB(n,t="root"){let e=0,r=n,s=qa(r);for(;s===null;){if(e--,s=r.getParentCaret(t),!s)return null;r=s,s=qa(r)}return s&&[s,e]}function kB(n){const{origin:t,offset:e,direction:r}=n;if(e===Zs(t,r))return n.getSiblingCaret();if(e===Zs(t,Vl(r)))return od(n.getSiblingCaret());const[s]=t.splitText(e);return fe(s)||Ce(281),zi(sn(s,"next"),r)}function TB(n,t){return!0}function _B(n,{$copyElementNode:t=h0,$splitTextPointCaretNext:e=kB,rootMode:r="shadowRoot",$shouldSplit:s=TB}={}){if(Gs(n))return e(n);const i=n.getParentCaret(r);if(i){const{origin:o}=i;if(ns(n)&&(!o.canBeEmpty()||!s(o,"first")))return od(i);const l=(function(a){const u=[];for(let d=a.getAdjacentCaret();d;d=d.getAdjacentCaret())u.push(d.origin);return u})(n);(l.length>0||o.canBeEmpty()&&s(o,"last"))&&i.insert(t(o).splice(0,0,l))}return i}function NB(...n){return n}function MB(n,t){if(!t||n===t)return n;for(const e in t)if(n[e]!==t[e])return{...n,...t};return n}function O2(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const xh=new Map;function N1(n){let t=n;for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function M1(n){const t=n.parentNode;if(t==null)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(n)]}function R2(n,t,e,r,s){const i=t.getKey(),o=r.getKey(),l=document.createRange();let a=n.getElementByKey(i),u=n.getElementByKey(o),d=e,h=s;if(fe(t)&&(a=N1(a)),fe(r)&&(u=N1(u)),t===void 0||r===void 0||a===null||u===null)return null;a.nodeName==="BR"&&([a,d]=M1(a)),u.nodeName==="BR"&&([u,h]=M1(u));const g=a.firstChild;a===u&&g!=null&&g.nodeName==="BR"&&d===0&&h===0&&(h=1);try{l.setStart(a,d),l.setEnd(u,h)}catch{return null}return!l.collapsed||d===h&&i===o||(l.setStart(u,h),l.setEnd(a,d)),l}function j2(n,t){const e=n.getRootElement();if(e===null)return[];const r=e.getBoundingClientRect(),s=getComputedStyle(e),i=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),o=Array.from(t.getClientRects());let l,a=o.length;o.sort((u,d)=>{const h=u.top-d.top;return Math.abs(h)<=3?u.left-d.left:h});for(let u=0;u<a;u++){const d=o[u],h=l&&l.top<=d.top&&l.top+l.height>d.top&&l.left+l.width>d.left,g=d.width+i===r.width;h||g?(o.splice(u--,1),a--):l=d}return o}function P2(n){const t={};if(!n)return t;const e=n.split(";");for(const r of e)if(r!==""){const[s,i]=r.split(/:([^]+)/);s&&i&&(t[s.trim()]=i.trim())}return t}function Nu(n){let t=xh.get(n);return t===void 0&&(t=P2(n),xh.set(n,t)),t}function IB(n){let t="";for(const e in n)e&&(t+=`${e}: ${n[e]};`);return t}function B2(n){const t=Jl().getElementByKey(n.getKey());if(t===null)return null;const e=t.ownerDocument.defaultView;return e===null?null:e.getComputedStyle(t)}function F2(n){return B2(Vt(n)?n:n.getParentOrThrow())}function I1(n){const t=F2(n);return t!==null&&t.direction==="rtl"}function z2(n,t,e="self"){const r=n.getStartEndPoints();if(t.isSelected(n)&&!js(t)&&r!==null){const[s,i]=r,o=n.isBackward(),l=s.getNode(),a=i.getNode(),u=t.is(l),d=t.is(a);if(u||d){const[h,g]=a0(n),m=l.is(a),A=t.is(o?a:l),y=t.is(o?l:a);let b,v=0;m?(v=h>g?g:h,b=h>g?h:g):A?(v=o?g:h,b=void 0):y&&(v=0,b=o?h:g);const C=t.__text.slice(v,b);C!==t.__text&&(e==="clone"&&(t=pB(t)),t.__text=C)}}return t}function L1(n){if(n.type==="text")return n.offset===n.getNode().getTextContentSize();const t=n.getNode();return X(t)||O2(177),n.offset===t.getChildrenSize()}function LB(n,t,e){let r=t.getNode(),s=e;if(X(r)){const i=r.getDescendantByIndex(t.offset);i!==null&&(r=i)}for(;s>0&&r!==null;){if(X(r)){const u=r.getLastDescendant();u!==null&&(r=u)}let i=r.getPreviousSibling(),o=0;if(i===null){let u=r.getParentOrThrow(),d=u.getPreviousSibling();for(;d===null;){if(u=u.getParent(),u===null){i=null;break}d=u.getPreviousSibling()}u!==null&&(o=u.isInline()?0:2,i=d)}let l=r.getTextContent();l===""&&X(r)&&!r.isInline()&&(l=`
|
|
12
|
-
|
|
13
|
-
`);const a=l.length;if(!fe(r)||s>=a){const u=r.getParent();r.remove(),u==null||u.getChildrenSize()!==0||Vt(u)||u.remove(),s-=a+o,r=i}else{const u=r.getKey(),d=n.getEditorState().read(()=>{const m=Te(u);return fe(m)&&m.isSimpleText()?m.getTextContent():null}),h=a-s,g=l.slice(0,h);if(d!==null&&d!==l){const m=Ji();let A=r;if(r.isSimpleText())r.setTextContent(d);else{const y=Ct(d);r.replace(y),A=y}if(J(m)&&m.isCollapsed()){const y=m.anchor.offset;A.select(y,y)}}else if(r.isSimpleText()){const m=t.key===u;let A=t.offset;A<s&&(A=a);const y=m?A-s:0,b=m?A:h;if(m&&y===0){const[v]=r.splitText(y,b);v.remove()}else{const[,v]=r.splitText(y,b);v.remove()}}else{const m=Ct(g);r.replace(m)}s=0}}}function DB(n){const t=n.getStyle(),e=P2(t);xh.set(t,e)}function Jm(n,t){(J(n)?n.isCollapsed():fe(n)||X(n))||O2(280);const e=Nu(J(n)?n.style:fe(n)?n.getStyle():n.getTextStyle()),r=Object.entries(t).reduce((i,[o,l])=>(typeof l=="function"?i[o]=l(e[o],n):l===null?delete i[o]:i[o]=l,i),{...e}),s=IB(r);J(n)||fe(n)?n.setStyle(s):n.setTextStyle(s),xh.set(s,r)}function vh(n,t){if(J(n)&&n.isCollapsed()){Jm(n,t);const e=n.anchor.getNode();X(e)&&e.isEmpty()&&Jm(e,t)}OB(e=>{Jm(e,t)})}function OB(n){const t=Q();if(!t)return;const e=new Map,r=i=>e.get(i.getKey())||[0,i.getTextContentSize()];if(J(t))for(const i of A0(t).getTextSlices())i&&e.set(i.caret.origin.getKey(),i.getSliceIndices());const s=t.getNodes();for(const i of s){if(!fe(i)||!i.canHaveFormat())continue;const[o,l]=r(i);l!==o&&(js(i)||o===0&&l===i.getTextContentSize()?n(i):n(i.splitText(o,l)[o===0?0:1]))}J(t)&&t.anchor.type==="text"&&t.focus.type==="text"&&t.anchor.key===t.focus.key&&RB(t)}function RB(n){if(n.isBackward()){const{anchor:t,focus:e}=n,{key:r,offset:s,type:i}=t;t.set(e.key,e.offset,e.type),e.set(r,s,i)}}function jB(n,t){const e=n.getFormatType(),r=n.getIndent();e!==t.getFormatType()&&t.setFormat(e),r!==t.getIndent()&&t.setIndent(r)}function Ac(n,t,e=jB){if(n===null)return;const r=n.getStartEndPoints(),s=new Map;let i=null;if(r){const[o,l]=r;i=Zi(),i.anchor.set(o.key,o.offset,o.type),i.focus.set(l.key,l.offset,l.type);const a=Le(o.getNode(),Zr),u=Le(l.getNode(),Zr);X(a)&&s.set(a.getKey(),a),X(u)&&s.set(u.getKey(),u)}for(const o of n.getNodes())if(X(o)&&Zr(o))s.set(o.getKey(),o);else if(r===null){const l=Le(o,Zr);X(l)&&s.set(l.getKey(),l)}for(const[o,l]of s){const a=t();e(l,a),l.replace(a,!0),i&&(o===i.anchor.key&&i.anchor.set(a.getKey(),i.anchor.offset,i.anchor.type),o===i.focus.key&&i.focus.set(a.getKey(),i.focus.offset,i.focus.type))}i&&n.is(Q())&&rt(i)}function U2(n){const t=K2(n);return t!==null&&t.writingMode==="vertical-rl"}function K2(n){const t=n.anchor.getNode();return X(t)?B2(t):F2(t)}function D1(n,t){let e=U2(n)?!t:t;W2(n)&&(e=!e);const r=qs(n.focus,e?"previous":"next");if(D2(r))return!1;for(const s of rb(r)){if(ns(s))return!s.origin.isInline();if(!X(s.origin)){if(ft(s.origin))return!0;break}}return!1}function PB(n,t,e,r){n.modify(t?"extend":"move",e,r)}function W2(n){const t=K2(n);return t!==null&&t.direction==="rtl"}function O1(n,t,e){const r=W2(n);let s;s=U2(n)||r?!e:e,PB(n,t,s,"character")}function BB(n,t,e){const r=Nu(n.getStyle());return r!==null&&r[t]||e}function Sh(n,t,e=""){let r=null;const s=n.getNodes(),i=n.anchor,o=n.focus,l=n.isBackward(),a=l?o.offset:i.offset,u=l?o.getNode():i.getNode();if(J(n)&&n.isCollapsed()&&n.style!==""){const d=Nu(n.style);if(d!==null&&t in d)return d[t]}for(let d=0;d<s.length;d++){const h=s[d];if((d===0||a!==0||!h.is(u))&&fe(h)){const g=BB(h,t,e);if(r===null)r=g;else if(r!==g){r="";break}}}return r===null?e:r}const FB=LB;function H2(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const ld=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,zB=ld&&"documentMode"in document?document.documentMode:null,UB=ld&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),KB=ld&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);!(!ld||!("InputEvent"in window)||zB)&&"getTargetRanges"in new window.InputEvent("input");function Y2(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}function ct(...n){return()=>{for(let t=n.length-1;t>=0;t--)n[t]();n.length=0}}const WB=ld,R1=UB,HB=KB;function pt(n,...t){const e=Y2(...t);e.length>0&&n.classList.add(...e)}function _r(n,...t){const e=Y2(...t);e.length>0&&n.classList.remove(...e)}function YB(n){return n?n.getAdjacentCaret():null}function j1(n){const t=N2(sn(n,"previous")),e=EB(t,"root");return e&&e[0].origin}function lb(n,t){let e=n;for(;e!=null;){if(e instanceof t)return e;e=e.getParent()}return null}function yc(n){const t=Le(n,e=>X(e)&&!e.isInline());return X(t)||H2(4,n.__key),t}function GB(n,t,e,r){const s=i=>i instanceof t;return n.registerNodeTransform(t,i=>{const o=(l=>{const a=l.getChildren();for(let h=0;h<a.length;h++){const g=a[h];if(s(g))return null}let u=l,d=l;for(;u!==null;)if(d=u,u=u.getParent(),s(u))return{child:d,parent:u};return null})(i);if(o!==null){const{child:l,parent:a}=o;if(l.is(i)){r(a,i);const u=l.getNextSiblings(),d=u.length;if(a.insertAfter(l),d!==0){const h=e(a);l.insertAfter(h);for(let g=0;g<d;g++)h.append(u[g])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})}function ZB(n,t){const e=new Map,r=n._pendingEditorState;for(const[i,o]of t._nodeMap)e.set(i,qy(o));r&&(r._nodeMap=e),n._dirtyType=2;const s=t._selection;rt(s===null?null:s.clone())}function G2(n){const t=Q()||Ji();let e;if(J(t))e=qs(t.focus,"next");else{if(t!=null){const o=t.getNodes(),l=o[o.length-1];l&&(e=sn(l,"next"))}e=e||ls(Ue(),"previous").getFlipped().insert(Me())}const r=JB(n,e),s=qa(r),i=ns(s)?$r(s):r;return ib(M2(i)),n.getLatest()}function JB(n,t,e){let r=zi(t,"next");for(let s=r;s;s=_B(s,e))r=s;return Gs(r)&&H2(283),r.insert(n.isInline()?Me().append(n):n),zi(sn(n.getLatest(),"next"),t.direction)}function Ni(n,t){return n!==null&&Object.getPrototypeOf(n).constructor.name===t.name}function VB(n,t){ls(n,"next").insert(t)}let Vm=!(HB||!WB)&&void 0;function QB(n){let t=1;if((function(){if(Vm===void 0){const e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);const r=e.getBoundingClientRect();e.style.setProperty("zoom","2"),Vm=e.getBoundingClientRect().width===r.width,document.body.removeChild(e)}return Vm})())for(;n;)t*=Number(window.getComputedStyle(n).getPropertyValue("zoom")),n=n.parentElement;return t}function Z2(n,t){const e=[],r=Array.from(n).reverse();for(let s=r.pop();s!==void 0;s=r.pop())if(t(s))e.push(s);else if(X(s))for(const i of XB(s))r.push(i);return e}function XB(n){return qB(ls(n,"previous"))}function qB(n){return sb({hasNext:Nl,initial:n.getAdjacentCaret(),map:t=>t.origin.getLatest(),step:t=>t.getAdjacentCaret()})}function Sg(n,t){const e=g2(t)?t.body.childNodes:t.childNodes;let r=[];const s=[];for(const i of e)if(!V2.has(i.nodeName)){const o=Q2(i,n,s,!1);o!==null&&(r=r.concat(o))}return(function(i){for(const o of i)o.getNextSibling()instanceof Ky&&o.insertAfter(cr());for(const o of i){const l=o.getChildren();for(const a of l)o.insertBefore(a);o.remove()}})(s),r}function Eh(n,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const e=document.createElement("div"),r=Ue().getChildren();for(let s=0;s<r.length;s++)J2(n,r[s],e,t);return e.innerHTML}function J2(n,t,e,r=null){let s=r===null||t.isSelected(r);const i=X(t)&&t.excludeFromCopy("html");let o=t;r!==null&&fe(t)&&(o=z2(r,t,"clone"));const l=X(o)?o.getChildren():[],a=bg(n,o.getType());let u;u=a&&a.exportDOM!==void 0?a.exportDOM(n,o):o.exportDOM(n);const{element:d,after:h}=u;if(!d)return!1;const g=document.createDocumentFragment();for(let m=0;m<l.length;m++){const A=l[m],y=J2(n,A,g,r);!s&&X(t)&&y&&t.extractWithChild(A,r,"html")&&(s=!0)}if(s&&!i){if((Nt(d)||p0(d))&&d.append(g),e.append(d),h){const m=h.call(o,d);m&&(p0(d)?d.replaceChildren(m):d.replaceWith(m))}}else e.append(g);return s}const V2=new Set(["STYLE","SCRIPT"]);function Q2(n,t,e,r,s=new Map,i){let o=[];if(V2.has(n.nodeName))return o;let l=null;const a=(function(A,y){const{nodeName:b}=A,v=y._htmlConversions.get(b.toLowerCase());let C=null;if(v!==void 0)for(const S of v){const k=S(A);k!==null&&(C===null||(C.priority||0)<=(k.priority||0))&&(C=k)}return C!==null?C.conversion:null})(n,t),u=a?a(n):null;let d=null;if(u!==null){d=u.after;const A=u.node;if(l=Array.isArray(A)?A[A.length-1]:A,l!==null){for(const[,y]of s)if(l=y(l,i),!l)break;l&&o.push(...Array.isArray(A)?A:[l])}u.forChild!=null&&s.set(n.nodeName,u.forChild)}const h=n.childNodes;let g=[];const m=(l==null||!$n(l))&&(l!=null&&c0(l)||r);for(let A=0;A<h.length;A++)g.push(...Q2(h[A],t,e,m,new Map(s),l));return d!=null&&(g=d(g)),Ch(n)&&(g=$B(n,g,m?()=>{const A=new Ky;return e.push(A),A}:Me)),l==null?g.length>0?o=o.concat(g):Ch(n)&&(function(A){return A.nextSibling==null||A.previousSibling==null?!1:m0(A.nextSibling)&&m0(A.previousSibling)})(n)&&(o=o.concat(cr())):X(l)&&l.append(...g),o}function $B(n,t,e){const r=n.style.textAlign,s=[];let i=[];for(let o=0;o<t.length;o++){const l=t[o];if(c0(l))r&&!l.getFormat()&&l.setFormat(r),s.push(l);else if(i.push(l),o===t.length-1||o<t.length-1&&c0(t[o+1])){const a=e();a.setFormat(r),a.append(...i),s.push(a),i=[]}}return s}const P1=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],B1=P1[Math.floor(Math.random()*P1.length)],ab=x.createContext(null);function X2(){return{color:B1[1],isCollabActive:!1,name:B1[0],yjsDocMap:new Map}}const e5=X2();function t5({children:n}){const t=x.useMemo(()=>X2(),[]);return p.jsx(ab.Provider,{value:t,children:n})}function n5(n,t){let e=x.useContext(ab);return e==null&&(function(r,...s){const i=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",r);for(const l of s)o.append("v",l);i.search=o.toString(),console.warn(`Minified Lexical warning #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(319),e=e??e5,n!=null&&(e.name=n),t!=null&&(e.color=t),e}const cb=x.createContext(null);function q2(n,t){let e=null;return n!=null&&(e=n[1]),{getTheme:function(){return t??(e!=null?e.getTheme():null)}}}function je(){const n=x.useContext(cb);return n==null&&(function(t,...e){const r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const i of e)s.append("v",i);throw r.search=s.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),n}const br=()=>new Map,y0=n=>{const t=br();return n.forEach((e,r)=>{t.set(r,e)}),t},si=(n,t,e)=>{let r=n.get(t);return r===void 0&&n.set(t,r=e()),r},r5=(n,t)=>{const e=[];for(const[r,s]of n)e.push(t(s,r));return e},s5=(n,t)=>{for(const[e,r]of n)if(t(r,e))return!0;return!1},To=()=>new Set,Qm=n=>n[n.length-1],i5=(n,t)=>{for(let e=0;e<t.length;e++)n.push(t[e])},Ui=Array.from,ub=(n,t)=>{for(let e=0;e<n.length;e++)if(!t(n[e],e,n))return!1;return!0},db=(n,t)=>{for(let e=0;e<n.length;e++)if(t(n[e],e,n))return!0;return!1},o5=(n,t)=>{const e=new Array(n);for(let r=0;r<n;r++)e[r]=t(r,e);return e},$a=Array.isArray;class $2{constructor(){this._observers=br()}on(t,e){return si(this._observers,t,To).add(e),e}once(t,e){const r=(...s)=>{this.off(t,r),e(...s)};this.on(t,r)}off(t,e){const r=this._observers.get(t);r!==void 0&&(r.delete(e),r.size===0&&this._observers.delete(t))}emit(t,e){return Ui((this._observers.get(t)||br()).values()).forEach(r=>r(...e))}destroy(){this._observers=br()}}class e_{constructor(){this._observers=br()}on(t,e){si(this._observers,t,To).add(e)}once(t,e){const r=(...s)=>{this.off(t,r),e(...s)};this.on(t,r)}off(t,e){const r=this._observers.get(t);r!==void 0&&(r.delete(e),r.size===0&&this._observers.delete(t))}emit(t,e){return Ui((this._observers.get(t)||br()).values()).forEach(r=>r(...e))}destroy(){this._observers=br()}}const Es=Math.floor,eh=Math.abs,fb=(n,t)=>n<t?n:t,Ql=(n,t)=>n>t?n:t,l5=Math.pow,t_=n=>n!==0?n<0:1/n<0,F1=1,z1=2,Xm=4,qm=8,Mu=32,Oi=64,Nr=128,Eg=31,b0=63,gl=127,a5=2147483647,kh=Number.MAX_SAFE_INTEGER,U1=Number.MIN_SAFE_INTEGER,c5=Number.isInteger||(n=>typeof n=="number"&&isFinite(n)&&Es(n)===n),n_=String.fromCharCode,u5=n=>n.toLowerCase(),d5=/^\s*/g,f5=n=>n.replace(d5,""),h5=/([A-Z])/g,K1=(n,t)=>f5(n.replace(h5,e=>`${t}${u5(e)}`)),g5=n=>{const t=unescape(encodeURIComponent(n)),e=t.length,r=new Uint8Array(e);for(let s=0;s<e;s++)r[s]=t.codePointAt(s);return r},Iu=typeof TextEncoder<"u"?new TextEncoder:null,p5=n=>Iu.encode(n),m5=Iu?p5:g5;let hu=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});hu&&hu.decode(new Uint8Array).length===1&&(hu=null);const A5=(n,t)=>o5(t,()=>n).join("");class ad{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Vn=()=>new ad,hb=n=>{let t=n.cpos;for(let e=0;e<n.bufs.length;e++)t+=n.bufs[e].length;return t},en=n=>{const t=new Uint8Array(hb(n));let e=0;for(let r=0;r<n.bufs.length;r++){const s=n.bufs[r];t.set(s,e),e+=s.length}return t.set(new Uint8Array(n.cbuf.buffer,0,n.cpos),e),t},y5=(n,t)=>{const e=n.cbuf.length;e-n.cpos<t&&(n.bufs.push(new Uint8Array(n.cbuf.buffer,0,n.cpos)),n.cbuf=new Uint8Array(Ql(e,t)*2),n.cpos=0)},Nn=(n,t)=>{const e=n.cbuf.length;n.cpos===e&&(n.bufs.push(n.cbuf),n.cbuf=new Uint8Array(e*2),n.cpos=0),n.cbuf[n.cpos++]=t},w0=Nn,Ge=(n,t)=>{for(;t>gl;)Nn(n,Nr|gl&t),t=Es(t/128);Nn(n,gl&t)},gb=(n,t)=>{const e=t_(t);for(e&&(t=-t),Nn(n,(t>b0?Nr:0)|(e?Oi:0)|b0&t),t=Es(t/64);t>0;)Nn(n,(t>gl?Nr:0)|gl&t),t=Es(t/128)},C0=new Uint8Array(3e4),b5=C0.length/3,w5=(n,t)=>{if(t.length<b5){const e=Iu.encodeInto(t,C0).written||0;Ge(n,e);for(let r=0;r<e;r++)Nn(n,C0[r])}else cn(n,m5(t))},C5=(n,t)=>{const e=unescape(encodeURIComponent(t)),r=e.length;Ge(n,r);for(let s=0;s<r;s++)Nn(n,e.codePointAt(s))},pl=Iu&&Iu.encodeInto?w5:C5,kg=(n,t)=>{const e=n.cbuf.length,r=n.cpos,s=fb(e-r,t.length),i=t.length-s;n.cbuf.set(t.subarray(0,s),r),n.cpos+=s,i>0&&(n.bufs.push(n.cbuf),n.cbuf=new Uint8Array(Ql(e*2,i)),n.cbuf.set(t.subarray(s)),n.cpos=i)},cn=(n,t)=>{Ge(n,t.byteLength),kg(n,t)},pb=(n,t)=>{y5(n,t);const e=new DataView(n.cbuf.buffer,n.cpos,t);return n.cpos+=t,e},x5=(n,t)=>pb(n,4).setFloat32(0,t,!1),v5=(n,t)=>pb(n,8).setFloat64(0,t,!1),S5=(n,t)=>pb(n,8).setBigInt64(0,t,!1),W1=new DataView(new ArrayBuffer(4)),E5=n=>(W1.setFloat32(0,n),W1.getFloat32(0)===n),Lu=(n,t)=>{switch(typeof t){case"string":Nn(n,119),pl(n,t);break;case"number":c5(t)&&eh(t)<=a5?(Nn(n,125),gb(n,t)):E5(t)?(Nn(n,124),x5(n,t)):(Nn(n,123),v5(n,t));break;case"bigint":Nn(n,122),S5(n,t);break;case"object":if(t===null)Nn(n,126);else if($a(t)){Nn(n,117),Ge(n,t.length);for(let e=0;e<t.length;e++)Lu(n,t[e])}else if(t instanceof Uint8Array)Nn(n,116),cn(n,t);else{Nn(n,118);const e=Object.keys(t);Ge(n,e.length);for(let r=0;r<e.length;r++){const s=e[r];pl(n,s),Lu(n,t[s])}}break;case"boolean":Nn(n,t?120:121);break;default:Nn(n,127)}};class H1 extends ad{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&Ge(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const Y1=n=>{n.count>0&&(gb(n.encoder,n.count===1?n.s:-n.s),n.count>1&&Ge(n.encoder,n.count-2))};class th{constructor(){this.encoder=new ad,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Y1(this),this.count=1,this.s=t)}toUint8Array(){return Y1(this),en(this.encoder)}}const G1=n=>{if(n.count>0){const t=n.diff*2+(n.count===1?0:1);gb(n.encoder,t),n.count>1&&Ge(n.encoder,n.count-2)}};class $m{constructor(){this.encoder=new ad,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(G1(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return G1(this),en(this.encoder)}}class k5{constructor(){this.sarr=[],this.s="",this.lensE=new th}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new ad;return this.sarr.push(this.s),this.s="",pl(t,this.sarr.join("")),kg(t,this.lensE.toUint8Array()),en(t)}}const $s=n=>new Error(n),bs=()=>{throw $s("Method unimplemented")},Or=()=>{throw $s("Unexpected case")},r_=$s("Unexpected end of array"),s_=$s("Integer out of Range");class Tg{constructor(t){this.arr=t,this.pos=0}}const zo=n=>new Tg(n),T5=n=>n.pos!==n.arr.length,_5=(n,t)=>{const e=new Uint8Array(n.arr.buffer,n.pos+n.arr.byteOffset,t);return n.pos+=t,e},Jn=n=>_5(n,it(n)),ec=n=>n.arr[n.pos++],it=n=>{let t=0,e=1;const r=n.arr.length;for(;n.pos<r;){const s=n.arr[n.pos++];if(t=t+(s&gl)*e,e*=128,s<Nr)return t;if(t>kh)throw s_}throw r_},mb=n=>{let t=n.arr[n.pos++],e=t&b0,r=64;const s=(t&Oi)>0?-1:1;if((t&Nr)===0)return s*e;const i=n.arr.length;for(;n.pos<i;){if(t=n.arr[n.pos++],e=e+(t&gl)*r,r*=128,t<Nr)return s*e;if(e>kh)throw s_}throw r_},N5=n=>{let t=it(n);if(t===0)return"";{let e=String.fromCodePoint(ec(n));if(--t<100)for(;t--;)e+=String.fromCodePoint(ec(n));else for(;t>0;){const r=t<1e4?t:1e4,s=n.arr.subarray(n.pos,n.pos+r);n.pos+=r,e+=String.fromCodePoint.apply(null,s),t-=r}return decodeURIComponent(escape(e))}},M5=n=>hu.decode(Jn(n)),bo=hu?M5:N5,Ab=(n,t)=>{const e=new DataView(n.arr.buffer,n.arr.byteOffset+n.pos,t);return n.pos+=t,e},I5=n=>Ab(n,4).getFloat32(0,!1),L5=n=>Ab(n,8).getFloat64(0,!1),D5=n=>Ab(n,8).getBigInt64(0,!1),O5=[n=>{},n=>null,mb,I5,L5,D5,n=>!1,n=>!0,bo,n=>{const t=it(n),e={};for(let r=0;r<t;r++){const s=bo(n);e[s]=Du(n)}return e},n=>{const t=it(n),e=[];for(let r=0;r<t;r++)e.push(Du(n));return e},Jn],Du=n=>O5[127-ec(n)](n);class Z1 extends Tg{constructor(t,e){super(t),this.reader=e,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),T5(this)?this.count=it(this)+1:this.count=-1),this.count--,this.s}}class nh extends Tg{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=mb(this);const t=t_(this.s);this.count=1,t&&(this.s=-this.s,this.count=it(this)+2)}return this.count--,this.s}}class eA extends Tg{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const t=mb(this),e=t&1;this.diff=Es(t/2),this.count=1,e&&(this.count=it(this)+2)}return this.s+=this.diff,this.count--,this.s}}class R5{constructor(t){this.decoder=new nh(t),this.str=bo(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),e=this.str.slice(this.spos,t);return this.spos=t,e}}const j5=crypto.getRandomValues.bind(crypto),i_=()=>j5(new Uint32Array(1))[0],P5="10000000-1000-4000-8000"+-1e11,B5=()=>P5.replace(/[018]/g,n=>(n^i_()&15>>n/4).toString(16)),_o=Date.now,J1=n=>new Promise(n);Promise.all.bind(Promise);const V1=n=>n===void 0?null:n;class F5{constructor(){this.map=new Map}setItem(t,e){this.map.set(t,e)}getItem(t){return this.map.get(t)}}let o_=new F5,yb=!0;try{typeof localStorage<"u"&&localStorage&&(o_=localStorage,yb=!1)}catch{}const l_=o_,z5=n=>yb||addEventListener("storage",n),U5=n=>yb||removeEventListener("storage",n),Ou=Symbol("Equality"),a_=(n,t)=>{var e;return n===t||!!((e=n==null?void 0:n[Ou])!=null&&e.call(n,t))||!1},K5=n=>typeof n=="object",W5=Object.assign,H5=Object.keys,Y5=(n,t)=>{for(const e in n)t(n[e],e)},G5=(n,t)=>{const e=[];for(const r in n)e.push(t(n[r],r));return e},Th=n=>H5(n).length,Z5=n=>{for(const t in n)return!1;return!0},cd=(n,t)=>{for(const e in n)if(!t(n[e],e))return!1;return!0},bb=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),J5=(n,t)=>n===t||Th(n)===Th(t)&&cd(n,(e,r)=>(e!==void 0||bb(t,r))&&a_(t[r],e)),V5=Object.freeze,c_=n=>{for(const t in n){const e=n[t];(typeof e=="object"||typeof e=="function")&&c_(n[t])}return V5(n)},wb=(n,t,e=0)=>{try{for(;e<n.length;e++)n[e](...t)}finally{e<n.length&&wb(n,t,e+1)}},Q5=n=>n,za=(n,t)=>{if(n===t)return!0;if(n==null||t==null||n.constructor!==t.constructor&&(n.constructor||Object)!==(t.constructor||Object))return!1;if(n[Ou]!=null)return n[Ou](t);switch(n.constructor){case ArrayBuffer:n=new Uint8Array(n),t=new Uint8Array(t);case Uint8Array:{if(n.byteLength!==t.byteLength)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;break}case Set:{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;break}case Map:{if(n.size!==t.size)return!1;for(const e of n.keys())if(!t.has(e)||!za(n.get(e),t.get(e)))return!1;break}case void 0:case Object:if(Th(n)!==Th(t))return!1;for(const e in n)if(!bb(n,e)||!za(n[e],t[e]))return!1;break;case Array:if(n.length!==t.length)return!1;for(let e=0;e<n.length;e++)if(!za(n[e],t[e]))return!1;break;default:return!1}return!0},X5=(n,t)=>t.includes(n),No=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",u_=typeof window<"u"&&typeof document<"u"&&!No;let Ls;const q5=()=>{if(Ls===void 0)if(No){Ls=br();const n=process.argv;let t=null;for(let e=0;e<n.length;e++){const r=n[e];r[0]==="-"?(t!==null&&Ls.set(t,""),t=r):t!==null&&(Ls.set(t,r),t=null)}t!==null&&Ls.set(t,"")}else typeof location=="object"?(Ls=br(),(location.search||"?").slice(1).split("&").forEach(n=>{if(n.length!==0){const[t,e]=n.split("=");Ls.set(`--${K1(t,"-")}`,e),Ls.set(`-${K1(t,"-")}`,e)}})):Ls=br();return Ls},x0=n=>q5().has(n),_h=n=>V1(No?process.env[n.toUpperCase().replaceAll("-","_")]:l_.getItem(n)),d_=n=>x0("--"+n)||_h(n)!==null,$5=d_("production"),e8=No&&X5(process.env.FORCE_COLOR,["true","1","2"]),t8=e8||!x0("--no-colors")&&!d_("no-color")&&(!No||process.stdout.isTTY)&&(!No||x0("--color")||_h("COLORTERM")!==null||(_h("TERM")||"").includes("color")),f_=n=>new Uint8Array(n),n8=(n,t,e)=>new Uint8Array(n,t,e),r8=n=>new Uint8Array(n),s8=n=>{let t="";for(let e=0;e<n.byteLength;e++)t+=n_(n[e]);return btoa(t)},i8=n=>Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("base64"),o8=n=>{const t=atob(n),e=f_(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e},l8=n=>{const t=Buffer.from(n,"base64");return n8(t.buffer,t.byteOffset,t.byteLength)},a8=u_?s8:i8,c8=u_?o8:l8,u8=n=>{const t=f_(n.byteLength);return t.set(n),t};class d8{constructor(t,e){this.left=t,this.right=e}}const bi=(n,t)=>new d8(n,t),Q1=n=>n.next()>=.5,tA=(n,t,e)=>Es(n.next()*(e+1-t)+t),h_=(n,t,e)=>Es(n.next()*(e+1-t)+t),Cb=(n,t,e)=>h_(n,t,e),f8=n=>n_(Cb(n,97,122)),h8=(n,t=0,e=20)=>{const r=Cb(n,t,e);let s="";for(let i=0;i<r;i++)s+=f8(n);return s},nA=(n,t)=>t[Cb(n,0,t.length-1)],g8=Symbol("0schema");class p8{constructor(){this._rerrs=[]}extend(t,e,r,s=null){this._rerrs.push({path:t,expected:e,has:r,message:s})}toString(){const t=[];for(let e=this._rerrs.length-1;e>0;e--){const r=this._rerrs[e];t.push(A5(" ",(this._rerrs.length-e)*2)+`${r.path!=null?`[${r.path}] `:""}${r.has} doesn't match ${r.expected}. ${r.message}`)}return t.join(`
|
|
14
|
-
`)}}const v0=(n,t)=>n===t?!0:n==null||t==null||n.constructor!==t.constructor?!1:n[Ou]?a_(n,t):$a(n)?ub(n,e=>db(t,r=>v0(e,r))):K5(n)?cd(n,(e,r)=>v0(e,t[r])):!1;class tr{extends(t){let[e,r]=[this.shape,t.shape];return this.constructor._dilutes&&([r,e]=[e,r]),v0(e,r)}equals(t){return this.constructor===t.constructor&&za(this.shape,t.shape)}[g8](){return!0}[Ou](t){return this.equals(t)}validate(t){return this.check(t)}check(t,e){bs()}get nullable(){return bc(this,Lg)}get optional(){return new m_(this)}cast(t){return X1(t,this),t}expect(t){return X1(t,this),t}}U(tr,"_dilutes",!1);class xb extends tr{constructor(t,e){super(),this.shape=t,this._c=e}check(t,e=void 0){const r=(t==null?void 0:t.constructor)===this.shape&&(this._c==null||this._c(t));return!r&&(e==null||e.extend(null,this.shape.name,t==null?void 0:t.constructor.name,(t==null?void 0:t.constructor)!==this.shape?"Constructor match failed":"Check failed")),r}}const wn=(n,t=null)=>new xb(n,t);wn(xb);class vb extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=this.shape(t);return!r&&(e==null||e.extend(null,"custom prop",t==null?void 0:t.constructor.name,"failed to check custom prop")),r}}const Pn=n=>new vb(n);wn(vb);class _g extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=this.shape.some(s=>s===t);return!r&&(e==null||e.extend(null,this.shape.join(" | "),t.toString())),r}}const Ng=(...n)=>new _g(n),g_=wn(_g),m8=RegExp.escape||(n=>n.replace(/[().|&,$^[\]]/g,t=>"\\"+t)),p_=n=>{if(tc.check(n))return[m8(n)];if(g_.check(n))return n.shape.map(t=>t+"");if(E_.check(n))return["[+-]?\\d+.?\\d*"];if(k_.check(n))return[".*"];if(Mh.check(n))return n.shape.map(p_).flat(1);Or()};class A8 extends tr{constructor(t){super(),this.shape=t,this._r=new RegExp("^"+t.map(p_).map(e=>`(${e.join("|")})`).join("")+"$")}check(t,e){const r=this._r.exec(t)!=null;return!r&&(e==null||e.extend(null,this._r.toString(),t.toString(),"String doesn't match string template.")),r}}wn(A8);const y8=Symbol("optional");class m_ extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=t===void 0||this.shape.check(t);return!r&&(e==null||e.extend(null,"undefined (optional)","()")),r}get[y8](){return!0}}const b8=wn(m_);class w8 extends tr{check(t,e){return e==null||e.extend(null,"never",typeof t),!1}}wn(w8);const ag=class ag extends tr{constructor(t,e=!1){super(),this.shape=t,this._isPartial=e}get partial(){return new ag(this.shape,!0)}check(t,e){return t==null?(e==null||e.extend(null,"object","null"),!1):cd(this.shape,(r,s)=>{const i=this._isPartial&&!bb(t,s)||r.check(t[s],e);return!i&&(e==null||e.extend(s.toString(),r.toString(),typeof t[s],"Object property does not match")),i})}};U(ag,"_dilutes",!0);let Nh=ag;const C8=n=>new Nh(n),x8=wn(Nh),v8=Pn(n=>n!=null&&(n.constructor===Object||n.constructor==null));class A_ extends tr{constructor(t,e){super(),this.shape={keys:t,values:e}}check(t,e){return t!=null&&cd(t,(r,s)=>{const i=this.shape.keys.check(s,e);return!i&&(e==null||e.extend(s+"","Record",typeof t,i?"Key doesn't match schema":"Value doesn't match value")),i&&this.shape.values.check(r,e)})}}const y_=(n,t)=>new A_(n,t),S8=wn(A_);class b_ extends tr{constructor(t){super(),this.shape=t}check(t,e){return t!=null&&cd(this.shape,(r,s)=>{const i=r.check(t[s],e);return!i&&(e==null||e.extend(s.toString(),"Tuple",typeof r)),i})}}const E8=(...n)=>new b_(n);wn(b_);class w_ extends tr{constructor(t){super(),this.shape=t.length===1?t[0]:new Mg(t)}check(t,e){const r=$a(t)&&ub(t,s=>this.shape.check(s));return!r&&(e==null||e.extend(null,"Array","")),r}}const C_=(...n)=>new w_(n),k8=wn(w_),T8=Pn(n=>$a(n));class x_ extends tr{constructor(t,e){super(),this.shape=t,this._c=e}check(t,e){const r=t instanceof this.shape&&(this._c==null||this._c(t));return!r&&(e==null||e.extend(null,this.shape.name,t==null?void 0:t.constructor.name)),r}}const _8=(n,t=null)=>new x_(n,t);wn(x_);const N8=_8(tr);class M8 extends tr{constructor(t){super(),this.len=t.length-1,this.args=E8(...t.slice(-1)),this.res=t[this.len]}check(t,e){const r=t.constructor===Function&&t.length<=this.len;return!r&&(e==null||e.extend(null,"function",typeof t)),r}}const I8=wn(M8),L8=Pn(n=>typeof n=="function");class D8 extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=ub(this.shape,s=>s.check(t,e));return!r&&(e==null||e.extend(null,"Intersectinon",typeof t)),r}}wn(D8,n=>n.shape.length>0);class Mg extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=db(this.shape,s=>s.check(t,e));return e==null||e.extend(null,"Union",typeof t),r}}U(Mg,"_dilutes",!0);const bc=(...n)=>n.findIndex(t=>Mh.check(t))>=0?bc(...n.map(t=>Ru(t)).map(t=>Mh.check(t)?t.shape:[t]).flat(1)):n.length===1?n[0]:new Mg(n),Mh=wn(Mg),v_=()=>!0,Ih=Pn(v_),O8=wn(vb,n=>n.shape===v_),Sb=Pn(n=>typeof n=="bigint"),R8=Pn(n=>n===Sb),S_=Pn(n=>typeof n=="symbol");Pn(n=>n===S_);const Ua=Pn(n=>typeof n=="number"),E_=Pn(n=>n===Ua),tc=Pn(n=>typeof n=="string"),k_=Pn(n=>n===tc),Ig=Pn(n=>typeof n=="boolean"),j8=Pn(n=>n===Ig),T_=Ng(void 0);wn(_g,n=>n.shape.length===1&&n.shape[0]===void 0);Ng(void 0);const Lg=Ng(null),P8=wn(_g,n=>n.shape.length===1&&n.shape[0]===null);wn(Uint8Array);wn(xb,n=>n.shape===Uint8Array);const B8=bc(Ua,tc,Lg,T_,Sb,Ig,S_);(()=>{const n=C_(Ih),t=y_(tc,Ih),e=bc(Ua,tc,Lg,Ig,n,t);return n.shape=e,t.shape.values=e,e})();const Ru=n=>{if(N8.check(n))return n;if(v8.check(n)){const t={};for(const e in n)t[e]=Ru(n[e]);return C8(t)}else{if(T8.check(n))return bc(...n.map(Ru));if(B8.check(n))return Ng(n);if(L8.check(n))return wn(n)}Or()},X1=$5?()=>{}:(n,t)=>{const e=new p8;if(!t.check(n,e))throw $s(`Expected value to be of type ${t.constructor.name}.
|
|
15
|
-
${e.toString()}`)};class F8{constructor(t){this.patterns=[],this.$state=t}if(t,e){return this.patterns.push({if:Ru(t),h:e}),this}else(t){return this.if(Ih,t)}done(){return(t,e)=>{for(let r=0;r<this.patterns.length;r++){const s=this.patterns[r];if(s.if.check(t))return s.h(t,e)}throw $s("Unhandled pattern")}}}const z8=n=>new F8(n),__=z8(Ih).if(E_,(n,t)=>tA(t,U1,kh)).if(k_,(n,t)=>h8(t)).if(j8,(n,t)=>Q1(t)).if(R8,(n,t)=>BigInt(tA(t,U1,kh))).if(Mh,(n,t)=>ba(t,nA(t,n.shape))).if(x8,(n,t)=>{const e={};for(const r in n.shape){let s=n.shape[r];if(b8.check(s)){if(Q1(t))continue;s=s.shape}e[r]=__(s,t)}return e}).if(k8,(n,t)=>{const e=[],r=h_(t,0,42);for(let s=0;s<r;s++)e.push(ba(t,n.shape));return e}).if(g_,(n,t)=>nA(t,n.shape)).if(P8,(n,t)=>null).if(I8,(n,t)=>{const e=ba(t,n.res);return()=>e}).if(O8,(n,t)=>ba(t,nA(t,[Ua,tc,Lg,T_,Sb,Ig,C_(Ua),y_(bc("a","b","c"),Ua)]))).if(S8,(n,t)=>{const e={},r=tA(t,0,3);for(let s=0;s<r;s++){const i=ba(t,n.shape.keys),o=ba(t,n.shape.values);e[i]=o}return e}).done(),ba=(n,t)=>__(Ru(t),n),Dg=typeof document<"u"?document:{};Pn(n=>n.nodeType===Y8);typeof DOMParser<"u"&&new DOMParser;Pn(n=>n.nodeType===K8);Pn(n=>n.nodeType===W8);const U8=n=>r5(n,(t,e)=>`${e}:${t};`).join(""),K8=Dg.ELEMENT_NODE,W8=Dg.TEXT_NODE,H8=Dg.DOCUMENT_NODE,Y8=Dg.DOCUMENT_FRAGMENT_NODE;Pn(n=>n.nodeType===H8);const Xi=Symbol,N_=Xi(),M_=Xi(),G8=Xi(),Z8=Xi(),J8=Xi(),I_=Xi(),V8=Xi(),Eb=Xi(),Q8=Xi(),X8=n=>{var s;n.length===1&&((s=n[0])==null?void 0:s.constructor)===Function&&(n=n[0]());const t=[],e=[];let r=0;for(;r<n.length;r++){const i=n[r];if(i===void 0)break;if(i.constructor===String||i.constructor===Number)t.push(i);else if(i.constructor===Object)break}for(r>0&&e.push(t.join(""));r<n.length;r++){const i=n[r];i instanceof Symbol||e.push(i)}return e},q8={[N_]:bi("font-weight","bold"),[M_]:bi("font-weight","normal"),[G8]:bi("color","blue"),[J8]:bi("color","green"),[Z8]:bi("color","grey"),[I_]:bi("color","red"),[V8]:bi("color","purple"),[Eb]:bi("color","orange"),[Q8]:bi("color","black")},$8=n=>{var o;n.length===1&&((o=n[0])==null?void 0:o.constructor)===Function&&(n=n[0]());const t=[],e=[],r=br();let s=[],i=0;for(;i<n.length;i++){const l=n[i],a=q8[l];if(a!==void 0)r.set(a.left,a.right);else{if(l===void 0)break;if(l.constructor===String||l.constructor===Number){const u=U8(r);i>0||u.length>0?(t.push("%c"+l),e.push(u)):t.push(l)}else break}}for(i>0&&(s=e,s.unshift(t.join("")));i<n.length;i++){const l=n[i];l instanceof Symbol||s.push(l)}return s},L_=t8?$8:X8,eF=(...n)=>{console.log(...L_(n)),O_.forEach(t=>t.print(n))},D_=(...n)=>{console.warn(...L_(n)),n.unshift(Eb),O_.forEach(t=>t.print(n))},O_=To(),R_=n=>({[Symbol.iterator](){return this},next:n}),tF=(n,t)=>R_(()=>{let e;do e=n.next();while(!e.done&&!t(e.value));return e}),rA=(n,t)=>R_(()=>{const{done:e,value:r}=n.next();return{done:e,value:e?void 0:t(r)}});class kb{constructor(t,e){this.clock=t,this.len=e}}class wc{constructor(){this.clients=new Map}}const nc=(n,t,e)=>t.clients.forEach((r,s)=>{const i=n.doc.store.clients.get(s);if(i!=null){const o=i[i.length-1],l=o.id.clock+o.length;for(let a=0,u=r[a];a<r.length&&u.clock<l;u=r[++a])J_(n,i,u.clock,u.len,e)}}),nF=(n,t)=>{let e=0,r=n.length-1;for(;e<=r;){const s=Es((e+r)/2),i=n[s],o=i.clock;if(o<=t){if(t<o+i.len)return s;e=s+1}else r=s-1}return null},ud=(n,t)=>{const e=n.clients.get(t.client);return e!==void 0&&nF(e,t.clock)!==null},Tb=n=>{n.clients.forEach(t=>{t.sort((s,i)=>s.clock-i.clock);let e,r;for(e=1,r=1;e<t.length;e++){const s=t[r-1],i=t[e];s.clock+s.len>=i.clock?s.len=Ql(s.len,i.clock+i.len-s.clock):(r<e&&(t[r]=i),r++)}t.length=r})},S0=n=>{const t=new wc;for(let e=0;e<n.length;e++)n[e].clients.forEach((r,s)=>{if(!t.clients.has(s)){const i=r.slice();for(let o=e+1;o<n.length;o++)i5(i,n[o].clients.get(s)||[]);t.clients.set(s,i)}});return Tb(t),t},ju=(n,t,e,r)=>{si(n.clients,t,()=>[]).push(new kb(e,r))},rF=()=>new wc,sF=n=>{const t=rF();return n.clients.forEach((e,r)=>{const s=[];for(let i=0;i<e.length;i++){const o=e[i];if(o.deleted){const l=o.id.clock;let a=o.length;if(i+1<e.length)for(let u=e[i+1];i+1<e.length&&u.deleted;u=e[++i+1])a+=u.length;s.push(new kb(l,a))}}s.length>0&&t.clients.set(r,s)}),t},Cc=(n,t)=>{Ge(n.restEncoder,t.clients.size),Ui(t.clients.entries()).sort((e,r)=>r[0]-e[0]).forEach(([e,r])=>{n.resetDsCurVal(),Ge(n.restEncoder,e);const s=r.length;Ge(n.restEncoder,s);for(let i=0;i<s;i++){const o=r[i];n.writeDsClock(o.clock),n.writeDsLen(o.len)}})},_b=n=>{const t=new wc,e=it(n.restDecoder);for(let r=0;r<e;r++){n.resetDsCurVal();const s=it(n.restDecoder),i=it(n.restDecoder);if(i>0){const o=si(t.clients,s,()=>[]);for(let l=0;l<i;l++)o.push(new kb(n.readDsClock(),n.readDsLen()))}}return t},q1=(n,t,e)=>{const r=new wc,s=it(n.restDecoder);for(let i=0;i<s;i++){n.resetDsCurVal();const o=it(n.restDecoder),l=it(n.restDecoder),a=e.clients.get(o)||[],u=dn(e,o);for(let d=0;d<l;d++){const h=n.readDsClock(),g=h+n.readDsLen();if(h<u){u<g&&ju(r,o,u,g-u);let m=ti(a,h),A=a[m];for(!A.deleted&&A.id.clock<h&&(a.splice(m+1,0,Bh(t,A,h-A.id.clock)),m++);m<a.length&&(A=a[m++],A.id.clock<g);)A.deleted||(g<A.id.clock+A.length&&a.splice(m,0,Bh(t,A,g-A.id.clock)),A.delete(t))}else ju(r,o,h,g-h)}}if(r.clients.size>0){const i=new Ml;return Ge(i.restEncoder,0),Cc(i,r),i.toUint8Array()}return null},j_=i_;class ei extends $2{constructor({guid:t=B5(),collectionid:e=null,gc:r=!0,gcFilter:s=()=>!0,meta:i=null,autoLoad:o=!1,shouldLoad:l=!0}={}){super(),this.gc=r,this.gcFilter=s,this.clientID=j_(),this.guid=t,this.collectionid=e,this.share=new Map,this.store=new G_,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=l,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=J1(u=>{this.on("load",()=>{this.isLoaded=!0,u(this)})});const a=()=>J1(u=>{const d=h=>{(h===void 0||h===!0)&&(this.off("sync",d),u())};this.on("sync",d)});this.on("sync",u=>{u===!1&&this.isSynced&&(this.whenSynced=a()),this.isSynced=u===void 0||u===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=a()}load(){const t=this._item;t!==null&&!this.shouldLoad&&Kt(t.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Ui(this.subdocs).map(t=>t.guid))}transact(t,e=null){return Kt(this,t,e)}get(t,e=Rn){const r=si(this.share,t,()=>{const i=new e;return i._integrate(this,null),i}),s=r.constructor;if(e!==Rn&&s!==e)if(s===Rn){const i=new e;i._map=r._map,r._map.forEach(o=>{for(;o!==null;o=o.left)o.parent=i}),i._start=r._start;for(let o=i._start;o!==null;o=o.right)o.parent=i;return i._length=r._length,this.share.set(t,i),i._integrate(this,null),i}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return r}getArray(t=""){return this.get(t,Ha)}getText(t=""){return this.get(t,sc)}getMap(t=""){return this.get(t,er)}getXmlElement(t=""){return this.get(t,as)}getXmlFragment(t=""){return this.get(t,Il)}toJSON(){const t={};return this.share.forEach((e,r)=>{t[r]=e.toJSON()}),t}destroy(){this.isDestroyed=!0,Ui(this.subdocs).forEach(e=>e.destroy());const t=this._item;if(t!==null){this._item=null;const e=t.content;e.doc=new ei({guid:this.guid,...e.opts,shouldLoad:!1}),e.doc._item=t,Kt(t.parent.doc,r=>{const s=e.doc;t.deleted||r.subdocsAdded.add(s),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class P_{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return it(this.restDecoder)}readDsLen(){return it(this.restDecoder)}}class B_ extends P_{readLeftID(){return ht(it(this.restDecoder),it(this.restDecoder))}readRightID(){return ht(it(this.restDecoder),it(this.restDecoder))}readClient(){return it(this.restDecoder)}readInfo(){return ec(this.restDecoder)}readString(){return bo(this.restDecoder)}readParentInfo(){return it(this.restDecoder)===1}readTypeRef(){return it(this.restDecoder)}readLen(){return it(this.restDecoder)}readAny(){return Du(this.restDecoder)}readBuf(){return u8(Jn(this.restDecoder))}readJSON(){return JSON.parse(bo(this.restDecoder))}readKey(){return bo(this.restDecoder)}}class iF{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=it(this.restDecoder),this.dsCurrVal}readDsLen(){const t=it(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class rc extends iF{constructor(t){super(t),this.keys=[],it(t),this.keyClockDecoder=new eA(Jn(t)),this.clientDecoder=new nh(Jn(t)),this.leftClockDecoder=new eA(Jn(t)),this.rightClockDecoder=new eA(Jn(t)),this.infoDecoder=new Z1(Jn(t),ec),this.stringDecoder=new R5(Jn(t)),this.parentInfoDecoder=new Z1(Jn(t),ec),this.typeRefDecoder=new nh(Jn(t)),this.lenDecoder=new nh(Jn(t))}readLeftID(){return new Ka(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Ka(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Du(this.restDecoder)}readBuf(){return Jn(this.restDecoder)}readJSON(){return Du(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{const e=this.stringDecoder.read();return this.keys.push(e),e}}}class F_{constructor(){this.restEncoder=Vn()}toUint8Array(){return en(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){Ge(this.restEncoder,t)}writeDsLen(t){Ge(this.restEncoder,t)}}class dd extends F_{writeLeftID(t){Ge(this.restEncoder,t.client),Ge(this.restEncoder,t.clock)}writeRightID(t){Ge(this.restEncoder,t.client),Ge(this.restEncoder,t.clock)}writeClient(t){Ge(this.restEncoder,t)}writeInfo(t){w0(this.restEncoder,t)}writeString(t){pl(this.restEncoder,t)}writeParentInfo(t){Ge(this.restEncoder,t?1:0)}writeTypeRef(t){Ge(this.restEncoder,t)}writeLen(t){Ge(this.restEncoder,t)}writeAny(t){Lu(this.restEncoder,t)}writeBuf(t){cn(this.restEncoder,t)}writeJSON(t){pl(this.restEncoder,JSON.stringify(t))}writeKey(t){pl(this.restEncoder,t)}}class z_{constructor(){this.restEncoder=Vn(),this.dsCurrVal=0}toUint8Array(){return en(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){const e=t-this.dsCurrVal;this.dsCurrVal=t,Ge(this.restEncoder,e)}writeDsLen(t){t===0&&Or(),Ge(this.restEncoder,t-1),this.dsCurrVal+=t}}class Ml extends z_{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new $m,this.clientEncoder=new th,this.leftClockEncoder=new $m,this.rightClockEncoder=new $m,this.infoEncoder=new H1(w0),this.stringEncoder=new k5,this.parentInfoEncoder=new H1(w0),this.typeRefEncoder=new th,this.lenEncoder=new th}toUint8Array(){const t=Vn();return Ge(t,0),cn(t,this.keyClockEncoder.toUint8Array()),cn(t,this.clientEncoder.toUint8Array()),cn(t,this.leftClockEncoder.toUint8Array()),cn(t,this.rightClockEncoder.toUint8Array()),cn(t,en(this.infoEncoder)),cn(t,this.stringEncoder.toUint8Array()),cn(t,en(this.parentInfoEncoder)),cn(t,this.typeRefEncoder.toUint8Array()),cn(t,this.lenEncoder.toUint8Array()),kg(t,en(this.restEncoder)),en(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(t?1:0)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){Lu(this.restEncoder,t)}writeBuf(t){cn(this.restEncoder,t)}writeJSON(t){Lu(this.restEncoder,t)}writeKey(t){const e=this.keyMap.get(t);e===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(e)}}const oF=(n,t,e,r)=>{r=Ql(r,t[0].id.clock);const s=ti(t,r);Ge(n.restEncoder,t.length-s),n.writeClient(e),Ge(n.restEncoder,r);const i=t[s];i.write(n,r-i.id.clock);for(let o=s+1;o<t.length;o++)t[o].write(n,0)},Nb=(n,t,e)=>{const r=new Map;e.forEach((s,i)=>{dn(t,i)>s&&r.set(i,s)}),Og(t).forEach((s,i)=>{e.has(i)||r.set(i,0)}),Ge(n.restEncoder,r.size),Ui(r.entries()).sort((s,i)=>i[0]-s[0]).forEach(([s,i])=>{oF(n,t.clients.get(s),s,i)})},lF=(n,t)=>{const e=br(),r=it(n.restDecoder);for(let s=0;s<r;s++){const i=it(n.restDecoder),o=new Array(i),l=n.readClient();let a=it(n.restDecoder);e.set(l,{i:0,refs:o});for(let u=0;u<i;u++){const d=n.readInfo();switch(Eg&d){case 0:{const h=n.readLen();o[u]=new Jr(ht(l,a),h),a+=h;break}case 10:{const h=it(n.restDecoder);o[u]=new Vr(ht(l,a),h),a+=h;break}default:{const h=(d&(Oi|Nr))===0,g=new Wt(ht(l,a),null,(d&Nr)===Nr?n.readLeftID():null,null,(d&Oi)===Oi?n.readRightID():null,h?n.readParentInfo()?t.get(n.readString()):n.readLeftID():null,h&&(d&Mu)===Mu?n.readString():null,AN(n,d));o[u]=g,a+=g.length}}}}return e},aF=(n,t,e)=>{const r=[];let s=Ui(e.keys()).sort((m,A)=>m-A);if(s.length===0)return null;const i=()=>{if(s.length===0)return null;let m=e.get(s[s.length-1]);for(;m.refs.length===m.i;)if(s.pop(),s.length>0)m=e.get(s[s.length-1]);else return null;return m};let o=i();if(o===null)return null;const l=new G_,a=new Map,u=(m,A)=>{const y=a.get(m);(y==null||y>A)&&a.set(m,A)};let d=o.refs[o.i++];const h=new Map,g=()=>{for(const m of r){const A=m.id.client,y=e.get(A);y?(y.i--,l.clients.set(A,y.refs.slice(y.i)),e.delete(A),y.i=0,y.refs=[]):l.clients.set(A,[m]),s=s.filter(b=>b!==A)}r.length=0};for(;;){if(d.constructor!==Vr){const A=si(h,d.id.client,()=>dn(t,d.id.client))-d.id.clock;if(A<0)r.push(d),u(d.id.client,d.id.clock-1),g();else{const y=d.getMissing(n,t);if(y!==null){r.push(d);const b=e.get(y)||{refs:[],i:0};if(b.refs.length===b.i)u(y,dn(t,y)),g();else{d=b.refs[b.i++];continue}}else(A===0||A<d.length)&&(d.integrate(n,A),h.set(d.id.client,d.id.clock+d.length))}}if(r.length>0)d=r.pop();else if(o!==null&&o.i<o.refs.length)d=o.refs[o.i++];else{if(o=i(),o===null)break;d=o.refs[o.i++]}}if(l.clients.size>0){const m=new Ml;return Nb(m,l,new Map),Ge(m.restEncoder,0),{missing:a,update:m.toUint8Array()}}return null},cF=(n,t)=>Nb(n,t.doc.store,t.beforeState),uF=(n,t,e,r=new rc(n))=>Kt(t,s=>{s.local=!1;let i=!1;const o=s.doc,l=o.store,a=lF(r,o),u=aF(s,l,a),d=l.pendingStructs;if(d){for(const[g,m]of d.missing)if(m<dn(l,g)){i=!0;break}if(u){for(const[g,m]of u.missing){const A=d.missing.get(g);(A==null||A>m)&&d.missing.set(g,m)}d.update=Dh([d.update,u.update])}}else l.pendingStructs=u;const h=q1(r,s,l);if(l.pendingDs){const g=new rc(zo(l.pendingDs));it(g.restDecoder);const m=q1(g,s,l);h&&m?l.pendingDs=Dh([h,m]):l.pendingDs=h||m}else l.pendingDs=h;if(i){const g=l.pendingStructs.update;l.pendingStructs=null,U_(s.doc,g)}},e,!1),U_=(n,t,e,r=rc)=>{const s=zo(t);uF(s,n,e,new r(s))},dF=(n,t,e)=>U_(n,t,e,B_),fF=(n,t,e=new Map)=>{Nb(n,t.store,e),Cc(n,sF(t.store))},hF=(n,t=new Uint8Array([0]),e=new Ml)=>{const r=K_(t);fF(e,n,r);const s=[e.toUint8Array()];if(n.store.pendingDs&&s.push(n.store.pendingDs),n.store.pendingStructs&&s.push(RF(n.store.pendingStructs.update,t)),s.length>1){if(e.constructor===dd)return DF(s.map((i,o)=>o===0?i:PF(i)));if(e.constructor===Ml)return Dh(s)}return s[0]},gF=(n,t)=>hF(n,t,new dd),pF=n=>{const t=new Map,e=it(n.restDecoder);for(let r=0;r<e;r++){const s=it(n.restDecoder),i=it(n.restDecoder);t.set(s,i)}return t},K_=n=>pF(new P_(zo(n))),W_=(n,t)=>(Ge(n.restEncoder,t.size),Ui(t.entries()).sort((e,r)=>r[0]-e[0]).forEach(([e,r])=>{Ge(n.restEncoder,e),Ge(n.restEncoder,r)}),n),mF=(n,t)=>W_(n,Og(t.store)),AF=(n,t=new z_)=>(n instanceof Map?W_(t,n):mF(t,n),t.toUint8Array()),yF=n=>AF(n,new F_);class bF{constructor(){this.l=[]}}const $1=()=>new bF,eS=(n,t)=>n.l.push(t),tS=(n,t)=>{const e=n.l,r=e.length;n.l=e.filter(s=>t!==s),r===n.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},H_=(n,t,e)=>wb(n.l,[t,e]);class Ka{constructor(t,e){this.client=t,this.clock=e}}const Oa=(n,t)=>n===t||n!==null&&t!==null&&n.client===t.client&&n.clock===t.clock,ht=(n,t)=>new Ka(n,t),Y_=n=>{for(const[t,e]of n.doc.share.entries())if(e===n)return t;throw Or()},Lh=(n,t)=>{for(;t!==null;){if(t.parent===n)return!0;t=t.parent._item}return!1};class wF{constructor(t,e,r,s=0){this.type=t,this.tname=e,this.item=r,this.assoc=s}}class CF{constructor(t,e,r=0){this.type=t,this.index=e,this.assoc=r}}const xF=(n,t,e=0)=>new CF(n,t,e),xf=(n,t,e)=>{let r=null,s=null;return n._item===null?s=Y_(n):r=ht(n._item.id.client,n._item.id.clock),new wF(r,s,t,e)},E0=(n,t,e=0)=>{let r=n._start;if(e<0){if(t===0)return xf(n,null,e);t--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>t)return xf(n,ht(r.id.client,r.id.clock+t),e);t-=r.length}if(r.right===null&&e<0)return xf(n,r.lastId,e);r=r.right}return xf(n,null,e)},vF=(n,t)=>{const e=Wa(n,t),r=t.clock-e.id.clock;return{item:e,diff:r}},SF=(n,t,e=!0)=>{const r=t.store,s=n.item,i=n.type,o=n.tname,l=n.assoc;let a=null,u=0;if(s!==null){if(dn(r,s.client)<=s.clock)return null;const d=e?M0(r,s):vF(r,s),h=d.item;if(!(h instanceof Wt))return null;if(a=h.parent,a._item===null||!a._item.deleted){u=h.deleted||!h.countable?0:d.diff+(l>=0?0:1);let g=h.left;for(;g!==null;)!g.deleted&&g.countable&&(u+=g.length),g=g.left}}else{if(o!==null)a=t.get(o);else if(i!==null){if(dn(r,i.client)<=i.clock)return null;const{item:d}=e?M0(r,i):{item:Wa(r,i)};if(d instanceof Wt&&d.content instanceof ii)a=d.content.type;else return null}else throw Or();l>=0?u=a._length:u=0}return xF(a,u,n.assoc)},EF=(n,t)=>n===t||n!==null&&t!==null&&n.tname===t.tname&&Oa(n.item,t.item)&&Oa(n.type,t.type)&&n.assoc===t.assoc,_a=(n,t)=>t===void 0?!n.deleted:t.sv.has(n.id.client)&&(t.sv.get(n.id.client)||0)>n.id.clock&&!ud(t.ds,n.id),k0=(n,t)=>{const e=si(n.meta,k0,To),r=n.doc.store;e.has(t)||(t.sv.forEach((s,i)=>{s<dn(r,i)&&Ar(n,ht(i,s))}),nc(n,t.ds,s=>{}),e.add(t))};class G_{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Og=n=>{const t=new Map;return n.clients.forEach((e,r)=>{const s=e[e.length-1];t.set(r,s.id.clock+s.length)}),t},dn=(n,t)=>{const e=n.clients.get(t);if(e===void 0)return 0;const r=e[e.length-1];return r.id.clock+r.length},Z_=(n,t)=>{let e=n.clients.get(t.id.client);if(e===void 0)e=[],n.clients.set(t.id.client,e);else{const r=e[e.length-1];if(r.id.clock+r.length!==t.id.clock)throw Or()}e.push(t)},ti=(n,t)=>{let e=0,r=n.length-1,s=n[r],i=s.id.clock;if(i===t)return r;let o=Es(t/(i+s.length-1)*r);for(;e<=r;){if(s=n[o],i=s.id.clock,i<=t){if(t<i+s.length)return o;e=o+1}else r=o-1;o=Es((e+r)/2)}throw Or()},kF=(n,t)=>{const e=n.clients.get(t.client);return e[ti(e,t.clock)]},Wa=kF,T0=(n,t,e)=>{const r=ti(t,e),s=t[r];return s.id.clock<e&&s instanceof Wt?(t.splice(r+1,0,Bh(n,s,e-s.id.clock)),r+1):r},Ar=(n,t)=>{const e=n.doc.store.clients.get(t.client);return e[T0(n,e,t.clock)]},nS=(n,t,e)=>{const r=t.clients.get(e.client),s=ti(r,e.clock),i=r[s];return e.clock!==i.id.clock+i.length-1&&i.constructor!==Jr&&r.splice(s+1,0,Bh(n,i,e.clock-i.id.clock+1)),i},TF=(n,t,e)=>{const r=n.clients.get(t.id.client);r[ti(r,t.id.clock)]=e},J_=(n,t,e,r,s)=>{if(r===0)return;const i=e+r;let o=T0(n,t,e),l;do l=t[o++],i<l.id.clock+l.length&&T0(n,t,i),s(l);while(o<t.length&&t[o].id.clock<i)};class _F{constructor(t,e,r){this.doc=t,this.deleteSet=new wc,this.beforeState=Og(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=e,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const rS=(n,t)=>t.deleteSet.clients.size===0&&!s5(t.afterState,(e,r)=>t.beforeState.get(r)!==e)?!1:(Tb(t.deleteSet),cF(n,t),Cc(n,t.deleteSet),!0),sS=(n,t,e)=>{const r=t._item;(r===null||r.id.clock<(n.beforeState.get(r.id.client)||0)&&!r.deleted)&&si(n.changed,t,To).add(e)},rh=(n,t)=>{let e=n[t],r=n[t-1],s=t;for(;s>0;e=r,r=n[--s-1]){if(r.deleted===e.deleted&&r.constructor===e.constructor&&r.mergeWith(e)){e instanceof Wt&&e.parentSub!==null&&e.parent._map.get(e.parentSub)===e&&e.parent._map.set(e.parentSub,r);continue}break}const i=t-s;return i&&n.splice(t+1-i,i),i},NF=(n,t,e)=>{for(const[r,s]of n.clients.entries()){const i=t.clients.get(r);for(let o=s.length-1;o>=0;o--){const l=s[o],a=l.clock+l.len;for(let u=ti(i,l.clock),d=i[u];u<i.length&&d.id.clock<a;d=i[++u]){const h=i[u];if(l.clock+l.len<=h.id.clock)break;h instanceof Wt&&h.deleted&&!h.keep&&e(h)&&h.gc(t,!1)}}}},MF=(n,t)=>{n.clients.forEach((e,r)=>{const s=t.clients.get(r);for(let i=e.length-1;i>=0;i--){const o=e[i],l=fb(s.length-1,1+ti(s,o.clock+o.len-1));for(let a=l,u=s[a];a>0&&u.id.clock>=o.clock;u=s[a])a-=1+rh(s,a)}})},V_=(n,t)=>{if(t<n.length){const e=n[t],r=e.doc,s=r.store,i=e.deleteSet,o=e._mergeStructs;try{Tb(i),e.afterState=Og(e.doc.store),r.emit("beforeObserverCalls",[e,r]);const l=[];e.changed.forEach((a,u)=>l.push(()=>{(u._item===null||!u._item.deleted)&&u._callObserver(e,a)})),l.push(()=>{e.changedParentTypes.forEach((a,u)=>{u._dEH.l.length>0&&(u._item===null||!u._item.deleted)&&(a=a.filter(d=>d.target._item===null||!d.target._item.deleted),a.forEach(d=>{d.currentTarget=u,d._path=null}),a.sort((d,h)=>d.path.length-h.path.length),H_(u._dEH,a,e))})}),l.push(()=>r.emit("afterTransaction",[e,r])),wb(l,[]),e._needFormattingCleanup&&QF(e)}finally{r.gc&&NF(i,s,r.gcFilter),MF(i,s),e.afterState.forEach((d,h)=>{const g=e.beforeState.get(h)||0;if(g!==d){const m=s.clients.get(h),A=Ql(ti(m,g),1);for(let y=m.length-1;y>=A;)y-=1+rh(m,y)}});for(let d=o.length-1;d>=0;d--){const{client:h,clock:g}=o[d].id,m=s.clients.get(h),A=ti(m,g);A+1<m.length&&rh(m,A+1)>1||A>0&&rh(m,A)}if(!e.local&&e.afterState.get(r.clientID)!==e.beforeState.get(r.clientID)&&(eF(Eb,N_,"[yjs] ",M_,I_,"Changed the client-id because another client seems to be using it."),r.clientID=j_()),r.emit("afterTransactionCleanup",[e,r]),r._observers.has("update")){const d=new dd;rS(d,e)&&r.emit("update",[d.toUint8Array(),e.origin,r,e])}if(r._observers.has("updateV2")){const d=new Ml;rS(d,e)&&r.emit("updateV2",[d.toUint8Array(),e.origin,r,e])}const{subdocsAdded:l,subdocsLoaded:a,subdocsRemoved:u}=e;(l.size>0||u.size>0||a.size>0)&&(l.forEach(d=>{d.clientID=r.clientID,d.collectionid==null&&(d.collectionid=r.collectionid),r.subdocs.add(d)}),u.forEach(d=>r.subdocs.delete(d)),r.emit("subdocs",[{loaded:a,added:l,removed:u},r,e]),u.forEach(d=>d.destroy())),n.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,n])):V_(n,t+1)}}},Kt=(n,t,e=null,r=!0)=>{const s=n._transactionCleanups;let i=!1,o=null;n._transaction===null&&(i=!0,n._transaction=new _F(n,e,r),s.push(n._transaction),s.length===1&&n.emit("beforeAllTransactions",[n]),n.emit("beforeTransaction",[n._transaction,n]));try{o=t(n._transaction)}finally{if(i){const l=n._transaction===s[0];n._transaction=null,l&&V_(s,0)}}return o};class IF{constructor(t,e){this.insertions=e,this.deletions=t,this.meta=new Map}}const iS=(n,t,e)=>{nc(n,e.deletions,r=>{r instanceof Wt&&t.scope.some(s=>s===n.doc||Lh(s,r))&&Pb(r,!1)})},oS=(n,t,e)=>{let r=null;const s=n.doc,i=n.scope;Kt(s,l=>{for(;t.length>0&&n.currStackItem===null;){const a=s.store,u=t.pop(),d=new Set,h=[];let g=!1;nc(l,u.insertions,m=>{if(m instanceof Wt){if(m.redone!==null){let{item:A,diff:y}=M0(a,m.id);y>0&&(A=Ar(l,ht(A.id.client,A.id.clock+y))),m=A}!m.deleted&&i.some(A=>A===l.doc||Lh(A,m))&&h.push(m)}}),nc(l,u.deletions,m=>{m instanceof Wt&&i.some(A=>A===l.doc||Lh(A,m))&&!ud(u.insertions,m.id)&&d.add(m)}),d.forEach(m=>{g=mN(l,m,d,u.insertions,n.ignoreRemoteMapChanges,n)!==null||g});for(let m=h.length-1;m>=0;m--){const A=h[m];n.deleteFilter(A)&&(A.delete(l),g=!0)}n.currStackItem=g?u:null}l.changed.forEach((a,u)=>{a.has(null)&&u._searchMarker&&(u._searchMarker.length=0)}),r=l},n);const o=n.currStackItem;if(o!=null){const l=r.changedParentTypes;n.emit("stack-item-popped",[{stackItem:o,type:e,changedParentTypes:l,origin:n},n]),n.currStackItem=null}return o};class Q_ extends $2{constructor(t,{captureTimeout:e=500,captureTransaction:r=a=>!0,deleteFilter:s=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:o=!1,doc:l=$a(t)?t[0].doc:t instanceof ei?t:t.doc}={}){super(),this.scope=[],this.doc=l,this.addToScope(t),this.deleteFilter=s,i.add(this),this.trackedOrigins=i,this.captureTransaction=r,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=o,this.captureTimeout=e,this.afterTransactionHandler=a=>{if(!this.captureTransaction(a)||!this.scope.some(b=>a.changedParentTypes.has(b)||b===this.doc)||!this.trackedOrigins.has(a.origin)&&(!a.origin||!this.trackedOrigins.has(a.origin.constructor)))return;const u=this.undoing,d=this.redoing,h=u?this.redoStack:this.undoStack;u?this.stopCapturing():d||this.clear(!1,!0);const g=new wc;a.afterState.forEach((b,v)=>{const C=a.beforeState.get(v)||0,S=b-C;S>0&&ju(g,v,C,S)});const m=_o();let A=!1;if(this.lastChange>0&&m-this.lastChange<this.captureTimeout&&h.length>0&&!u&&!d){const b=h[h.length-1];b.deletions=S0([b.deletions,a.deleteSet]),b.insertions=S0([b.insertions,g])}else h.push(new IF(a.deleteSet,g)),A=!0;!u&&!d&&(this.lastChange=m),nc(a,a.deleteSet,b=>{b instanceof Wt&&this.scope.some(v=>v===a.doc||Lh(v,b))&&Pb(b,!0)});const y=[{stackItem:h[h.length-1],origin:a.origin,type:u?"redo":"undo",changedParentTypes:a.changedParentTypes},this];A?this.emit("stack-item-added",y):this.emit("stack-item-updated",y)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(t){const e=new Set(this.scope);t=$a(t)?t:[t],t.forEach(r=>{e.has(r)||(e.add(r),(r instanceof Rn?r.doc!==this.doc:r!==this.doc)&&D_("[yjs#509] Not same Y.Doc"),this.scope.push(r))})}addTrackedOrigin(t){this.trackedOrigins.add(t)}removeTrackedOrigin(t){this.trackedOrigins.delete(t)}clear(t=!0,e=!0){(t&&this.canUndo()||e&&this.canRedo())&&this.doc.transact(r=>{t&&(this.undoStack.forEach(s=>iS(r,this,s)),this.undoStack=[]),e&&(this.redoStack.forEach(s=>iS(r,this,s)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:t,redoStackCleared:e}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let t;try{t=oS(this,this.undoStack,"undo")}finally{this.undoing=!1}return t}redo(){this.redoing=!0;let t;try{t=oS(this,this.redoStack,"redo")}finally{this.redoing=!1}return t}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*LF(n){const t=it(n.restDecoder);for(let e=0;e<t;e++){const r=it(n.restDecoder),s=n.readClient();let i=it(n.restDecoder);for(let o=0;o<r;o++){const l=n.readInfo();if(l===10){const a=it(n.restDecoder);yield new Vr(ht(s,i),a),i+=a}else if((Eg&l)!==0){const a=(l&(Oi|Nr))===0,u=new Wt(ht(s,i),null,(l&Nr)===Nr?n.readLeftID():null,null,(l&Oi)===Oi?n.readRightID():null,a?n.readParentInfo()?n.readString():n.readLeftID():null,a&&(l&Mu)===Mu?n.readString():null,AN(n,l));yield u,i+=u.length}else{const a=n.readLen();yield new Jr(ht(s,i),a),i+=a}}}}class Mb{constructor(t,e){this.gen=LF(t),this.curr=null,this.done=!1,this.filterSkips=e,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Vr);return this.curr}}class Ib{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}}const DF=n=>Dh(n,B_,dd),OF=(n,t)=>{if(n.constructor===Jr){const{client:e,clock:r}=n.id;return new Jr(ht(e,r+t),n.length-t)}else if(n.constructor===Vr){const{client:e,clock:r}=n.id;return new Vr(ht(e,r+t),n.length-t)}else{const e=n,{client:r,clock:s}=e.id;return new Wt(ht(r,s+t),null,ht(r,s+t-1),null,e.rightOrigin,e.parent,e.parentSub,e.content.splice(t))}},Dh=(n,t=rc,e=Ml)=>{if(n.length===1)return n[0];const r=n.map(d=>new t(zo(d)));let s=r.map(d=>new Mb(d,!0)),i=null;const o=new e,l=new Ib(o);for(;s=s.filter(g=>g.curr!==null),s.sort((g,m)=>{if(g.curr.id.client===m.curr.id.client){const A=g.curr.id.clock-m.curr.id.clock;return A===0?g.curr.constructor===m.curr.constructor?0:g.curr.constructor===Vr?1:-1:A}else return m.curr.id.client-g.curr.id.client}),s.length!==0;){const d=s[0],h=d.curr.id.client;if(i!==null){let g=d.curr,m=!1;for(;g!==null&&g.id.clock+g.length<=i.struct.id.clock+i.struct.length&&g.id.client>=i.struct.id.client;)g=d.next(),m=!0;if(g===null||g.id.client!==h||m&&g.id.clock>i.struct.id.clock+i.struct.length)continue;if(h!==i.struct.id.client)uo(l,i.struct,i.offset),i={struct:g,offset:0},d.next();else if(i.struct.id.clock+i.struct.length<g.id.clock)if(i.struct.constructor===Vr)i.struct.length=g.id.clock+g.length-i.struct.id.clock;else{uo(l,i.struct,i.offset);const A=g.id.clock-i.struct.id.clock-i.struct.length;i={struct:new Vr(ht(h,i.struct.id.clock+i.struct.length),A),offset:0}}else{const A=i.struct.id.clock+i.struct.length-g.id.clock;A>0&&(i.struct.constructor===Vr?i.struct.length-=A:g=OF(g,A)),i.struct.mergeWith(g)||(uo(l,i.struct,i.offset),i={struct:g,offset:0},d.next())}}else i={struct:d.curr,offset:0},d.next();for(let g=d.curr;g!==null&&g.id.client===h&&g.id.clock===i.struct.id.clock+i.struct.length&&g.constructor!==Vr;g=d.next())uo(l,i.struct,i.offset),i={struct:g,offset:0}}i!==null&&(uo(l,i.struct,i.offset),i=null),Lb(l);const a=r.map(d=>_b(d)),u=S0(a);return Cc(o,u),o.toUint8Array()},RF=(n,t,e=rc,r=Ml)=>{const s=K_(t),i=new r,o=new Ib(i),l=new e(zo(n)),a=new Mb(l,!1);for(;a.curr;){const d=a.curr,h=d.id.client,g=s.get(h)||0;if(a.curr.constructor===Vr){a.next();continue}if(d.id.clock+d.length>g)for(uo(o,d,Ql(g-d.id.clock,0)),a.next();a.curr&&a.curr.id.client===h;)uo(o,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===h&&a.curr.id.clock+a.curr.length<=g;)a.next()}Lb(o);const u=_b(l);return Cc(i,u),i.toUint8Array()},X_=n=>{n.written>0&&(n.clientStructs.push({written:n.written,restEncoder:en(n.encoder.restEncoder)}),n.encoder.restEncoder=Vn(),n.written=0)},uo=(n,t,e)=>{n.written>0&&n.currClient!==t.id.client&&X_(n),n.written===0&&(n.currClient=t.id.client,n.encoder.writeClient(t.id.client),Ge(n.encoder.restEncoder,t.id.clock+e)),t.write(n.encoder,e),n.written++},Lb=n=>{X_(n);const t=n.encoder.restEncoder;Ge(t,n.clientStructs.length);for(let e=0;e<n.clientStructs.length;e++){const r=n.clientStructs[e];Ge(t,r.written),kg(t,r.restEncoder)}},jF=(n,t,e,r)=>{const s=new e(zo(n)),i=new Mb(s,!1),o=new r,l=new Ib(o);for(let u=i.curr;u!==null;u=i.next())uo(l,t(u),0);Lb(l);const a=_b(s);return Cc(o,a),o.toUint8Array()},PF=n=>jF(n,Q5,rc,dd),lS="You must not compute changes after the event-handler fired.";class Rg{constructor(t,e){this.target=t,this.currentTarget=t,this.transaction=e,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=BF(this.currentTarget,this.target))}deletes(t){return ud(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw $s(lS);const t=new Map,e=this.target;this.transaction.changed.get(e).forEach(s=>{if(s!==null){const i=e._map.get(s);let o,l;if(this.adds(i)){let a=i.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(i))if(a!==null&&this.deletes(a))o="delete",l=Qm(a.content.getContent());else return;else a!==null&&this.deletes(a)?(o="update",l=Qm(a.content.getContent())):(o="add",l=void 0)}else if(this.deletes(i))o="delete",l=Qm(i.content.getContent());else return;t.set(s,{action:o,oldValue:l})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw $s(lS);const e=this.target,r=To(),s=To(),i=[];if(t={added:r,deleted:s,delta:i,keys:this.keys},this.transaction.changed.get(e).has(null)){let l=null;const a=()=>{l&&i.push(l)};for(let u=e._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((l===null||l.delete===void 0)&&(a(),l={delete:0}),l.delete+=u.length,s.add(u)):this.adds(u)?((l===null||l.insert===void 0)&&(a(),l={insert:[]}),l.insert=l.insert.concat(u.content.getContent()),r.add(u)):((l===null||l.retain===void 0)&&(a(),l={retain:0}),l.retain+=u.length);l!==null&&l.retain===void 0&&a()}this._changes=t}return t}}const BF=(n,t)=>{const e=[];for(;t._item!==null&&t!==n;){if(t._item.parentSub!==null)e.unshift(t._item.parentSub);else{let r=0,s=t._item.parent._start;for(;s!==t._item&&s!==null;)!s.deleted&&s.countable&&(r+=s.length),s=s.right;e.unshift(r)}t=t._item.parent}return e},qn=()=>{D_("Invalid access: Add Yjs type to a document before reading data.")},q_=80;let Db=0;class FF{constructor(t,e){t.marker=!0,this.p=t,this.index=e,this.timestamp=Db++}}const zF=n=>{n.timestamp=Db++},$_=(n,t,e)=>{n.p.marker=!1,n.p=t,t.marker=!0,n.index=e,n.timestamp=Db++},UF=(n,t,e)=>{if(n.length>=q_){const r=n.reduce((s,i)=>s.timestamp<i.timestamp?s:i);return $_(r,t,e),r}else{const r=new FF(t,e);return n.push(r),r}},jg=(n,t)=>{if(n._start===null||t===0||n._searchMarker===null)return null;const e=n._searchMarker.length===0?null:n._searchMarker.reduce((i,o)=>eh(t-i.index)<eh(t-o.index)?i:o);let r=n._start,s=0;for(e!==null&&(r=e.p,s=e.index,zF(e));r.right!==null&&s<t;){if(!r.deleted&&r.countable){if(t<s+r.length)break;s+=r.length}r=r.right}for(;r.left!==null&&s>t;)r=r.left,!r.deleted&&r.countable&&(s-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(s-=r.length);return e!==null&&eh(e.index-s)<r.parent.length/q_?($_(e,r,s),e):UF(n._searchMarker,r,s)},Pu=(n,t,e)=>{for(let r=n.length-1;r>=0;r--){const s=n[r];if(e>0){let i=s.p;for(i.marker=!1;i&&(i.deleted||!i.countable);)i=i.left,i&&!i.deleted&&i.countable&&(s.index-=i.length);if(i===null||i.marker===!0){n.splice(r,1);continue}s.p=i,i.marker=!0}(t<s.index||e>0&&t===s.index)&&(s.index=Ql(t,s.index+e))}},Pg=(n,t,e)=>{const r=n,s=t.changedParentTypes;for(;si(s,n,()=>[]).push(e),n._item!==null;)n=n._item.parent;H_(r._eH,e,t)};class Rn{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=$1(),this._dEH=$1(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,e){this.doc=t,this._item=e}_copy(){throw bs()}clone(){throw bs()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,e){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){eS(this._eH,t)}observeDeep(t){eS(this._dEH,t)}unobserve(t){tS(this._eH,t)}unobserveDeep(t){tS(this._dEH,t)}toJSON(){}}const eN=(n,t,e)=>{n.doc??qn(),t<0&&(t=n._length+t),e<0&&(e=n._length+e);let r=e-t;const s=[];let i=n._start;for(;i!==null&&r>0;){if(i.countable&&!i.deleted){const o=i.content.getContent();if(o.length<=t)t-=o.length;else{for(let l=t;l<o.length&&r>0;l++)s.push(o[l]),r--;t=0}}i=i.right}return s},tN=n=>{n.doc??qn();const t=[];let e=n._start;for(;e!==null;){if(e.countable&&!e.deleted){const r=e.content.getContent();for(let s=0;s<r.length;s++)t.push(r[s])}e=e.right}return t},Bu=(n,t)=>{let e=0,r=n._start;for(n.doc??qn();r!==null;){if(r.countable&&!r.deleted){const s=r.content.getContent();for(let i=0;i<s.length;i++)t(s[i],e++,n)}r=r.right}},nN=(n,t)=>{const e=[];return Bu(n,(r,s)=>{e.push(t(r,s,n))}),e},KF=n=>{let t=n._start,e=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(e===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};e=t.content.getContent(),r=0,t=t.right}const s=e[r++];return e.length<=r&&(e=null),{done:!1,value:s}}}},rN=(n,t)=>{n.doc??qn();const e=jg(n,t);let r=n._start;for(e!==null&&(r=e.p,t-=e.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},Oh=(n,t,e,r)=>{let s=e;const i=n.doc,o=i.clientID,l=i.store,a=e===null?t._start:e.right;let u=[];const d=()=>{u.length>0&&(s=new Wt(ht(o,dn(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new Ll(u)),s.integrate(n,0),u=[])};r.forEach(h=>{if(h===null)u.push(h);else switch(h.constructor){case Number:case Object:case Boolean:case Array:case String:u.push(h);break;default:switch(d(),h.constructor){case Uint8Array:case ArrayBuffer:s=new Wt(ht(o,dn(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new fd(new Uint8Array(h))),s.integrate(n,0);break;case ei:s=new Wt(ht(o,dn(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new hd(h)),s.integrate(n,0);break;default:if(h instanceof Rn)s=new Wt(ht(o,dn(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new ii(h)),s.integrate(n,0);else throw new Error("Unexpected content type in insert operation")}}}),d()},sN=()=>$s("Length exceeded!"),iN=(n,t,e,r)=>{if(e>t._length)throw sN();if(e===0)return t._searchMarker&&Pu(t._searchMarker,e,r.length),Oh(n,t,null,r);const s=e,i=jg(t,e);let o=t._start;for(i!==null&&(o=i.p,e-=i.index,e===0&&(o=o.prev,e+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(e<=o.length){e<o.length&&Ar(n,ht(o.id.client,o.id.clock+e));break}e-=o.length}return t._searchMarker&&Pu(t._searchMarker,s,r.length),Oh(n,t,o,r)},WF=(n,t,e)=>{let s=(t._searchMarker||[]).reduce((i,o)=>o.index>i.index?o:i,{index:0,p:t._start}).p;if(s)for(;s.right;)s=s.right;return Oh(n,t,s,e)},oN=(n,t,e,r)=>{if(r===0)return;const s=e,i=r,o=jg(t,e);let l=t._start;for(o!==null&&(l=o.p,e-=o.index);l!==null&&e>0;l=l.right)!l.deleted&&l.countable&&(e<l.length&&Ar(n,ht(l.id.client,l.id.clock+e)),e-=l.length);for(;r>0&&l!==null;)l.deleted||(r<l.length&&Ar(n,ht(l.id.client,l.id.clock+r)),l.delete(n),r-=l.length),l=l.right;if(r>0)throw sN();t._searchMarker&&Pu(t._searchMarker,s,-i+r)},Rh=(n,t,e)=>{const r=t._map.get(e);r!==void 0&&r.delete(n)},Ob=(n,t,e,r)=>{const s=t._map.get(e)||null,i=n.doc,o=i.clientID;let l;if(r==null)l=new Ll([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:l=new Ll([r]);break;case Uint8Array:l=new fd(r);break;case ei:l=new hd(r);break;default:if(r instanceof Rn)l=new ii(r);else throw new Error("Unexpected content type")}new Wt(ht(o,dn(i.store,o)),s,s&&s.lastId,null,null,t,e,l).integrate(n,0)},Rb=(n,t)=>{n.doc??qn();const e=n._map.get(t);return e!==void 0&&!e.deleted?e.content.getContent()[e.length-1]:void 0},lN=n=>{const t={};return n.doc??qn(),n._map.forEach((e,r)=>{e.deleted||(t[r]=e.content.getContent()[e.length-1])}),t},aN=(n,t)=>{n.doc??qn();const e=n._map.get(t);return e!==void 0&&!e.deleted},HF=(n,t)=>{const e={};return n._map.forEach((r,s)=>{let i=r;for(;i!==null&&(!t.sv.has(i.id.client)||i.id.clock>=(t.sv.get(i.id.client)||0));)i=i.left;i!==null&&_a(i,t)&&(e[s]=i.content.getContent()[i.length-1])}),e},vf=n=>(n.doc??qn(),tF(n._map.entries(),t=>!t[1].deleted));class YF extends Rg{}class Ha extends Rn{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const e=new Ha;return e.push(t),e}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Ha}clone(){const t=new Ha;return t.insert(0,this.toArray().map(e=>e instanceof Rn?e.clone():e)),t}get length(){return this.doc??qn(),this._length}_callObserver(t,e){super._callObserver(t,e),Pg(this,t,new YF(this,t))}insert(t,e){this.doc!==null?Kt(this.doc,r=>{iN(r,this,t,e)}):this._prelimContent.splice(t,0,...e)}push(t){this.doc!==null?Kt(this.doc,e=>{WF(e,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,e=1){this.doc!==null?Kt(this.doc,r=>{oN(r,this,t,e)}):this._prelimContent.splice(t,e)}get(t){return rN(this,t)}toArray(){return tN(this)}slice(t=0,e=this.length){return eN(this,t,e)}toJSON(){return this.map(t=>t instanceof Rn?t.toJSON():t)}map(t){return nN(this,t)}forEach(t){Bu(this,t)}[Symbol.iterator](){return KF(this)}_write(t){t.writeTypeRef(h9)}}const GF=n=>new Ha;class _0 extends Rg{constructor(t,e,r){super(t,e),this.keysChanged=r}}class er extends Rn{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,e){super._integrate(t,e),this._prelimContent.forEach((r,s)=>{this.set(s,r)}),this._prelimContent=null}_copy(){return new er}clone(){const t=new er;return this.forEach((e,r)=>{t.set(r,e instanceof Rn?e.clone():e)}),t}_callObserver(t,e){Pg(this,t,new _0(this,t,e))}toJSON(){this.doc??qn();const t={};return this._map.forEach((e,r)=>{if(!e.deleted){const s=e.content.getContent()[e.length-1];t[r]=s instanceof Rn?s.toJSON():s}}),t}get size(){return[...vf(this)].length}keys(){return rA(vf(this),t=>t[0])}values(){return rA(vf(this),t=>t[1].content.getContent()[t[1].length-1])}entries(){return rA(vf(this),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this.doc??qn(),this._map.forEach((e,r)=>{e.deleted||t(e.content.getContent()[e.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?Kt(this.doc,e=>{Rh(e,this,t)}):this._prelimContent.delete(t)}set(t,e){return this.doc!==null?Kt(this.doc,r=>{Ob(r,this,t,e)}):this._prelimContent.set(t,e),e}get(t){return Rb(this,t)}has(t){return aN(this,t)}clear(){this.doc!==null?Kt(this.doc,t=>{this.forEach(function(e,r,s){Rh(t,s,r)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(g9)}}const ZF=n=>new er,mo=(n,t)=>n===t||typeof n=="object"&&typeof t=="object"&&n&&t&&J5(n,t);class N0{constructor(t,e,r,s){this.left=t,this.right=e,this.index=r,this.currentAttributes=s}forward(){switch(this.right===null&&Or(),this.right.content.constructor){case Tn:this.right.deleted||xc(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const aS=(n,t,e)=>{for(;t.right!==null&&e>0;){switch(t.right.content.constructor){case Tn:t.right.deleted||xc(t.currentAttributes,t.right.content);break;default:t.right.deleted||(e<t.right.length&&Ar(n,ht(t.right.id.client,t.right.id.clock+e)),t.index+=t.right.length,e-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},Sf=(n,t,e,r)=>{const s=new Map,i=r?jg(t,e):null;if(i){const o=new N0(i.p.left,i.p,i.index,s);return aS(n,o,e-i.index)}else{const o=new N0(null,t._start,0,s);return aS(n,o,e)}},cN=(n,t,e,r)=>{for(;e.right!==null&&(e.right.deleted===!0||e.right.content.constructor===Tn&&mo(r.get(e.right.content.key),e.right.content.value));)e.right.deleted||r.delete(e.right.content.key),e.forward();const s=n.doc,i=s.clientID;r.forEach((o,l)=>{const a=e.left,u=e.right,d=new Wt(ht(i,dn(s.store,i)),a,a&&a.lastId,u,u&&u.id,t,null,new Tn(l,o));d.integrate(n,0),e.right=d,e.forward()})},xc=(n,t)=>{const{key:e,value:r}=t;r===null?n.delete(e):n.set(e,r)},uN=(n,t)=>{for(;n.right!==null;){if(!(n.right.deleted||n.right.content.constructor===Tn&&mo(t[n.right.content.key]??null,n.right.content.value)))break;n.forward()}},dN=(n,t,e,r)=>{const s=n.doc,i=s.clientID,o=new Map;for(const l in r){const a=r[l],u=e.currentAttributes.get(l)??null;if(!mo(u,a)){o.set(l,u);const{left:d,right:h}=e;e.right=new Wt(ht(i,dn(s.store,i)),d,d&&d.lastId,h,h&&h.id,t,null,new Tn(l,a)),e.right.integrate(n,0),e.forward()}}return o},sA=(n,t,e,r,s)=>{e.currentAttributes.forEach((g,m)=>{s[m]===void 0&&(s[m]=null)});const i=n.doc,o=i.clientID;uN(e,s);const l=dN(n,t,e,s),a=r.constructor===String?new ri(r):r instanceof Rn?new ii(r):new Xl(r);let{left:u,right:d,index:h}=e;t._searchMarker&&Pu(t._searchMarker,e.index,a.getLength()),d=new Wt(ht(o,dn(i.store,o)),u,u&&u.lastId,d,d&&d.id,t,null,a),d.integrate(n,0),e.right=d,e.index=h,e.forward(),cN(n,t,e,l)},cS=(n,t,e,r,s)=>{const i=n.doc,o=i.clientID;uN(e,s);const l=dN(n,t,e,s);e:for(;e.right!==null&&(r>0||l.size>0&&(e.right.deleted||e.right.content.constructor===Tn));){if(!e.right.deleted)switch(e.right.content.constructor){case Tn:{const{key:a,value:u}=e.right.content,d=s[a];if(d!==void 0){if(mo(d,u))l.delete(a);else{if(r===0)break e;l.set(a,u)}e.right.delete(n)}else e.currentAttributes.set(a,u);break}default:r<e.right.length&&Ar(n,ht(e.right.id.client,e.right.id.clock+r)),r-=e.right.length;break}e.forward()}if(r>0){let a="";for(;r>0;r--)a+=`
|
|
16
|
-
`;e.right=new Wt(ht(o,dn(i.store,o)),e.left,e.left&&e.left.lastId,e.right,e.right&&e.right.id,t,null,new ri(a)),e.right.integrate(n,0),e.forward()}cN(n,t,e,l)},fN=(n,t,e,r,s)=>{let i=t;const o=br();for(;i&&(!i.countable||i.deleted);){if(!i.deleted&&i.content.constructor===Tn){const u=i.content;o.set(u.key,u)}i=i.right}let l=0,a=!1;for(;t!==i;){if(e===t&&(a=!0),!t.deleted){const u=t.content;switch(u.constructor){case Tn:{const{key:d,value:h}=u,g=r.get(d)??null;(o.get(d)!==u||g===h)&&(t.delete(n),l++,!a&&(s.get(d)??null)===h&&g!==h&&(g===null?s.delete(d):s.set(d,g))),!a&&!t.deleted&&xc(s,u);break}}}t=t.right}return l},JF=(n,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const e=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Tn){const r=t.content.key;e.has(r)?t.delete(n):e.add(r)}t=t.left}},VF=n=>{let t=0;return Kt(n.doc,e=>{let r=n._start,s=n._start,i=br();const o=y0(i);for(;s;){if(s.deleted===!1)switch(s.content.constructor){case Tn:xc(o,s.content);break;default:t+=fN(e,r,s,i,o),i=y0(o),r=s;break}s=s.right}}),t},QF=n=>{const t=new Set,e=n.doc;for(const[r,s]of n.afterState.entries()){const i=n.beforeState.get(r)||0;s!==i&&J_(n,e.store.clients.get(r),i,s,o=>{!o.deleted&&o.content.constructor===Tn&&o.constructor!==Jr&&t.add(o.parent)})}Kt(e,r=>{nc(n,n.deleteSet,s=>{if(s instanceof Jr||!s.parent._hasFormatting||t.has(s.parent))return;const i=s.parent;s.content.constructor===Tn?t.add(i):JF(r,s)});for(const s of t)VF(s)})},uS=(n,t,e)=>{const r=e,s=y0(t.currentAttributes),i=t.right;for(;e>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case ii:case Xl:case ri:e<t.right.length&&Ar(n,ht(t.right.id.client,t.right.id.clock+e)),e-=t.right.length,t.right.delete(n);break}t.forward()}i&&fN(n,i,t.right,s,t.currentAttributes);const o=(t.left||t.right).parent;return o._searchMarker&&Pu(o._searchMarker,t.index,-r+e),t};class hN extends Rg{constructor(t,e,r){super(t,e),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(s=>{s===null?this.childListChanged=!0:this.keysChanged.add(s)})}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc,e=[];Kt(t,r=>{const s=new Map,i=new Map;let o=this.target._start,l=null;const a={};let u="",d=0,h=0;const g=()=>{if(l!==null){let m=null;switch(l){case"delete":h>0&&(m={delete:h}),h=0;break;case"insert":(typeof u=="object"||u.length>0)&&(m={insert:u},s.size>0&&(m.attributes={},s.forEach((A,y)=>{A!==null&&(m.attributes[y]=A)}))),u="";break;case"retain":d>0&&(m={retain:d},Z5(a)||(m.attributes=W5({},a))),d=0;break}m&&e.push(m),l=null}};for(;o!==null;){switch(o.content.constructor){case ii:case Xl:this.adds(o)?this.deletes(o)||(g(),l="insert",u=o.content.getContent()[0],g()):this.deletes(o)?(l!=="delete"&&(g(),l="delete"),h+=1):o.deleted||(l!=="retain"&&(g(),l="retain"),d+=1);break;case ri:this.adds(o)?this.deletes(o)||(l!=="insert"&&(g(),l="insert"),u+=o.content.str):this.deletes(o)?(l!=="delete"&&(g(),l="delete"),h+=o.length):o.deleted||(l!=="retain"&&(g(),l="retain"),d+=o.length);break;case Tn:{const{key:m,value:A}=o.content;if(this.adds(o)){if(!this.deletes(o)){const y=s.get(m)??null;mo(y,A)?A!==null&&o.delete(r):(l==="retain"&&g(),mo(A,i.get(m)??null)?delete a[m]:a[m]=A)}}else if(this.deletes(o)){i.set(m,A);const y=s.get(m)??null;mo(y,A)||(l==="retain"&&g(),a[m]=y)}else if(!o.deleted){i.set(m,A);const y=a[m];y!==void 0&&(mo(y,A)?y!==null&&o.delete(r):(l==="retain"&&g(),A===null?delete a[m]:a[m]=A))}o.deleted||(l==="insert"&&g(),xc(s,o.content));break}}o=o.right}for(g();e.length>0;){const m=e[e.length-1];if(m.retain!==void 0&&m.attributes===void 0)e.pop();else break}}),this._delta=e}return this._delta}}class sc extends Rn{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??qn(),this._length}_integrate(t,e){super._integrate(t,e);try{this._pending.forEach(r=>r())}catch(r){console.error(r)}this._pending=null}_copy(){return new sc}clone(){const t=new sc;return t.applyDelta(this.toDelta()),t}_callObserver(t,e){super._callObserver(t,e);const r=new hN(this,t,e);Pg(this,t,r),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){this.doc??qn();let t="",e=this._start;for(;e!==null;)!e.deleted&&e.countable&&e.content.constructor===ri&&(t+=e.content.str),e=e.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:e=!0}={}){this.doc!==null?Kt(this.doc,r=>{const s=new N0(null,this._start,0,new Map);for(let i=0;i<t.length;i++){const o=t[i];if(o.insert!==void 0){const l=!e&&typeof o.insert=="string"&&i===t.length-1&&s.right===null&&o.insert.slice(-1)===`
|
|
17
|
-
`?o.insert.slice(0,-1):o.insert;(typeof l!="string"||l.length>0)&&sA(r,this,s,l,o.attributes||{})}else o.retain!==void 0?cS(r,this,s,o.retain,o.attributes||{}):o.delete!==void 0&&uS(r,s,o.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,e,r){this.doc??qn();const s=[],i=new Map,o=this.doc;let l="",a=this._start;function u(){if(l.length>0){const h={};let g=!1;i.forEach((A,y)=>{g=!0,h[y]=A});const m={insert:l};g&&(m.attributes=h),s.push(m),l=""}}const d=()=>{for(;a!==null;){if(_a(a,t)||e!==void 0&&_a(a,e))switch(a.content.constructor){case ri:{const h=i.get("ychange");t!==void 0&&!_a(a,t)?(h===void 0||h.user!==a.id.client||h.type!=="removed")&&(u(),i.set("ychange",r?r("removed",a.id):{type:"removed"})):e!==void 0&&!_a(a,e)?(h===void 0||h.user!==a.id.client||h.type!=="added")&&(u(),i.set("ychange",r?r("added",a.id):{type:"added"})):h!==void 0&&(u(),i.delete("ychange")),l+=a.content.str;break}case ii:case Xl:{u();const h={insert:a.content.getContent()[0]};if(i.size>0){const g={};h.attributes=g,i.forEach((m,A)=>{g[A]=m})}s.push(h);break}case Tn:_a(a,t)&&(u(),xc(i,a.content));break}a=a.right}u()};return t||e?Kt(o,h=>{t&&k0(h,t),e&&k0(h,e),d()},"cleanup"):d(),s}insert(t,e,r){if(e.length<=0)return;const s=this.doc;s!==null?Kt(s,i=>{const o=Sf(i,this,t,!r);r||(r={},o.currentAttributes.forEach((l,a)=>{r[a]=l})),sA(i,this,o,e,r)}):this._pending.push(()=>this.insert(t,e,r))}insertEmbed(t,e,r){const s=this.doc;s!==null?Kt(s,i=>{const o=Sf(i,this,t,!r);sA(i,this,o,e,r||{})}):this._pending.push(()=>this.insertEmbed(t,e,r||{}))}delete(t,e){if(e===0)return;const r=this.doc;r!==null?Kt(r,s=>{uS(s,Sf(s,this,t,!0),e)}):this._pending.push(()=>this.delete(t,e))}format(t,e,r){if(e===0)return;const s=this.doc;s!==null?Kt(s,i=>{const o=Sf(i,this,t,!1);o.right!==null&&cS(i,this,o,e,r)}):this._pending.push(()=>this.format(t,e,r))}removeAttribute(t){this.doc!==null?Kt(this.doc,e=>{Rh(e,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,e){this.doc!==null?Kt(this.doc,r=>{Ob(r,this,t,e)}):this._pending.push(()=>this.setAttribute(t,e))}getAttribute(t){return Rb(this,t)}getAttributes(){return lN(this)}_write(t){t.writeTypeRef(p9)}}const XF=n=>new sc;class iA{constructor(t,e=()=>!0){this._filter=e,this._root=t,this._currentNode=t._start,this._firstCall=!0,t.doc??qn()}[Symbol.iterator](){return this}next(){let t=this._currentNode,e=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(e)))do if(e=t.content.type,!t.deleted&&(e.constructor===as||e.constructor===Il)&&e._start!==null)t=e._start;else for(;t!==null;){const r=t.next;if(r!==null){t=r;break}else t.parent===this._root?t=null:t=t.parent._item}while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class Il extends Rn{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Il}clone(){const t=new Il;return t.insert(0,this.toArray().map(e=>e instanceof Rn?e.clone():e)),t}get length(){return this.doc??qn(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new iA(this,t)}querySelector(t){t=t.toUpperCase();const r=new iA(this,s=>s.nodeName&&s.nodeName.toUpperCase()===t).next();return r.done?null:r.value}querySelectorAll(t){return t=t.toUpperCase(),Ui(new iA(this,e=>e.nodeName&&e.nodeName.toUpperCase()===t))}_callObserver(t,e){Pg(this,t,new gN(this,e,t))}toString(){return nN(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,e={},r){const s=t.createDocumentFragment();return r!==void 0&&r._createAssociation(s,this),Bu(this,i=>{s.insertBefore(i.toDOM(t,e,r),null)}),s}insert(t,e){this.doc!==null?Kt(this.doc,r=>{iN(r,this,t,e)}):this._prelimContent.splice(t,0,...e)}insertAfter(t,e){if(this.doc!==null)Kt(this.doc,r=>{const s=t&&t instanceof Rn?t._item:t;Oh(r,this,s,e)});else{const r=this._prelimContent,s=t===null?0:r.findIndex(i=>i===t)+1;if(s===0&&t!==null)throw $s("Reference item not found");r.splice(s,0,...e)}}delete(t,e=1){this.doc!==null?Kt(this.doc,r=>{oN(r,this,t,e)}):this._prelimContent.splice(t,e)}toArray(){return tN(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return rN(this,t)}slice(t=0,e=this.length){return eN(this,t,e)}forEach(t){Bu(this,t)}_write(t){t.writeTypeRef(A9)}}const qF=n=>new Il;class as extends Il{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,e){super._integrate(t,e),this._prelimAttrs.forEach((r,s)=>{this.setAttribute(s,r)}),this._prelimAttrs=null}_copy(){return new as(this.nodeName)}clone(){const t=new as(this.nodeName),e=this.getAttributes();return Y5(e,(r,s)=>{t.setAttribute(s,r)}),t.insert(0,this.toArray().map(r=>r instanceof Rn?r.clone():r)),t}toString(){const t=this.getAttributes(),e=[],r=[];for(const l in t)r.push(l);r.sort();const s=r.length;for(let l=0;l<s;l++){const a=r[l];e.push(a+'="'+t[a]+'"')}const i=this.nodeName.toLocaleLowerCase(),o=e.length>0?" "+e.join(" "):"";return`<${i}${o}>${super.toString()}</${i}>`}removeAttribute(t){this.doc!==null?Kt(this.doc,e=>{Rh(e,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,e){this.doc!==null?Kt(this.doc,r=>{Ob(r,this,t,e)}):this._prelimAttrs.set(t,e)}getAttribute(t){return Rb(this,t)}hasAttribute(t){return aN(this,t)}getAttributes(t){return t?HF(this,t):lN(this)}toDOM(t=document,e={},r){const s=t.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const l=i[o];typeof l=="string"&&s.setAttribute(o,l)}return Bu(this,o=>{s.appendChild(o.toDOM(t,e,r))}),r!==void 0&&r._createAssociation(s,this),s}_write(t){t.writeTypeRef(m9),t.writeKey(this.nodeName)}}const $F=n=>new as(n.readKey());class gN extends Rg{constructor(t,e,r){super(t,r),this.childListChanged=!1,this.attributesChanged=new Set,e.forEach(s=>{s===null?this.childListChanged=!0:this.attributesChanged.add(s)})}}class jh extends er{constructor(t){super(),this.hookName=t}_copy(){return new jh(this.hookName)}clone(){const t=new jh(this.hookName);return this.forEach((e,r)=>{t.set(r,e)}),t}toDOM(t=document,e={},r){const s=e[this.hookName];let i;return s!==void 0?i=s.createDom(this):i=document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),r!==void 0&&r._createAssociation(i,this),i}_write(t){t.writeTypeRef(y9),t.writeKey(this.hookName)}}const e9=n=>new jh(n.readKey());class ni extends sc{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new ni}clone(){const t=new ni;return t.applyDelta(this.toDelta()),t}toDOM(t=document,e,r){const s=t.createTextNode(this.toString());return r!==void 0&&r._createAssociation(s,this),s}toString(){return this.toDelta().map(t=>{const e=[];for(const s in t.attributes){const i=[];for(const o in t.attributes[s])i.push({key:o,value:t.attributes[s][o]});i.sort((o,l)=>o.key<l.key?-1:1),e.push({nodeName:s,attrs:i})}e.sort((s,i)=>s.nodeName<i.nodeName?-1:1);let r="";for(let s=0;s<e.length;s++){const i=e[s];r+=`<${i.nodeName}`;for(let o=0;o<i.attrs.length;o++){const l=i.attrs[o];r+=` ${l.key}="${l.value}"`}r+=">"}r+=t.insert;for(let s=e.length-1;s>=0;s--)r+=`</${e[s].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(b9)}}const t9=n=>new ni;class jb{constructor(t,e){this.id=t,this.length=e}get deleted(){throw bs()}mergeWith(t){return!1}write(t,e,r){throw bs()}integrate(t,e){throw bs()}}const n9=0;class Jr extends jb{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,e){e>0&&(this.id.clock+=e,this.length-=e),Z_(t.doc.store,this)}write(t,e){t.writeInfo(n9),t.writeLen(this.length-e)}getMissing(t,e){return null}}class fd{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new fd(this.content)}splice(t){throw bs()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeBuf(this.content)}getRef(){return 3}}const r9=n=>new fd(n.readBuf());class Fu{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new Fu(this.len)}splice(t){const e=new Fu(this.len-t);return this.len=t,e}mergeWith(t){return this.len+=t.len,!0}integrate(t,e){ju(t.deleteSet,e.id.client,e.id.clock,this.len),e.markDeleted()}delete(t){}gc(t){}write(t,e){t.writeLen(this.len-e)}getRef(){return 1}}const s9=n=>new Fu(n.readLen()),pN=(n,t)=>new ei({guid:n,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class hd{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const e={};this.opts=e,t.gc||(e.gc=!1),t.autoLoad&&(e.autoLoad=!0),t.meta!==null&&(e.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new hd(pN(this.doc.guid,this.opts))}splice(t){throw bs()}mergeWith(t){return!1}integrate(t,e){this.doc._item=e,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,e){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}const i9=n=>new hd(pN(n.readString(),n.readAny()));class Xl{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new Xl(this.embed)}splice(t){throw bs()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeJSON(this.embed)}getRef(){return 5}}const o9=n=>new Xl(n.readJSON());class Tn{constructor(t,e){this.key=t,this.value=e}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new Tn(this.key,this.value)}splice(t){throw bs()}mergeWith(t){return!1}integrate(t,e){const r=e.parent;r._searchMarker=null,r._hasFormatting=!0}delete(t){}gc(t){}write(t,e){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}const l9=n=>new Tn(n.readKey(),n.readJSON());class Ph{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Ph(this.arr)}splice(t){const e=new Ph(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){const r=this.arr.length;t.writeLen(r-e);for(let s=e;s<r;s++){const i=this.arr[s];t.writeString(i===void 0?"undefined":JSON.stringify(i))}}getRef(){return 2}}const a9=n=>{const t=n.readLen(),e=[];for(let r=0;r<t;r++){const s=n.readString();s==="undefined"?e.push(void 0):e.push(JSON.parse(s))}return new Ph(e)},c9=_h("node_env")==="development";class Ll{constructor(t){this.arr=t,c9&&c_(t)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Ll(this.arr)}splice(t){const e=new Ll(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){const r=this.arr.length;t.writeLen(r-e);for(let s=e;s<r;s++){const i=this.arr[s];t.writeAny(i)}}getRef(){return 8}}const u9=n=>{const t=n.readLen(),e=[];for(let r=0;r<t;r++)e.push(n.readAny());return new Ll(e)};class ri{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new ri(this.str)}splice(t){const e=new ri(this.str.slice(t));this.str=this.str.slice(0,t);const r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+"�",e.str="�"+e.str.slice(1)),e}mergeWith(t){return this.str+=t.str,!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeString(e===0?this.str:this.str.slice(e))}getRef(){return 4}}const d9=n=>new ri(n.readString()),f9=[GF,ZF,XF,$F,qF,e9,t9],h9=0,g9=1,p9=2,m9=3,A9=4,y9=5,b9=6;class ii{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new ii(this.type._copy())}splice(t){throw bs()}mergeWith(t){return!1}integrate(t,e){this.type._integrate(t.doc,e)}delete(t){let e=this.type._start;for(;e!==null;)e.deleted?e.id.clock<(t.beforeState.get(e.id.client)||0)&&t._mergeStructs.push(e):e.delete(t),e=e.right;this.type._map.forEach(r=>{r.deleted?r.id.clock<(t.beforeState.get(r.id.client)||0)&&t._mergeStructs.push(r):r.delete(t)}),t.changed.delete(this.type)}gc(t){let e=this.type._start;for(;e!==null;)e.gc(t,!0),e=e.right;this.type._start=null,this.type._map.forEach(r=>{for(;r!==null;)r.gc(t,!0),r=r.left}),this.type._map=new Map}write(t,e){this.type._write(t)}getRef(){return 7}}const w9=n=>new ii(f9[n.readTypeRef()](n)),M0=(n,t)=>{let e=t,r=0,s;do r>0&&(e=ht(e.client,e.clock+r)),s=Wa(n,e),r=e.clock-s.id.clock,e=s.redone;while(e!==null&&s instanceof Wt);return{item:s,diff:r}},Pb=(n,t)=>{for(;n!==null&&n.keep!==t;)n.keep=t,n=n.parent._item},Bh=(n,t,e)=>{const{client:r,clock:s}=t.id,i=new Wt(ht(r,s+e),t,ht(r,s+e-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(e));return t.deleted&&i.markDeleted(),t.keep&&(i.keep=!0),t.redone!==null&&(i.redone=ht(t.redone.client,t.redone.clock+e)),t.right=i,i.right!==null&&(i.right.left=i),n._mergeStructs.push(i),i.parentSub!==null&&i.right===null&&i.parent._map.set(i.parentSub,i),t.length=e,i},dS=(n,t)=>db(n,e=>ud(e.deletions,t)),mN=(n,t,e,r,s,i)=>{const o=n.doc,l=o.store,a=o.clientID,u=t.redone;if(u!==null)return Ar(n,u);let d=t.parent._item,h=null,g;if(d!==null&&d.deleted===!0){if(d.redone===null&&(!e.has(d)||mN(n,d,e,r,s,i)===null))return null;for(;d.redone!==null;)d=Ar(n,d.redone)}const m=d===null?t.parent:d.content.type;if(t.parentSub===null){for(h=t.left,g=t;h!==null;){let v=h;for(;v!==null&&v.parent._item!==d;)v=v.redone===null?null:Ar(n,v.redone);if(v!==null&&v.parent._item===d){h=v;break}h=h.left}for(;g!==null;){let v=g;for(;v!==null&&v.parent._item!==d;)v=v.redone===null?null:Ar(n,v.redone);if(v!==null&&v.parent._item===d){g=v;break}g=g.right}}else if(g=null,t.right&&!s){for(h=t;h!==null&&h.right!==null&&(h.right.redone||ud(r,h.right.id)||dS(i.undoStack,h.right.id)||dS(i.redoStack,h.right.id));)for(h=h.right;h.redone;)h=Ar(n,h.redone);if(h&&h.right!==null)return null}else h=m._map.get(t.parentSub)||null;const A=dn(l,a),y=ht(a,A),b=new Wt(y,h,h&&h.lastId,g,g&&g.id,m,t.parentSub,t.content.copy());return t.redone=y,Pb(b,!0),b.integrate(n,0),b};class Wt extends jb{constructor(t,e,r,s,i,o,l,a){super(t,a.getLength()),this.origin=r,this.left=e,this.right=s,this.rightOrigin=i,this.parent=o,this.parentSub=l,this.redone=null,this.content=a,this.info=this.content.isCountable()?z1:0}set marker(t){(this.info&qm)>0!==t&&(this.info^=qm)}get marker(){return(this.info&qm)>0}get keep(){return(this.info&F1)>0}set keep(t){this.keep!==t&&(this.info^=F1)}get countable(){return(this.info&z1)>0}get deleted(){return(this.info&Xm)>0}set deleted(t){this.deleted!==t&&(this.info^=Xm)}markDeleted(){this.info|=Xm}getMissing(t,e){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=dn(e,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=dn(e,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Ka&&this.id.client!==this.parent.client&&this.parent.clock>=dn(e,this.parent.client))return this.parent.client;if(this.origin&&(this.left=nS(t,e,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Ar(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Jr||this.right&&this.right.constructor===Jr)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===Wt?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===Wt&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Ka){const r=Wa(e,this.parent);r.constructor===Jr?this.parent=null:this.parent=r.content.type}return null}integrate(t,e){if(e>0&&(this.id.clock+=e,this.left=nS(t,t.doc.store,ht(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(e),this.length-=e),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let r=this.left,s;if(r!==null)s=r.right;else if(this.parentSub!==null)for(s=this.parent._map.get(this.parentSub)||null;s!==null&&s.left!==null;)s=s.left;else s=this.parent._start;const i=new Set,o=new Set;for(;s!==null&&s!==this.right;){if(o.add(s),i.add(s),Oa(this.origin,s.origin)){if(s.id.client<this.id.client)r=s,i.clear();else if(Oa(this.rightOrigin,s.rightOrigin))break}else if(s.origin!==null&&o.has(Wa(t.doc.store,s.origin)))i.has(Wa(t.doc.store,s.origin))||(r=s,i.clear());else break;s=s.right}this.left=r}if(this.left!==null){const r=this.left.right;this.right=r,this.left.right=this}else{let r;if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start,this.parent._start=this;this.right=r}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(t)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),Z_(t.doc.store,this),this.content.integrate(t,this),sS(t,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(t)}else new Jr(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;t!==null&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;t!==null&&t.deleted;)t=t.left;return t}get lastId(){return this.length===1?this.id:ht(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&Oa(t.origin,this.lastId)&&this.right===t&&Oa(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&this.redone===null&&t.redone===null&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){const e=this.parent._searchMarker;return e&&e.forEach(r=>{r.p===t&&(r.p=this,!this.deleted&&this.countable&&(r.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const e=this.parent;this.countable&&this.parentSub===null&&(e._length-=this.length),this.markDeleted(),ju(t.deleteSet,this.id.client,this.id.clock,this.length),sS(t,e,this.parentSub),this.content.delete(t)}}gc(t,e){if(!this.deleted)throw Or();this.content.gc(t),e?TF(t,this,new Jr(this.id,this.length)):this.content=new Fu(this.length)}write(t,e){const r=e>0?ht(this.id.client,this.id.clock+e-1):this.origin,s=this.rightOrigin,i=this.parentSub,o=this.content.getRef()&Eg|(r===null?0:Nr)|(s===null?0:Oi)|(i===null?0:Mu);if(t.writeInfo(o),r!==null&&t.writeLeftID(r),s!==null&&t.writeRightID(s),r===null&&s===null){const l=this.parent;if(l._item!==void 0){const a=l._item;if(a===null){const u=Y_(l);t.writeParentInfo(!0),t.writeString(u)}else t.writeParentInfo(!1),t.writeLeftID(a.id)}else l.constructor===String?(t.writeParentInfo(!0),t.writeString(l)):l.constructor===Ka?(t.writeParentInfo(!1),t.writeLeftID(l)):Or();i!==null&&t.writeString(i)}this.content.write(t,e)}}const AN=(n,t)=>C9[t&Eg](n),C9=[()=>{Or()},s9,a9,r9,d9,o9,l9,w9,u9,i9,()=>{Or()}],x9=10;class Vr extends jb{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,e){Or()}write(t,e){t.writeInfo(x9),Ge(t.restEncoder,this.length-e)}getMissing(t,e){return null}}const yN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},bN="__ $YJS$ __";yN[bN]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");yN[bN]=!0;function v9(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function oA(n,t){const e=[];let r=n.__first;for(;r!==null;){const s=t===null?Te(r):t.get(r);s==null&&v9(174),e.push(r),r=s.__next}return e}function un(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function S9(n,t,e){const r=n.length,s=t.length;let i=0,o=0;for(;i<r&&i<s&&n[i]===t[i]&&i<e;)i++;for(;o+i<r&&o+i<s&&n[r-o-1]===t[s-o-1];)o++;for(;o+i<r&&o+i<s&&n[i]===t[i];)i++;return{index:i,insert:t.slice(i,s-o),remove:r-i-o}}let fo=class{constructor(t,e,r){U(this,"_xmlElem");U(this,"_key");U(this,"_parent");U(this,"_type");this._key="",this._xmlElem=t,this._parent=e,this._type=r}getPrevNode(t){if(t===null)return null;const e=t.get(this._key);return ft(e)?e:null}getNode(){const t=Te(this._key);return ft(t)?t:null}getSharedType(){return this._xmlElem}getType(){return this._type}getKey(){return this._key}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}syncPropertiesFromLexical(t,e,r){const s=this.getPrevNode(r);Ub(t,this._xmlElem,s,e)}syncPropertiesFromYjs(t,e){const r=this.getNode();r===null&&un(83),zb(t,this._xmlElem,r,e)}destroy(t){const e=t.collabNodeMap;e.get(this._key)===this&&e.delete(this._key)}};function wN(n,t,e){const r=new fo(n,t,e);return n._collabNode=r,r}let tu=class{constructor(t,e){U(this,"_map");U(this,"_key");U(this,"_parent");U(this,"_type");this._key="",this._map=t,this._parent=e,this._type="linebreak"}getNode(){const t=Te(this._key);return jt(t)?t:null}getKey(){return this._key}getSharedType(){return this._map}getType(){return this._type}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}destroy(t){const e=t.collabNodeMap;e.get(this._key)===this&&e.delete(this._key)}};function CN(n,t){const e=new tu(n,t);return n._collabNode=e,e}class or{constructor(t,e,r,s){U(this,"_map");U(this,"_key");U(this,"_parent");U(this,"_text");U(this,"_type");U(this,"_normalized");this._key="",this._map=t,this._parent=r,this._text=e,this._type=s,this._normalized=!1}getPrevNode(t){if(t===null)return null;const e=t.get(this._key);return fe(e)?e:null}getNode(){const t=Te(this._key);return fe(t)?t:null}getSharedType(){return this._map}getType(){return this._type}getKey(){return this._key}getSize(){return this._text.length+(this._normalized?0:1)}getOffset(){return this._parent.getChildOffset(this)}spliceText(t,e,r){const s=this._parent._xmlText,i=this.getOffset()+1+t;e!==0&&s.delete(i,e),r!==""&&s.insert(i,r)}syncPropertiesAndTextFromLexical(t,e,r){const s=this.getPrevNode(r),i=e.__text;if(Ub(t,this._map,s,e),s!==null){const o=s.__text;o!==i&&((function(l,a,u,d){const h=Q();let g=d.length;if(J(h)&&h.isCollapsed()){const A=h.anchor;A.key===a&&(g=A.offset)}const m=S9(u,d,g);l.spliceText(m.index,m.remove,m.insert)})(this,e.__key,o,i),this._text=i)}}syncPropertiesAndTextFromYjs(t,e){const r=this.getNode();r===null&&un(84),zb(t,this._map,r,e);const s=this._text;r.__text!==s&&r.setTextContent(s)}destroy(t){const e=t.collabNodeMap;e.get(this._key)===this&&e.delete(this._key)}}function xN(n,t,e,r){const s=new or(n,t,e,r);return n._collabNode=s,s}class Qr{constructor(t,e,r){U(this,"_key");U(this,"_children");U(this,"_xmlText");U(this,"_type");U(this,"_parent");this._key="",this._children=[],this._xmlText=t,this._type=r,this._parent=e}getPrevNode(t){if(t===null)return null;const e=t.get(this._key);return X(e)?e:null}getNode(){const t=Te(this._key);return X(t)?t:null}getSharedType(){return this._xmlText}getType(){return this._type}getKey(){return this._key}isEmpty(){return this._children.length===0}getSize(){return 1}getOffset(){const t=this._parent;return t===null&&un(90),t.getChildOffset(this)}syncPropertiesFromYjs(t,e){const r=this.getNode();r===null&&un(91),zb(t,this._xmlText,r,e)}applyChildrenYjsDelta(t,e){const r=this._children;let s=0,i=null;for(let o=0;o<e.length;o++){const l=e[o],a=l.insert,u=l.delete;if(l.retain!=null)s+=l.retain;else if(typeof u=="number"){let d=u;for(;d>0;){const{node:h,nodeIndex:g,offset:m,length:A}=sh(this,s,!1);if(h instanceof Qr||h instanceof tu||h instanceof fo)r.splice(g,1),d-=1;else{if(!(h instanceof or))break;{const y=Math.min(d,A),b=g!==0?r[g-1]:null,v=h.getSize();if(m===0&&A===v){r.splice(g,1);const C=Jc(h._text,m,y-1,"");C.length>0&&(b instanceof or?b._text+=C:this._xmlText.delete(m,C.length))}else h._text=Jc(h._text,m,y,"");d-=y}}}}else{if(a==null)throw new Error("Unexpected delta format");if(typeof a=="string"){const{node:d,offset:h}=sh(this,s,!0);d instanceof or?d._text=Jc(d._text,h,0,a):this._xmlText.delete(h,a.length),s+=a.length}else{const d=a,{node:h,nodeIndex:g,length:m}=sh(this,s,!1),A=Fh(t,d,this);if(h instanceof or&&m>0&&m<h._text.length){const y=h._text,b=y.length-m;h._text=Jc(y,b,m,""),r.splice(g+1,0,A),i=Jc(y,0,b,"")}else r.splice(g,0,A);i!==null&&A instanceof or&&(A._text=i+A._text,i=null),s+=1}}}}syncChildrenFromYjs(t){const e=this.getNode();e===null&&un(92);const r=e.__key,s=oA(e,null),i=s.length,o=this._children,l=o.length,a=t.collabNodeMap,u=new Set;let d,h,g=0,m=null;l!==i&&(h=e.getWritable());for(let A=0;A<l;A++){const y=s[g],b=o[A],v=b.getNode(),C=b._key;if(v!==null&&y===C){const S=fe(v);if(u.add(y),S)if(b._key=y,b instanceof Qr){const k=b._xmlText;b.syncPropertiesFromYjs(t,null),b.applyChildrenYjsDelta(t,k.toDelta()),b.syncChildrenFromYjs(t)}else b instanceof or?b.syncPropertiesAndTextFromYjs(t,null):b instanceof fo?b.syncPropertiesFromYjs(t,null):b instanceof tu||un(93);m=v,g++}else{if(d===void 0){d=new Set;for(let _=0;_<l;_++){const T=o[_]._key;T!==""&&d.add(T)}}if(v!==null&&y!==void 0&&!d.has(y)){const _=Ta(y);Di(_),A--,g++;continue}h=e.getWritable();const S=L9(t,b,r),k=S.__key;if(a.set(k,b),m===null){const _=h.getFirstChild();if(h.__first=k,_!==null){const T=_.getWritable();T.__prev=k,S.__next=T.__key}}else{const _=m.getWritable(),T=m.getNextSibling();if(_.__next=k,S.__prev=m.__key,T!==null){const N=T.getWritable();N.__prev=k,S.__next=N.__key}}A===l-1&&(h.__last=k),h.__size++,m=S}}for(let A=0;A<i;A++){const y=s[A];if(!u.has(y)){const b=Ta(y),v=t.collabNodeMap.get(y);v!==void 0&&v.destroy(t),Di(b)}}}syncPropertiesFromLexical(t,e,r){Ub(t,this._xmlText,this.getPrevNode(r),e)}_syncChildFromLexical(t,e,r,s,i,o){const l=this._children[e],a=Ta(r);l instanceof Qr&&X(a)?(l.syncPropertiesFromLexical(t,a,s),l.syncChildrenFromLexical(t,a,s,i,o)):l instanceof or&&fe(a)?l.syncPropertiesAndTextFromLexical(t,a,s):l instanceof fo&&ft(a)&&l.syncPropertiesFromLexical(t,a,s)}syncChildrenFromLexical(t,e,r,s,i){const o=this.getPrevNode(r),l=o===null?[]:oA(o,r),a=oA(e,null),u=l.length-1,d=a.length-1,h=t.collabNodeMap;let g,m,A=0,y=0;for(;A<=u&&y<=d;){const C=l[A],S=a[y];if(C===S)this._syncChildFromLexical(t,y,S,r,s,i),A++,y++;else{g===void 0&&(g=new Set(l)),m===void 0&&(m=new Set(a));const k=m.has(C),_=g.has(S);if(k){const T=fS(t,Ta(S),this);h.set(S,T),_?(this.splice(t,y,1,T),A++,y++):(this.splice(t,y,0,T),y++)}else this.splice(t,y,1),A++}}const b=A>u,v=y>d;if(b&&!v)for(;y<=d;++y){const C=a[y],S=fS(t,Ta(C),this);this.append(S),h.set(C,S)}else if(v&&!b)for(let C=this._children.length-1;C>=y;C--)this.splice(t,C,1)}append(t){const e=this._xmlText,r=this._children,s=r[r.length-1],i=s!==void 0?s.getOffset()+s.getSize():0;if(t instanceof Qr)e.insertEmbed(i,t._xmlText);else if(t instanceof or){const o=t._map;o.parent===null&&e.insertEmbed(i,o),e.insert(i+1,t._text)}else t instanceof tu?e.insertEmbed(i,t._map):t instanceof fo&&e.insertEmbed(i,t._xmlElem);this._children.push(t)}splice(t,e,r,s){const i=this._children,o=i[e];if(o===void 0)return s===void 0&&un(94),void this.append(s);const l=o.getOffset();l===-1&&un(95);const a=this._xmlText;if(r!==0&&a.delete(l,o.getSize()),s instanceof Qr)a.insertEmbed(l,s._xmlText);else if(s instanceof or){const u=s._map;u.parent===null&&a.insertEmbed(l,u),a.insert(l+1,s._text)}else s instanceof tu?a.insertEmbed(l,s._map):s instanceof fo&&a.insertEmbed(l,s._xmlElem);if(r!==0){const u=i.slice(e,e+r);for(let d=0;d<u.length;d++)u[d].destroy(t)}s!==void 0?i.splice(e,r,s):i.splice(e,r)}getChildOffset(t){let e=0;const r=this._children;for(let s=0;s<r.length;s++){const i=r[s];if(i===t)return e;e+=i.getSize()}return-1}destroy(t){const e=t.collabNodeMap,r=this._children;for(let s=0;s<r.length;s++)r[s].destroy(t);e.get(this._key)===this&&e.delete(this._key)}}function Bb(n,t,e){const r=new Qr(n,t,e);return n._collabNode=r,r}function E9(n,t,e,r,s){e==null&&un(81);const i={clientID:e.clientID,cursors:new Map,cursorsContainer:null,doc:e,docMap:r,editor:n,excludedProperties:s||new Map,id:t,nodeProperties:new Map};return(function(o){const{editor:l,nodeProperties:a}=o;l.update(()=>{l._nodes.forEach(u=>{const d=new u.klass,h={};for(const[g,m]of Object.entries(d))vN(g,d,o)||(h[g]=m);a.set(d.__type,Object.freeze(h))})})})(i),i}function k9(n,t,e,r,s,i){r==null&&un(81);const o=Bb(r.get("root",ni),null,"root");return o._key="root",{...E9(n,e,r,s,i),collabNodeMap:new Map,root:o}}function Fb(n){return Object.hasOwn(n,"collabNodeMap")}const T9=new Set(["__key","__parent","__next","__prev","__state"]),_9=new Set(["__first","__last","__size"]),N9=new Set(["__cachedText"]),M9=new Set(["__text"]);function vN(n,t,e){if(T9.has(n)||typeof t[n]=="function")return!0;if(fe(t)){if(M9.has(n))return!0}else if(X(t)&&(_9.has(n)||Vt(t)&&N9.has(n)))return!0;const r=t.constructor,s=e.excludedProperties.get(r);return s!=null&&s.has(n)}function I9(n,t){const e=n.__type,{nodeProperties:r}=t,s=r.get(e);return s===void 0&&un(330,e),s}function fS(n,t,e){const r=t.__type;let s;if(X(t))s=Bb(new ni,e,r),s.syncPropertiesFromLexical(n,t,null),s.syncChildrenFromLexical(n,t,null,null,null);else if(fe(t))s=xN(new er,t.__text,e,r),s.syncPropertiesAndTextFromLexical(n,t,null);else if(jt(t)){const i=new er;i.set("__type","linebreak"),s=CN(i,e)}else ft(t)?(s=wN(new as,e,r),s.syncPropertiesFromLexical(n,t,null)):un(86);return s._key=t.__key,s}function SN(n){const t=Bg(n,"__type");return typeof t!="string"&&t!==void 0&&un(87),t}function Fh(n,t,e){const r=t._collabNode;if(r===void 0){const s=n.editor._nodes,i=SN(t);typeof i!="string"&&un(87),s.get(i)===void 0&&un(88,i);const o=t.parent,l=e===void 0&&o!==null?Fh(n,o):e||null;if(l instanceof Qr||un(89),t instanceof ni)return Bb(t,l,i);if(t instanceof er)return i==="linebreak"?CN(t,l):xN(t,"",l,i);if(t instanceof as)return wN(t,l,i)}return r}function L9(n,t,e){const r=t.getType(),s=n.editor._nodes.get(r);s===void 0&&un(88,r);const i=new s.klass;if(i.__parent=e,t._key=i.__key,t instanceof Qr){const o=t._xmlText;t.syncPropertiesFromYjs(n,null),t.applyChildrenYjsDelta(n,o.toDelta()),t.syncChildrenFromYjs(n)}else t instanceof or?t.syncPropertiesAndTextFromYjs(n,null):t instanceof fo&&t.syncPropertiesFromYjs(n,null);return n.collabNodeMap.set(i.__key,t),i}function zb(n,t,e,r){const s=r===null?t instanceof er?Array.from(t.keys()):t instanceof ni||t instanceof as?Object.keys(t.getAttributes()):Object.keys(t):Array.from(r);let i;for(let o=0;o<s.length;o++){const l=s[o];if(vN(l,e,n)){l==="__state"&&Fb(n)&&(i||(i=e.getWritable()),D9(t,i));continue}const a=e[l];let u=Bg(t,l);if(a!==u){if(u instanceof ei){const d=n.docMap;a instanceof ei&&d.delete(a.guid);const h=nd(),g=u.guid;h._key=g,d.set(g,u),u=h}i===void 0&&(i=e.getWritable()),i[l]=u}}}function Bg(n,t){return n instanceof er?n.get(t):n instanceof ni||n instanceof as?n.getAttribute(t):n[t]}function hS(n,t,e){n instanceof er?n.set(t,e):n.setAttribute(t,e)}function D9(n,t){const e=Bg(n,"__state");e instanceof er&&ug(t).updateFromJSON(e.toJSON())}function Ub(n,t,e,r){const s=Object.keys(I9(r,n)),i=n.editor.constructor;(function(o,l,a,u){const d=u.__state,h=Bg(l,"__state");if(!d)return;const[g,m]=d.getInternalState(),A=a&&a.__state,y=h instanceof er?h:new er;if(A===d)return;const[b,v]=A&&y.doc?A.getInternalState():[void 0,new Map];if(g)for(const[C,S]of Object.entries(g))b&&S!==b[C]&&y.set(C,S);for(const[C,S]of m)v.get(C)!==S&&y.set(C.key,C.unparse(S));h||hS(l,"__state",y)})(0,t,e,r);for(let o=0;o<s.length;o++){const l=s[o],a=e===null?void 0:e[l];let u=r[l];if(a!==u){if(u instanceof i){const d=n.docMap;let h;if(a instanceof i){const A=a._key;h=d.get(A),d.delete(A)}const g=h||new ei,m=g.guid;u._key=m,d.set(m,g),u=g,n.editor.update(()=>{r.markDirty()})}hS(t,l,u)}}}function Jc(n,t,e,r){return n.slice(0,t)+r+n.slice(t+e)}function sh(n,t,e){let r=0,s=0;const i=n._children,o=i.length;for(;s<o;s++){const l=i[s],a=r;if(r+=l.getSize(),(e?r>=t:r>t)&&l instanceof or){let u=t-a-1;return u<0&&(u=0),{length:r-t,node:l,nodeIndex:s,offset:u}}if(r>t)return{length:0,node:l,nodeIndex:s,offset:a};if(s===o-1)return{length:0,node:null,nodeIndex:s+1,offset:a+1}}return{length:0,node:null,nodeIndex:0,offset:0}}function gS(n){const t=n.anchor,e=n.focus;let r=!1;try{const s=t.getNode(),i=e.getNode();(!s.isAttached()||!i.isAttached()||fe(s)&&t.offset>s.getTextContentSize()||fe(i)&&e.offset>i.getTextContentSize())&&(r=!0)}catch{r=!0}return r}function O9(n,t){n.doc.transact(t,n)}function EN(n,t){const e=t._nodeMap.get(n);if(!e)return void Ue().selectStart();const r=e.__prev;let s=null;r&&(s=Te(r)),s===null&&e.__parent!==null&&(s=Te(e.__parent)),s!==null?s!==null&&s.isAttached()?s.selectEnd():EN(s.__key,t):Ue().selectStart()}DT("ychange",{isEqual:(n,t)=>n===t,parse:n=>n??null});function pS(n,t){const e=t.collabNodeMap.get(n.key);if(e===void 0)return null;let r=n.offset,s=e.getSharedType();if(e instanceof or){s=e._parent._xmlText;const i=e.getOffset();if(i===-1)return null;r=i+1+r}else if(e instanceof Qr&&n.type==="element"){const i=n.getNode();X(i)||un(184);let o=0,l=0,a=i.getFirstChild();for(;a!==null&&l++<r;)fe(a)?o+=a.getTextContentSize()+1:o++,a=a.getNextSibling();r=o}return E0(s,r)}function mS(n,t){const{mapping:e}=t,{offset:r}=n,s=n.getNode(),i=e.getSharedType(s);if(i===void 0)return null;if(n.type==="text"){fe(s)||un(326);let o=s.getPreviousSibling(),l=r;for(;fe(o);)l+=o.getTextContentSize(),o=o.getPreviousSibling();return E0(i,l)}if(n.type==="element"){X(s)||un(184);let o=0,l=s.getFirstChild();for(;l!==null&&o<r;){if(fe(l)){let a=l.getNextSibling();for(;fe(a);)a=a.getNextSibling()}o++,l=l.getNextSibling()}return E0(i,o)}return null}function AS(n,t){return SF(n,t.doc)}function yS(n,t){if(n==null){if(t!=null)return!0}else if(t==null||!EF(n,t))return!0;return!1}function R9(n,t){return{color:t,name:n,selection:null}}function kN(n,t){const e=n.cursorsContainer;if(e!==null){const r=t.selections,s=r.length;for(let i=0;i<s;i++)e.removeChild(r[i])}}function j9(n,t){const e=t.selection;e!==null&&kN(n,e)}function P9(n,t,e,r,s){const i=n.color,o=document.createElement("span");o.style.cssText=`position:absolute;top:0;bottom:0;right:-1px;width:1px;background-color:${i};z-index:10;`;const l=document.createElement("span");return l.textContent=n.name,l.style.cssText=`position:absolute;left:-2px;top:-16px;background-color:${i};color:#fff;line-height:12px;font-size:12px;padding:2px;font-family:Arial;font-weight:bold;white-space:nowrap;`,o.appendChild(l),{anchor:{key:t,offset:e},caret:o,color:i,focus:{key:r,offset:s},name:l,selections:[]}}function B9(n,t,e,r){const s=n.editor,i=s.getRootElement(),o=n.cursorsContainer;if(o===null||i===null)return;const l=o.offsetParent;if(l===null)return;const a=l.getBoundingClientRect(),u=t.selection;if(e===null)return u===null?void 0:(t.selection=null,void kN(n,u));t.selection=e;const d=e.caret,h=e.color,g=e.selections,m=e.anchor,A=e.focus,y=m.key,b=A.key,v=r.get(y),C=r.get(b);if(v==null||C==null)return;let S;if(v===C&&jt(v))S=[s.getElementByKey(y).getBoundingClientRect()];else{const T=R2(s,v,m.offset,C,A.offset);if(T===null)return;S=j2(s,T)}const k=g.length,_=S.length;for(let T=0;T<_;T++){const N=S[T];let M=g[T];if(M===void 0){M=document.createElement("span"),g[T]=M;const D=document.createElement("span");M.appendChild(D),o.appendChild(M)}const I=`position:absolute;top:${N.top-a.top}px;left:${N.left-a.left}px;height:${N.height}px;width:${N.width}px;pointer-events:none;z-index:5;`;M.style.cssText=I,M.firstChild.style.cssText=`${I}left:0;top:0;background-color:${h};opacity:0.3;`,T===_-1&&d.parentNode!==M&&M.appendChild(d)}for(let T=k-1;T>=_;T--){const N=g[T];o.removeChild(N),g.pop()}}function TN(n,t){const{anchorPos:e,focusPos:r}=t,s=e?AS(e,n):null,i=r?AS(r,n):null;if(s===null||i===null)return{anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0};if(Fb(n)){const[d,h]=CS(s.type,s.index),[g,m]=CS(i.type,i.index);return{anchorKey:d!==null?d.getKey():null,anchorOffset:h,focusKey:g!==null?g.getKey():null,focusOffset:m}}let[o,l]=xS(n.mapping,s),[a,u]=xS(n.mapping,i);if(a&&o&&(a!==o||u!==l)){const d=a.isBefore(o),h=d?a:o,g=d?u:l;fe(h)&&fe(h.getNextSibling())&&g===h.getTextContentSize()&&(d?(a=h.getNextSibling(),u=0):(o=h.getNextSibling(),l=0))}return{anchorKey:o!==null?o.getKey():null,anchorOffset:l,focusKey:a!==null?a.getKey():null,focusOffset:u}}function bS(n,t){const e=t.awareness.getLocalState();if(e===null)return;const{anchorKey:r,anchorOffset:s,focusKey:i,focusOffset:o}=TN(n,e);if(r!==null&&i!==null){const l=Q();if(!J(l))return;wS(l.anchor,r,s),wS(l.focus,i,o)}}function wS(n,t,e){if(n.key!==t||n.offset!==e){let r=Te(t);if(r!==null&&!X(r)&&!fe(r)){const s=r.getParentOrThrow();t=s.getKey(),e=r.getIndexWithinParent(),r=s}n.set(t,e,X(r)?"element":"text")}}function CS(n,t){const e=n._collabNode;if(e===void 0)return[null,0];if(e instanceof Qr){const{node:r,offset:s}=sh(e,t,!0);return r===null?[e,0]:[r,s]}return[null,0]}function xS(n,t){const e=t.type,r=t.index;if(e instanceof as){const s=n.get(e);if(s===void 0)return[null,0];if(!X(s))return[s,r];let i=r,o=0;const l=s.getChildren();for(;i>0&&o<l.length;){const a=l[o];if(i-=1,o+=1,fe(a))for(;o<l.length&&fe(l[o]);)o+=1}return[s,o]}{const s=n.get(e);if(s===void 0)return[null,0];let i=0,o=r;for(;o>s[i].getTextContentSize()&&i+1<s.length;)o-=s[i].getTextContentSize(),i++;const l=s[i];return[l,Math.min(o,l.getTextContentSize())]}}function F9(n,t){return t.awareness.getStates()}function Kb(n,t,e){const{getAwarenessStates:r=F9}=e??{},s=Array.from(r(n,t)),i=n.clientID,o=n.cursors,l=n.editor,a=l._editorState._nodeMap,u=new Set;for(let h=0;h<s.length;h++){const g=s[h],[m,A]=g;if(m!==0&&m!==i){u.add(m);const{name:y,color:b,focusing:v}=A;let C=null,S=o.get(m);if(S===void 0&&(S=R9(y,b),o.set(m,S)),v){const{anchorKey:k,anchorOffset:_,focusKey:T,focusOffset:N}=l.read(()=>TN(n,A));if(k!==null&&T!==null)if(C=S.selection,C===null)C=P9(S,k,_,T,N);else{const M=C.anchor,I=C.focus;M.key=k,M.offset=_,I.key=T,I.offset=N}}B9(n,S,C,a)}}const d=Array.from(o.keys());for(let h=0;h<d.length;h++){const g=d[h];if(!u.has(g)){const m=o.get(g);m!==void 0&&(j9(n,m),o.delete(g))}}}function _N(n,t,e,r){const s=t.awareness,i=s.getLocalState();if(i===null)return;const{anchorPos:o,focusPos:l,name:a,color:u,focusing:d,awarenessData:h}=i;let g=null,m=null;(r!==null&&(o===null||r.is(e))||e!==null)&&(J(r)&&(Fb(n)?(g=pS(r.anchor,n),m=pS(r.focus,n)):(g=mS(r.anchor,n),m=mS(r.focus,n))),(yS(o,g)||yS(l,m))&&s.setLocalState({...i,anchorPos:g,awarenessData:h,color:u,focusPos:m,focusing:d,name:a}))}function z9(n,t){if(t instanceof _0&&(function(s,i){const{target:o}=i;if(!o._item||o._item.parentSub!=="__state"||SN(o)!==void 0||!(o.parent instanceof ni||o.parent instanceof as||o.parent instanceof er))return!1;const l=Fh(s,o.parent).getNode();if(l){const a=ug(l.getWritable());for(const u of i.keysChanged)a.updateFromUnknown(u,o.get(u))}return!0})(n,t))return;const{target:e}=t,r=Fh(n,e);if(r instanceof Qr&&t instanceof hN){const{keysChanged:s,childListChanged:i,delta:o}=t;s.size>0&&r.syncPropertiesFromYjs(n,s),i&&(r.applyChildrenYjsDelta(n,o),r.syncChildrenFromYjs(n))}else if(r instanceof or&&t instanceof _0){const{keysChanged:s}=t;s.size>0&&r.syncPropertiesAndTextFromYjs(n,s)}else if(r instanceof fo&&t instanceof gN){const{attributesChanged:s}=t;s.size>0&&r.syncPropertiesFromYjs(n,s)}else un(82)}function U9(n,t,e,r,s=Kb){const i=n.editor,o=i._editorState;e.forEach(l=>l.delta),i.update(()=>{for(let l=0;l<e.length;l++){const a=e[l];z9(n,a)}K9(o,n,t),r||k2($T)},{onUpdate:()=>{s(n,t),i.update(()=>W9())},skipTransforms:!0,tag:r?Sl:$u})}function K9(n,t,e){const r=Q();if(J(r))if(gS(r)){const s=n._selection;J(s)&&(bS(t,e),gS(r))&&EN(r.anchor.key,n),_N(t,e,s,Q())}else bS(t,e)}function W9(){Ue().getChildrenSize()===0&&Ue().append(Me())}function H9(n,t,e,r,s,i,o,l){O9(n,()=>{r.read(()=>{if(l.has($u)||l.has(Sl))return void(o.size>0&&(function(d,h){const g=Array.from(h),m=d.collabNodeMap,A=[],y=[];for(let b=0;b<g.length;b++){const v=g[b],C=Te(v),S=m.get(v);if(S instanceof or)if(fe(C))A.push([S,C.__text]);else{const k=S.getOffset();if(k===-1)continue;const _=S._parent;S._normalized=!0,_._xmlText.delete(k,1),y.push(S)}}for(let b=0;b<y.length;b++){const v=y[b],C=v.getKey();m.delete(C);const S=v._parent._children,k=S.indexOf(v);S.splice(k,1)}for(let b=0;b<A.length;b++){const[v,C]=A[b];v._text=C}})(n,o));if(s.has("root")){const d=e._nodeMap,h=Ue(),g=n.root;g.syncPropertiesFromLexical(n,h,d),g.syncChildrenFromLexical(n,h,d,s,i)}const a=Q(),u=e._selection;_N(n,t,u,a)})})}const NN=Ee("CONNECTED_COMMAND"),Y9=Ee("TOGGLE_CONNECT_COMMAND");function G9(n,t){return new Q_(t,{trackedOrigins:new Set([n,null])})}function Z9(n,t,e,r,s){n.awareness.setLocalState({anchorPos:null,awarenessData:s,color:e,focusPos:null,focusing:r,name:t})}function vS(n,t,e,r,s){const{awareness:i}=n;let o=i.getLocalState();o===null&&(o={anchorPos:null,awarenessData:s,color:e,focusPos:null,focusing:r,name:t}),o.focusing=r,i.setLocalState(o)}function J9(n,t,e,r,s,i,o,l,a,u,d,h,g=Kb){const m=x.useRef(!1),A=x.useCallback(()=>{const{root:y}=l;o&&y.isEmpty()&&y._xmlText._length===0&&e7(n,d)},[l,n,d,o]);return x.useEffect(()=>{const{root:y}=l,b=(C,S)=>{const k=S.origin;k!==l&&U9(l,e,C,k instanceof Q_,g)};y.getSharedType().observeDeep(b);const v=n.registerUpdateListener(({prevEditorState:C,editorState:S,dirtyLeaves:k,dirtyElements:_,normalizedNodes:T,tags:N})=>{N.has(Xv)||H9(l,e,C,S,_,k,T,N)});return()=>{y.getSharedType().unobserveDeep(b),v()}},[l,e,n,a,r,t,g]),x.useEffect(()=>{const y=v=>{(function(C,S){if(C.update(()=>{const N=Ue();N.clear(),N.select()},{tag:Xv}),S.cursors==null)return;const k=S.cursors;if(k==null)return;const _=S.cursorsContainer;if(_==null)return;const T=Array.from(k.values());for(let N=0;N<T.length;N++){const M=T[N].selection;if(M&&M.selections!=null){const I=M.selections;for(let D=0;D<I.length;D++)_.removeChild(I[N])}}})(n,l),a(v),r.set(t,v),m.current=!0},b=()=>{m.current=!1};return e.on("reload",y),e.on("sync",b),()=>{e.off("reload",y),e.off("sync",b)}},[l,e,n,a,r,t]),V9(n,e,s,i,m,h,A),Q9(l,e),X9(l,u)}function V9(n,t,e,r,s,i,o){const l=x.useCallback(()=>t.connect(),[t]),a=x.useCallback(()=>{try{t.disconnect()}catch{}},[t]);x.useEffect(()=>{const u=({status:g})=>{n.dispatchCommand(NN,g==="connected")},d=g=>{g&&s.current===!1&&o&&o()};Z9(t,e,r,document.activeElement===n.getRootElement(),i||{}),t.on("status",u),t.on("sync",d);const h=l();return()=>{s.current===!1&&(h?h.then(a):a()),t.off("sync",d),t.off("status",u)}},[n,t,e,r,s,i,o,l,a]),x.useEffect(()=>n.registerCommand(Y9,u=>(u?(console.log("Collaboration connected!"),l()):(console.log("Collaboration disconnected!"),a()),!0),Ze),[l,a,n])}function Q9(n,t){x.useEffect(()=>{const{awareness:e}=t,r=()=>{Kb(n,t)};return e.on("update",r),()=>{e.off("update",r)}},[n,t])}function X9(n,t){return x.useMemo(()=>Dr.createPortal(p.jsx("div",{ref:e=>{n.cursorsContainer=e}}),t&&t.current||document.body),[n,t])}function q9(n,t,e,r,s){x.useEffect(()=>ct(n.registerCommand(Bo,()=>(vS(t,e,r,!0,s||{}),!1),Ze),n.registerCommand(pg,()=>(vS(t,e,r,!1,s||{}),!1),Ze)),[r,n,e,t,s])}function $9(n,t){x.useEffect(()=>ct(n.registerCommand(dc,()=>(t.undo(),!0),Ze),n.registerCommand(zl,()=>(t.redo(),!0),Ze)));const e=x.useCallback(()=>{t.clear()},[t]);return xT.useEffect(()=>{const r=()=>{n.dispatchCommand(La,t.undoStack.length>0),n.dispatchCommand(Ia,t.redoStack.length>0)};return t.on("stack-item-added",r),t.on("stack-item-popped",r),t.on("stack-cleared",r),()=>{t.off("stack-item-added",r),t.off("stack-item-popped",r),t.off("stack-cleared",r)}},[n,t]),e}function e7(n,t){n.update(()=>{const e=Ue();if(e.isEmpty())if(t)switch(typeof t){case"string":{const r=n.parseEditorState(t);n.setEditorState(r,{tag:qr});break}case"object":n.setEditorState(t,{tag:qr});break;case"function":n.update(()=>{Ue().isEmpty()&&t(n)},{tag:qr})}else{const r=Me();e.append(r);const{activeElement:s}=document;(Q()!==null||s!==null&&s===n.getRootElement())&&r.select()}},{tag:qr})}function t7({id:n,providerFactory:t,shouldBootstrap:e,username:r,cursorColor:s,cursorsContainerRef:i,initialEditorState:o,excludedProperties:l,awarenessData:a,syncCursorPositionsFn:u}){const d=x.useRef(!1),h=x.useRef(!1),g=n5(r,s),{yjsDocMap:m,name:A,color:y}=g,[b]=je();r7(g,b);const[v,C]=x.useState(),[S,k]=x.useState();x.useEffect(()=>{if(h.current)return;h.current=!0;const N=t(n,m);return C(N),k(m.get(n)),()=>{N.disconnect()}},[n,t,m]);const[_,T]=x.useState();return x.useEffect(()=>{if(!v||d.current)return;d.current=!0;const N=k9(b,v,n,S||m.get(n),m,l);return T(N),()=>{N.root.destroy(N)}},[b,v,n,m,S,l]),v&&_?p.jsx(n7,{awarenessData:a,binding:_,collabContext:g,color:y,cursorsContainerRef:i,editor:b,id:n,initialEditorState:o,name:A,provider:v,setDoc:k,shouldBootstrap:e,yjsDocMap:m,syncCursorPositionsFn:u}):p.jsx(p.Fragment,{})}function n7({editor:n,id:t,provider:e,yjsDocMap:r,name:s,color:i,shouldBootstrap:o,cursorsContainerRef:l,initialEditorState:a,awarenessData:u,collabContext:d,binding:h,setDoc:g,syncCursorPositionsFn:m}){const A=J9(n,t,e,r,s,i,o,h,g,l,a,u,m);return(function(y,b){$9(y,x.useMemo(()=>G9(b,b.root.getSharedType()),[b]))})(n,h),q9(n,e,s,i,u),A}const r7=(n,t)=>{x.useEffect(()=>(n.isCollabActive=!0,()=>{t._parentEditor==null&&(n.isCollabActive=!1)}),[n,t])},MN=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,s7=MN?x.useLayoutEffect:x.useEffect,Ef={tag:qr};function i7({initialConfig:n,children:t}){const e=x.useMemo(()=>{const{theme:r,namespace:s,nodes:i,onError:o,editorState:l,html:a}=n,u=q2(null,r),d=nd({editable:n.editable,html:a,namespace:s,nodes:i,onError:h=>o(h,d),theme:r});return(function(h,g){if(g!==null){if(g===void 0)h.update(()=>{const m=Ue();if(m.isEmpty()){const A=Me();m.append(A);const y=MN?document.activeElement:null;(Q()!==null||y!==null&&y===h.getRootElement())&&A.select()}},Ef);else if(g!==null)switch(typeof g){case"string":{const m=h.parseEditorState(g);h.setEditorState(m,Ef);break}case"object":h.setEditorState(g,Ef);break;case"function":h.update(()=>{Ue().isEmpty()&&g(h)},Ef)}}})(d,l),[d,u]},[]);return s7(()=>{const r=n.editable,[s]=e;s.setEditable(r===void 0||r)},[]),p.jsx(cb.Provider,{value:e,children:t})}const o7=Symbol.for("preact-signals");function Fg(){if(wo>1)return void wo--;let n,t=!1;for(;gu!==void 0;){let e=gu;for(gu=void 0,I0++;e!==void 0;){const r=e.o;if(e.o=void 0,e.f&=-3,!(8&e.f)&&IN(e))try{e.c()}catch(s){t||(n=s,t=!0)}e=r}}if(I0=0,wo--,t)throw n}function l7(n){if(wo>0)return n();wo++;try{return n()}finally{Fg()}}let _t,gu;function SS(n){const t=_t;_t=void 0;try{return n()}finally{_t=t}}let wo=0,I0=0,ih=0;function ES(n){if(_t===void 0)return;let t=n.n;return t===void 0||t.t!==_t?(t={i:0,S:n,p:_t.s,n:void 0,t:_t,e:void 0,x:void 0,r:t},_t.s!==void 0&&(_t.s.n=t),_t.s=t,n.n=t,32&_t.f&&n.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=_t.s,t.n=void 0,_t.s.n=t,_t.s=t),t):void 0}function ir(n,t){this.v=n,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function a7(n,t){return new ir(n,t)}function IN(n){for(let t=n.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function kS(n){for(let t=n.s;t!==void 0;t=t.n){const e=t.S.n;if(e!==void 0&&(t.r=e),t.S.n=t,t.i=-1,t.n===void 0){n.s=t;break}}}function LN(n){let t,e=n.s;for(;e!==void 0;){const r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):t=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}n.s=t}function wa(n,t){ir.call(this,void 0),this.x=n,this.s=void 0,this.g=ih-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function DN(n){const t=n.u;if(n.u=void 0,typeof t=="function"){wo++;const e=_t;_t=void 0;try{t()}catch(r){throw n.f&=-2,n.f|=8,Wb(n),r}finally{_t=e,Fg()}}}function Wb(n){for(let t=n.s;t!==void 0;t=t.n)t.S.U(t);n.x=void 0,n.s=void 0,DN(n)}function c7(n){if(_t!==this)throw new Error("Out-of-order effect");LN(this),_t=n,this.f&=-2,8&this.f&&Wb(this),Fg()}function Na(n,t){this.x=n,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function zu(n,t){const e=new Na(n,t);try{e.c()}catch(s){throw e.d(),s}const r=e.d.bind(e);return r[Symbol.dispose]=r,r}function Hb(n,t={}){const e={};for(const r in n){const s=t[r],i=a7(s===void 0?n[r]:s);e[r]=i}return e}ir.prototype.brand=o7,ir.prototype.h=function(){return!0},ir.prototype.S=function(n){const t=this.t;t!==n&&n.e===void 0&&(n.x=t,this.t=n,t!==void 0?t.e=n:SS(()=>{var e;(e=this.W)==null||e.call(this)}))},ir.prototype.U=function(n){if(this.t!==void 0){const t=n.e,e=n.x;t!==void 0&&(t.x=e,n.e=void 0),e!==void 0&&(e.e=t,n.x=void 0),n===this.t&&(this.t=e,e===void 0&&SS(()=>{var r;(r=this.Z)==null||r.call(this)}))}},ir.prototype.subscribe=function(n){return zu(()=>{const t=this.value,e=_t;_t=void 0;try{n(t)}finally{_t=e}},{name:"sub"})},ir.prototype.valueOf=function(){return this.value},ir.prototype.toString=function(){return this.value+""},ir.prototype.toJSON=function(){return this.value},ir.prototype.peek=function(){const n=_t;_t=void 0;try{return this.value}finally{_t=n}},Object.defineProperty(ir.prototype,"value",{get(){const n=ES(this);return n!==void 0&&(n.i=this.i),this.v},set(n){if(n!==this.v){if(I0>100)throw new Error("Cycle detected");this.v=n,this.i++,ih++,wo++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fg()}}}}),wa.prototype=new ir,wa.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ih))return!0;if(this.g=ih,this.f|=1,this.i>0&&!IN(this))return this.f&=-2,!0;const n=_t;try{kS(this),_t=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return _t=n,LN(this),this.f&=-2,!0},wa.prototype.S=function(n){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}ir.prototype.S.call(this,n)},wa.prototype.U=function(n){if(this.t!==void 0&&(ir.prototype.U.call(this,n),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},wa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let n=this.t;n!==void 0;n=n.x)n.t.N()}},Object.defineProperty(wa.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const n=ES(this);if(this.h(),n!==void 0&&(n.i=this.i),16&this.f)throw this.v;return this.v}}),Na.prototype.c=function(){const n=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{n()}},Na.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,DN(this),kS(this),wo++;const n=_t;return _t=this,c7.bind(this,n)},Na.prototype.N=function(){2&this.f||(this.f|=2,this.o=gu,gu=this)},Na.prototype.d=function(){this.f|=8,1&this.f||Wb(this)},Na.prototype.dispose=function(){this.d()};function u7(){const n=Ue(),t=Q(),e=Me();n.clear(),n.append(e),t!==null&&e.select(),J(t)&&(t.format=0)}function d7(n,t=u7){return n.registerCommand(gg,e=>(n.update(t),!0),Ze)}function f7(n){return(typeof n.nodes=="function"?n.nodes():n.nodes)||[]}function Ut(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ON(n,t){if(n&&t&&!Array.isArray(t)&&typeof n=="object"&&typeof t=="object"){const e=n,r=t;for(const s in r)e[s]=ON(e[s],r[s]);return n}return t}const Yb=0,L0=1,RN=2,lA=3,kf=4,Ca=5,aA=6,Vc=7;function cA(n){return n.id===Yb}function jN(n){return n.id===RN}function h7(n){return(function(t){return t.id===L0})(n)||Ut(305,String(n.id),String(L0)),Object.assign(n,{id:RN})}const g7=new Set;let p7=class{constructor(t,e){U(this,"builder");U(this,"configs");U(this,"_dependency");U(this,"_peerNameSet");U(this,"extension");U(this,"state");U(this,"_signal");this.builder=t,this.extension=e,this.configs=new Set,this.state={id:Yb}}mergeConfigs(){let t=this.extension.config||{};const e=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):MB;for(const r of this.configs)t=e(t,r);return t}init(t){const e=this.state;jN(e)||Ut(306,String(e.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},s={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(l,a,u){return Object.assign(l,{config:a,id:lA,registerState:u})})(e,this.mergeConfigs(),r);let o;this.state=i,this.extension.init&&(o=this.extension.init(t,i.config,r)),this.state=(function(l,a,u){return Object.assign(l,{id:kf,initResult:a,registerState:u})})(i,o,s)}build(t){const e=this.state;let r;e.id!==kf&&Ut(307,String(e.id),String(Ca)),this.extension.build&&(r=this.extension.build(t,e.config,e.registerState));const s={...e.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,o,l){return Object.assign(i,{id:Ca,output:o,registerState:l})})(e,r,s)}register(t,e){this._signal=e;const r=this.state;r.id!==Ca&&Ut(308,String(r.id),String(Ca));const s=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:aA})})(r),()=>{const i=this.state;i.id!==Vc&&Ut(309,String(r.id),String(Vc)),this.state=(function(o){return Object.assign(o,{id:Ca})})(i),s&&s()}}afterRegistration(t){const e=this.state;let r;return e.id!==aA&&Ut(310,String(e.id),String(aA)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,e.config,e.registerState)),this.state=(function(s){return Object.assign(s,{id:Vc})})(e),r}getSignal(){return this._signal===void 0&&Ut(311),this._signal}getInitResult(){this.extension.init===void 0&&Ut(312,this.extension.name);const t=this.state;return(function(e){return e.id>=kf})(t)||Ut(313,String(t.id),String(kf)),t.initResult}getInitPeer(t){const e=this.builder.extensionNameMap.get(t);return e?e.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(e){return e.id>=lA})(t)||Ut(314,String(t.id),String(lA)),{config:t.config}}getPeer(t){const e=this.builder.extensionNameMap.get(t);return e?e.getExtensionDependency():void 0}getInitDependency(t){const e=this.builder.getExtensionRep(t);return e===void 0&&Ut(315,this.extension.name,t.name),e.getExtensionInitDependency()}getDependency(t){const e=this.builder.getExtensionRep(t);return e===void 0&&Ut(315,this.extension.name,t.name),e.getExtensionDependency()}getState(){const t=this.state;return(function(e){return e.id>=Vc})(t)||Ut(316,String(t.id),String(Vc)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||g7}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(e){return e.id>=Ca})(t)||Ut(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}};const TS={tag:qr};function m7(){const n=Ue();n.isEmpty()&&n.append(Me())}const A7={config:{setOptions:TS,updateOptions:TS},init:({$initialEditorState:n=m7})=>({$initialEditorState:n,initialized:!1}),afterRegistration(n,{updateOptions:t,setOptions:e},r){const s=r.getInitResult();if(!s.initialized){s.initialized=!0;const{$initialEditorState:i}=s;if(iB(i))n.setEditorState(i,e);else if(typeof i=="function")n.update(()=>{i(n)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const o=n.parseEditorState(i);n.setEditorState(o,e)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Gl,On,pc,mc,Vi]},_S=Symbol.for("@lexical/extension/LexicalBuilder");function NS(){}function y7(n){throw n}function Tf(n){return Array.isArray(n)?n:[n]}const uA="0.38.2+prod.esm";let PN=class oh{constructor(t){U(this,"roots");U(this,"extensionNameMap");U(this,"outgoingConfigEdges");U(this,"incomingEdges");U(this,"conflicts");U(this,"_sortedExtensionReps");U(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=uA,this.roots=t;for(const e of t)this.addExtension(e)}static fromExtensions(t){const e=[Tf(A7)];for(const r of t)e.push(Tf(r));return new oh(e)}static maybeFromEditor(t){const e=t[_S];return e&&(e.PACKAGE_VERSION!==uA&&Ut(292,e.PACKAGE_VERSION,uA),e instanceof oh||Ut(293)),e}static fromEditor(t){const e=oh.maybeFromEditor(t);return e===void 0&&Ut(294),e}constructEditor(){const{$initialEditorState:t,onError:e,...r}=this.buildCreateEditorArgs(),s=Object.assign(nd({...r,...e?{onError:i=>{e(i,s)}}:{}}),{[_S]:this});for(const i of this.sortedExtensionReps())i.build(s);return s}buildEditor(){let t=NS;function e(){try{t()}finally{t=NS}}const r=Object.assign(this.constructEditor(),{dispose:e,[Symbol.dispose]:e});return t=ct(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const e=this.extensionNameMap.get(t.name);if(e)return e.extension!==t&&Ut(295,t.name),e}addEdge(t,e,r){const s=this.outgoingConfigEdges.get(t);s?s.set(e,r):this.outgoingConfigEdges.set(t,new Map([[e,r]]));const i=this.incomingEdges.get(e);i?i.add(t):this.incomingEdges.set(e,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&Ut(296);const e=Tf(t),[r]=e;typeof r.name!="string"&&Ut(297,typeof r.name);let s=this.extensionNameMap.get(r.name);if(s!==void 0&&s.extension!==r&&Ut(298,r.name),!s){s=new p7(this,r),this.extensionNameMap.set(r.name,s);const i=this.conflicts.get(r.name);typeof i=="string"&&Ut(299,r.name,i);for(const o of r.conflictsWith||[])this.extensionNameMap.has(o)&&Ut(299,r.name,o),this.conflicts.set(o,r.name);for(const o of r.dependencies||[]){const l=Tf(o);this.addEdge(r.name,l[0].name,l.slice(1)),this.addExtension(l)}for(const[o,l]of r.peerDependencies||[])this.addEdge(r.name,o,l?[l]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],e=(r,s)=>{let i=r.state;if(jN(i))return;const o=r.extension.name;var l;cA(i)||Ut(300,o,s||"[unknown]"),cA(l=i)||Ut(304,String(l.id),String(Yb)),i=Object.assign(l,{id:L0}),r.state=i;const a=this.outgoingConfigEdges.get(o);if(a)for(const u of a.keys()){const d=this.extensionNameMap.get(u);d&&e(d,o)}i=h7(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())cA(r.state)&&e(r);for(const r of t)for(const[s,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const o=this.extensionNameMap.get(s);if(o)for(const l of i)o.configs.add(l)}for(const[r,...s]of this.roots)if(s.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Ut(301,r.name);for(const o of s)i.configs.add(o)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const e=this.sortedExtensionReps(),r=new AbortController,s=[()=>r.abort()],i=r.signal;for(const o of e){const l=o.register(t,i);l&&s.push(l)}for(const o of e){const l=o.afterRegistration(t);l&&s.push(l)}return ct(...s)}buildCreateEditorArgs(){const t={},e=new Set,r=new Map,s=new Map,i={},o={},l=this.sortedExtensionReps();for(const d of l){const{extension:h}=d;if(h.onError!==void 0&&(t.onError=h.onError),h.disableEvents!==void 0&&(t.disableEvents=h.disableEvents),h.parentEditor!==void 0&&(t.parentEditor=h.parentEditor),h.editable!==void 0&&(t.editable=h.editable),h.namespace!==void 0&&(t.namespace=h.namespace),h.$initialEditorState!==void 0&&(t.$initialEditorState=h.$initialEditorState),h.nodes)for(const g of f7(h)){if(typeof g!="function"){const m=r.get(g.replace);m&&Ut(302,h.name,g.replace.name,m.extension.name),r.set(g.replace,d)}e.add(g)}if(h.html){if(h.html.export)for(const[g,m]of h.html.export.entries())s.set(g,m);h.html.import&&Object.assign(i,h.html.import)}h.theme&&ON(o,h.theme)}Object.keys(o).length>0&&(t.theme=o),e.size&&(t.nodes=[...e]);const a=Object.keys(i).length>0,u=s.size>0;(a||u)&&(t.html={},a&&(t.html.import=i),u&&(t.html.export=s));for(const d of l)d.init(t);return t.onError||(t.onError=y7),t}};function b7(n,t){const e=PN.fromEditor(n).extensionNameMap.get(t);return e?e.getExtensionDependency():void 0}const BN=Ee("INSERT_HORIZONTAL_RULE_COMMAND");let Gb=class FN extends _s{static getType(){return"horizontalrule"}static clone(t){return new FN(t.__key)}static importJSON(t){return zN().updateFromJSON(t)}static importDOM(){return{hr:()=>({conversion:w7,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(t){const e=document.createElement("hr");return pt(e,t.theme.hr),e}getTextContent(){return`
|
|
18
|
-
`}isInline(){return!1}updateDOM(){return!1}};function w7(){return{node:zN()}}function zN(){return _2(Gb)}function UN(n){return n instanceof Gb}function C7(n,t,e,r,s){if(n===null||e.size===0&&r.size===0&&!s)return 0;const i=t._selection,o=n._selection;if(s)return 1;if(!(J(i)&&J(o)&&o.isCollapsed()&&i.isCollapsed()))return 0;const l=(function(v,C,S){const k=v._nodeMap,_=[];for(const T of C){const N=k.get(T);N!==void 0&&_.push(N)}for(const[T,N]of S){if(!N)continue;const M=k.get(T);M===void 0||Vt(M)||_.push(M)}return _})(t,e,r);if(l.length===0)return 0;if(l.length>1){const v=t._nodeMap,C=v.get(i.anchor.key),S=v.get(o.anchor.key);return C&&S&&!n._nodeMap.has(C.__key)&&fe(C)&&C.__text.length===1&&i.anchor.offset===1?2:0}const a=l[0],u=n._nodeMap.get(a.__key);if(!fe(u)||!fe(a)||u.__mode!==a.__mode)return 0;const d=u.__text,h=a.__text;if(d===h)return 0;const g=i.anchor,m=o.anchor;if(g.key!==m.key||g.type!=="text")return 0;const A=g.offset,y=m.offset,b=h.length-d.length;return b===1&&y===A-1?2:b===-1&&y===A+1?3:b===-1&&y===A?4:0}function x7(n,t){let e=Date.now(),r=0;return(s,i,o,l,a,u)=>{const d=Date.now();if(u.has(Sl))return r=0,e=d,2;const h=C7(s,i,l,a,n.isComposing()),g=(()=>{const m=o===null||o.editor===n,A=u.has(KP);if(!A&&m&&u.has(qr))return 0;if(s===null)return 1;const y=i._selection;if(!(l.size>0||a.size>0))return y!==null?0:2;const b=typeof t=="number"?t:t.peek();return A===!1&&h!==0&&h===r&&d<e+b&&m||l.size===1&&(function(v,C,S){const k=C._nodeMap.get(v),_=S._nodeMap.get(v),T=C._selection,N=S._selection;return!(J(T)&&J(N)&&T.anchor.type==="element"&&T.focus.type==="element"&&N.anchor.type==="text"&&N.focus.type==="text"||!fe(k)||!fe(_)||k.__parent!==_.__parent)&&JSON.stringify(C.read(()=>k.exportJSON()))===JSON.stringify(S.read(()=>_.exportJSON()))})(Array.from(l)[0],s,i)?0:1})();return e=d,r=h,g}}function MS(n){n.undoStack=[],n.redoStack=[],n.current=null}function KN(n,t,e){const r=x7(n,e);return ct(n.registerCommand(dc,()=>((function(i,o){const l=o.redoStack,a=o.undoStack;if(a.length!==0){const u=o.current,d=a.pop();u!==null&&(l.push(u),i.dispatchCommand(Ia,!0)),a.length===0&&i.dispatchCommand(La,!1),o.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:Sl})}})(n,t),!0),Ze),n.registerCommand(zl,()=>((function(i,o){const l=o.redoStack,a=o.undoStack;if(l.length!==0){const u=o.current;u!==null&&(a.push(u),i.dispatchCommand(La,!0));const d=l.pop();l.length===0&&i.dispatchCommand(Ia,!1),o.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:Sl})}})(n,t),!0),Ze),n.registerCommand(gg,()=>(MS(t),!1),Ze),n.registerCommand(Py,()=>(MS(t),n.dispatchCommand(Ia,!1),n.dispatchCommand(La,!1),!0),Ze),n.registerUpdateListener(({editorState:i,prevEditorState:o,dirtyLeaves:l,dirtyElements:a,tags:u})=>{const d=t.current,h=t.redoStack,g=t.undoStack,m=d===null?null:d.editorState;if(d!==null&&i===m)return;const A=r(o,i,d,l,a,u);if(A===1)h.length!==0&&(t.redoStack=[],n.dispatchCommand(Ia,!1)),d!==null&&(g.push({...d}),n.dispatchCommand(La,!0));else if(A===2)return;t.current={editor:n,editorState:i}}))}function Zb(){return{current:null,redoStack:[],undoStack:[]}}const dA={build:(n,{delay:t,createInitialHistoryState:e,disabled:r})=>Hb({delay:t,disabled:r,historyState:e(n)}),config:{createInitialHistoryState:Zb,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(n,t,e)=>{const r=e.getOutput();return zu(()=>r.disabled.value?void 0:KN(n,r.historyState.value,r.delay))}};NB(dA,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function WN({delay:n,externalHistoryState:t}){const[e]=je();return(function(r,s,i=1e3){const o=x.useMemo(()=>s||Zb(),[s]);x.useEffect(()=>KN(r,o,i),[i,r,o])})(e,t,n),null}const HN=new Map;class v7{constructor(t){this.room=t,this.onmessage=null,this._onChange=e=>e.key===t&&this.onmessage!==null&&this.onmessage({data:c8(e.newValue||"")}),z5(this._onChange)}postMessage(t){l_.setItem(this.room,a8(r8(t)))}close(){U5(this._onChange)}}const S7=typeof BroadcastChannel>"u"?v7:BroadcastChannel,Jb=n=>si(HN,n,()=>{const t=To(),e=new S7(n);return e.onmessage=r=>t.forEach(s=>s(r.data,"broadcastchannel")),{bc:e,subs:t}}),E7=(n,t)=>(Jb(n).subs.add(t),t),k7=(n,t)=>{const e=Jb(n),r=e.subs.delete(t);return r&&e.subs.size===0&&(e.bc.close(),HN.delete(n)),r},Ma=(n,t,e=null)=>{const r=Jb(n);r.bc.postMessage(t),r.subs.forEach(s=>s(t,e))},YN=0,Vb=1,GN=2,D0=(n,t)=>{Ge(n,YN);const e=yF(t);cn(n,e)},ZN=(n,t,e)=>{Ge(n,Vb),cn(n,gF(t,e))},T7=(n,t,e)=>ZN(t,e,Jn(n)),JN=(n,t,e,r)=>{try{dF(t,Jn(n),e)}catch(s){r!=null&&r(s),console.error("Caught error while handling a Yjs update",s)}},_7=(n,t)=>{Ge(n,GN),cn(n,t)},N7=JN,M7=(n,t,e,r,s)=>{const i=it(n);switch(i){case YN:T7(n,t,e);break;case Vb:JN(n,e,r,s);break;case GN:N7(n,e,r,s);break;default:throw new Error("Unknown message type")}return i},I7=0,L7=(n,t,e)=>{switch(it(n)){case I7:e(t,bo(n))}},fA=3e4;class D7 extends e_{constructor(t){super(),this.doc=t,this.clientID=t.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=_o();this.getLocalState()!==null&&fA/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((s,i)=>{i!==this.clientID&&fA<=e-s.lastUpdated&&this.states.has(i)&&r.push(i)}),r.length>0&&Qb(this,r,"timeout")},Es(fA/10)),t.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(t){const e=this.clientID,r=this.meta.get(e),s=r===void 0?0:r.clock+1,i=this.states.get(e);t===null?this.states.delete(e):this.states.set(e,t),this.meta.set(e,{clock:s,lastUpdated:_o()});const o=[],l=[],a=[],u=[];t===null?u.push(e):i==null?t!=null&&o.push(e):(l.push(e),za(i,t)||a.push(e)),(o.length>0||a.length>0||u.length>0)&&this.emit("change",[{added:o,updated:a,removed:u},"local"]),this.emit("update",[{added:o,updated:l,removed:u},"local"])}setLocalStateField(t,e){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[t]:e})}getStates(){return this.states}}const Qb=(n,t,e)=>{const r=[];for(let s=0;s<t.length;s++){const i=t[s];if(n.states.has(i)){if(n.states.delete(i),i===n.clientID){const o=n.meta.get(i);n.meta.set(i,{clock:o.clock+1,lastUpdated:_o()})}r.push(i)}}r.length>0&&(n.emit("change",[{added:[],updated:[],removed:r},e]),n.emit("update",[{added:[],updated:[],removed:r},e]))},pu=(n,t,e=n.states)=>{const r=t.length,s=Vn();Ge(s,r);for(let i=0;i<r;i++){const o=t[i],l=e.get(o)||null,a=n.meta.get(o).clock;Ge(s,o),Ge(s,a),pl(s,JSON.stringify(l))}return en(s)},O7=(n,t,e)=>{const r=zo(t),s=_o(),i=[],o=[],l=[],a=[],u=it(r);for(let d=0;d<u;d++){const h=it(r);let g=it(r);const m=JSON.parse(bo(r)),A=n.meta.get(h),y=n.states.get(h),b=A===void 0?0:A.clock;(b<g||b===g&&m===null&&n.states.has(h))&&(m===null?h===n.clientID&&n.getLocalState()!=null?g++:n.states.delete(h):n.states.set(h,m),n.meta.set(h,{clock:g,lastUpdated:s}),A===void 0&&m!==null?i.push(h):A!==void 0&&m===null?a.push(h):m!==null&&(za(m,y)||l.push(h),o.push(h)))}(i.length>0||l.length>0||a.length>0)&&n.emit("change",[{added:i,updated:l,removed:a},e]),(i.length>0||o.length>0||a.length>0)&&n.emit("update",[{added:i,updated:o,removed:a},e])},R7=n=>G5(n,(t,e)=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"),sl=0,VN=3,Ya=1,j7=2,gd=[];gd[sl]=(n,t,e,r,s)=>{Ge(n,sl);const i=M7(t,n,e.doc,e);r&&i===Vb&&!e.synced&&(e.synced=!0)};gd[VN]=(n,t,e,r,s)=>{Ge(n,Ya),cn(n,pu(e.awareness,Array.from(e.awareness.getStates().keys())))};gd[Ya]=(n,t,e,r,s)=>{O7(e.awareness,Jn(t),e)};gd[j7]=(n,t,e,r,s)=>{L7(t,e.doc,(i,o)=>P7(e,o))};const IS=3e4,P7=(n,t)=>console.warn(`Permission denied to access ${n.url}.
|
|
19
|
-
${t}`),QN=(n,t,e)=>{const r=zo(t),s=Vn(),i=it(r),o=n.messageHandlers[i];return o?o(s,r,n,e,i):console.error("Unable to compute message"),s},XN=n=>{if(n.shouldConnect&&n.ws===null){const t=new n._WS(n.url);t.binaryType="arraybuffer",n.ws=t,n.wsconnecting=!0,n.wsconnected=!1,n.synced=!1,t.onmessage=e=>{n.wsLastMessageReceived=_o();const r=QN(n,new Uint8Array(e.data),!0);hb(r)>1&&t.send(en(r))},t.onerror=e=>{n.emit("connection-error",[e,n])},t.onclose=e=>{n.emit("connection-close",[e,n]),n.ws=null,n.wsconnecting=!1,n.wsconnected?(n.wsconnected=!1,n.synced=!1,Qb(n.awareness,Array.from(n.awareness.getStates().keys()).filter(r=>r!==n.doc.clientID),n),n.emit("status",[{status:"disconnected"}])):n.wsUnsuccessfulReconnects++,setTimeout(XN,fb(l5(2,n.wsUnsuccessfulReconnects)*100,n.maxBackoffTime),n)},t.onopen=()=>{n.wsLastMessageReceived=_o(),n.wsconnecting=!1,n.wsconnected=!0,n.wsUnsuccessfulReconnects=0,n.emit("status",[{status:"connected"}]);const e=Vn();if(Ge(e,sl),D0(e,n.doc),t.send(en(e)),n.awareness.getLocalState()!==null){const r=Vn();Ge(r,Ya),cn(r,pu(n.awareness,[n.doc.clientID])),t.send(en(r))}},n.emit("status",[{status:"connecting"}])}},hA=(n,t)=>{const e=n.ws;n.wsconnected&&e&&e.readyState===e.OPEN&&e.send(t),n.bcconnected&&Ma(n.bcChannel,t,n)};class qN extends e_{constructor(t,e,r,{connect:s=!0,awareness:i=new D7(r),params:o={},WebSocketPolyfill:l=WebSocket,resyncInterval:a=-1,maxBackoffTime:u=2500,disableBc:d=!1}={}){for(super();t[t.length-1]==="/";)t=t.slice(0,t.length-1);const h=R7(o);this.maxBackoffTime=u,this.bcChannel=t+"/"+e,this.url=t+"/"+e+(h.length===0?"":"?"+h),this.roomname=e,this.doc=r,this._WS=l,this.awareness=i,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=d,this.wsUnsuccessfulReconnects=0,this.messageHandlers=gd.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=s,this._resyncInterval=0,a>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const g=Vn();Ge(g,sl),D0(g,r),this.ws.send(en(g))}},a)),this._bcSubscriber=(g,m)=>{if(m!==this){const A=QN(this,new Uint8Array(g),!1);hb(A)>1&&Ma(this.bcChannel,en(A),this)}},this._updateHandler=(g,m)=>{if(m!==this){const A=Vn();Ge(A,sl),_7(A,g),hA(this,en(A))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:g,updated:m,removed:A},y)=>{const b=g.concat(m).concat(A),v=Vn();Ge(v,Ya),cn(v,pu(i,b)),hA(this,en(v))},this._exitHandler=()=>{Qb(this.awareness,[r.clientID],"app closed")},No&&typeof process<"u"&&process.on("exit",this._exitHandler),i.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&IS<_o()-this.wsLastMessageReceived&&this.ws.close()},IS/10),s&&this.connect()}get synced(){return this._synced}set synced(t){this._synced!==t&&(this._synced=t,this.emit("synced",[t]),this.emit("sync",[t]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),No&&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||(E7(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const t=Vn();Ge(t,sl),D0(t,this.doc),Ma(this.bcChannel,en(t),this);const e=Vn();Ge(e,sl),ZN(e,this.doc),Ma(this.bcChannel,en(e),this);const r=Vn();Ge(r,VN),Ma(this.bcChannel,en(r),this);const s=Vn();Ge(s,Ya),cn(s,pu(this.awareness,[this.doc.clientID])),Ma(this.bcChannel,en(s),this)}disconnectBc(){const t=Vn();Ge(t,Ya),cn(t,pu(this.awareness,[this.doc.clientID],new Map)),hA(this,en(t)),this.bcconnected&&(k7(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&&(XN(this),this.connectBc())}}const B7="0.7.1",F7={version:B7},z7=JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","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":{"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":"Checklist","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":"Collapsible","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","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","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"emoji":{"name":"Emoji","subtitle":"Add emoji"}},"integrations":{"title":"Integrations"}},"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":"Justify","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment"},"link":{"linkName":"Link name","link":"Link","name":"Name","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy","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","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","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)"},"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":{"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","uploadSubtitlesManually":"Upload subtitles manually","addSubtitleTrack":"Add a subtitle track","selectLanguage":"Select language","defaultLabel":"Default","setDefaultSubtitle":"Set as default","downloadVtt":"Download VTT","deleteSubtitle":"Delete","uploadError":"Upload failed","chapters":"Chapters","enableAutoChapters":"Enable auto-generated chapters","chaptersPlaceholder":"00:00 Intro\\n01:23 Demo\\n05:10 Summary","chaptersTimePlaceholder":"00:00","chaptersTitlePlaceholder":"Chapter name","addChapter":"Add chapter","deleteChapter":"Delete","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","setCover":"Set as cover","emptyCovers":"No cover previews yet","loadError":"Failed to load cover previews","retry":"Retry","cancel":"Cancel","save":"Save"},"delete":"Delete"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview"},"file":{"add_file":"Add File"},"audio":{"add_audio":"Add Audio"},"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"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Change the column color","moveRight":"Move a column to the right","deleteColumn":"Delete a column"},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Enter a valid embed URL","insert":"Embed","addEmbed":"Add Embed"},"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"}`),U7={editor:z7},K7=JSON.parse(`{"placeholder":"Escribe algo o pulsa '/' para comandos...","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":{"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":"Plegable","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","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","name":"Documentos Anidados","subtitle":"Muestra una lista de documentos anidados"},"emoji":{"name":"Emoji","subtitle":"Agrega emoji"}},"integrations":{"title":"Integraciones"}},"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":"Justificar","indent":"Aumentar sangría","outdent":"Disminuir sangría","color":"Color","code":"Código","link":"Agregar enlace","clear":"Quitar formato","comment":"Comentario"},"link":{"linkName":"Nombre del enlace","link":"Enlace","name":"Nombre","save":"Guardar","remove":"Eliminar","edit":"Editar","copy":"Copiar","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","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","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)"},"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":{"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","uploadSubtitlesManually":"Subir subtítulos manualmente","addSubtitleTrack":"Añadir pista de subtítulos","selectLanguage":"Seleccionar idioma","defaultLabel":"Predeterminado","setDefaultSubtitle":"Establecer como predeterminado","downloadVtt":"Descargar VTT","deleteSubtitle":"Eliminar","uploadError":"Error al subir","chapters":"Capítulos","enableAutoChapters":"Activar capítulos generados automáticamente","chaptersPlaceholder":"00:00 Introducción\\n01:23 Demo\\n05:10 Resumen","chaptersTimePlaceholder":"00:00","chaptersTitlePlaceholder":"Nombre del capítulo","addChapter":"Añadir capítulo","deleteChapter":"Eliminar","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","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"},"swagger":{"insert":"Swagger","worksWith":"Funciona con","add":"Agregar Swagger"},"image":{"add_photo":"Agregar imagen","preview":"Vista previa"},"file":{"add_file":"Agregar archivo"},"audio":{"add_audio":"Agregar audio"},"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"}},"column":{"name":"Insertar cuadrícula","insert":"Insertar","columns":"Columnas","addRight":"Agregar columna a la derecha","addLeft":"Agregar columna a la izquierda","moveLeft":"Mover columna a la izquierda","changeColor":"Cambiar color de la columna","moveRight":"Mover columna a la derecha","deleteColumn":"Eliminar columna"},"hoverOptions":{"addNewBlockBelow":"Agregar bloque debajo","addNewBlockAbove":"Agregar bloque arriba","drag":"Arrastrar","click":"Clic","clickAction":"Para abrir el menú","dragAction":"Para mover"},"embed":{"placeholder":"Introduce una URL válida para incrustar","insert":"Insertar","addEmbed":"Agregar incrustación"},"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"}`),W7={editor:K7},H7=JSON.parse(`{"placeholder":"Напишите что-нибудь, или нажмите '/' для команд...","upload":"Загрузить","heading":{"h1":"Заголовок 1","h2":"Заголовок 2","h3":"Заголовок 3","name":"Заголовок"},"close":"Закрыть","unsavedChanges":{"title":"Несохранённые изменения","message":"Вы действительно хотите закрыть страницу? Все несохранённые данные будут потеряны.","cancel":"Отмена","closeWithoutSaving":"Закрыть без сохранения"},"menu":{"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 чтобы выйти из блока кода","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":"У вас нет вложенных документов","name":"Вложенные документы","subtitle":"Отображает список вложенных документов"},"emoji":{"name":"Эмодзи","subtitle":"Добавьте эмодзи"}},"integrations":{"title":"Интеграции"}},"toolbar":{"turnInto":"Превратить в","bold":"Жирный","italic":"Курсив","underline":"Подчеркнутый","strike":"Зачеркнутый","superscript":"Надстрочный","subscript":"Подстрочный","align":"Выравнивание","left":"По левому краю","center":"По центру","right":"По правому краю","justify":"Выравнивание по ширине","indent":"Отступ","outdent":"Отступ","color":"Цвет","code":"Код","link":"Добавить ссылку","clear":"Очистить формат","comment":"Комментарий"},"link":{"linkName":"Название ссылки","link":"Ссылка","name":"Название","save":"Сохранить","remove":"Удалить","edit":"Редактировать","copy":"Копировать","type":{"web":"Веб-ссылка","phone":"Номер телефона","email":"Адрес почты","sms":"SMS сообщение"}},"contextMenu":{"copy":"Копировать","cut":"Вырезать","paste":"Вставить","delete":"Удалить","add":"Добавить","selectAll":"Выбрать все","duplicate":"Дублировать","appearance":"Внешний вид"},"colors":{"lastTimeUsed":"Последнее раз использовался","color":"Цвет","background":"Фон","theme":"Темы","colors":{"standard":"Стандартный","gray":"Серый","brown":"Коричневый","orange":"Оранжевый","yellow":"Желтый","green":"Зеленый","blue":"Синий","purple":"Фиолетовый","pink":"Розовый","red":"Красный"},"callout":{"success":"Успех","alert":"Внимание","warning":"Предупреждение"}},"video":{"insert":"Встроить","apply":"Применить","worksWith":"Работает с","add_video":"Добавить видео","upload":{"title":"Загрузить видео","processed":"Видео загружено. Обработано {{percent}}%.","dragDrop":"Перетащите видео или","chooseFile":"выберите файл","toUpload":"для загрузки","maxSize":"Максимальный размер файла: {{size}}. Форматы: MP4, WebM, OGG.","otherFormats":"(Другие форматы будут конвертированы автоматически)"},"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":{"subtitlesCc":"Субтитры/CC","speed":"Скорость","quality":"Качество","normal":"Нормальная","auto":"Авто","off":"Выкл"},"settingsModal":{"title":"Настройки видео","cover":"Обложка","uploadFile":"Загрузить файл","cropCoverImage":"Обрезать обложку","subtitles":"Субтитры","enableAutoSubtitles":"Включить автогенерацию субтитров","uploadSubtitlesManually":"Загрузить субтитры вручную","addSubtitleTrack":"Добавить дорожку субтитров","selectLanguage":"Выбрать язык","defaultLabel":"По умолчанию","setDefaultSubtitle":"Сделать по умолчанию","downloadVtt":"Скачать VTT","deleteSubtitle":"Удалить","uploadError":"Не удалось загрузить","chapters":"Главы","enableAutoChapters":"Включить автогенерацию глав","chaptersPlaceholder":"00:00 Вступление\\n01:23 Демонстрация\\n05:10 Итоги","chaptersTimePlaceholder":"00:00","chaptersTitlePlaceholder":"Название главы","addChapter":"Добавить главу","deleteChapter":"Удалить","saveChapters":"Сохранить главы","suggestChapters":"Автопредложение","refreshChapters":"Обновить","emptyChapters":"Главы пока не заданы","chaptersError":"Не удалось загрузить главы","transcript":"Транскрипт","enableAutoTranscript":"Включить автогенерацию транскрипта","uploadTranscriptManually":"Загрузить транскрипт вручную","setCover":"Установить обложку","emptyCovers":"Превью для обложки пока нет","loadError":"Не удалось загрузить превью обложки","retry":"Повторить","cancel":"Отмена","save":"Сохранить"},"delete":"Удалить"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Добавить Swagger"},"image":{"add_photo":"Добавить картинку","preview":"Превью"},"file":{"add_file":"Добавить файл"},"audio":{"add_audio":"Добавить аудио"},"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толбца"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","deleteColumn":"Удалить колонку","changeColor":"Поменять цвет колонки"},"hoverOptions":{"addNewBlockBelow":"Добавить блок выше","addNewBlockAbove":"Добавить блок ниже","drag":"Перетащите","click":"Нажмите","clickAction":"Чтобы открыть меню","dragAction":"Чтобы переместить"},"embed":{"placeholder":"Введите действительный URL-адрес для встраивания","insert":"Встроить","addEmbed":"Встроить внешний контент"},"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":"Отменить"}`),Y7={editor:H7},O0=aP.createInstance();O0.use(Je.initReactI18next).init({resources:{en:{translation:U7,ui:Rt.enUI},ru:{translation:Y7,ui:Rt.ruUI},es:{translation:W7,ui:Rt.esUI}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(n=>{});let Uo=class extends _s{constructor(e,r){super(r);U(this,"__format");this.__format=e||""}exportJSON(){return{...super.exportJSON(),format:this.__format||""}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||"")}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){const r=this.getWritable();return r.__format=e,r}isInline(){return!1}};function zh(n){return n instanceof Uo}function LS(n,t){return n.getEditorState().read(()=>{const e=Te(t);return e!==null&&e.isSelected()})}function zg(n){const[t]=je(),[e,r]=x.useState(()=>LS(t,n));return x.useEffect(()=>{let s=!0;const i=t.registerUpdateListener(()=>{s&&r(LS(t,n))});return()=>{s=!1,i()}},[t,n]),[e,x.useCallback(s=>{t.update(()=>{let i=Q();$t(i)||(i=Fy(),rt(i)),$t(i)&&(s?i.add(n):i.delete(n))})},[t,n]),x.useCallback(()=>{t.update(()=>{const s=Q();$t(s)&&s.clear()})},[t])]}function ic({children:n,format:t,nodeKey:e,className:r}){const[s]=je(),[i,o,l]=zg(e),a=x.useRef(null);return x.useEffect(()=>ct(s.registerCommand(go,u=>{if(i){const d=Q();if($t(d)){const h=Te(e);zh(h)&&h.setFormat(u)}else if(J(d)){const h=d.getNodes();for(const g of h)zh(g)?g.setFormat(u):yc(g).setFormat(u)}return!0}return!1},De),s.registerCommand(Gi,u=>u.target===a.current&&(u.preventDefault(),u.shiftKey||l(),o(!i),!0),De)),[l,s,i,e,o]),p.jsx("div",{className:[r.base,i?r.focus:null].filter(Boolean).join(" "),ref:a,style:{textAlign:t||void 0},children:n})}function Ug(){const n=x.useRef(null),t=x.useCallback(()=>{var r;return(r=n.current)==null||r.abort(),n.current=new AbortController,n.current.signal},[]),e=x.useCallback(()=>{var r;(r=n.current)==null||r.abort(),n.current=null},[]);return{start:t,cancel:e}}function G7(){const[n,t]=x.useState(!1),e=()=>t(!0),r=()=>t(!1);return x.useEffect(()=>{const s=i=>{n&&(i.preventDefault(),i.returnValue="")};return n&&window.addEventListener("beforeunload",s),()=>{n&&window.removeEventListener("beforeunload",s)}},[n]),{startLoading:e,stopLoading:r}}var il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z7(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gA={exports:{}},DS;function J7(){return DS||(DS=1,(function(n){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
20
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
21
|
-
*
|
|
22
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
23
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
24
|
-
* @namespace
|
|
25
|
-
* @public
|
|
26
|
-
*/var e=(function(r){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(S){return S instanceof a?new a(S.type,C(S.content),S.alias):Array.isArray(S)?S.map(C):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++i}),C.__id},clone:function C(S,k){k=k||{};var _,T;switch(l.util.type(S)){case"Object":if(T=l.util.objId(S),k[T])return k[T];_={},k[T]=_;for(var N in S)S.hasOwnProperty(N)&&(_[N]=C(S[N],k));return _;case"Array":return T=l.util.objId(S),k[T]?k[T]:(_=[],k[T]=_,S.forEach(function(M,I){_[I]=C(M,k)}),_);default:return S}},getLanguage:function(C){for(;C;){var S=s.exec(C.className);if(S)return S[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,S){C.className=C.className.replace(RegExp(s,"gi"),""),C.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(C){var S=document.getElementsByTagName("script");for(var k in S)if(S[k].src==C)return S[k]}return null}},isActive:function(C,S,k){for(var _="no-"+S;C;){var T=C.classList;if(T.contains(S))return!0;if(T.contains(_))return!1;C=C.parentElement}return!!k}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,S){var k=l.util.clone(l.languages[C]);for(var _ in S)k[_]=S[_];return k},insertBefore:function(C,S,k,_){_=_||l.languages;var T=_[C],N={};for(var M in T)if(T.hasOwnProperty(M)){if(M==S)for(var I in k)k.hasOwnProperty(I)&&(N[I]=k[I]);k.hasOwnProperty(M)||(N[M]=T[M])}var D=_[C];return _[C]=N,l.languages.DFS(l.languages,function(j,B){B===D&&j!=C&&(this[j]=N)}),N},DFS:function C(S,k,_,T){T=T||{};var N=l.util.objId;for(var M in S)if(S.hasOwnProperty(M)){k.call(S,M,S[M],_||M);var I=S[M],D=l.util.type(I);D==="Object"&&!T[N(I)]?(T[N(I)]=!0,C(I,k,null,T)):D==="Array"&&!T[N(I)]&&(T[N(I)]=!0,C(I,k,M,T))}}},plugins:{},highlightAll:function(C,S){l.highlightAllUnder(document,C,S)},highlightAllUnder:function(C,S,k){var _={callback:k,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),l.hooks.run("before-all-elements-highlight",_);for(var T=0,N;N=_.elements[T++];)l.highlightElement(N,S===!0,_.callback)},highlightElement:function(C,S,k){var _=l.util.getLanguage(C),T=l.languages[_];l.util.setLanguage(C,_);var N=C.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(N,_);var M=C.textContent,I={element:C,language:_,grammar:T,code:M};function D(B){I.highlightedCode=B,l.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,l.hooks.run("after-highlight",I),l.hooks.run("complete",I),k&&k.call(I.element)}if(l.hooks.run("before-sanity-check",I),N=I.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!I.code){l.hooks.run("complete",I),k&&k.call(I.element);return}if(l.hooks.run("before-highlight",I),!I.grammar){D(l.util.encode(I.code));return}if(S&&r.Worker){var j=new Worker(l.filename);j.onmessage=function(B){D(B.data)},j.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else D(l.highlight(I.code,I.grammar,I.language))},highlight:function(C,S,k){var _={code:C,grammar:S,language:k};if(l.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=l.tokenize(_.code,_.grammar),l.hooks.run("after-tokenize",_),a.stringify(l.util.encode(_.tokens),_.language)},tokenize:function(C,S){var k=S.rest;if(k){for(var _ in k)S[_]=k[_];delete S.rest}var T=new h;return g(T,T.head,C),d(C,T,S,T.head,0),A(T)},hooks:{all:{},add:function(C,S){var k=l.hooks.all;k[C]=k[C]||[],k[C].push(S)},run:function(C,S){var k=l.hooks.all[C];if(!(!k||!k.length))for(var _=0,T;T=k[_++];)T(S)}},Token:a};r.Prism=l;function a(C,S,k,_){this.type=C,this.content=S,this.alias=k,this.length=(_||"").length|0}a.stringify=function C(S,k){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(D){_+=C(D,k)}),_}var T={type:S.type,content:C(S.content,k),tag:"span",classes:["token",S.type],attributes:{},language:k},N=S.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(T.classes,N):T.classes.push(N)),l.hooks.run("wrap",T);var M="";for(var I in T.attributes)M+=" "+I+'="'+(T.attributes[I]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+M+">"+T.content+"</"+T.tag+">"};function u(C,S,k,_){C.lastIndex=S;var T=C.exec(k);if(T&&_&&T[1]){var N=T[1].length;T.index+=N,T[0]=T[0].slice(N)}return T}function d(C,S,k,_,T,N){for(var M in k)if(!(!k.hasOwnProperty(M)||!k[M])){var I=k[M];I=Array.isArray(I)?I:[I];for(var D=0;D<I.length;++D){if(N&&N.cause==M+","+D)return;var j=I[D],B=j.inside,R=!!j.lookbehind,z=!!j.greedy,G=j.alias;if(z&&!j.pattern.global){var ce=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,ce+"g")}for(var oe=j.pattern||j,W=_.next,Z=T;W!==S.tail&&!(N&&Z>=N.reach);Z+=W.value.length,W=W.next){var ae=W.value;if(S.length>C.length)return;if(!(ae instanceof a)){var q=1,K;if(z){if(K=u(oe,Z,C,R),!K||K.index>=C.length)break;var re=K.index,Y=K.index+K[0].length,te=Z;for(te+=W.value.length;re>=te;)W=W.next,te+=W.value.length;if(te-=W.value.length,Z=te,W.value instanceof a)continue;for(var ue=W;ue!==S.tail&&(te<Y||typeof ue.value=="string");ue=ue.next)q++,te+=ue.value.length;q--,ae=C.slice(Z,te),K.index-=Z}else if(K=u(oe,0,ae,R),!K)continue;var re=K.index,se=K[0],he=ae.slice(0,re),xe=ae.slice(re+se.length),pe=Z+ae.length;N&&pe>N.reach&&(N.reach=pe);var $=W.prev;he&&($=g(S,$,he),Z+=he.length),m(S,$,q);var le=new a(M,B?l.tokenize(se,B):se,G,se);if(W=g(S,$,le),xe&&g(S,W,xe),q>1){var Se={cause:M+","+D,reach:pe};d(C,S,k,W.prev,Z,Se),N&&Se.reach>N.reach&&(N.reach=Se.reach)}}}}}}function h(){var C={value:null,prev:null,next:null},S={value:null,prev:C,next:null};C.next=S,this.head=C,this.tail=S,this.length=0}function g(C,S,k){var _=S.next,T={value:k,prev:S,next:_};return S.next=T,_.prev=T,C.length++,T}function m(C,S,k){for(var _=S.next,T=0;T<k&&_!==C.tail;T++)_=_.next;S.next=_,_.prev=S,C.length-=T}function A(C){for(var S=[],k=C.head.next;k!==C.tail;)S.push(k.value),k=k.next;return S}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(C){var S=JSON.parse(C.data),k=S.language,_=S.code,T=S.immediateClose;r.postMessage(l.highlight(_,l.languages[k],k)),T&&r.close()},!1)),l;var y=l.util.currentScript();y&&(l.filename=y.src,y.hasAttribute("data-manual")&&(l.manual=!0));function b(){l.manual||l.highlightAll()}if(!l.manual){var v=document.readyState;v==="loading"||v==="interactive"&&y&&y.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return l})(t);n.exports&&(n.exports=e),typeof il<"u"&&(il.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(s,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};l["language-"+i]={pattern:/[\s\S]+/,inside:e.languages[i]};var a={};a[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:l},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,s){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:e.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,(function(r){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,(function(){if(typeof e>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",s=function(y,b){return"✖ Error "+y+" while fetching file: "+b},i="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",u="loaded",d="failed",h="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+a+'"])';function g(y,b,v){var C=new XMLHttpRequest;C.open("GET",y,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?b(C.responseText):C.status>=400?v(s(C.status,C.statusText)):v(i))},C.send(null)}function m(y){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y||"");if(b){var v=Number(b[1]),C=b[2],S=b[3];return C?S?[v,Number(S)]:[v,void 0]:[v,v]}}e.hooks.add("before-highlightall",function(y){y.selector+=", "+h}),e.hooks.add("before-sanity-check",function(y){var b=y.element;if(b.matches(h)){y.code="",b.setAttribute(l,a);var v=b.appendChild(document.createElement("CODE"));v.textContent=r;var C=b.getAttribute("data-src"),S=y.language;if(S==="none"){var k=(/\.(\w+)$/.exec(C)||[,"none"])[1];S=o[k]||k}e.util.setLanguage(v,S),e.util.setLanguage(b,S);var _=e.plugins.autoloader;_&&_.loadLanguages(S),g(C,function(T){b.setAttribute(l,u);var N=m(b.getAttribute("data-range"));if(N){var M=T.split(/\r\n?|\n/g),I=N[0],D=N[1]==null?M.length:N[1];I<0&&(I+=M.length),I=Math.max(0,Math.min(I-1,M.length)),D<0&&(D+=M.length),D=Math.max(0,Math.min(D,M.length)),T=M.slice(I,D).join(`
|
|
27
|
-
`),b.hasAttribute("data-start")||b.setAttribute("data-start",String(I+1))}v.textContent=T,e.highlightElement(v)},function(T){b.setAttribute(l,d),v.textContent=T})}}),e.plugins.fileHighlight={highlight:function(b){for(var v=(b||document).querySelectorAll(h),C=0,S;S=v[C++];)e.highlightElement(S)}};var A=!1;e.fileHighlight=function(){A||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),A=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(gA)),gA.exports}J7();Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(n,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(n){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function e(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+i+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+i+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:e(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:e(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:e(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:e(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(h){d!==h&&(n.languages.markdown[d].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function h(g){if(!(!g||typeof g=="string"))for(var m=0,A=g.length;m<A;m++){var y=g[m];if(y.type!=="code"){h(y.content);continue}var b=y.content[1],v=y.content[3];if(b&&v&&b.type==="code-language"&&v.type==="code-block"&&typeof b.content=="string"){var C=b.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var S="language-"+C;v.alias?typeof v.alias=="string"?v.alias=[v.alias,S]:v.alias.push(S):v.alias=[S]}}}h(d.tokens)}),n.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var h="",g=0,m=d.classes.length;g<m;g++){var A=d.classes[g],y=/language-(.+)/.exec(A);if(y){h=y[1];break}}var b=n.languages[h];if(b)d.content=n.highlight(u(d.content),b,h);else if(h&&h!=="none"&&n.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=v,n.plugins.autoloader.loadLanguages(h,function(){var C=document.getElementById(v);C&&(C.innerHTML=n.highlight(C.textContent,n.languages[h],h))})}}});var o=RegExp(n.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function u(d){var h=d.replace(o,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var A;return m[1]==="x"?A=parseInt(m.slice(2),16):A=Number(m.slice(1)),a(A)}else{var y=l[m];return y||g}}),h}n.languages.md=n.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(n){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var e=n.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(n){var t=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism);var OS={},RS;function V7(){return RS||(RS=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),OS}V7();var jS={},PS;function Q7(){return PS||(PS=1,(function(n){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,e=0;e<2;e++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(Prism)),jS}Q7();Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=Prism.languages.swift});var BS={},FS;function X7(){return FS||(FS=1,(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var t=n.languages.extend("typescript",{});delete t["class-name"],n.languages.typescript["class-name"].inside=t,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),n.languages.ts=n.languages.typescript})(Prism)),BS}X7();var zS={},US;function q7(){return US||(US=1,(function(n){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,e=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+e+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+e+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+e+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+e+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+e+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism)),zS}q7();var KS={},WS;function $7(){return WS||(WS=1,(function(n){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,e=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return e})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])})(Prism)),KS}$7();function Kg(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const ez="javascript";function $N(n,t){for(const e of n.childNodes){if(Nt(e)&&e.tagName===t)return!0;$N(e,t)}return!1}const nu="data-language",Qc="data-highlight-language",_f="data-theme";let Ri=class eM extends xt{constructor(e,r){super(r);U(this,"__language");U(this,"__theme");U(this,"__isSyntaxHighlightSupported");this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(e){return new eM(e.__language,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){const r=document.createElement("code");pt(r,e.theme.code),r.setAttribute("spellcheck","false");const s=this.getLanguage();s&&(r.setAttribute(nu,s),this.getIsSyntaxHighlightSupported()&&r.setAttribute(Qc,s));const i=this.getTheme();i&&r.setAttribute(_f,i);const o=this.getStyle();return o&&r.setAttribute("style",o),r}updateDOM(e,r,s){const i=this.__language,o=e.__language;i?i!==o&&r.setAttribute(nu,i):o&&r.removeAttribute(nu);const l=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&o?l&&i?i!==o&&r.setAttribute(Qc,i):r.removeAttribute(Qc):l&&i&&r.setAttribute(Qc,i);const a=this.__theme,u=e.__theme;a?a!==u&&r.setAttribute(_f,a):u&&r.removeAttribute(_f);const d=this.__style,h=e.__style;return d?d!==h&&r.setAttribute("style",d):h&&r.removeAttribute("style"),!1}exportDOM(e){const r=document.createElement("pre");pt(r,e._config.theme.code),r.setAttribute("spellcheck","false");const s=this.getLanguage();s&&(r.setAttribute(nu,s),this.getIsSyntaxHighlightSupported()&&r.setAttribute(Qc,s));const i=this.getTheme();i&&r.setAttribute(_f,i);const o=this.getStyle();return o&&r.setAttribute("style",o),{element:r}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||$N(e,"BR"))?{conversion:HS,priority:1}:null,div:()=>({conversion:tz,priority:1}),pre:()=>({conversion:HS,priority:0}),table:e=>pA(e)?{conversion:nz,priority:3}:null,td:e=>{const r=e,s=r.closest("table");return r.classList.contains("js-file-line")||s&&pA(s)?{conversion:YS,priority:3}:null},tr:e=>{const r=e.closest("table");return r&&pA(r)?{conversion:YS,priority:3}:null}}}static importJSON(e){return es().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,r=!0){const s=this.getChildren(),i=s.length;if(i>=2&&s[i-1].getTextContent()===`
|
|
28
|
-
`&&s[i-2].getTextContent()===`
|
|
29
|
-
`&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===i){s[i-1].remove(),s[i-2].remove();const u=Me();return this.insertAfter(u,r),u}const{anchor:o,focus:l}=e,a=(o.isBefore(l)?o:l).getNode();if(fe(a)){let u=ml(a);const d=[];for(;;)if(Wn(u))d.push(ts()),u=u.getNextSibling();else{if(!Xt(u))break;{let v=0;const C=u.getTextContent(),S=u.getTextContentSize();for(;v<S&&C[v]===" ";)v++;if(v!==0&&d.push(Xb(" ".repeat(v))),v!==S)break;u=u.getNextSibling()}}const h=a.splitText(o.offset)[0],g=o.offset===0?0:1,m=h.getIndexWithinParent()+g,A=a.getParentOrThrow(),y=[cr(),...d];A.splice(m,0,y);const b=d[d.length-1];b?b.select():o.offset===0?h.selectPrevious():h.getNextSibling().selectNext(0,0)}if(Mr(a)){const{offset:u}=e.anchor;a.splice(u,0,[cr()]),a.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const e=Me();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}setLanguage(e){const r=this.getWritable();return r.__language=e||void 0,r}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){const r=this.getWritable();return r.__isSyntaxHighlightSupported=e,r}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){const r=this.getWritable();return r.__theme=e||void 0,r}getTheme(){return this.getLatest().__theme}};function es(n,t){return _2(Ri).setLanguage(n).setTheme(t)}function Mr(n){return n instanceof Ri}function HS(n){return{node:es(n.getAttribute(nu))}}function tz(n){const t=n,e=GS(t);return e||(function(r){let s=r.parentElement;for(;s!==null;){if(GS(s))return!0;s=s.parentElement}return!1})(t)?{node:e?es():null}:{node:null}}function nz(){return{node:es()}}function YS(){return{node:null}}function GS(n){return n.style.fontFamily.match("monospace")!==null}function pA(n){return n.classList.contains("js-file-line-container")}let Dl=class tM extends On{constructor(e="",r,s){super(e,s);U(this,"__highlightType");this.__highlightType=r}static getType(){return"code-highlight"}static clone(e){return new tM(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){const r=this.getWritable();return r.__highlightType=e||void 0,r}canHaveFormat(){return!1}createDOM(e){const r=super.createDOM(e),s=mA(e.theme,this.__highlightType);return pt(r,s),r}updateDOM(e,r,s){const i=super.updateDOM(e,r,s),o=mA(s.theme,e.__highlightType),l=mA(s.theme,this.__highlightType);return o!==l&&(o&&_r(r,o),l&&pt(r,l)),i}static importJSON(e){return Xb().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return es()}};function mA(n,t){return t&&n&&n.codeHighlight&&n.codeHighlight[t]}function Xb(n="",t){return Bt(new Dl(n,t))}function Xt(n){return n instanceof Dl}function nM(n,t){let e=n;for(let r=sn(n,t);r&&(Xt(r.origin)||Wn(r.origin));r=YB(r))e=r.origin;return e}function ml(n){return nM(n,"previous")}function Ga(n){return nM(n,"next")}function rz(n){const t=ml(n),e=Ga(n);let r=t;for(;r!==null;){if(Xt(r)){const i=cB(r.getTextContent());if(i!==null)return i}if(r===e)break;r=r.getNextSibling()}const s=t.getParent();if(X(s)){const i=s.getDirection();if(i==="ltr"||i==="rtl")return i}return null}function sz(n,t){let e=null,r=null,s=n,i=t,o=n.getTextContent();for(;;){if(i===0){if(s=s.getPreviousSibling(),s===null)break;if(Xt(s)||Wn(s)||jt(s)||Kg(167),jt(s)){e={node:s,offset:1};break}i=Math.max(0,s.getTextContentSize()-1),o=s.getTextContent()}else i--;const a=o[i];Xt(s)&&a!==" "&&(r={node:s,offset:i})}if(r!==null)return r;let l=null;if(t<n.getTextContentSize())Xt(n)&&(l=n.getTextContent()[t]);else{const a=n.getNextSibling();Xt(a)&&(l=a.getTextContent()[0])}if(l!==null&&l!==" ")return e;{const a=(function(u,d){let h=u,g=d,m=u.getTextContent(),A=u.getTextContentSize();for(;;){if(!Xt(h)||g===A){if(h=h.getNextSibling(),h===null||jt(h))return null;Xt(h)&&(g=0,m=h.getTextContent(),A=h.getTextContentSize())}if(Xt(h)){if(m[g]!==" ")return{node:h,offset:g};g++}}})(n,t);return a!==null?a:e}}function iz(n){const t=Ga(n);return jt(t)&&Kg(168),t}(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach(function(e){var r=t[e],s=[];/^\w+$/.test(e)||s.push(/\w+/.exec(e)[0]),e==="diff"&&s.push("bold"),n.languages.diff[e]={pattern:RegExp("^(?:["+r+`].*(?:\r
|
|
30
|
-
?|
|
|
31
|
-
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:t})})(Prism);const Ps=globalThis.Prism||window.Prism,oz={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",powershell:"PowerShell",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},ZS={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function R0(n){return typeof n=="string"?n:Array.isArray(n)?n.map(R0).join(""):R0(n.content)}function lz(n,t){const e=/^diff-([\w-]+)/i.exec(t),r=n.getTextContent();let s=Ps.tokenize(r,Ps.languages[e?"diff":t]);return e&&(s=(function(i,o){const l=o,a=Ps.languages[l],u={tokens:i},d=Ps.languages.diff.PREFIXES;for(const h of u.tokens){if(typeof h=="string"||!(h.type in d)||!Array.isArray(h.content))continue;const g=h.type;let m=0;const A=()=>(m++,new Ps.Token("prefix",d[g],g.replace(/^(\w+).*/,"$1"))),y=h.content.filter(_=>typeof _=="string"||_.type!=="prefix"),b=h.content.length-y.length,v=Ps.tokenize(R0(y),a);v.unshift(A());const C=/\r\n|\n/g,S=_=>{const T=[];C.lastIndex=0;let N,M=0;for(;m<b&&(N=C.exec(_));){const I=N.index+N[0].length;T.push(_.slice(M,I)),M=I,T.push(A())}if(T.length!==0)return M<_.length&&T.push(_.slice(M)),T},k=_=>{for(let T=0;T<_.length&&m<b;T++){const N=_[T];if(typeof N=="string"){const M=S(N);M&&(_.splice(T,1,...M),T+=M.length-1)}else if(typeof N.content=="string"){const M=S(N.content);M&&(N.content=M)}else Array.isArray(N.content)?k(N.content):k([N.content])}};k(v),m<b&&v.push(A()),h.content=v}return u.tokens})(s,e[1])),j0(s)}function j0(n,t){const e=[];for(const r of n)if(typeof r=="string"){const s=r.split(/(\n|\t)/),i=s.length;for(let o=0;o<i;o++){const l=s[o];l===`
|
|
32
|
-
`||l===`\r
|
|
33
|
-
`?e.push(cr()):l===" "?e.push(ts()):l.length>0&&e.push(Xb(l,t))}}else{const{content:s,alias:i}=r;typeof s=="string"?e.push(...j0([s],r.type==="prefix"&&typeof i=="string"?i:r.type)):Array.isArray(s)&&e.push(...j0(s,r.type==="unchanged"?void 0:r.type))}return e}const az={$tokenize(n,t){return lz(n,t||this.defaultLanguage)},defaultLanguage:ez,tokenize(n,t){return Ps.tokenize(n,Ps.languages[t||""]||Ps.languages[this.defaultLanguage])}};function JS(n,t,e){const r=n.getParent();Mr(r)?rM(r,t,e):Xt(n)&&n.replace(Ct(n.__text))}function cz(n,t){const e=t.getElementByKey(n.getKey());if(e===null)return;const r=n.getChildren(),s=r.length;if(s===e.__cachedChildrenLength)return;e.__cachedChildrenLength=s;let i="1",o=1;for(let l=0;l<s;l++)jt(r[l])&&(i+=`
|
|
34
|
-
`+ ++o);e.setAttribute("data-gutter",i)}const AA=new Set;function rM(n,t,e){const r=n.getKey();n.getLanguage()===void 0&&n.setLanguage(e.defaultLanguage);const s=n.getLanguage()||e.defaultLanguage;if(!(function(i){const o=(function(a){const u=/^diff-([\w-]+)/i.exec(a);return u?u[1]:null})(i),l=o||i;try{return!!l&&Ps.languages.hasOwnProperty(l)}catch{return!1}})(s))return n.getIsSyntaxHighlightSupported()&&n.setIsSyntaxHighlightSupported(!1),void(async function(){})();n.getIsSyntaxHighlightSupported()||n.setIsSyntaxHighlightSupported(!0),AA.has(r)||(AA.add(r),t.update(()=>{(function(i,o){const l=Te(i);if(!Mr(l)||!l.isAttached())return;const a=Q();if(!J(a))return void o();const u=a.anchor,d=u.offset,h=u.type==="element"&&jt(l.getChildAtIndex(u.offset-1));let g=0;if(!h){const m=u.getNode();g=d+m.getPreviousSiblings().reduce((A,y)=>A+y.getTextContentSize(),0)}if(o()){if(h)return void u.getNode().select(d,d);l.getChildren().some(m=>{const A=fe(m);if(A||jt(m)){const y=m.getTextContentSize();if(A&&y>=g)return m.select(g,g),!0;g-=y}return!1})}})(r,()=>{const i=Te(r);if(!Mr(i)||!i.isAttached())return!1;const o=i.getLanguage()||e.defaultLanguage,l=e.$tokenize(i,o),a=(function(g,m){let A=0;for(;A<g.length&&VS(g[A],m[A]);)A++;const y=g.length,b=m.length,v=Math.min(y,b)-A;let C=0;for(;C<v;)if(C++,!VS(g[y-C],m[b-C])){C--;break}const S=A,k=y-C,_=m.slice(A,b-C);return{from:S,nodesForReplacement:_,to:k}})(i.getChildren(),l),{from:u,to:d,nodesForReplacement:h}=a;return!(u===d&&!h.length)&&(n.splice(u,d-u,h),!0)})},{onUpdate:()=>{AA.delete(r)},skipTransforms:!0}))}function VS(n,t){return Xt(n)&&Xt(t)&&n.__text===t.__text&&n.__highlightType===t.__highlightType||Wn(n)&&Wn(t)||jt(n)&&jt(t)}function ol(n){if(!J(n))return!1;const t=n.anchor.getNode(),e=Mr(t)?t:t.getParent(),r=n.focus.getNode(),s=Mr(r)?r:r.getParent();return Mr(e)&&e.is(s)}function sM(n){const t=n.getNodes(),e=[];if(t.length===1&&Mr(t[0]))return e;let r=[];for(let s=0;s<t.length;s++){const i=t[s];Xt(i)||Wn(i)||jt(i)||Kg(169),jt(i)?r.length>0&&(e.push(r),r=[]):r.push(i)}if(r.length>0){const s=n.isBackward()?n.anchor:n.focus,i=jn(r[0].getKey(),0,"text");s.is(i)||e.push(r)}return e}function QS(n){const t=Q();if(!J(t)||!ol(t))return!1;const e=sM(t),r=e.length;if(r===0&&t.isCollapsed())return n===Ys&&t.insertNodes([ts()]),!0;if(r===0&&n===Ys&&t.getTextContent()===`
|
|
35
|
-
`){const s=ts(),i=cr(),o=t.isBackward()?"previous":"next";return t.insertNodes([s,i]),ib(ob(Fi(ko(s,"next",0),$r(sn(i,"next"))),o)),!0}for(let s=0;s<r;s++){const i=e[s];if(i.length>0){let o=i[0];if(s===0&&(o=ml(o)),n===Ys){const l=ts();if(o.insertBefore(l),s===0){const a=t.isBackward()?"focus":"anchor",u=jn(o.getKey(),0,"text");t[a].is(u)&&t[a].set(l.getKey(),0,"text")}}else Wn(o)&&o.remove()}}return!0}function XS(n,t){const e=Q();if(!J(e))return!1;const{anchor:r,focus:s}=e,i=r.offset,o=s.offset,l=r.getNode(),a=s.getNode(),u=n===Xs;if(!ol(e)||!Xt(l)&&!Wn(l)||!Xt(a)&&!Wn(a))return!1;if(!t.altKey){if(e.isCollapsed()){const v=l.getParentOrThrow();if(u&&i===0&&l.getPreviousSibling()===null){if(v.getPreviousSibling()===null)return v.selectPrevious(),t.preventDefault(),!0}else if(!u&&i===l.getTextContentSize()&&l.getNextSibling()===null&&v.getNextSibling()===null)return v.selectNext(),t.preventDefault(),!0}return!1}let d,h;if(l.isBefore(a)?(d=ml(l),h=Ga(a)):(d=ml(a),h=Ga(l)),d==null||h==null)return!1;const g=d.getNodesBetween(h);for(let v=0;v<g.length;v++){const C=g[v];if(!Xt(C)&&!Wn(C)&&!jt(C))return!1}t.preventDefault(),t.stopPropagation();const m=u?d.getPreviousSibling():h.getNextSibling();if(!jt(m))return!0;const A=u?m.getPreviousSibling():m.getNextSibling();if(A==null)return!0;const y=Xt(A)||Wn(A)||jt(A)?u?ml(A):Ga(A):null;let b=y??A;return m.remove(),g.forEach(v=>v.remove()),n===Xs?(g.forEach(v=>b.insertBefore(v)),b.insertBefore(m)):(b.insertAfter(m),b=m,g.forEach(v=>{b.insertAfter(v),b=v})),e.setTextNodeRange(l,i,a,o),!0}function qS(n,t){const e=Q();if(!J(e))return!1;const{anchor:r,focus:s}=e,i=r.getNode(),o=s.getNode(),l=n===gh;if(!ol(e)||!Xt(i)&&!Wn(i)||!Xt(o)&&!Wn(o))return!1;const a=o;if(rz(a)==="rtl"?!l:l){const u=sz(a,s.offset);if(u!==null){const{node:d,offset:h}=u;jt(d)?d.selectNext(0,0):e.setTextNodeRange(d,h,d,h)}else a.getParentOrThrow().selectStart()}else iz(a).select();return t.preventDefault(),t.stopPropagation(),!0}function uz(n,t){if(!n.hasNodes([Ri,Dl]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");t==null&&(t=az);const e=[];return n._headless!==!0&&e.push(n.registerMutationListener(Ri,r=>{n.getEditorState().read(()=>{for(const[s,i]of r)if(i!=="destroyed"){const o=Te(s);o!==null&&cz(o,n)}})},{skipInitialization:!1})),e.push(n.registerNodeTransform(Ri,r=>rM(r,n,t)),n.registerNodeTransform(On,r=>JS(r,n,t)),n.registerNodeTransform(Dl,r=>JS(r,n,t)),n.registerCommand(gc,r=>{const s=(function(i){const o=Q();if(!J(o)||!ol(o))return null;const l=i?ho:Ys,a=i?ho:t0,u=o.anchor,d=o.focus;if(u.is(d))return a;const h=sM(o);if(h.length!==1)return l;const g=h[0];let m,A;g.length===0&&Kg(285),o.isBackward()?(m=d,A=u):(m=u,A=d);const y=ml(g[0]),b=Ga(g[0]),v=jn(y.getKey(),0,"text"),C=jn(b.getKey(),b.getTextContentSize(),"text");return m.isBefore(v)||C.isBefore(A)?l:v.isBefore(m)||A.isBefore(C)?a:l})(r.shiftKey);return s!==null&&(r.preventDefault(),n.dispatchCommand(s,void 0),!0)},De),n.registerCommand(t0,()=>!!ol(Q())&&(ed([ts()]),!0),De),n.registerCommand(Ys,r=>QS(Ys),De),n.registerCommand(ho,r=>QS(ho),De),n.registerCommand(Xs,r=>{const s=Q();if(!J(s))return!1;const{anchor:i}=s,o=i.getNode();return!!ol(s)&&(s.isCollapsed()&&i.offset===0&&o.getPreviousSibling()===null&&Mr(o.getParentOrThrow())?(r.preventDefault(),!0):XS(Xs,r))},De),n.registerCommand(Eo,r=>{const s=Q();if(!J(s))return!1;const{anchor:i}=s,o=i.getNode();return!!ol(s)&&(s.isCollapsed()&&i.offset===o.getTextContentSize()&&o.getNextSibling()===null&&Mr(o.getParentOrThrow())?(r.preventDefault(),!0):XS(Eo,r))},De),n.registerCommand(gh,r=>qS(gh,r),De),n.registerCommand(e0,r=>qS(e0,r),De)),ct(...e)}function dz(){return Ue().getTextContent()}function fz(n,t=!0){if(n)return!1;let e=dz();return t&&(e=e.trim()),e===""}function hz(n){if(!fz(n,!1))return!1;const t=Ue().getChildren(),e=t.length;if(e>1)return!1;for(let r=0;r<e;r++){const s=t[r];if(ft(s))return!1;if(X(s)){if(!fn(s)||s.__indent!==0)return!1;const i=s.getChildren(),o=i.length;for(let l=0;l<o;l++){const a=i[r];if(!fe(a))return!1}}}return!0}function iM(n){return()=>hz(n)}function gz(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function pz(n,t,e,r){const s=o=>o instanceof e,i=o=>{const l=Ct(o.getTextContent());l.setFormat(o.getFormat()),o.replace(l)};return[n.registerNodeTransform(On,o=>{if(!o.isSimpleText())return;let l,a=o.getPreviousSibling(),u=o.getTextContent(),d=o;if(fe(a)){const g=a.getTextContent(),m=t(g+u);if(s(a)){if(m===null||(A=>A.getLatest().__mode)(a)!==0)return void i(a);{const A=m.end-g.length;if(A>0){const y=g+u.slice(0,A);if(a.select(),a.setTextContent(y),A===u.length)o.remove();else{const b=u.slice(A);o.setTextContent(b)}return}}}else if(m===null||m.start<g.length)return}let h=0;for(;;){l=t(u);let g,m=l===null?"":u.slice(l.end);if(u=m,m===""){const y=d.getNextSibling();if(fe(y)){m=d.getTextContent()+y.getTextContent();const b=t(m);if(b===null)return void(s(y)?i(y):y.markDirty());if(b.start!==0)return}}if(l===null)return;if(l.start===0&&fe(a)&&a.isTextEntity()){h+=l.end;continue}l.start===0?[g,d]=d.splitText(l.end):[,g,d]=d.splitText(l.start+h,l.end+h),g===void 0&&gz(165,"nodeToReplace");const A=r(g);if(A.setFormat(g.getFormat()),g.replace(A),d==null)return;h=0,a=A}}),n.registerNodeTransform(e,o=>{const l=o.getTextContent(),a=t(l);if(a===null||a.start!==0)return void i(o);if(l.length>a.end)return void o.splitText(a.end);const u=o.getPreviousSibling();fe(u)&&u.isTextEntity()&&(i(u),i(o));const d=o.getNextSibling();fe(d)&&d.isTextEntity()&&(i(d),s(o)&&i(o))})]}let Wg=class oM extends On{static getType(){return"hashtag"}static clone(t){return new oM(t.__text,t.__key)}createDOM(t){const e=super.createDOM(t);return pt(e,t.theme.hashtag),e}static importJSON(t){return lM().updateFromJSON(t)}canInsertTextBefore(){return!1}isTextEntity(){return!0}};function lM(n=""){return Bt(new Wg(n))}const mz=new RegExp((function(){const{alpha:n,alphanumeric:t,hashChars:e}=(function(){const s=String.fromCharCode,i="A-Za-zªµºÀ-ÖØ-öø-Ɂɐ-ˁˆ-ˑˠ-ˤˮͺΆΈ-ΊΌΎ-ΡΣ-ώϐ-ϵϷ-ҁҊ-ӎӐ-ӹԀ-ԏԱ-Ֆՙա-ևא-תװ-ײء-غـ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ݭހ-ޥޱऄ-हऽॐक़-ॡॽঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹൠ-ൡඅ-ඖක-නඳ-රලව-ෆก-ะา-ำเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆໜ-ໝༀཀ-ཇཉ-ཪྈ-ྋက-အဣ-ဧဩ-ဪၐ-ၕႠ-Ⴥა-ჺჼᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᴀ-ᶿḀ-ẛẠ-ỹἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₔℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℱℳ-ℹℼ-ℿⅅ-ⅉⰀ-Ⱞⰰ-ⱞⲀ-ⳤⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〆〱-〵〻-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄬㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀-䶵一-龻ꀀ-ꒌꠀ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢ가-힣豈-鶴侮-頻並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵÀ-ÖØ-öø-ÿĀ-ɏɓ-ɔɖ-ɗəɛɣɨɯɲʉʋʻ̀-ͯḀ-ỿЀ-ӿԀ-ԧⷠ-ⷿꙀ-֑ꚟ-ֿׁ-ׂׄ-ׇׅא-תװ-״-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏؐ-ؚؠ-ٟٮ-ۓە-ۜ۞-۪ۨ-ۯۺ-ۼۿݐ-ݿࢠࢢ-ࢬࣤ-ࣾﭐ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼ-ก-ฺเ-๎ᄀ-ᇿ-ㆅꥠ-가-ힰ-ᄀ-ᅵァ-ヺー-ヾヲ-゚0-9A-Za-zぁ-ゖ゙-ゞ㐀-䶿一-鿿"+s(173824)+"-"+s(177983)+s(177984)+"-"+s(178207)+s(194560)+"-"+s(195103)+"〃々〻";return{alpha:i,alphanumeric:i+"̀-ͯ҃-֑҆-ֹֻ-ֽֿׁ-ׂׄ-ׇׅؐ-ًؕ-ٰٞۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ްँ-ः़ा-्॑-॔ॢ-ॣঁ-ঃ়া-ৄে-ৈো-্ৗৢ-ৣਁ-ਃ਼ਾ-ੂੇ-ੈੋ-੍ੰ-ੱઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣଁ-ଃ଼ା-ୃେ-ୈୋ-୍ୖ-ୗஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕ-ౖಂ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕ-ೖം-ഃാ-ൃെ-ൈൊ-്ൗං-ඃ්ා-ුූෘ-ෟෲ-ෳัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-༹༙༵༷༾-༿ཱ-྄྆-྇ྐ-ྗྙ-ྼ࿆ာ-ဲံ-္ၖ-ၙ፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈ-ᧉᨗ-ᨛ᷀-᷃⃐-⃥⃜⃡-⃫〪-゙〯-゚ꠂ꠆ꠋꠣ-ꠧﬞ︀-️︠-︣0-9٠-٩۰-۹०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉០-៩᠐-᠙᥆-᥏᧐-᧙0-9_",hashChars:"#\\uFF03"}})(),r="["+t+"]";return"("+("^|$|[^&/"+t+"]")+")("+("["+e+"]")+")("+r+"*"+("["+n+"]")+r+"*)"})(),"i"),Az={getHashtagMatch:function(n){const t=mz.exec(n);if(t===null)return null;const e=t[3].length+1,r=t.index+t[1].length;return{end:r+e,start:r}}};function yz(n,t=Az){return ct(...pz(n,t.getHashtagMatch,Wg,e=>lM(e.getTextContent())))}const bz=new Set(["http:","https:","mailto:","sms:","tel:"]);let ql=class aM extends xt{constructor(e="",r={},s){super(s);U(this,"__url");U(this,"__target");U(this,"__rel");U(this,"__title");const{target:i=null,rel:o=null,title:l=null}=r;this.__url=e,this.__target=i,this.__rel=o,this.__title=l}static getType(){return"link"}static clone(e){return new aM(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}createDOM(e){const r=document.createElement("a");return this.updateLinkDOM(null,r,e),pt(r,e.theme.link),r}updateLinkDOM(e,r,s){if(Xy(r)){e&&e.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const o=`__${i}`,l=this[o];e&&e[o]===l||(l?r[i]=l:r.removeAttribute(i))}}}updateDOM(e,r,s){return this.updateLinkDOM(e,r,s),!1}static importDOM(){return{a:e=>({conversion:wz,priority:1})}}static importJSON(e){return Co().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=tE(e);try{const r=new URL(tE(e));if(!bz.has(r.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const r=this.getWritable();return r.__url=e,r}getTarget(){return this.getLatest().__target}setTarget(e){const r=this.getWritable();return r.__target=e,r}getRel(){return this.getLatest().__rel}setRel(e){const r=this.getWritable();return r.__rel=e,r}getTitle(){return this.getLatest().__title}setTitle(e){const r=this.getWritable();return r.__title=e,r}insertNewAfter(e,r=!0){const s=Co(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(s,r),s}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,r,s){if(!J(r))return!1;const i=r.anchor.getNode(),o=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(o)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function wz(n){let t=null;if(Xy(n)){const e=n.textContent;(e!==null&&e!==""||n.children.length>0)&&(t=Co(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:t}}function Co(n="",t){return Bt(new ql(n,t))}function Mn(n){return n instanceof ql}let Hg=class cM extends ql{constructor(e="",r={},s){super(e,r,s);U(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(e){return new cM(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const r=this.getWritable();return r.__isUnlinked=e,r}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,r,s){return super.updateDOM(e,r,s)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return $S().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,r=!0){const s=this.getParentOrThrow().insertNewAfter(e,r);if(X(s)){const i=$S(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return s.append(i),i}return null}};function $S(n="",t){return Bt(new Hg(n,t))}function ll(n){return n instanceof Hg}const xo=Ee("TOGGLE_LINK_COMMAND");function eE(n,t){if(n.type==="element"){const e=n.getNode();return X(e)||(function(r,...s){const i=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",r);for(const l of s)o.append("v",l);throw i.search=o.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),e.getChildren()[n.offset+t]||null}return null}function yA(n,t={}){let e;if(n&&typeof n=="object"){const{url:d,...h}=n;e=d,t={...h,...t}}else e=n;const{target:r,title:s}=t,i=t.rel===void 0?"noreferrer":t.rel,o=Q();if(o===null||!J(o)&&!$t(o))return;if($t(o)){const d=o.getNodes();return d.length===0?void 0:void d.forEach(h=>{if(e===null){const g=Le(h,m=>!ll(m)&&Mn(m));g&&(g.insertBefore(h),g.getChildren().length===0&&g.remove())}else{const g=Le(h,m=>!ll(m)&&Mn(m));if(g)g.setURL(e),r!==void 0&&g.setTarget(r),i!==void 0&&g.setRel(i);else{const m=Co(e,{rel:i,target:r});h.insertBefore(m),m.append(h)}}})}const l=o.extract();if(e===null){const d=new Set;return void l.forEach(h=>{const g=h.getParent();if(Mn(g)&&!ll(g)){const m=g.getKey();if(d.has(m))return;(function(A,y){const b=new Set(y.filter(N=>A.isParentOf(N)).map(N=>N.getKey())),v=A.getChildren(),C=v.filter(N=>b.has(N.getKey()));if(C.length===v.length)return v.forEach(N=>A.insertBefore(N)),void A.remove();const S=v.findIndex(N=>b.has(N.getKey())),k=v.findLastIndex(N=>b.has(N.getKey())),_=S===0,T=k===v.length-1;if(_)C.forEach(N=>A.insertBefore(N));else if(T)for(let N=C.length-1;N>=0;N--)A.insertAfter(C[N]);else{for(let M=C.length-1;M>=0;M--)A.insertAfter(C[M]);const N=v.slice(k+1);if(N.length>0){const M=Co(A.getURL(),{rel:A.getRel(),target:A.getTarget(),title:A.getTitle()});C[C.length-1].insertAfter(M),N.forEach(I=>M.append(I))}}})(g,l),d.add(m)}})}const a=new Set,u=d=>{a.has(d.getKey())||(a.add(d.getKey()),d.setURL(e),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i),s!==void 0&&d.setTitle(s))};if(l.length===1){const d=l[0],h=Le(d,Mn);if(h!==null)return u(h)}(function(d){const h=Q();if(!J(h))return d();const g=So(h),m=g.isBackward(),A=eE(g.anchor,m?-1:0),y=eE(g.focus,m?0:-1);if(d(),A||y){const b=Q();if(J(b)){const v=b.clone();if(A){const C=A.getParent();C&&v.anchor.set(C.getKey(),A.getIndexWithinParent()+(m?1:0),"element")}if(y){const C=y.getParent();C&&v.focus.set(C.getKey(),y.getIndexWithinParent()+(m?0:1),"element")}rt(So(v))}}})(()=>{let d=null;for(const h of l){if(!h.isAttached())continue;const g=Le(h,Mn);if(g){u(g);continue}if(X(h)){if(!h.isInline())continue;if(Mn(h)){if(!(ll(h)||d!==null&&d.getParentOrThrow().isParentOf(h))){u(h),d=h;continue}for(const A of h.getChildren())h.insertBefore(A);h.remove();continue}}const m=h.getPreviousSibling();Mn(m)&&m.is(d)?m.append(h):(d=Co(e,{rel:i,target:r,title:s}),h.insertAfter(d),d.append(h))}})}const Cz=/^\+?[0-9\s()-]{5,}$/;function tE(n){return n.match(/^[a-z][a-z0-9+.-]*:/i)||n.match(/^[/#.]/)?n:n.includes("@")?`mailto:${n}`:Cz.test(n)?`tel:${n}`:`https://${n}`}function xz(n,t){return ct(zu(()=>n.registerCommand(xo,e=>{const r=t.validateUrl.peek(),s=t.attributes.peek();if(e===null)return yA(null),!0;if(typeof e=="string")return!(r!==void 0&&!r(e))&&(yA(e,s),!0);{const{url:i,target:o,rel:l,title:a}=e;return yA(i,{...s,rel:l,target:o,title:a}),!0}},De)),zu(()=>{const e=t.validateUrl.value;if(!e)return;const r=t.attributes.value;return n.registerCommand(Fl,s=>{const i=Q();if(!J(i)||i.isCollapsed()||!Ni(s,ClipboardEvent)||s.clipboardData===null)return!1;const o=s.clipboardData.getData("text");return!!e(o)&&!i.getNodes().some(l=>X(l))&&(n.dispatchCommand(xo,{...r,url:o}),s.preventDefault(),!0)},De)}))}function vz(n,t,e={}){const r=i=>{const o=i.target;if(!Zl(o))return;const l=sd(o);if(l===null)return;let a=null,u=null;if(l.update(()=>{const g=He(o);if(g!==null){const m=Le(g,X);if(!t.disabled.peek())if(Mn(m))a=m.sanitizeUrl(m.getURL()),u=m.getTarget();else{const A=(function(y,b){let v=y;for(;v!=null;){if(b(v))return v;v=v.parentNode}return null})(o,Xy);A!==null&&(a=A.href,u=A.target)}}}),a===null||a==="")return;const d=n.getEditorState().read(Q);if(J(d)&&!d.isCollapsed())return void i.preventDefault();const h=i.type==="auxclick"&&i.button===1;window.open(a,t.newTab.peek()||h||i.metaKey||i.ctrlKey||u==="_blank"?"_blank":"_self"),i.preventDefault()},s=i=>{i.button===1&&r(i)};return n.registerRootListener((i,o)=>{o!==null&&(o.removeEventListener("click",r),o.removeEventListener("mouseup",s)),i!==null&&(i.addEventListener("click",r,e),i.addEventListener("mouseup",s,e))})}const uM=[];let pd=class dM extends xt{constructor(e=uM,r){super(r);U(this,"__ids");this.__ids=e}static getType(){return"mark"}static clone(e){return new dM(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){return P0().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIDs(e.ids)}exportJSON(){return{...super.exportJSON(),ids:this.getIDs()}}createDOM(e){const r=document.createElement("mark");return pt(r,e.theme.mark),this.__ids.length>1&&pt(r,e.theme.markOverlap),r}updateDOM(e,r,s){const i=e.__ids,o=this.__ids,l=i.length,a=o.length,u=s.theme.markOverlap;return l!==a&&(l===1?a===2&&pt(r,u):a===1&&_r(r,u)),!1}hasID(e){return this.getIDs().includes(e)}getIDs(){return Array.from(this.getLatest().__ids)}setIDs(e){const r=this.getWritable();return r.__ids=e,r}addID(e){const r=this.getWritable();return r.__ids.includes(e)?r:r.setIDs([...r.__ids,e])}deleteID(e){const r=this.getWritable(),s=r.__ids.indexOf(e);if(s===-1)return r;const i=Array.from(r.__ids);return i.splice(s,1),r.setIDs(i)}insertNewAfter(e,r=!0){const s=P0(this.__ids);return this.insertAfter(s,r),s}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,r,s){if(!J(r)||s==="html")return!1;const i=r.anchor,o=r.focus,l=i.getNode(),a=o.getNode(),u=r.isBackward()?i.offset-o.offset:o.offset-i.offset;return this.isParentOf(l)&&this.isParentOf(a)&&this.getTextContent().length===u}excludeFromCopy(e){return e!=="clone"}};function P0(n=uM){return Bt(new pd(n))}function Uh(n){return n instanceof pd}function nE(n){const t=n.getChildren();let e=null;for(let r=0;r<t.length;r++){const s=t[r];e===null?n.insertBefore(s):e.insertAfter(s),e=s}n.remove()}function Sz(n,t,e,r){const s=Zi(),[i,o]=n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];let l,a;s.anchor.set(i.key,i.offset,i.type),s.focus.set(o.key,o.offset,o.type);const u=s.extract();for(const d of u){if(X(a)&&a.isParentOf(d))continue;let h=null;if(fe(d))h=d;else{if(Uh(d))continue;(X(d)||ft(d))&&d.isInline()&&(h=d)}if(h!==null){if(h&&h.is(l))continue;const g=h.getParent();g!=null&&g.is(l)||(a=void 0),l=g,a===void 0&&(a=(r||P0)([e]),h.insertBefore(a)),a.append(h)}else l=void 0,a=void 0}X(a)&&(t?a.selectStart():a.selectEnd())}function Ez(n,t){let e=n;for(;e!==null;){if(Uh(e))return e.getIDs();if(fe(e)&&t===e.getTextContentSize()){const r=e.getNextSibling();if(Uh(r))return r.getIDs()}e=e.getParent()}return null}let fM=class extends xt{$config(){return this.config("overflow",{$transform(t){t.isEmpty()&&t.remove()},extends:xt})}createDOM(t){const e=document.createElement("span"),r=t.theme.characterLimit;return typeof r=="string"&&(e.className=r),e}updateDOM(t,e){return!1}insertNewAfter(t,e=!0){return this.getParentOrThrow().insertNewAfter(t,e)}excludeFromCopy(){return!0}};function kz({nodeKey:n}){const[t]=je(),[e,r,s]=zg(n);return x.useEffect(()=>ct(t.registerCommand(Gi,i=>{const o=t.getElementByKey(n);return i.target===o&&(i.shiftKey||s(),r(!e),!0)},De)),[s,t,e,n,r]),x.useEffect(()=>{const i=t.getElementByKey(n),o=t._config.theme.hrSelected??"selected";i!==null&&(e?pt(i,o):_r(i,o))},[t,e,n]),null}let Yg=class hM extends Gb{static getType(){return"horizontalrule"}static clone(t){return new hM(t.__key)}static importJSON(t){return vc().updateFromJSON(t)}static importDOM(){return{hr:()=>({conversion:Tz,priority:0})}}decorate(){return p.jsx(kz,{nodeKey:this.__key})}};function Tz(){return{node:vc()}}function vc(){return Bt(new Yg)}function Kh(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function _z(n,t=Q()){return t==null&&Kh(166),J(t)&&t.isCollapsed()||t.getNodes().length===0?"":Eh(n,t)}function Nz(n,t=Q()){return t==null&&Kh(166),J(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(Mz(n,t))}function rE(n,t,e){const r=n.getData("application/x-lexical-editor");if(r)try{const l=JSON.parse(r);if(l.namespace===e._config.namespace&&Array.isArray(l.nodes))return sE(e,Iz(l.nodes),t)}catch(l){console.error(l)}const s=n.getData("text/html"),i=n.getData("text/plain");if(s&&i!==s)try{const l=new DOMParser().parseFromString((function(a){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(a):a})(s),"text/html");return sE(e,Sg(e,l),t)}catch(l){console.error(l)}const o=i||n.getData("text/uri-list");if(o!=null)if(J(t)){const l=o.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let a=0;a<l.length;a++){const u=Q();if(J(u)){const d=l[a];d===`
|
|
36
|
-
`||d===`\r
|
|
37
|
-
`?u.insertParagraph():d===" "?u.insertNodes([ts()]):u.insertText(d)}}}else t.insertRawText(o)}function sE(n,t,e){n.dispatchCommand(KT,{nodes:t,selection:e})||(e.insertNodes(t),(function(r){if(J(r)&&r.isCollapsed()){const s=r.anchor;let i=null;const o=qs(s,"previous");if(o)if(Gs(o))i=o.origin;else{const l=Fi(o,ls(Ue(),"next").getFlipped());for(const a of l){if(fe(a.origin)){i=a.origin;break}if(X(a.origin)&&!a.origin.isInline())break}}if(i&&fe(i)){const l=i.getFormat(),a=i.getStyle();r.format===l&&r.style===a||(r.format=l,r.style=a,r.dirty=!0)}}})(e))}function gM(n,t,e,r=[]){let s=t===null||e.isSelected(t);const i=X(e)&&e.excludeFromCopy("html");let o=e;t!==null&&fe(o)&&(o=z2(t,o,"clone"));const l=X(o)?o.getChildren():[],a=(function(u){const d=u.exportJSON(),h=u.constructor;if(d.type!==h.getType()&&Kh(58,h.name),X(u)){const g=d.children;Array.isArray(g)||Kh(59,h.name)}return d})(o);fe(o)&&o.getTextContentSize()===0&&(s=!1);for(let u=0;u<l.length;u++){const d=l[u],h=gM(n,t,d,a.children);!s&&X(e)&&h&&e.extractWithChild(d,t,"clone")&&(s=!0)}if(s&&!i)r.push(a);else if(Array.isArray(a.children))for(let u=0;u<a.children.length;u++){const d=a.children[u];r.push(d)}return s}function Mz(n,t){const e=[],r=Ue().getChildren();for(let s=0;s<r.length;s++)gM(n,t,r[s],e);return{namespace:n._config.namespace,nodes:e}}function Iz(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e],s=sB(r);fe(s)&&DB(s),t.push(s)}return t}let xa=null;async function B0(n,t,e){if(xa!==null)return!1;if(t!==null)return new Promise((u,d)=>{n.update(()=>{u(iE(n,t,e))})});const r=n.getRootElement(),s=n._window||window,i=s.document,o=os(s);if(r===null||o===null)return!1;const l=i.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(i.createTextNode("#")),r.append(l);const a=new Range;return a.setStart(l,0),a.setEnd(l,1),o.removeAllRanges(),o.addRange(a),new Promise((u,d)=>{const h=n.registerCommand(Wl,g=>(Ni(g,ClipboardEvent)&&(h(),xa!==null&&(s.clearTimeout(xa),xa=null),u(iE(n,g,e))),!0),vn);xa=s.setTimeout(()=>{h(),xa=null,u(!1)},50),i.execCommand("copy"),l.remove()})}function iE(n,t,e){if(e===void 0){const s=os(n._window),i=Q();if(!i||i.isCollapsed()||!s)return!1;const o=s.anchorNode,l=s.focusNode;if(o!==null&&l!==null&&!rd(n,o,l))return!1;e=Gg(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(Lz(r,e),!0)}const pM=[["text/html",_z],["application/x-lexical-editor",Nz]];function Gg(n=Q()){const t={"text/plain":n?n.getTextContent():""};if(n){const e=Jl();for(const[r,s]of pM){const i=s(e,n);i!==null&&(t[r]=i)}}return t}function Lz(n,t){for(const[e]of pM)t[e]===void 0&&n.setData(e,"");for(const e in t){const r=t[e];r!==void 0&&n.setData(e,r)}}function Dz(n){const t=window.location.origin,e=r=>{if(r.origin!==t)return;const s=n.getRootElement();if(document.activeElement!==s)return;const i=r.data;if(typeof i=="string"){let o;try{o=JSON.parse(i)}catch{return}if(o&&o.protocol==="nuanria_messaging"&&o.type==="request"){const l=o.payload;if(l&&l.functionId==="makeChanges"){const a=l.args;if(a){const[u,d,h,g,m]=a;n.update(()=>{const A=Q();if(J(A)){const y=A.anchor;let b=y.getNode(),v=0,C=0;if(fe(b)&&u>=0&&d>=0&&(v=u,C=u+d,A.setTextNodeRange(b,v,b,C)),v===C&&h===""||(A.insertRawText(h),b=y.getNode()),fe(b)){v=g,C=g+m;const S=b.getTextContentSize();v=v>S?S:v,C=C>S?S:C,A.setTextNodeRange(b,v,b,C)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}}function oE(n,t){if(document.caretRangeFromPoint!==void 0){const e=document.caretRangeFromPoint(n,t);return e===null?null:{node:e.startContainer,offset:e.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const e=document.caretPositionFromPoint(n,t);return e===null?null:{node:e.offsetNode,offset:e.offset}}return null}const $l=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Oz=$l&&"documentMode"in document?document.documentMode:null,Rz=$l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),jz=!(!$l||!("InputEvent"in window)||Oz)&&"getTargetRanges"in new window.InputEvent("input"),Pz=$l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),lE=$l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bz=$l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Fz=$l&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Rz&&!Bz,aE=Ee("DRAG_DROP_PASTE_FILE");let Zg=class mM extends xt{static getType(){return"quote"}static clone(t){return new mM(t.__key)}createDOM(t){const e=document.createElement("blockquote");return pt(e,t.theme.quote),e}updateDOM(t,e){return!1}static importDOM(){return{blockquote:t=>({conversion:zz,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Nt(e)){this.isEmpty()&&e.append(document.createElement("br"));const r=this.getFormatType();r&&(e.style.textAlign=r);const s=this.getDirection();s&&(e.dir=s)}return{element:e}}static importJSON(t){return md().updateFromJSON(t)}insertNewAfter(t,e){const r=Me(),s=this.getDirection();return r.setDirection(s),this.insertAfter(r,e),r}collapseAtStart(){const t=Me();return this.getChildren().forEach(e=>t.append(e)),this.replace(t),!0}canMergeWhenEmpty(){return!0}};function md(){return Bt(new Zg)}function oc(n){return n instanceof Zg}let Ad=class AM extends xt{constructor(e,r){super(r);U(this,"__tag");this.__tag=e}static getType(){return"heading"}static clone(e){return new AM(e.__tag,e.__key)}getTag(){return this.__tag}setTag(e){const r=this.getWritable();return this.__tag=e,r}createDOM(e){const r=this.__tag,s=document.createElement(r),i=e.theme.heading;if(i!==void 0){const o=i[r];pt(s,o)}return s}updateDOM(e,r,s){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:va,priority:0}),h2:e=>({conversion:va,priority:0}),h3:e=>({conversion:va,priority:0}),h4:e=>({conversion:va,priority:0}),h5:e=>({conversion:va,priority:0}),h6:e=>({conversion:va,priority:0}),p:e=>{const r=e.firstChild;return r!==null&&cE(r)?{conversion:()=>({node:null}),priority:3}:null},span:e=>cE(e)?{conversion:r=>({node:Mi("h1")}),priority:3}:null}}exportDOM(e){const{element:r}=super.exportDOM(e);if(Nt(r)){this.isEmpty()&&r.append(document.createElement("br"));const s=this.getFormatType();s&&(r.style.textAlign=s);const i=this.getDirection();i&&(r.dir=i)}return{element:r}}static importJSON(e){return Mi(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,r=!0){const s=e?e.anchor.offset:0,i=this.getLastDescendant(),o=!i||e&&e.anchor.key===i.getKey()&&s===i.getTextContentSize()||!e?Me():Mi(this.getTag()),l=this.getDirection();if(o.setDirection(l),this.insertAfter(o,r),s===0&&!this.isEmpty()&&e){const a=Me();a.select(),this.replace(a,!0)}return o}collapseAtStart(){const e=this.isEmpty()?Me():Mi(this.getTag());return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}extractWithChild(){return!0}};function cE(n){return n.nodeName.toLowerCase()==="span"&&n.style.fontSize==="26pt"}function va(n){const t=n.nodeName.toLowerCase();let e=null;return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6"||(e=Mi(t),n.style!==null&&($y(n,e),e.setFormat(n.style.textAlign))),{node:e}}function zz(n){const t=md();return n.style!==null&&(t.setFormat(n.style.textAlign),$y(n,t)),{node:t}}function Mi(n="h1"){return Bt(new Ad(n))}function Js(n){return n instanceof Ad}function Ra(n){let t=null;if(Ni(n,DragEvent)?t=n.dataTransfer:Ni(n,ClipboardEvent)&&(t=n.clipboardData),t===null)return[!1,[],!1];const e=t.types,r=e.includes("Files"),s=e.includes("text/html")||e.includes("text/plain");return[r,Array.from(t.files),s]}function uE(n){const t=Q();if(!J(t))return!1;const e=new Set,r=t.getNodes();for(let s=0;s<r.length;s++){const i=r[s],o=i.getKey();if(e.has(o))continue;const l=Le(i,u=>X(u)&&!u.isInline());if(l===null)continue;const a=l.getKey();l.canIndent()&&!e.has(a)&&(e.add(a),n(l))}return e.size>0}function dE(n){const t=He(n);return ft(t)}function bA(n){for(const t of["lowercase","uppercase","capitalize"])n.hasFormat(t)&&n.toggleFormat(t)}function Uz(n){return ct(n.registerCommand(Gi,t=>{const e=Q();return!!$t(e)&&(e.clear(),!0)},Ze),n.registerCommand(Hs,t=>{const e=Q();return J(e)?(e.deleteCharacter(t),!0):!!$t(e)&&(e.deleteNodes(),!0)},Ze),n.registerCommand(Qa,t=>{const e=Q();return!!J(e)&&(e.deleteWord(t),!0)},Ze),n.registerCommand(xl,t=>{const e=Q();return!!J(e)&&(e.deleteLine(t),!0)},Ze),n.registerCommand(yo,t=>{const e=Q();if(typeof t=="string")e!==null&&e.insertText(t);else{if(e===null)return!1;const r=t.dataTransfer;if(r!=null)rE(r,e,n);else if(J(e)){const s=t.data;return s&&e.insertText(s),!0}}return!0},Ze),n.registerCommand($A,()=>{const t=Q();return!!J(t)&&(t.removeText(),!0)},Ze),n.registerCommand(Ot,t=>{const e=Q();return!!J(e)&&(e.formatText(t),!0)},Ze),n.registerCommand(go,t=>{const e=Q();if(!J(e)&&!$t(e))return!1;const r=e.getNodes();for(const s of r){const i=Le(s,o=>X(o)&&!o.isInline());i!==null&&i.setFormat(t)}return!0},Ze),n.registerCommand(fl,t=>{const e=Q();return!!J(e)&&(e.insertLineBreak(t),!0)},Ze),n.registerCommand(Bi,()=>{const t=Q();return!!J(t)&&(t.insertParagraph(),!0)},Ze),n.registerCommand(t0,()=>(ed([ts()]),!0),Ze),n.registerCommand(Ys,()=>uE(t=>{const e=t.getIndent();t.setIndent(e+1)}),Ze),n.registerCommand(ho,()=>uE(t=>{const e=t.getIndent();e>0&&t.setIndent(Math.max(0,e-1))}),Ze),n.registerCommand(Xs,t=>{const e=Q();if($t(e)){const r=e.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if(J(e)){const r=d0(e.focus,!0);if(!t.shiftKey&&ft(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Ze),n.registerCommand(Eo,t=>{const e=Q();if($t(e)){const r=e.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if(J(e)){if((function(s){const i=s.focus;return i.key==="root"&&i.offset===Ue().getChildrenSize()})(e))return t.preventDefault(),!0;const r=d0(e.focus,!1);if(!t.shiftKey&&ft(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Ze),n.registerCommand(hg,t=>{const e=Q();if($t(e)){const r=e.getNodes();if(r.length>0)return t.preventDefault(),I1(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!J(e))return!1;if(D1(e,!0)){const r=t.shiftKey;return t.preventDefault(),O1(e,r,!0),!0}return!1},Ze),n.registerCommand(fg,t=>{const e=Q();if($t(e)){const s=e.getNodes();if(s.length>0)return t.preventDefault(),I1(s[0])?s[0].selectPrevious():s[0].selectNext(0,0),!0}if(!J(e))return!1;const r=t.shiftKey;return!!D1(e,!1)&&(t.preventDefault(),O1(e,r,!1),!0)},Ze),n.registerCommand(Kl,t=>{if(dE(t.target))return!1;const e=Q();if(J(e)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:s}=r;if(s.offset!==0)return!1;const i=s.getNode();if(Vt(i))return!1;const o=yc(i);return o.getIndent()>0&&(o.is(i)||i.is(o.getFirstDescendant()))})(e))return t.preventDefault(),n.dispatchCommand(ho,void 0);if(lE&&navigator.language==="ko-KR")return!1}else if(!$t(e))return!1;return t.preventDefault(),n.dispatchCommand(Hs,!0)},Ze),n.registerCommand(hc,t=>{if(dE(t.target))return!1;const e=Q();return!(!J(e)&&!$t(e))&&(t.preventDefault(),n.dispatchCommand(Hs,!1))},Ze),n.registerCommand(vl,t=>{const e=Q();if(!J(e))return!1;if(bA(e),t!==null){if((lE||Pz||Fz)&&jz)return!1;if(t.preventDefault(),t.shiftKey)return n.dispatchCommand(fl,!1)}return n.dispatchCommand(Bi,void 0)},Ze),n.registerCommand(fc,()=>{const t=Q();return!!J(t)&&(n.blur(),!0)},Ze),n.registerCommand(Oy,t=>{const[,e]=Ra(t);if(e.length>0){const s=oE(t.clientX,t.clientY);if(s!==null){const{offset:i,node:o}=s,l=He(o);if(l!==null){const a=Zi();if(fe(l))a.anchor.set(l.getKey(),i,"text"),a.focus.set(l.getKey(),i,"text");else{const d=l.getParentOrThrow().getKey(),h=l.getIndexWithinParent()+1;a.anchor.set(d,h,"element"),a.focus.set(d,h,"element")}const u=So(a);rt(u)}n.dispatchCommand(aE,e)}return t.preventDefault(),!0}const r=Q();return!!J(r)},Ze),n.registerCommand(Ry,t=>{const[e]=Ra(t),r=Q();return!(e&&!J(r))},Ze),n.registerCommand(jy,t=>{const[e]=Ra(t),r=Q();if(e&&!J(r))return!1;const s=oE(t.clientX,t.clientY);if(s!==null){const i=He(s.node);ft(i)&&t.preventDefault()}return!0},Ze),n.registerCommand(n0,()=>(v2(),!0),Ze),n.registerCommand(Wl,t=>(B0(n,Ni(t,ClipboardEvent)?t:null),!0),Ze),n.registerCommand(qu,t=>((async function(e,r){await B0(r,Ni(e,ClipboardEvent)?e:null),r.update(()=>{const s=Q();J(s)?s.removeText():$t(s)&&s.getNodes().forEach(i=>i.remove())})})(t,n),!0),Ze),n.registerCommand(Fl,t=>{const[,e,r]=Ra(t);return e.length>0&&!r?(n.dispatchCommand(aE,e),!0):Zl(t.target)&&Hy(t.target)?!1:Q()!==null&&((function(s,i){s.preventDefault(),i.update(()=>{const o=Q(),l=Ni(s,InputEvent)||Ni(s,KeyboardEvent)?null:s.clipboardData;l!=null&&o!==null&&rE(l,o,i)},{tag:WP})})(t,n),!0)},Ze),n.registerCommand(Dy,t=>{const e=Q();return J(e)&&bA(e),!1},Ze),n.registerCommand(gc,t=>{const e=Q();return J(e)&&bA(e),!1},Ze))}function Ye(n,t,...e){if(!n)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function Wh(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}const Mo={blockCursor:"dsd__theme__blockCursor",characterLimit:"dsd__theme__characterLimit",code:"dsd__theme__code",codeCollapsed:"dsd__theme__code_сollapsed",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"}},Kz=n=>{const t={...Mo,text:{...Mo.text}};return n==="comment"&&t.text&&(delete t.text.strikethrough,delete t.text.underlineStrikethrough),t};function F0(n){let t=1,e=n.getParent();for(;e!=null;){if(kt(e)){const r=e.getParent();if(at(r)){t++,e=r.getParent();continue}Ye(!1,"A ListItemNode must have a ListNode for a parent.")}return t}return t}function z0(n){let t=n.getParent();at(t)||Ye(!1,"A ListItemNode must have a ListNode for a parent.");let e=t;for(;e!==null;)e=e.getParent(),at(e)&&(t=e);return t}function yM(n){let t=[];const e=n.getChildren().filter(kt);for(let r=0;r<e.length;r++){const s=e[r],i=s.getFirstChild();at(i)?t=t.concat(yM(i)):t.push(s)}return t}function Us(n){return kt(n)&&at(n.getFirstChild())}function Wz(n){let t=n;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){const e=t.getParent();if(e==null||!(kt(t)||at(t)))break;t=e}t.remove()}function fE(n){return wr().append(n)}function bM(n,t){return kt(n)&&(t.length===0||t.length===1&&n.is(t[0])&&n.getChildrenSize()===0)}function U0(n,t){n.update(()=>{const e=Q();if(e!==null){const r=e.getNodes();if(J(e)){const i=e.getStartEndPoints();Ye(i!==null,"insertList: anchor should be defined");const[o]=i,l=o.getNode(),a=l.getParent();if(bM(l,r)){const u=ar(t);if($n(a)){l.replace(u);const d=wr();X(l)&&(d.setFormat(l.getFormatType()),d.setIndent(l.getIndent())),u.append(d)}else if(kt(l)){const d=l.getParentOrThrow();Ol(u,d.getChildren()),d.replace(u)}return}}const s=new Set;for(let i=0;i<r.length;i++){const o=r[i];if(X(o)&&o.isEmpty()&&!kt(o)&&!s.has(o.getKey())){hE(o,t);continue}if(p2(o)){let l=o.getParent();for(;l!=null;){const a=l.getKey();if(at(l)){if(!s.has(a)){const u=ar(t);Ol(u,l.getChildren()),l.replace(u),s.add(a)}break}else{const u=l.getParent();if($n(u)&&!s.has(a)){s.add(a),hE(l,t);break}l=u}}}}}})}function Ol(n,t){n.splice(n.getChildrenSize(),0,t)}function hE(n,t){if(at(n))return n;const e=n.getPreviousSibling(),r=n.getNextSibling(),s=wr();if(s.setFormat(n.getFormatType()),s.setIndent(n.getIndent()),Ol(s,n.getChildren()),at(e)&&t===e.getListType())return e.append(s),n.remove(),at(r)&&t===r.getListType()&&(Ol(e,r.getChildren()),r.remove()),e;if(at(r)&&t===r.getListType())return r.getFirstChildOrThrow().insertBefore(s),n.remove(),r;{const i=ar(t);return i.append(s),n.replace(i),i}}function qb(n,t){const e=n.getLastChild(),r=t.getFirstChild();e&&r&&Us(e)&&Us(r)&&(qb(e.getFirstChild(),r.getFirstChild()),r.remove());const s=t.getChildren();s.length>0&&n.append(...s),t.remove()}function Hz(n){n.update(()=>{const t=Q();if(J(t)){const e=new Set,r=t.getNodes(),s=t.anchor.getNode();if(bM(s,r))e.add(z0(s));else for(let i=0;i<r.length;i++){const o=r[i];if(p2(o)){const l=lb(o,kn);l!=null&&e.add(z0(l))}}for(const i of e){let o=i;const l=yM(i);for(const a of l){const u=Me();Ol(u,a.getChildren()),o.insertAfter(u),o=u,a.__key===t.anchor.key&&t.anchor.set(u.getKey(),0,"element"),a.__key===t.focus.key&&t.focus.set(u.getKey(),0,"element"),a.remove()}i.remove()}}})}function Yz(n){const t=n.getListType()!=="check";let e=n.getStart();for(const r of n.getChildren())kt(r)&&(r.getValue()!==e&&r.setValue(e),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),at(r.getFirstChild())||e++)}function Gz(n){const t=n.getNextSibling();at(t)&&n.getListType()===t.getListType()&&qb(n,t)}function Zz(n){const t=new Set;if(Us(n)||t.has(n.getKey()))return;const e=n.getParent(),r=n.getNextSibling(),s=n.getPreviousSibling();if(Us(r)&&Us(s)){const i=s.getFirstChild();if(at(i)){i.append(n);const o=r.getFirstChild();if(at(o)){const l=o.getChildren();Ol(i,l),r.remove(),t.add(r.getKey())}}}else if(Us(r)){const i=r.getFirstChild();if(at(i)){const o=i.getFirstChild();o!==null&&o.insertBefore(n)}}else if(Us(s)){const i=s.getFirstChild();at(i)&&i.append(n)}else if(at(e)){const i=wr(),o=ar(e.getListType());i.append(o),o.append(n),s?s.insertAfter(i):r?r.insertBefore(i):e.append(i)}}function Jz(n){if(Us(n))return;const t=n.getParent(),e=t?t.getParent():void 0,r=e?e.getParent():void 0;if(at(r)&&kt(e)&&at(t)){const s=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(n.is(s))e.insertBefore(n),t.isEmpty()&&e.remove();else if(n.is(i))e.insertAfter(n),t.isEmpty()&&e.remove();else{const o=t.getListType(),l=wr(),a=ar(o);l.append(a),n.getPreviousSiblings().forEach(h=>a.append(h));const u=wr(),d=ar(o);u.append(d),Ol(d,n.getNextSiblings()),e.insertBefore(l),e.insertAfter(u),e.replace(n)}}}function Vz(){const n=Q();if(!J(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode();if(!kt(t)||t.getChildrenSize()!==0)return!1;const e=z0(t),r=t.getParent();Ye(at(r),"A ListItemNode must have a ListNode for a parent.");const s=r.getParent();let i;if($n(s))i=Me(),e.insertAfter(i);else if(kt(s))i=wr(),s.insertAfter(i);else return!1;i.select();const o=t.getNextSiblings();if(o.length>0){const l=ar(r.getListType());if(fn(i))i.insertAfter(l);else{const a=wr();a.append(l),i.insertAfter(a)}o.forEach(a=>{a.remove(),l.append(a)})}return Wz(t),!0}class kn extends xt{constructor(e,r,s,i,o){super(o);U(this,"__value");U(this,"__checked");U(this,"__opened");U(this,"__isIndeterminate");this.__value=e===void 0?1:e,this.__checked=r,this.__opened=s,this.__isIndeterminate=i}static getType(){return"listitem"}static clone(e){return new kn(e.__value,e.__checked,e.__opened,e.__isIndeterminate,e.__key)}createDOM(e){const r=document.createElement("li"),s=this.getParent();return at(s)&&s.getListType()==="check"&&pE(r,this,null),r.value=this.__value,gE(r,e.theme,this),r}updateDOM(e,r,s){const i=this.getParent();return at(i)&&i.getListType()==="check"&&pE(r,this,e),r.value=this.__value,gE(r,s.theme,this),!1}static transform(){return e=>{if(Ye(kt(e),"node is not a ListItemNode"),e.__checked==null)return;const r=e.getParent();at(r)&&r.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:Qz,priority:0})}}static importJSON(e){const r=wr(e.checked,e.opened,e.isIndeterminate);return r.setValue(e.value),r.setFormat(e.format),r.setDirection(e.direction),r}exportDOM(e){const r=this.createDOM(e._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(...e){for(let r=0;r<e.length;r++){const s=e[r];if(X(s)&&this.canMergeWith(s)){const i=s.getChildren();this.append(...i),s.remove()}else super.append(s)}return this}replace(e,r){if(kt(e))return super.replace(e);this.setIndent(0);const s=this.getParentOrThrow();if(!at(s))return e;if(s.__first===this.getKey())s.insertBefore(e);else if(s.__last===this.getKey())s.insertAfter(e);else{const i=ar(s.getListType());let o=this.getNextSibling();for(;o;){const l=o;o=o.getNextSibling(),i.append(l)}s.insertAfter(e),e.insertAfter(i)}return r&&(Ye(X(e),"includeChildren should only be true for ElementNodes"),this.getChildren().forEach(i=>{e.append(i)})),this.remove(),s.getChildrenSize()===0&&s.remove(),e}insertAfter(e,r=!0){const s=this.getParentOrThrow();if(at(s)||Ye(!1,"insertAfter: list node is not parent of list item node"),kt(e))return super.insertAfter(e,r);const i=this.getNextSiblings();if(s.insertAfter(e,r),i.length!==0){const o=ar(s.getListType());i.forEach(l=>o.append(l)),e.insertAfter(o,r)}return e}remove(e){const r=this.getPreviousSibling(),s=this.getNextSibling();super.remove(e),r&&s&&Us(r)&&Us(s)&&(qb(r.getFirstChild(),s.getFirstChild()),s.remove())}insertNewAfter(e,r=!0){const s=wr(this.__checked==null?void 0:!1);return this.insertAfter(s,r),s}collapseAtStart(e){const r=Me();this.getChildren().forEach(a=>r.append(a));const i=this.getParentOrThrow(),o=i.getParentOrThrow(),l=kt(o);if(i.getChildrenSize()===1)if(l)i.remove(),o.select();else{i.insertBefore(r),i.remove();const a=e.anchor,u=e.focus,d=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(d,a.offset,"element"),u.type==="element"&&u.getNode().is(this)&&u.set(d,u.offset,"element")}else i.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const r=this.getWritable();r.__value=e}getChecked(){const e=this.getLatest();let r;const s=this.getParent();return at(s)&&(r=s.getListType()),r==="check"?!!e.__checked:void 0}getOpened(){const e=this.getLatest();let r;const s=this.getParent();return at(s)&&(r=s.getListType()),r==="check"?!!e.__opened:void 0}setChecked(e){const r=this.getWritable();r.__checked=e}setOpened(e){const r=this.getWritable();r.__opened=e}setIndeterminate(e){const r=this.getWritable();r.__isIndeterminate=e}toggleChecked(){this.setChecked(!this.__checked)}toggleOpen(){const e=!(this.__opened===!0||this.__opened===void 0);this.setOpened(e)}getIndent(){const e=this.getParent();if(e===null)return this.getLatest().__indent;let r=e.getParentOrThrow(),s=0;for(;kt(r);)r=r.getParentOrThrow().getParentOrThrow(),s++;return s}setIndent(e){Ye(typeof e=="number","Invalid indent value."),e=Math.floor(e),Ye(e>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==e;)r<e?(Zz(this),r++):(Jz(this),r--);return this}canInsertAfter(e){return kt(e)}canReplaceWith(e){return kt(e)}canMergeWith(e){return fn(e)||kt(e)}extractWithChild(e,r){if(!J(r))return!1;const s=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(s)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return ar("bullet")}canMergeWhenEmpty(){return!0}}function gE(n,t,e){let r=[],s=[];const i=t.list,o=i?i.listitem:void 0;let l;if(i&&i.nested&&(l=i.nested.listitem),o!==void 0&&r.push(...Wh(o)),i){const a=e.getParent(),u=at(a)&&a.getListType()==="check",d=e.getChecked();(!u||d)&&s.push(i.listitemUnchecked),(!u||!d)&&s.push(i.listitemChecked),u&&r.push(d?i.listitemChecked:i.listitemUnchecked)}if(l!==void 0){const a=Wh(l);e.getChildren().some(u=>at(u))?r.push(...a):s.push(...a)}e.__isIndeterminate?r=[...r,Mo.listitemIndeterminate]:s=[...s,Mo.listitemIndeterminate],s.length>0&&_r(n,...s),r.length>0&&pt(n,...r)}function pE(n,t,e,r){at(t.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),(!e||t.__checked!==e.__checked)&&n.setAttribute("aria-checked",t.getChecked()?"true":"false"),t.__opened===!1?n.setAttribute("data-list","closed"):n.setAttribute("data-list","opened"))}function Qz(n){if(n.classList.contains("task-list-item")){for(const l of n.children)if(l.tagName==="INPUT")return Xz(l)}const e=n.getAttribute("aria-checked"),r=n.getAttribute("data-list"),s=e==="true"?!0:e==="false"?!1:void 0,i=!r||r==="opened",o=n.className.includes(Mo.listitemIndeterminate);return{node:wr(s,i,o)}}function Xz(n){if(!(n.getAttribute("type")==="checkbox"))return{node:null};const e=n.hasAttribute("checked");return{node:wr(e,!1,!0)}}function wr(n,t,e){return Bt(new kn(void 0,n,t,e))}function kt(n){return n instanceof kn}class Ki extends On{constructor(t,e){super(t,e)}static getType(){return"extended-text"}static clone(t){return new Ki(t.__text,t.__key)}static importDOM(){const t=On.importDOM(),e=document.body.getAttribute("mode")?{code:()=>({conversion:co(t==null?void 0:t.span),priority:1}),s:()=>({conversion:co(t==null?void 0:t.span),priority:1})}:{code:()=>({conversion:co(t==null?void 0:t.code),priority:1})};return{...t,...e,em:()=>({conversion:co(t==null?void 0:t.em),priority:1}),span:()=>({conversion:co(t==null?void 0:t.span),priority:1}),strong:()=>({conversion:co(t==null?void 0:t.strong),priority:1}),sub:()=>({conversion:co(t==null?void 0:t.sub),priority:1}),sup:()=>({conversion:co(t==null?void 0:t.sup),priority:1})}}static importJSON(t){return On.importJSON(t)}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}exportDOM(t){let{element:e}=super.exportDOM(t);return e instanceof HTMLElement&&e.setAttribute("lexical-element","true"),{element:e}}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function Io(n=""){return Bt(new Ki(n))}function Yn(n){return n instanceof Ki}function co(n){return t=>{const e=n==null?void 0:n(t);if(!e)return null;const r=e.conversion(t);if(!r)return r;const s=t.getAttribute("lexical-element")&&!document.body.getAttribute("mode"),i=s?t.style.backgroundColor:"",o=s?t.style.color:"",l=t.style.textDecoration;return{...r,forChild:(a,u)=>{const h=((r==null?void 0:r.forChild)??(g=>g))(a,u);if(Yn(h)){const g=[i?`background-color: ${i}`:null,o?`color: ${o}`:null,l?`text-decoration: ${l}`:null].filter(m=>m!=null).join("; ");if(g.length)return h.setStyle(g)}return h}}}}class jr extends xt{constructor(e,r,s){super(s);U(this,"__tag");U(this,"__start");U(this,"__listType");const i=yE[e]||e;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}static getType(){return"list"}static clone(e){const r=e.__listType||yE[e.__tag];return new jr(r,e.__start,e.__key)}getTag(){return this.__tag}setListType(e){const r=this.getWritable();r.__listType=e,r.__tag=e==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,r){const s=this.__tag,i=document.createElement(s);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,mE(i,e.theme,this),i}updateDOM(e,r,s){return e.__tag!==this.__tag?!0:(mE(r,s.theme,this),!1)}static transform(){return e=>{Ye(at(e),"node is not a ListNode"),Gz(e),Yz(e)}}static importDOM(){return{ol:()=>({conversion:AE,priority:0}),ul:()=>({conversion:AE,priority:0})}}static importJSON(e){const r=ar(e.listType,e.start);return r.setFormat(e.format),r.setIndent(e.indent),r.setDirection(e.direction),r}exportDOM(e){const{element:r}=super.exportDOM(e);return r&&Nt(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(...e){for(let r=0;r<e.length;r++){const s=e[r];if(kt(s))super.append(s);else{const i=wr();if(at(s))i.append(s);else if(X(s)){const o=Io(s.getTextContent());i.append(o)}else i.append(s);super.append(i)}}return this}extractWithChild(e){return kt(e)}}function mE(n,t,e){const r=[],s=[],i=t.list;if(i!==void 0){const o=i[`${e.__tag}Depth`]||[],l=F0(e)-1,a=l%o.length,u=o[a],d=i[e.__tag];let h;const g=i.nested,m=i.checklist;if(g!==void 0&&g.list&&(h=g.list),d!==void 0&&r.push(d),m!==void 0&&e.__listType==="check"&&r.push(m),u!==void 0){r.push(...Wh(u));for(let A=0;A<o.length;A++)A!==a&&s.push(e.__tag+A)}if(h!==void 0){const A=Wh(h);l>1?r.push(...A):s.push(...A)}}s.length>0&&_r(n,...s),r.length>0&&pt(n,...r)}function qz(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e];if(kt(r)){t.push(r);const s=r.getChildren();s.length>1&&s.forEach(i=>{at(i)&&t.push(fE(i))})}else t.push(fE(r))}return t}function $z(n){if(n.getAttribute("__lexicallisttype")==="check"||n.classList.contains("contains-task-list"))return!0;for(const t of n.childNodes)if(Nt(t)&&t.hasAttribute("aria-checked"))return!0;return!1}function AE(n){const t=n.nodeName.toLowerCase();let e=null;if(t==="ol"){const r=n.start;e=ar("number",r)}else t==="ul"&&($z(n)?e=ar("check"):e=ar("bullet"));return{after:qz,node:e}}const yE={ol:"number",ul:"bullet"};function ar(n,t=1){return Bt(new jr(n,t))}function at(n){return n instanceof jr}const $b=Ee("INSERT_UNORDERED_LIST_COMMAND"),Jg=Ee("INSERT_ORDERED_LIST_COMMAND"),ew=Ee("INSERT_CHECK_LIST_COMMAND"),eU=Ee("REMOVE_LIST_COMMAND");function tU(n){return ct(n.registerCommand(Jg,()=>(U0(n,"number"),!0),De),n.registerCommand($b,()=>(U0(n,"bullet"),!0),De),n.registerCommand(eU,()=>(Hz(n),!0),De),n.registerCommand(Bi,()=>!!Vz(),De))}const Hh=/^(\d+(?:\.\d+)?)px$/,bn={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class ws extends xt{constructor(e=bn.NO_STATUS,r=1,s,i){super(i);U(this,"__colSpan");U(this,"__rowSpan");U(this,"__headerState");U(this,"__width");U(this,"__backgroundColor");this.__colSpan=r,this.__rowSpan=1,this.__headerState=e,this.__width=s,this.__backgroundColor=null}static getType(){return"tablecell"}static clone(e){return new ws(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor}static importDOM(){return{td:e=>({conversion:bE,priority:0}),th:e=>({conversion:bE,priority:0})}}static importJSON(e){const r=e.colSpan||1,s=e.rowSpan||1;return Cs(e.headerState,r,e.width||void 0).setRowSpan(s).setBackgroundColor(e.backgroundColor||null)}createDOM(e){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),pt(r,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),r}exportDOM(e){const{element:r}=super.exportDOM(e);if(r){const s=r;this.__colSpan>1&&(s.colSpan=this.__colSpan),this.__rowSpan>1&&(s.rowSpan=this.__rowSpan),this.getWidth()&&(s.style.maxWidth=`${this.getWidth()}px`,s.style.minWidth=`${this.getWidth()}px`),s.style.verticalAlign="top",s.style.textAlign="start";const i=this.getBackgroundColor();i!==null?s.style.backgroundColor=i:this.hasHeader()&&(s.style.backgroundColor="#f2f3f5")}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(e){const r=this.getWritable();return r.__colSpan=e,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){const r=this.getWritable();return r.__rowSpan=e,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,r=bn.BOTH){const s=this.getWritable();return s.__headerState=e&r|s.__headerState&~r,s}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){const r=this.getWritable();return r.__width=e,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){const r=this.getWritable();return r.__backgroundColor=e,r}toggleHeaderStyle(e){const r=this.getWritable();return(r.__headerState&e)===e?r.__headerState-=e:r.__headerState+=e,r}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==bn.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function bE(n){const t=n,e=n.nodeName.toLowerCase();let r;(Hh.test(t.style.minWidth)||Hh.test(t.style.maxWidth))&&(r=parseFloat(t.style.minWidth));const s=Cs(e==="th"?bn.ROW:bn.NO_STATUS,t.colSpan,r);s.__rowSpan=t.rowSpan;const i=t.style.backgroundColor;i!==""&&(s.__backgroundColor=i);const o=t.style,l=(o&&o.textDecoration||"").split(" "),a=o.fontWeight==="700"||o.fontWeight==="bold",u=l.includes("line-through"),d=o.fontStyle==="italic",h=l.includes("underline");return{after:g=>(g.length===0&&g.push(Me()),g),forChild:(g,m)=>{if(ze(m)&&!X(g)){const A=Me();return jt(g)&&g.getTextContent()===`
|
|
38
|
-
`?null:(Yn(g)&&(a&&g.toggleFormat("bold"),u&&g.toggleFormat("strikethrough"),d&&g.toggleFormat("italic"),h&&g.toggleFormat("underline")),A.append(g),A)}return g},node:s}}function Cs(n,t=1,e){return Bt(new ws(n,t,e))}function ze(n){return n instanceof ws}const Vg=Ee("INSERT_TABLE_COMMAND"),Qg=[".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"],wE=(n,t)=>{if(X(n))return{key:n.getKey(),offset:t?n.getChildrenSize():0};const e=n.getParent();if(!e||!X(e))return null;const r=n.getIndexWithinParent();return r===-1?null:{key:e.getKey(),offset:t?r+1:r}},K0=[...Qg,"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)"],nU=[...Qg,"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"],rU=[...Qg,"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"],sU=[...Qg,"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"],iU=n=>{const t=document.querySelectorAll(".selected-block");if(t.length===0)return;setTimeout(()=>{n.update(()=>{const r=[];if(t.forEach(u=>{const d=He(u);d&&r.push(d)}),!r.length)return;const s=r[0],i=r[r.length-1],o=Zi(),l=wE(s,!1),a=wE(i,!0);!l||!a||(o.anchor.set(l.key,l.offset,"element"),o.focus.set(a.key,a.offset,"element"),rt(o))})},100);const e=r=>{const s=!!document.querySelector(".draggable-menu");if(r.button===2||s){r.preventDefault();return}const i=r.target;i.closest(".draggable-block-menu")||i.closest(".draggable-menu")||(t.forEach(o=>{ea(o)}),document.body.removeEventListener("mousedown",e))};setTimeout(()=>{document.body.addEventListener("mousedown",e)}),n.update(()=>{const r=document.querySelector(".ContentEditable__root");r==null||r.focus({preventScroll:!0})})},oU=(n,t,e)=>{var o;const r=t.code==="ArrowUp"||t.code==="ArrowLeft",s=t.code==="ArrowDown"||t.code==="ArrowRight";if(!r&&!s)return!1;const i=e[0];return i?(t.preventDefault(),(o=n.getRootElement())==null||o.focus({preventScroll:!0}),n.update(()=>{var h,g,m,A;const l=He(i);if(!l)return;const a=r?(h=l.getPreviousSibling)==null?void 0:h.call(l):(g=l.getNextSibling)==null?void 0:g.call(l);if(!a)return;let u=a;for(;X(u)&&u.getChildrenSize()>0&&(u=r?((m=u.getLastChild)==null?void 0:m.call(u))??u:((A=u.getFirstChild)==null?void 0:A.call(u))??u,u!==a););const d=(r?u==null?void 0:u.selectEnd:u==null?void 0:u.selectStart)||(u==null?void 0:u.select)||(a==null?void 0:a.select);d&&d.call(u||a)}),e.forEach(l=>ea(l)),!0):!1},lU=(n,t,e)=>{var s;const r=e[0];return r?(t.preventDefault(),(s=n.getRootElement())==null||s.focus({preventScroll:!0}),n.update(()=>{const i=He(r);if(!i||typeof i.insertAfter!="function")return;const o=Me();i.insertAfter(o),o.selectStart()}),e.forEach(i=>ea(i)),!0):!1},aU=(n,t,e)=>{const{hasSelectedBlock:r}=al(),s=(e==null?void 0:e.getSelectedTargets())||[];return!r||!s.length?!1:t.code==="Enter"&&lU(n,t,s)?(e==null||e.setSelectedTargets([]),!0):oU(n,t,s)?(e==null||e.setSelectedTargets([]),!0):!1},cU={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},CE=(n,t,e)=>function r(s){if(s instanceof KeyboardEvent&&s.key!=="Backspace"&&s.key!=="Delete"&&s.key!=="Escape")return!1;const i=s.target;i.closest(".draggable-block-menu")||i.closest(".toolbar")||i.closest(".draggable-menu")||(n==null||n.classList.remove(t),e.update(()=>{i.closest(".ContentEditable__root")||rt(null),s instanceof KeyboardEvent&&t==="selected-all-document"&&s.key!=="Escape"&&e.update(()=>{var l;(l=Ue().getFirstChild())==null||l.selectStart()}),s instanceof KeyboardEvent&&t==="selected-all-document"&&s.key==="Escape"&&e.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},tw=(n,t)=>{var e,r;if(t&&t.block){const{block:s,isCreateEventListener:i}=t,o="selected-block";if(s.classList.add(o),s.classList.remove("selected-block-hidden"),i){const l=CE(s,o,n);document.body.addEventListener("mousedown",l),document.addEventListener("keydown",l)}}else{const s="selected-all-document",i=CE(n._rootElement,s,n);document.body.addEventListener("mousedown",i),document.addEventListener("keydown",i),(e=n._rootElement)==null||e.classList.add(s),(r=n._rootElement)==null||r.classList.remove("selected-block-hidden")}},ea=n=>{n.classList.remove("selected-block"),n.classList.add("selected-block-hidden")},wA=n=>{n.querySelectorAll(".selected-block").forEach(e=>{ea(e)})},uU=(n,t,e,r,s)=>{var i;if(((i=n.selected[0])==null?void 0:i.tagName)==="LI"){let o=n.added[0];if(!n.added.length&&n.beforeSelected.length>=2){const h=n.beforeSelected[0],g=n.beforeSelected[1],m=h.getBoundingClientRect().top;g.getBoundingClientRect().top<m?o=wM(n.selected[0]):o=n.selected[0]}let a=(o==null?void 0:o.classList.contains("dsd__theme__nestedListItem"))&&n.added.length===0?1:0,u=o,d=null;for(;u;){const h=u.tagName.toUpperCase();if(h==="UL"||h==="OL")d||(d=h.toLowerCase()),a++;else if(h!=="LI")break;u=u.parentElement}if(a!==0&&e.depth!==a){if(!d)return;r({depth:a,targets:dU(a,d)}),setTimeout(()=>{s==null||s.findSelectableTargets(),s==null||s.setSelectedTargets(n.selected)})}}else!e.depth&&n.added.length&&(r({depth:999,targets:nU}),setTimeout(()=>{s==null||s.findSelectableTargets(),s==null||s.setSelectedTargets(n.selected)}));n.added.forEach(o=>{tw(t,{block:o,isCreateEventListener:!1})}),n.removed.forEach(o=>{ea(o)})},al=()=>{const n=document.querySelector("div.ContentEditable__root"),t=(n==null?void 0:n.querySelector(".selected-block"))!==null,e=n==null?void 0:n.classList.contains("selected-all-document");return{hasSelectedBlock:t,selectedAllDocument:e}},xE=(n,t,e,r)=>{if(n==="ol"){const s=Array.from({length:t},(a,u)=>`ol.dsd__theme__ol${u+1}`).join(" ");let i="";t===1&&(i=":not(.dsd__theme__nestedListItem ol)");const o=`${s}${i} >`;return e?`${o} li.dsd__theme__nestedListItem`:`${o} li:not(.dsd__theme__nestedListItem)`}else{const s=" ul".repeat(t-1).trim(),i=" ul".repeat(t).trim(),l=`ul.dsd__theme__ul${s?` ${s}`:""}:not(.dsd__theme__nestedListItem ${i}) >`;let a=`${l} li:not(.dsd__theme__nestedListItem)`;return e?`${l} li.dsd__theme__nestedListItem`:a}};function dU(n,t){if(n<1)throw new Error("Depth must be >= 1");const e=[];if(e.push(xE(t,n,!1)),e.push(xE(t,n,!0)),t==="ol"){if(n>1)for(let r=1;r<n;r++)e.push(`ol.dsd__theme__ol${r} > li:not(.dsd__theme__nestedListItem)`);return[...rU,...e]}else if(t==="ul"){if(n>1)for(let r=1;r<n;r++)e.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[...sU,...e]}return[...K0,...e]}function wM(n){const t=n.querySelector("ul, ol");let e=t==null?void 0:t.lastElementChild;for(;e&&e.tagName!=="LI";)e=e.previousElementSibling;return e!=null&&e.classList.contains("dsd__theme__nestedListItem")?wM(e)??e:e}const Sc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ti(n){n.preventDefault(),n.stopImmediatePropagation(),n.stopPropagation()}class Ec extends xt{constructor(e,r){super(r);U(this,"__height");this.__height=e}static getType(){return"tablerow"}static clone(e){return new Ec(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:fU,priority:0})}}static importJSON(e){return Uu(e.height)}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(e){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),pt(r,e.theme.tableRow),r}isShadowRoot(){return!0}setHeight(e){const r=this.getWritable();return r.__height=e,this.__height}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function fU(n){const t=n;let e;return Hh.test(t.style.height)&&(e=parseFloat(t.style.height)),{node:Uu(e)}}function Uu(n){return Bt(new Ec(n))}function hn(n){return n instanceof Ec}function hU(n,t,e=!0){const r=ow();for(let s=0;s<n;s++){const i=Uu();for(let o=0;o<t;o++){let l=bn.NO_STATUS;typeof e=="object"?(s===0&&e.rows&&(l|=bn.ROW),o===0&&e.columns&&(l|=bn.COLUMN)):e&&(s===0&&(l|=bn.ROW),o===0&&(l|=bn.COLUMN));const a=Cs(l),u=Me();u.append(Io()),a.append(u),i.append(a)}r.append(i)}return r}function CM(n){const t=Le(n,e=>hn(e));if(hn(t))return t;throw new Error("Expected table cell to be inside of table row.")}function Ao(n){const t=Le(n,e=>St(e));if(St(t))return t;throw new Error("Expected table cell to be inside of table.")}function Xg(n){const t=CM(n);return Ao(t).getChildren().findIndex(r=>r.is(t))}function qg(n){return CM(n).getChildren().findIndex(e=>e.is(n))}const gU=(n,t)=>n===bn.BOTH||n===t?t:bn.NO_STATUS;function Yh(n=!0){const t=Q();Ye(J(t)||vt(t),"Expected a RangeSelection or TableSelection");const e=t.focus.getNode(),[r,,s]=Hn(e),[i,o]=rs(s,r,r),l=i[0].length,{startRow:a}=o;let u=null;if(n){const d=a+r.__rowSpan-1,h=i[d],g=Uu();for(let A=0;A<l;A++){const{cell:y,startRow:b}=h[A];if(b+y.__rowSpan-1<=d){const C=h[A].cell.__headerState;g.append(Cs(C).append(Me()))}else y.setRowSpan(y.__rowSpan+1)}const m=s.getChildAtIndex(d);Ye(hn(m),"focusEndRow is not a TableRowNode"),m.insertAfter(g),u=g}else{const d=i[a],h=Uu();for(let m=0;m<l;m++){const{cell:A,startRow:y}=d[m];if(y===a){const v=d[m].cell.__headerState;h.append(Cs(v).append(Me()))}else A.setRowSpan(A.__rowSpan+1)}const g=s.getChildAtIndex(a);Ye(hn(g),"focusEndRow is not a TableRowNode"),g.insertBefore(h),u=h}return u}function W0(n=!0){const t=Q();Ye(J(t)||vt(t),"Expected a RangeSelection or TableSelection");const e=t.anchor.getNode(),r=t.focus.getNode(),[s]=Hn(e),[i,,o]=Hn(r),[l,a,u]=rs(o,i,s),d=l.length,h=n?Math.max(a.startColumn,u.startColumn):Math.min(a.startColumn,u.startColumn),g=n?h+i.__colSpan-1:h-1,m=o.getFirstChild();Ye(hn(m),"Expected firstTable child to be a row");let A=null;function y(C=bn.NO_STATUS){const S=Cs(C).append(Me());return A===null&&(A=S),S}let b=m;e:for(let C=0;C<d;C++){if(C!==0){const I=b.getNextSibling();Ye(hn(I),"Expected row nextSibling to be a row"),b=I}const S=l[C],k=S[g<0?0:g].cell.__headerState,_=gU(k,bn.ROW);if(g<0){nw(b,y(_));continue}const{cell:T,startColumn:N,startRow:M}=S[g];if(N+T.__colSpan-1<=g){let I=T,D=M,j=g;for(;D!==C&&I.__rowSpan>1;)if(j-=T.__colSpan,j>=0){const{cell:R,startRow:z}=S[j];I=R,D=z}else{b.append(y(_));continue e}const B=C?0:_;I.insertAfter(y(B))}else T.setColSpan(T.__colSpan+1)}A!==null&&Ku(A);const v=o.getColWidths();if(v){const C=[...v],S=g<0?0:g,k=C[S];C.splice(S,0,k),o.setColWidths(C)}return A}function pU(){const n=Q();Ye(J(n)||vt(n),"Expected a RangeSelection or TableSelection");const[t,e]=n.isBackward()?[n.focus.getNode(),n.anchor.getNode()]:[n.anchor.getNode(),n.focus.getNode()],[r,,s]=Hn(t),[i]=Hn(e),[o,l,a]=rs(s,r,i),{startRow:u}=l,{startRow:d}=a,h=d+i.__rowSpan-1;if(o.length===h-u+1){s.remove();return}const g=o[0].length,m=o[h+1],A=s.getChildAtIndex(h+1);for(let y=h;y>=u;y--){for(let v=g-1;v>=0;v--){const{cell:C,startRow:S,startColumn:k}=o[y][v];if(k===v&&(y===u&&S<u&&C.setRowSpan(C.__rowSpan-(S-u)),S>=u&&S+C.__rowSpan-1>h))if(C.setRowSpan(C.__rowSpan-(h-S+1)),Ye(A!==null,"Expected nextRowNode not to be null"),v===0)nw(A,C);else{const{cell:_}=m[v-1];_.insertAfter(C)}}const b=s.getChildAtIndex(y);Ye(hn(b),"Expected TableNode childAtIndex(%s) to be RowNode",String(y)),b.remove()}if(m!==void 0){const{cell:y}=m[0];Ku(y)}else{const y=o[u-1],{cell:b}=y[0];Ku(b)}}function mU(){const n=Q();Ye(J(n)||vt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),e=n.focus.getNode(),[r,,s]=Hn(t),[i]=Hn(e),[o,l,a]=rs(s,r,i),{startColumn:u}=l,{startRow:d,startColumn:h}=a,g=Math.min(u,h),m=Math.max(u+r.__colSpan-1,h+i.__colSpan-1),A=m-g+1;if(o[0].length===m-g+1){s.selectPrevious(),s.remove();return}const b=o.length;for(let k=0;k<b;k++)for(let _=g;_<=m;_++){const{cell:T,startColumn:N}=o[k][_];if(N<g){if(_===g){const M=g-N;T.setColSpan(T.__colSpan-Math.min(A,T.__colSpan-M))}}else if(N+T.__colSpan-1>m){if(_===m){const M=m-N+1;T.setColSpan(T.__colSpan-M)}}else T.remove()}const v=o[d],C=u>h?v[u+r.__colSpan]:v[h+i.__colSpan];if(C!==void 0){const{cell:k}=C;Ku(k)}else{const k=h<u?v[h-1]:v[u-1],{cell:_}=k;Ku(_)}const S=s.getColWidths();if(S){const k=[...S];k.splice(g,A),s.setColWidths(k)}}function Ku(n){const t=n.getFirstDescendant();t==null?n.selectStart():t.getParentOrThrow().selectStart()}function nw(n,t){const e=n.getFirstChild();e!==null?e.insertBefore(t):n.append(t)}function AU(){const n=Q();Ye(J(n)||vt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),[e,r,s]=Hn(t),i=e.__colSpan,o=e.__rowSpan;if(i===1&&o===1)return;const[l,a]=rs(s,e,e),{startColumn:u,startRow:d}=a,h=e.__headerState&bn.COLUMN,g=Array.from({length:i},(y,b)=>{let v=h;for(let C=0;v!==0&&C<l.length;C++)v&=l[C][b+u].cell.__headerState;return v}),m=e.__headerState&bn.ROW,A=Array.from({length:o},(y,b)=>{let v=m;for(let C=0;v!==0&&C<l[0].length;C++)v&=l[b+d][C].cell.__headerState;return v});if(i>1){for(let y=1;y<i;y++)e.insertAfter(Cs(g[y]|A[0]).append(Me()));e.setColSpan(1)}if(o>1){let y;for(let b=1;b<o;b++){const v=d+b,C=l[v];y=(y||r).getNextSibling(),Ye(hn(y),"Expected row next sibling to be a row");let S=null;for(let k=0;k<u;k++){const _=C[k],T=_.cell;_.startRow===v&&(S=T),T.__colSpan>1&&(k+=T.__colSpan-1)}if(S===null)for(let k=i-1;k>=0;k--)nw(y,Cs(g[k]|A[b]).append(Me()));else for(let k=i-1;k>=0;k--)S.insertAfter(Cs(g[k]|A[b]).append(Me()))}e.setRowSpan(1)}}function rs(n,t,e){const[r,s,i]=xM(n,t,e);return Ye(s!==null,"Anchor not found in Table"),Ye(i!==null,"Focus not found in Table"),[r,s,i]}function xM(n,t,e){const r=[];let s=null,i=null;function o(a){let u=r[a];return u===void 0&&(r[a]=u=[]),u}const l=n.getChildren();for(let a=0;a<l.length;a++){const u=l[a];Ye(hn(u),"Expected TableNode children to be TableRowNode");for(let d=u.getFirstChild(),h=0;d!=null;d=d.getNextSibling()){Ye(ze(d),"Expected TableRowNode children to be TableCellNode");const g=o(a);for(;g[h]!==void 0;)h++;const m={cell:d,startColumn:h,startRow:a},{__rowSpan:A,__colSpan:y}=d;for(let b=0;b<A&&!(a+b>=l.length);b++){const v=o(a+b);for(let C=0;C<y;C++)v[h+C]=m}t!==null&&s===null&&t.is(d)&&(s=m),e!==null&&i===null&&e.is(d)&&(i=m)}}return[r,s,i]}function Hn(n){let t;if(n instanceof ws)t=n;else if("__type"in n){const s=Le(n,ze);Ye(ze(s),"Expected to find a parent TableCellNode"),t=s}else{const s=Le(n.getNode(),ze);Ye(ze(s),"Expected to find a parent TableCellNode"),t=s}const e=t.getParent();Ye(hn(e),"Expected TableCellNode to have a parent TableRowNode");const r=e.getParent();return Ye(St(r),"Expected TableRowNode to have a parent TableNode"),[t,e,r]}function vE(n){const[t,,e]=Hn(n),r=e.getChildren(),s=r.length,i=r[0].getChildren().length,o=new Array(s);for(let l=0;l<s;l++)o[l]=new Array(i);for(let l=0;l<s;l++){const u=r[l].getChildren();let d=0;for(let h=0;h<u.length;h++){for(;o[l][d];)d++;const g=u[h],m=g.__rowSpan||1,A=g.__colSpan||1;for(let y=0;y<m;y++)for(let b=0;b<A;b++)o[l+y][d+b]=g;if(t===g)return{colSpan:A,columnIndex:d,rowIndex:l,rowSpan:m};d+=A}}return null}class $g{constructor(t,e,r){U(this,"tableKey");U(this,"anchor");U(this,"focus");U(this,"_cachedNodes");U(this,"dirty");this.anchor=e,this.focus=r,e._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=t}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return vt(t)?this.tableKey===t.tableKey&&this.anchor.is(t.anchor)&&this.focus.is(t.focus):!1}set(t,e,r){this.dirty=!0,this.tableKey=t,this.anchor.key=e,this.focus.key=r,this._cachedNodes=null}clone(){return new $g(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(t){}insertText(){}hasFormat(t){let e=0;this.getNodes().filter(ze).forEach(i=>{const o=i.getFirstChild();fn(o)&&(e|=o.getTextFormat())});const s=Pi[t];return(e&s)!==0}insertNodes(t){const e=this.focus.getNode();Ye(X(e),"Expected TableSelection focus to be an ElementNode"),So(e.select(0,e.getChildrenSize())).insertNodes(t)}getShape(){const t=Te(this.anchor.key);Ye(ze(t),"Expected TableSelection anchor to be (or a child of) TableCellNode");const e=vE(t);Ye(e!==null,"getCellRect: expected to find AnchorNode");const r=Te(this.focus.key);Ye(ze(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const s=vE(r);Ye(s!==null,"getCellRect: expected to find focusCellNode");const i=Math.min(e.columnIndex,s.columnIndex),o=Math.max(e.columnIndex+e.colSpan-1,s.columnIndex+s.colSpan-1),l=Math.min(e.rowIndex,s.rowIndex),a=Math.max(e.rowIndex+e.rowSpan-1,s.rowIndex+s.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(l,a),toX:Math.max(i,o),toY:Math.max(l,a)}}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const e=this.anchor.getNode(),r=this.focus.getNode(),s=Le(e,ze),i=Le(r,ze);Ye(ze(s),"Expected TableSelection anchor to be (or a child of) TableCellNode"),Ye(ze(i),"Expected TableSelection focus to be (or a child of) TableCellNode");const o=s.getParent();Ye(hn(o),"Expected anchorCell to have a parent TableRowNode");const l=o.getParent();Ye(St(l),"Expected tableNode to have a parent TableNode");const a=i.getParents()[1];if(a!==l){if(l.isParentOf(i)){const M=a.getParent();Ye(M!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,i.getKey(),M.getKey())}else{const M=l.getParent();Ye(M!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,M.getKey(),i.getKey())}return this.getNodes()}const[u,d,h]=rs(l,s,i);let g=Math.min(d.startColumn,h.startColumn),m=Math.min(d.startRow,h.startRow),A=Math.max(d.startColumn+d.cell.__colSpan-1,h.startColumn+h.cell.__colSpan-1),y=Math.max(d.startRow+d.cell.__rowSpan-1,h.startRow+h.cell.__rowSpan-1),b=g,v=m,C=g,S=m;function k(M){const{cell:I,startColumn:D,startRow:j}=M;g=Math.min(g,D),m=Math.min(m,j),A=Math.max(A,D+I.__colSpan-1),y=Math.max(y,j+I.__rowSpan-1)}for(;g<b||m<v||A>C||y>S;){if(g<b){const M=S-v,I=b-1;for(let D=0;D<=M;D++)k(u[v+D][I]);b=I}if(m<v){const M=C-b,I=v-1;for(let D=0;D<=M;D++)k(u[I][b+D]);v=I}if(A>C){const M=S-v,I=C+1;for(let D=0;D<=M;D++)k(u[v+D][I]);C=I}if(y>S){const M=C-b,I=S+1;for(let D=0;D<=M;D++)k(u[I][b+D]);S=I}}const _=new Map([[l.getKey(),l]]);let T=null;for(let M=m;M<=y;M++)for(let I=g;I<=A;I++){const{cell:D}=u[M][I],j=D.getParent();Ye(hn(j),"Expected TableCellNode parent to be a TableRowNode"),j!==T&&_.set(j.getKey(),j),_.set(D.getKey(),D);for(const B of yU(D))_.set(B.getKey(),B);T=j}const N=Array.from(_.values());return Yl()||(this._cachedNodes=N),N}getTextContent(){const t=this.getNodes().filter(r=>ze(r));let e="";for(let r=0;r<t.length;r++){const s=t[r],i=s.__parent,o=(t[r+1]||{}).__parent;e+=s.getTextContent()+(o!==i?`
|
|
39
|
-
`:" ")}return e}}function vt(n){return n instanceof $g}function SE(){const n=jn("root",0,"element"),t=jn("root",0,"element");return new $g("root",n,t)}function yU(n){const t=[],e=[n];for(;e.length>0;){const r=e.pop();Ye(r!==void 0,"Stack.length > 0; can't be undefined"),X(r)&&e.unshift(...r.getChildren()),r!==n&&t.push(r)}return t}function vM(n,t=Jl()){const e=Te(n);Ye(St(e),"TableObserver: Expected tableNodeKey %s to be a TableNode",n);const r=Rl(e,t.getElementByKey(n));return Ye(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",n),{tableElement:r,tableNode:e}}class bU{constructor(t,e){U(this,"focusX");U(this,"focusY");U(this,"listenersToRemove");U(this,"table");U(this,"isHighlightingCells");U(this,"anchorX");U(this,"anchorY");U(this,"tableNodeKey");U(this,"anchorCell");U(this,"focusCell");U(this,"anchorCellNodeKey");U(this,"focusCellNodeKey");U(this,"editor");U(this,"tableSelection");U(this,"hasHijackedSelectionStyles");U(this,"isSelecting");U(this,"shouldCheckSelection");U(this,"abortController");U(this,"listenerOptions");this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=e,this.editor=t,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(t=>t()),this.listenersToRemove.clear()}$lookup(){return vM(this.tableNodeKey,this.editor)}trackTable(){const t=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let r=!1;for(let s=0;s<e.length;s++){const l=e[s].target.nodeName;if(l==="TABLE"||l==="TBODY"||l==="THEAD"||l==="TR"){r=!0;break}}if(r)try{const{tableNode:s,tableElement:i}=this.$lookup();this.table=mu(s,i)}catch{}},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:e,tableElement:r}=this.$lookup();this.table=mu(e,r),t.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}clearHighlight(){const t=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(),t.update(()=>{const{tableNode:e,tableElement:r}=this.$lookup(),s=mu(e,r);Nf(t,s,null),rt(null),t.dispatchCommand(Xr,void 0)})}enableHighlightStyle(){const t=this.editor;t.getEditorState().read(()=>{const{tableElement:e}=this.$lookup();_r(e,t._config.theme.tableSelection),e.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1},{editor:t})}disableHighlightStyle(){const t=this.editor;t.getEditorState().read(()=>{const{tableElement:e}=this.$lookup();pt(e,t._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0},{editor:t})}updateTableTableSelection(t){if(t!==null&&t.tableKey===this.tableNodeKey){const e=this.editor;this.tableSelection=t,this.isHighlightingCells=!0,this.disableHighlightStyle(),Nf(e,this.table,this.tableSelection)}else t==null?this.clearHighlight():(this.tableNodeKey=t.tableKey,this.updateTableTableSelection(t))}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setFocusCellForSelection(t,e=!1){const r=this.editor;r.update(()=>{const{tableNode:s}=this.$lookup(),i=t.x,o=t.y;if(this.focusCell=t,this.anchorCell!==null){const l=SM(r._window);l&&l.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==i||this.anchorY!==o||e))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(i===this.focusX&&o===this.focusY)return;if(this.focusX=i,this.focusY=o,this.isHighlightingCells){const l=He(t.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&ze(l)&&s.is(ja(l))){const a=l.getKey();this.tableSelection=this.tableSelection.clone()||SE(),this.focusCellNodeKey=a,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),rt(this.tableSelection),r.dispatchCommand(Xr,void 0),Nf(r,this.table,this.tableSelection)}}})}setAnchorCellForSelection(t){this.isHighlightingCells=!1,this.anchorCell=t,this.anchorX=t.x,this.anchorY=t.y,this.editor.update(()=>{const e=He(t.elem);if(ze(e)){const r=e.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():SE(),this.anchorCellNodeKey=r}})}formatCells(t){this.editor.update(()=>{const e=Q();vt(e)||Ye(!1,"Expected grid selection");const r=Zi(),s=r.anchor,i=r.focus,o=e.getNodes().filter(ze),l=o[0].getFirstChild(),a=fn(l)?l.getFormatFlags(t,null):null;o.forEach(u=>{s.set(u.getKey(),0,"element"),i.set(u.getKey(),u.getChildrenSize(),"element"),r.formatText(t,a)}),rt(e),this.editor.dispatchCommand(Xr,void 0)})}clearText(){const t=this.editor;t.update(()=>{const e=Te(this.tableNodeKey);if(!St(e))throw new Error("Expected TableNode.");const r=Q();vt(r)||Ye(!1,"Expected grid selection");const s=r.getNodes().filter(ze);if(s.length===this.table.columns*this.table.rows){e.selectPrevious(),e.remove(),Ue().selectStart();return}s.forEach(i=>{if(X(i)){const o=Me(),l=Io();o.append(l),i.append(o),i.getChildren().forEach(a=>{a!==o&&a.remove()})}}),Nf(t,this.table,null),rt(null),t.dispatchCommand(Xr,void 0)})}}const rw="__lexicalTableSelection",SM=n=>Sc?(n||window).getSelection():null,wU=n=>(n.buttons&1)===1;function Rl(n,t){if(!t)return t;const e=t.nodeName==="TABLE"?t:n.getDOMSlot(t).element;return Ye(e.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",t.nodeName),e}function CU(n,t,e,r){const s=e.getRootElement();if(s===null)throw new Error("No root element.");const i=new bU(e,n.getKey()),o=e._window||window,l=Rl(n,t);vU(l,i),i.listenersToRemove.add(()=>xU(l,i));const a=()=>{const A=()=>{i.isSelecting=!1,o.removeEventListener("mouseup",A),o.removeEventListener("mousemove",y)},y=dl.debounce(b=>{setTimeout(()=>{if(!wU(b)&&i.isSelecting){i.isSelecting=!1,o.removeEventListener("mouseup",A),o.removeEventListener("mousemove",y);return}const v=Gh(b.target);v!==null&&(i.anchorX!==v.x||i.anchorY!==v.y)&&(b.preventDefault(),i.setFocusCellForSelection(v))},0)},20);return{onMouseMove:y,onMouseUp:A}},u=A=>{setTimeout(()=>{if(A.button!==0||!o)return;const y=Gh(A.target);y!==null&&(Ti(A),i.setAnchorCellForSelection(y));const{onMouseUp:b,onMouseMove:v}=a();i.isSelecting=!0,o.addEventListener("mouseup",b,i.listenerOptions),o.addEventListener("mousemove",v,i.listenerOptions)},0)};l.addEventListener("mousedown",u,i.listenerOptions);const d=A=>{A.button===0&&e.update(()=>{const y=Q(),b=A.target;vt(y)&&y.tableKey===i.tableNodeKey&&s.contains(b)&&i.clearHighlight()})};o.addEventListener("mousedown",d,i.listenerOptions),i.listenersToRemove.add(e.registerCommand(Eo,A=>ru(e,A,"down",n,i),ki)),i.listenersToRemove.add(e.registerCommand(Xs,A=>ru(e,A,"up",n,i),ki)),i.listenersToRemove.add(e.registerCommand(hg,A=>ru(e,A,"backward",n,i),ki)),i.listenersToRemove.add(e.registerCommand(fg,A=>ru(e,A,"forward",n,i),ki));const h=A=>()=>{const y=Q();if(!el(y,n))return!1;if(vt(y))return i.clearText(),!0;if(J(y)){const b=Le(y.anchor.getNode(),M=>ze(M));if(!ze(b))return!1;const v=y.anchor.getNode(),C=y.focus.getNode(),S=n.isParentOf(v),k=n.isParentOf(C);if(S&&!k||k&&!S)return i.clearText(),!0;const T=Le(y.anchor.getNode(),M=>X(M)),N=T&&Le(T,M=>X(M)&&ze(M.getParent()));if(!X(N)||!X(T))return!1;if(A===xl&&N.getPreviousSibling()===null)return!0}return!1};[Qa,xl,Hs].forEach(A=>{i.listenersToRemove.add(e.registerCommand(A,h(A),vn))});const g=A=>{const y=Q();if(!(vt(y)||J(y)))return!1;const b=n.isParentOf(y.anchor.getNode()),v=n.isParentOf(y.focus.getNode());if(b!==v){const C=b?"anchor":"focus",S=b?"focus":"anchor",{key:k,offset:_,type:T}=y[S];return n[y[C].isBefore(y[S])?"selectPrevious":"selectNext"]()[S].set(k,_,T),!1}return vt(y)?(A&&(A.preventDefault(),A.stopPropagation()),i.clearText(),!0):!1};i.listenersToRemove.add(e.registerCommand(Kl,g,vn)),i.listenersToRemove.add(e.registerCommand(hc,g,vn)),i.listenersToRemove.add(e.registerCommand(qu,A=>{const y=Q();if(y){if(!(vt(y)||J(y)))return!1;B0(e,Ni(A,ClipboardEvent)?A:null,Gg(y));const b=g(A);return J(y)?(y.removeText(),!0):b}return!1},vn)),i.listenersToRemove.add(e.registerCommand(Ot,A=>{const y=Q();if(!el(y,n))return!1;if(vt(y))return i.formatCells(A),!0;if(J(y)){const b=Le(y.anchor.getNode(),v=>ze(v));if(!ze(b))return!1}return!1},vn)),i.listenersToRemove.add(e.registerCommand(go,A=>{const y=Q();if(!vt(y)||!el(y,n))return!1;const b=y.anchor.getNode(),v=y.focus.getNode();if(!ze(b)||!ze(v))return!1;const[C,S,k]=rs(n,b,v),_=Math.max(S.startRow,k.startRow),T=Math.max(S.startColumn,k.startColumn),N=Math.min(S.startRow,k.startRow),M=Math.min(S.startColumn,k.startColumn);for(let I=N;I<=_;I++)for(let D=M;D<=T;D++){const j=C[I][D].cell;j.setFormat(A);const B=j.getChildren();for(let R=0;R<B.length;R++){const z=B[R];X(z)&&!z.isInline()&&z.setFormat(A)}}return!0},vn)),i.listenersToRemove.add(e.registerCommand(yo,A=>{const y=Q(),b=y==null?void 0:y.getNodes(),v=ze(b[1]),C=Ue(),S=e._keyToDOMMap.size-1===(y==null?void 0:y.getNodes().length);if(v&&e.update(()=>{const k=Me(),_=Io(A);k.append(_),b.forEach(T=>{if(!St(T))return;const N=T.getPreviousSibling(),M=T.getNextSibling();N?N.insertAfter(k,!0):M&&M.insertBefore(k).selectEnd(),T.remove()}),S&&(C.clear(),y.insertText(A))}),!el(y,n))return!1;if(vt(y))return i.clearHighlight(),!1;if(J(y)){const k=Le(y.anchor.getNode(),_=>ze(_));if(!ze(k))return!1;if(typeof A=="string"){const _=TE(e,y,n);if(_)return kE(_,n,[Io(A)]),!0}}return!1},vn)),r&&i.listenersToRemove.add(e.registerCommand(gc,A=>{const y=Q();if(!J(y)||!y.isCollapsed()||!el(y,n))return!1;const b=If(y.anchor.getNode());if(b===null)return!1;Ti(A);const v=n.getCordsFromCellNode(b,i.table);return EM(i,n,v.x,v.y,A.shiftKey?"backward":"forward"),!0},vn)),i.listenersToRemove.add(e.registerCommand(Bo,A=>n.isSelected(),ki));function m(A){const y=n.getCordsFromCellNode(A,i.table);return n.getDOMCellFromCordsOrThrow(y.x,y.y,i.table)}return i.listenersToRemove.add(e.registerCommand(KT,A=>{const{nodes:y,selection:b}=A,v=b.focus.getNode().getParent();return ze(v)?(y[0].getFirstChildOrThrow().getChildrenSize(),!0):!1},vn)),i.listenersToRemove.add(e.registerCommand(Xr,()=>{const A=Q(),y=Ji();if(i.getAndClearShouldCheckSelection()&&J(y)&&J(A)&&A.isCollapsed()){const C=A.anchor.getNode(),S=n.getFirstChild(),k=If(C);if(k!==null&&hn(S)){const _=S.getFirstChild();if(ze(_)&&!Le(k,T=>T.is(_)))return _.selectStart(),!0}}const{hasSelectedBlock:b,selectedAllDocument:v}=al();if(J(A)){const{anchor:C,focus:S}=A,k=C.getNode(),_=S.getNode(),T=If(k),N=If(_),M=!!(T&&n.is(ja(T))),I=!!(N&&n.is(ja(N))),D=M!==I,j=M&&I,B=A.isBackward();if(D){const R=A.clone();if(I){const[z]=rs(n,N,N),G=z[0][0].cell,ce=z[z.length-1].at(-1).cell;R.focus.set(B?G.getKey():ce.getKey(),B?G.getChildrenSize():ce.getChildrenSize(),"element")}else if(M){const[z]=rs(n,T,T),G=z[0][0].cell,ce=z[z.length-1].at(-1).cell;R.anchor.set(B?ce.getKey():G.getKey(),B?ce.getChildrenSize():0,"element")}rt(R),!b&&!v&&EE(e,i)}else j&&(T.is(N)||(i.setAnchorCellForSelection(m(T)),i.setFocusCellForSelection(m(N),!0),i.isSelecting||setTimeout(()=>{const{onMouseUp:R,onMouseMove:z}=a();i.isSelecting=!0,o.addEventListener("mouseup",R),o.addEventListener("mousemove",z)},0)))}else if(A&&vt(A)&&A.is(y)&&A.tableKey===n.getKey()){const C=SM(e._window);if(C&&C.anchorNode&&C.focusNode){const S=He(C.focusNode),k=S&&!n.is(ja(S)),_=He(C.anchorNode),T=_&&n.is(ja(_));if(k&&T&&C.rangeCount>0){const N=eB(C,e);N&&(N.anchor.set(n.getKey(),A.isBackward()?n.getChildrenSize():0,"element"),C.removeAllRanges(),rt(N))}}}return A&&!A.is(y)&&(vt(A)||vt(y))&&i.tableSelection&&!i.tableSelection.is(y)?(vt(A)&&A.tableKey===i.tableNodeKey?i.updateTableTableSelection(A):!vt(A)&&vt(y)&&y.tableKey===i.tableNodeKey&&i.updateTableTableSelection(null),!1):(i.hasHijackedSelectionStyles&&!n.isSelected()?SU(e,i):!i.hasHijackedSelectionStyles&&n.isSelected()&&!b&&!v&&EE(e,i),!1)},vn)),i.listenersToRemove.add(e.registerCommand(Bi,()=>{const A=Q();if(!J(A)||!A.isCollapsed()||!el(A,n))return!1;const y=TE(e,A,n);return y?(kE(y,n),!0):!1},vn)),i}function xU(n,t){sw(n)===t&&delete n[rw]}function vU(n,t){Ye(sw(n)===null,"tableElement already has an attached TableObserver"),n[rw]=t}function sw(n){return n[rw]||null}function Gh(n){let t=n;for(;t!=null;){const e=t.nodeName;if(e==="TD"||e==="TH"){const r=t._cell;return r===void 0?null:r}t=t.parentNode}return null}function mu(n,t){const e=Rl(n,t),r=[],s={columns:0,domRows:r,rows:0};let i=e.querySelector("tr"),o=0,l=0;for(r.length=0;i!=null;){const a=i.nodeName;if(a==="TD"||a==="TH"){const h=i,g={elem:h,hasBackgroundColor:h.style.backgroundColor!=="",highlighted:!1,x:o,y:l};i._cell=g;let m=r[l];m===void 0&&(m=r[l]=[]),m[o]=g}else{const h=i.firstChild;if(h!=null){i=h;continue}}const u=i.nextSibling;if(u!=null){o++,i=u;continue}const d=i.parentNode;if(d!=null){const h=d.nextSibling;if(h==null)break;l++,o=0,i=h}}return s.columns=o+1,s.rows=l+1,s}function Nf(n,t,e){const r=new Set(e?e.getNodes():[]);iw(t,(s,i)=>{const o=s.elem;r.has(i)?(s.highlighted=!0,kM(n,s)):(s.highlighted=!1,TM(n,s),o.getAttribute("style")||o.removeAttribute("style"))})}function iw(n,t){const{domRows:e}=n;for(let r=0;r<e.length;r++){const s=e[r];if(s)for(let i=0;i<s.length;i++){const o=s[i];if(!o)continue;const l=He(o.elem);l!==null&&t(o,l,{x:i,y:r})}}}function EE(n,t){t.disableHighlightStyle(),iw(t.table,e=>{e.highlighted=!0,kM(n,e)})}function SU(n,t){t.enableHighlightStyle(),iw(t.table,e=>{const r=e.elem;e.highlighted=!1,TM(n,e),r.getAttribute("style")||r.removeAttribute("style")})}const EM=(n,t,e,r,s)=>{const i=s==="forward";switch(s){case"backward":case"forward":return e!==(i?n.table.columns-1:0)?Mf(t.getCellNodeFromCordsOrThrow(e+(i?1:-1),r,n.table),i):r!==(i?n.table.rows-1:0)?Mf(t.getCellNodeFromCordsOrThrow(i?0:n.table.columns-1,r+(i?1:-1),n.table),i):i?t.selectNext():t.selectPrevious(),!0;case"up":return r!==0?Mf(t.getCellNodeFromCordsOrThrow(e,r-1,n.table),!1):t.selectPrevious(),!0;case"down":return r!==n.table.rows-1?Mf(t.getCellNodeFromCordsOrThrow(e,r+1,n.table),!0):t.selectNext(),!0;default:return!1}},EU=(n,t,e,r,s)=>{const i=s==="forward";switch(s){case"backward":case"forward":return e!==(i?n.table.columns-1:0)&&n.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(e+(i?1:-1),r,n.table)),!0;case"up":return r!==0?(n.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(e,r-1,n.table)),!0):!1;case"down":return r!==n.table.rows-1?(n.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(e,r+1,n.table)),!0):!1;default:return!1}};function el(n,t){if(J(n)||vt(n)){const e=t.isParentOf(n.anchor.getNode()),r=t.isParentOf(n.focus.getNode());return e&&r}return!1}function Mf(n,t){t?n.selectStart():n.selectEnd()}const CA="172,206,247";function kM(n,t){const e=t.elem,r=He(e);Ye(ze(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null?e.style.setProperty("background-color",`rgb(${CA})`):e.style.setProperty("background-image",`linear-gradient(to right, rgba(${CA},0.85), rgba(${CA},0.85))`),e.style.setProperty("caret-color","transparent")}function TM(n,t){const e=t.elem,r=He(e);Ye(ze(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null&&e.style.removeProperty("background-color"),e.style.removeProperty("background-image"),e.style.removeProperty("caret-color")}function If(n){const t=Le(n,ze);return ze(t)?t:null}function ja(n){const t=Le(n,St);return St(t)?t:null}function ru(n,t,e,r,s){if((e==="up"||e==="down")&&kU(n))return!1;const i=Q();if(!el(i,r)){if(J(i)){if(i.isCollapsed()&&e==="backward"){const o=i.anchor.type,l=i.anchor.offset;if(o!=="element"&&!(o==="text"&&l===0))return!1;const a=i.anchor.getNode();if(!a)return!1;const u=Le(a,h=>X(h)&&!h.isInline());if(!u)return!1;const d=u.getPreviousSibling();return!d||!St(d)?!1:(Ti(t),d.selectEnd(),!0)}else if(t.shiftKey&&(e==="up"||e==="down")){const o=i.focus.getNode();if(!i.isCollapsed()&&(e==="up"&&!i.isBackward()||e==="down"&&i.isBackward())){let a=Le(o,m=>St(m));if(ze(a)&&(a=Le(a,St)),a!==r||!a)return!1;const u=e==="down"?a.getNextSibling():a.getPreviousSibling();if(!u)return!1;let d=0;e==="up"&&X(u)&&(d=u.getChildrenSize());let h=u;if(e==="up"&&X(u)){const m=u.getLastChild();h=m||u,d=Yn(h)?h.getTextContentSize():0}const g=i.clone();return g.focus.set(h.getKey(),d,Yn(h)?"text":"element"),rt(g),Ti(t),!0}else if($n(o)){const a=e==="up"?i.getNodes()[i.getNodes().length-1]:i.getNodes()[0];if(a){const u=Le(a,ze);if(u&&r.isParentOf(u)){const d=r.getFirstDescendant(),h=r.getLastDescendant();if(!d||!h)return!1;const[g]=Hn(d),[m]=Hn(h),A=r.getCordsFromCellNode(g,s.table),y=r.getCordsFromCellNode(m,s.table),b=r.getDOMCellFromCordsOrThrow(A.x,A.y,s.table),v=r.getDOMCellFromCordsOrThrow(y.x,y.y,s.table);return s.setAnchorCellForSelection(b),s.setFocusCellForSelection(v,!0),!0}}return!1}else{let a=Le(o,d=>X(d)&&!d.isInline());if(ze(a)&&(a=Le(a,St)),!a)return!1;const u=e==="down"?a.getNextSibling():a.getPreviousSibling();if(St(u)&&s.tableNodeKey===u.getKey()){const d=u.getFirstDescendant(),h=u.getLastDescendant();if(!d||!h)return!1;const[g]=Hn(d),[m]=Hn(h),A=i.clone();return A.focus.set((e==="up"?g:m).getKey(),e==="up"?0:m.getChildrenSize(),"element"),Ti(t),rt(A),!0}}}}return e==="down"&&_M(n)&&s.setShouldCheckSelection(),!1}if(J(i)&&i.isCollapsed()){const{anchor:o,focus:l}=i,a=Le(o.getNode(),ze),u=Le(l.getNode(),ze);if(!ze(a)||!a.is(u))return!1;const d=ja(a);if(d!==r&&d!=null){const C=Rl(d,n.getElementByKey(d.getKey()));if(C!=null)return s.table=mu(d,C),ru(n,t,e,d,s)}if(e==="backward"||e==="forward"){const C=o.type,S=o.offset,k=o.getNode();if(!k)return!1;const _=i.getNodes();return _.length===1&&ft(_[0])?!1:TU(C,S,k,e)?MU(t,k,r,e):!1}const h=n.getElementByKey(a.__key),g=n.getElementByKey(o.key);if(g==null||h==null)return!1;let m;if(o.type==="element")m=g.getBoundingClientRect();else{const C=window.getSelection();if(C===null||C.rangeCount===0)return!1;m=C.getRangeAt(0).getBoundingClientRect()}const A=e==="up"?a.getFirstChild():a.getLastChild();if(A==null)return!1;const y=n.getElementByKey(A.__key);if(y==null)return!1;const b=y.getBoundingClientRect();if(e==="up"?b.top>m.top-m.height:m.bottom+m.height>b.bottom){Ti(t);const C=r.getCordsFromCellNode(a,s.table);if(t.shiftKey){const S=r.getDOMCellFromCordsOrThrow(C.x,C.y,s.table);s.setAnchorCellForSelection(S),s.setFocusCellForSelection(S,!0)}else return EM(s,r,C.x,C.y,e);return!0}}else if(vt(i)){const{anchor:o,focus:l}=i,a=Le(o.getNode(),ze),u=Le(l.getNode(),ze),[d]=i.getNodes();Ye(St(d),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const h=Rl(d,n.getElementByKey(d.getKey()));if(!ze(a)||!ze(u)||!St(d)||h==null)return!1;s.updateTableTableSelection(i);const g=mu(d,h),m=r.getCordsFromCellNode(a,g),A=r.getDOMCellFromCordsOrThrow(m.x,m.y,g);if(s.setAnchorCellForSelection(A),Ti(t),t.shiftKey){const y=r.getCordsFromCellNode(u,g);return EU(s,d,y.x,y.y,e)}else u.selectEnd();return!0}return!1}function kU(n){const t=n.getRootElement();return t?t.hasAttribute("aria-controls")&&t.getAttribute("aria-controls")==="typeahead-menu":!1}function TU(n,t,e,r){return _U(n,e,r)||NU(n,t,e,r)}function _U(n,t,e){return n==="element"&&(e==="backward"?t.getPreviousSibling()===null:t.getNextSibling()===null)}function NU(n,t,e,r){const s=Le(e,o=>X(o)&&!o.isInline());if(!s)return!1;const i=r==="backward"?t===0:t===e.getTextContentSize();return n==="text"&&i&&(r==="backward"?s.getPreviousSibling()===null:s.getNextSibling()===null)}function MU(n,t,e,r){const s=Le(t,ze);if(!ze(s))return!1;const[i,o]=rs(e,s,s);if(!IU(i,o,r))return!1;const l=LU(t,r,e);return!l||St(l)?!1:(Ti(n),r==="backward"?l.selectEnd():l.selectStart(),!0)}function IU(n,t,e){const r=n[0][0],s=n[n.length-1][n[0].length-1],{startColumn:i,startRow:o}=t;return e==="backward"?i===r.startColumn&&o===r.startRow:i===s.startColumn&&o===s.startRow}function LU(n,t,e){const r=Le(n,i=>X(i)&&!i.isInline());if(!r)return;const s=t==="backward"?r.getPreviousSibling():r.getNextSibling();return s&&St(s)?s:t==="backward"?e.getPreviousSibling():e.getNextSibling()}function kE(n,t,e){const r=Me();n==="first"?t.insertBefore(r):t.insertAfter(r),r.append(...e||[]),r.selectEnd()}function TE(n,t,e){const r=e.getParent();if(!r)return;const s=window.getSelection();if(!s)return;const i=s.anchorNode,o=n.getElementByKey(r.getKey()),l=Rl(e,n.getElementByKey(e.getKey()));if(!i||!o||!l||!o.contains(i)||l.contains(i))return;const a=Le(t.anchor.getNode(),C=>ze(C));if(!a)return;const u=Le(a,C=>St(C));if(!St(u)||!u.is(e))return;const[d,h]=rs(e,a,a),g=d[0][0],m=d[d.length-1][d[0].length-1],{startRow:A,startColumn:y}=h,b=A===g.startRow&&y===g.startColumn,v=A===m.startRow&&y===m.startColumn;return b?"first":v?"last":void 0}function _E(n,t,e,r){const s=n.querySelector("colgroup");if(!s)return;const i=[];for(let o=0;o<e;o++){const l=document.createElement("col"),a=r&&r[o];a&&(l.style.width=`${a}px`),i.push(l)}s.replaceChildren(...i)}function NE(n,t,e){e?(pt(n,t.theme.tableRowStriping),n.setAttribute("data-lexical-row-striping","true")):(_r(n,t.theme.tableRowStriping),n.removeAttribute("data-lexical-row-striping"))}const H0=new WeakSet;function _M(n=Jl()){return H0.has(n)}function DU(n,t){t?(n._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),H0.add(n)):H0.delete(n)}class xs extends xt{constructor(e){super(e);U(this,"__rowStriping");U(this,"__colWidths");this.__rowStriping=!1}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){const r=this.getWritable();return r.__colWidths=e,r}static clone(e){return new xs(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping}static importDOM(){return{table:e=>({conversion:OU,priority:1})}}static importJSON(e){const r=ow();return r.__rowStriping=e.rowStriping||!1,r.__colWidths=e.colWidths,r}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(e){const r=e.nodeName!=="TABLE"&&e.querySelector("table")||e;return Ye(r.nodeName==="TABLE","TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){const s=document.createElement("table"),i=document.createElement("colgroup");if(s.appendChild(i),_E(s,e,this.getColumnCount(),this.getColWidths()),T2(i),pt(s,e.theme.table),this.__rowStriping&&NE(s,e,!0),_M(r)){const o=document.createElement("div"),l=e.theme.tableScrollableWrapper;return l?pt(o,l):o.style.cssText="overflow-x: auto;",o.appendChild(s),o}return s}updateDOM(e,r,s){const o=this.getDOMSlot(r).element;return e.__rowStriping!==this.__rowStriping&&NE(r,s,this.__rowStriping),_E(o,s,this.getColumnCount(),this.getColWidths()),e!==this}exportDOM(e){return{...super.exportDOM(e),after:r=>{if(!r||!Nt(r))return null;const s=r.firstChild;if(!(s instanceof HTMLTableElement))return null;const i=r.querySelectorAll(":scope > tr");if(i.length>0){const o=document.createElement("tbody");o.append(...i),s.append(o),r.append(s)}return r}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){const{rows:s,domRows:i}=r;for(let o=0;o<s;o++){const l=i[o];if(l==null)continue;const a=l.findIndex(u=>{if(!u)return;const{elem:d}=u;return He(d)===e});if(a!==-1)return{x:a,y:o}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,s){const{domRows:i}=s,o=i[r];if(o==null)return null;const l=e<o.length?e:o.length-1,a=o[l];return a??null}getDOMCellFromCordsOrThrow(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(!i)throw new Error("Cell not found at cords.");return i}getCellNodeFromCords(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(i==null)return null;const o=He(i.elem);return ze(o)?o:null}getCellNodeFromCordsOrThrow(e,r,s){const i=this.getCellNodeFromCords(e,r,s);if(!i)throw new Error("Node at cords not TableCellNode.");return i}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){this.getWritable().__rowStriping=e}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(s=>{ze(s)&&(r+=s.getColSpan())}),r}}function OU(n){const t=ow();n.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0);const e=n.querySelector(":scope > colgroup");if(e){let r=[];for(const s of e.querySelectorAll(":scope > col")){const i=s.style.width;if(!i||!Hh.test(i)){r=void 0;break}r.push(parseFloat(i))}r&&t.setColWidths(r)}return{node:t}}function ow(){return Bt(new xs)}function St(n){return n instanceof xs}function RU(n){var s;const t=n.getAttribute("open");return((s=n.firstElementChild)==null?void 0:s.tagName)==="SPAN"?{node:null}:{node:lw(t!==null)}}class jl extends xt{constructor(e,r){super(r);U(this,"__open");this.__open=e}static getType(){return"collapsible-container"}static clone(e){return new jl(e.__open,e.__key)}createDOM(e,r){let s;const i=document.createElement("details");return i.open=this.__open,i.addEventListener("toggle",()=>{r.getEditorState().read(()=>this.getOpen())!==i.open&&r.update(()=>this.toggleOpen())}),s=i,s.classList.add("Collapsible__container"),s}updateDOM(e,r){const s=this.__open;return e.__open!==s&&(r.open=this.__open),!1}static importDOM(){return{details:e=>({conversion:RU,priority:1})}}static importJSON(e){return lw(e.open)}exportDOM(){const e=document.createElement("details");return e.classList.add("Collapsible__container"),this.__open&&e.setAttribute("open",""),{element:e}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(e){const r=this.getWritable();r.__open=e}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function lw(n){return new jl(n)}function Ir(n){return n instanceof jl}function jU(n){return{node:aw()}}class Wi extends xt{static getType(){return"collapsible-content"}static clone(t){return new Wi(t.__key)}createDOM(t,e){const r=document.createElement("div");return r.classList.add("Collapsible__content"),r}updateDOM(t,e){return!1}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-collapsible-content")?{conversion:jU,priority:2}:null}}exportDOM(){const t=document.createElement("div");return t.classList.add("Collapsible__content"),t.setAttribute("data-lexical-collapsible-content","true"),{element:t}}static importJSON(t){return aw()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function aw(){return new Wi}function Wu(n){return n instanceof Wi}const PU=Sc&&"documentMode"in document?document.documentMode:null;var CT;const BU=(CT=navigator.userAgentData)==null?void 0:CT.platform,Y0=Sc&&/macOS|iPod|iPhone|iPad/.test(BU);Sc&&"InputEvent"in window&&!PU&&"getTargetRanges"in new window.InputEvent("input");const FU=Sc&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent);function zU(n){return{node:cw()}}class Lo extends xt{static getType(){return"collapsible-title"}static clone(t){return new Lo(t.__key)}createDOM(t,e){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),FU&&(r.style.cursor="pointer"),r}updateDOM(t,e){return!1}static importDOM(){return{summary:t=>({conversion:zU,priority:1})}}static importJSON(t){return cw()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(t){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(t,e=!0){const r=this.getParentOrThrow();if(!Ir(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const s=this.getNextSibling();if(!Wu(s))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const i=s.getFirstChild();if(X(i))return i;{const o=Me();return s.append(o),o}}else{const s=Me();return r.insertAfter(s,e),s}}}function cw(){return new Lo}function Al(n){return n instanceof Lo}const G0={...Mo};function UU(){return{node:uw()}}class ta extends xt{static getType(){return"callout"}static clone(t){return new ta(t.__key)}constructor(t){super(t)}createDOM(t){const e=document.createElement("div");return typeof t.theme.callout=="string"&&pt(e,G0.callout),e}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:t=>t.className!==G0.callout?null:{conversion:UU,priority:2}}}static importJSON(){return uw()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function uw(){return new ta}function yd(n){return n instanceof ta}const NM=[{name:"alert",color:"rgb(250, 82, 82)",icon:p.jsx(ie.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(18, 184, 134)",icon:p.jsx(ie.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(242, 188, 57)",icon:p.jsx(ie.IconAlertTriangle,{size:16}),emoji:"⚠️"}],MM=n=>n.mode==="callout",dw="calc(50% - 25px) calc(50% - 25px)";function KU(n){const t=n.getAttribute("data-type"),e=n.style.backgroundColor;return{node:fw(e,t||"default")}}class Do extends xt{constructor(e,r,s){super(s);U(this,"__backgroundColor");U(this,"__calloutType");this.__backgroundColor=e===void 0?"#f3f3f4":e,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(e){return new Do(e.__backgroundColor,e.__calloutType,e.__key)}createDOM(e){const r=document.createElement("div");return typeof e.theme.callout=="string"&&pt(r,e.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),r.style.backgroundColor=this.__backgroundColor,r}updateDOM(e,r){return e&&(r.setAttribute("data-type",this.__calloutType),r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:e=>e.className!==G0.calloutWrapper?null:{conversion:KU,priority:2}}}static importJSON(e){return fw(e.backgroundColor,e.calloutType)}setBackgroundColor(e){const r=this.getWritable();r.__backgroundColor=e}setType(e="default"){const r=this.getWritable();r.__calloutType=e}exportJSON(){return{...super.exportJSON(),type:"callout-wrapper",backgroundColor:this.__backgroundColor,calloutType:this.__calloutType,version:1}}}function fw(n="#f3f3f4",t="default"){return new Do(n,t)}function Hi(n){return n instanceof Do}const ME={bullet:ie.IconList,check:ie.IconListCheck,"check-mark":ie.IconCheck,code:ie.IconCode,h1:ie.IconH1,h2:ie.IconH2,h3:ie.IconH3,number:ie.IconListNumbers,paragraph:ie.IconIndentIncrease,quote:ie.IconQuote,fontFamily:ie.IconLetterT,undo:ie.IconArrowBackUp,redo:ie.IconArrowForwardUp,bold:ie.IconBold,italic:ie.IconItalic,underline:ie.IconUnderline,link:ie.IconLink,"color-picker":ie.IconColorPicker,background:ie.IconBucketDroplet,photo:ie.IconPhoto,"photo-check":ie.IconPhotoCheck,"align-left":ie.IconAlignLeft,"align-end":ie.IconAlignLeft,"align-start":ie.IconAlignLeft,"align-right":ie.IconAlignRight,"align-center":ie.IconAlignCenter,"align-justify":ie.IconAlignJustified,"horizontal-rule":ie.IconFlipHorizontal,strikethrough:ie.IconStrikethrough,subscript:ie.IconSubscript,superscript:ie.IconSuperscript,minus:ie.IconMinus,plus:ie.IconPlus,"chevron-down":ie.IconChevronDown,"chevron-right":ie.IconChevronRight,grip:ie.IconGripVertical,"circle-check":ie.IconCircleCheck,"circle-x":ie.IconCircleX,pencil:ie.IconPencil,trash:ie.IconTrash,table:ie.IconTable,"caret-right":ie.IconCaretRight,grid:ie.IconColumns3,"dots-vertical":ie.IconDotsVertical,copy:ie.IconCopy,clipboard:ie.IconClipboard,cut:ie.IconCut,"arrow-bar-to-up":ie.IconArrowBarToUp,"arrow-bar-to-down":ie.IconArrowBarToDown,"arrow-bar-to-left":ie.IconArrowBarToLeft,"arrow-bar-to-right":ie.IconArrowBarToRight,"column-insert-left":ie.IconColumnInsertLeft,"column-insert-right":ie.IconColumnInsertRight,"row-insert-top":ie.IconRowInsertTop,"row-insert-bottom":ie.IconRowInsertBottom,"container-off":ie.IconContainerOff,"table-off":ie.IconTableOff,"layers-union":ie.IconLayersUnion,"layers-substract":ie.IconLayersSubtract,"сlear-format":ie.IconDropletOff,form:ie.IconCheckupList,youtube:ie.IconBrandYoutube,emoji:ie.IconMoodSmile,file:ie.IconFile,success:ie.IconCheck,warning:ie.IconAlertTriangle,alert:ie.IconExclamationCircle,defaultOff:ie.IconBaseline,embed:ie.IconCodeCircle,at:ie.IconAt,paperclip:ie.IconPaperclip,close:ie.IconX,api:ie.IconApi,music:ie.IconMusic,message:ie.IconMessage,reply:ie.IconArrowBackUp,filter:ie.IconFilter,messages:ie.IconMessages,"shield-check":ie.IconShieldCheckFilled,reOpen:ie.IconReload,send:ie.IconSend,expandSidebar:ie.IconLayoutSidebarLeftExpand,palette:ie.IconPalette},Ne=({name:n,iconStyle:t,...e})=>{const r=ME[n]||ME.bullet;return p.jsx(L.Flex,{gap:0,justify:"center",align:"center",...e,children:p.jsx(r,{size:18,stroke:2,style:t,...e})})},IM=(n,t,e)=>{const r=n.target;if(r&&(r instanceof HTMLElement||r instanceof SVGElement)){let s=null;const i=r.closest(t);for(const l of e)if(s=r.closest(l),s)break;return{lexicalDOMNode:i,isOutside:!(i||s)}}else return{lexicalDOMNode:null,isOutside:!0}},WU=({setIsMenuOpen:n,onCodeLanguageSelect:t,codeLanguage:e,CODE_LANGUAGE_OPTIONS:r})=>(x.useEffect(()=>()=>{document.documentElement.classList.remove("disable-scroll"),n(!1)},[]),p.jsx(L.Select,{onChange:s=>t(s),data:r.map(([s,i])=>({value:s,label:i})),searchable:!0,defaultValue:e,allowDeselect:!1,style:{width:140},className:"dropdown-select-language",checkIconPosition:"right",rightSection:p.jsx(ie.IconChevronDown,{style:{width:14,height:14,marginLeft:2}}),maxDropdownHeight:400,variant:"default",styles:{dropdown:{overflow:"auto",zIndex:1e3}}}));function HU({codeLanguage:n,CODE_LANGUAGE_OPTIONS:t,onCodeLanguageSelect:e,onCollapsibleCode:r,copyToClipboard:s,pointerEvents:i,showExpandButton:o,isCollapsed:l}){const[a,u]=x.useState(!1),{t:d}=Je.useTranslation(),h=()=>{u(g=>{const m=document.documentElement;return g?m.classList.remove("disable-scroll"):m.classList.add("disable-scroll"),!g})};return p.jsxs(L.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[p.jsx(L.Menu.Target,{children:p.jsx(L.Button,{style:{pointerEvents:i},radius:"sm",h:25,px:5,size:"xs",variant:"default",children:p.jsx(ie.IconMenu2,{size:18})})}),p.jsxs(L.Menu.Dropdown,{children:[p.jsx(L.Menu.Item,{style:{position:"relative",padding:0},disabled:a,closeMenuOnClick:!1,onClick:h,children:p.jsx(WU,{setIsMenuOpen:u,codeLanguage:n,onCodeLanguageSelect:e,CODE_LANGUAGE_OPTIONS:t})}),p.jsx(L.Menu.Item,{rightSection:p.jsx(ie.IconCopy,{size:14}),onClick:s,children:p.jsx(L.Text,{size:"12px",children:d("editor.menu.main.code.copy")})}),o&&p.jsx(L.Menu.Item,{onClick:r,rightSection:l?p.jsx(ie.IconArrowsDiagonal,{size:14}):p.jsx(ie.IconArrowsDiagonalMinimize2,{size:14}),children:p.jsx(L.Text,{size:"12px",children:d(l?"editor.menu.main.code.collapsible.hidden":"editor.menu.main.code.collapsible.expand")})})]})]})}function LM({onClick:n,ariaLabel:t,children:e,...r}){return p.jsx(L.Button,{radius:"sm",h:25,px:5,mr:3,size:"xs",variant:"default",onClick:n,"aria-label":t,...r,children:e})}const YU={copy:ie.IconCopy,success:ie.IconCheck,loader:ie.IconCircleDashed};function GU({copyToClipboard:n,pointerEvents:t}){const[e,r]=x.useState("copy"),{t:s}=Je.useTranslation();async function i(){await n()&&(r("loader"),setTimeout(()=>{r("success"),setTimeout(()=>{r("copy")},1e3)},1e3))}const o=YU[e];return p.jsxs(LM,{style:{pointerEvents:t},onClick:i,ariaLabel:"copy",children:[p.jsx(L.Text,{mr:"4px",size:"12px",children:s("editor.menu.main.code.copy")}),p.jsx(o,{size:14})]})}function ep(n,t,e){const r=x.useRef(null);return r.current=n,x.useMemo(()=>dl.debounce((...s)=>{r.current&&r.current(...s)},t,{maxWait:e}),[t,e])}const DM={json:"JSON",...oz};function ZU({anchorElem:n}){var j,B;const[t]=je(),{t:e}=Je.useTranslation(),[r,s]=x.useState(""),[i,o]=x.useState(!1),[l,a]=x.useState(null),[u,d]=x.useState(null),[h,g]=x.useState({right:"0",top:"0"}),m=x.useRef(null),A=x.useRef(null),y=(j=k())==null?void 0:j.classList.contains("dsd__theme__callout-wrapper"),b=A.current&&((B=A.current)==null?void 0:B.offsetWidth)<=300,v=A.current&&A.current.scrollHeight>280,C=i?"auto":"none",S=_();function k(){return A.current}function _(){const R=[];for(const[z,G]of Object.entries(DM))R.push([z,G]);return R.sort(([z],[G])=>z.localeCompare(G)),R}const T=ep(R=>{const{lexicalDOMNode:z,isOutside:G}=IM(R,"code.dsd__theme__code, div.dsd__theme__callout-wrapper",["div.dropdown-select-language","div.mantine-Select-option","div.action-menu-container","div.mantine-Menu-dropdown"]);if(G){o(!1);return}if(!z)return;A.current=z;let ce=null,oe="";if(t.update(()=>{const W=He(z);W&&a(W.__key),Ii(W)?(ce=W,oe=ce.getLanguage()||"",s(oe?ZS[oe]||oe:"Выберите форматирование"),d(ce.__isCollapsed)):Hi(W)&&(ce=W)}),ce){const{y:W,right:Z,left:ae}=n.getBoundingClientRect(),{y:q,right:K,left:Y}=z.getBoundingClientRect();o(!0),m.current&&(m.current.style.visibility="visible");const te=q-W,ue=Z-K,re=Y-ae;g(()=>({right:`${ue}px`,left:`${re}px`,top:`${te}px`}))}},50,500);x.useEffect(()=>ct(t.registerMutationListener(Ri,R=>{t.getEditorState().read(()=>{for(const[z,G]of R)G==="destroyed"&&o(!1)})}),t.registerUpdateListener(({dirtyElements:R,dirtyLeaves:z})=>{i&&(R.size>0||z.size>0)&&t.getEditorState().read(()=>{const G=Gt();(G==null?void 0:G.__type)!=="extend-code"&&(G==null?void 0:G.__type)!=="code-highlight"&&m.current&&(m.current.style.visibility="hidden")})})),[t,i]),x.useEffect(()=>(document.addEventListener("mousemove",T),()=>{o(!1),T.cancel(),document.removeEventListener("mousemove",T)}),[T]);const N=x.useCallback(()=>{d(R=>!R),t.update(()=>{if(l!==null){const R=Te(l);Ii(R)&&R.toggleCodeState()}})},[t,l]),M=x.useCallback(R=>{t.update(()=>{if(l!==null){const z=Te(l);if(Ii(z)){z.setLanguage(R),z.selectStart();const G=z.getLanguage()||"";s(G?ZS[G]||G:"")}}})},[t,l]),I=R=>{t.update(()=>{const z=Te(l);Hi(z)&&t.update(()=>{const G=MM(R);z.setType(G?R.meta.type:void 0),z.setBackgroundColor(R.value),o(!1)})})};async function D(){const R=k();if(!R)return!1;let z="";t.update(()=>{const G=He(R);Ii(G)&&(z=G.getTextContent());const ce=Q();rt(ce)});try{return await navigator.clipboard.writeText(z),!0}catch(G){return console.error("Failed to copy: ",G),!1}}return y?p.jsx("div",{className:`action-menu-container callout-action ${i?"visible":""}`,ref:m,style:{right:h.right,top:h.top,pointerEvents:C},children:i&&p.jsx(Rt.NewColorPicker,{data:{callout:{label:e("editor.colors.theme"),filled:!0,palette:NM.map(R=>({label:e(`editor.colors.callout.${R.name}`),value:L.alpha(R.color,.19),icon:R.icon,meta:{type:R.name,emoji:R.emoji}}))}},onChange:R=>{I(R)},modes:["callout","background"],hideInherit:!0,target:p.jsx(L.ActionIcon,{variant:"default","aria-label":"Settings",children:p.jsx(Ne,{name:"palette",style:{cursor:"pointer"}})}),menuProps:{trigger:"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},value:{background:"",callout:""}})}):p.jsxs("div",{className:`action-menu-container ${i?"visible":""}`,ref:m,style:{right:h.right,top:h.top,left:h.left,pointerEvents:C},children:[!b&&p.jsx(L.Select,{onChange:R=>M(R),data:S.map(([R,z])=>({value:R,label:z})),searchable:!0,value:r,allowDeselect:!1,style:{pointerEvents:C,width:140},className:"dropdown-select-language",checkIconPosition:"right",rightSection:p.jsx(ie.IconChevronDown,{style:{width:14,height:14,marginLeft:2}}),maxDropdownHeight:400,variant:"default"}),p.jsxs("div",{className:"code-action-button-container",children:[!b&&p.jsxs(p.Fragment,{children:[p.jsx(GU,{pointerEvents:C,copyToClipboard:D}),v?p.jsx(LM,{style:{pointerEvents:C},onClick:N,ariaLabel:"expand",children:u?p.jsx(L.Tooltip,{label:e("editor.menu.main.code.collapsible.hidden"),children:p.jsx(ie.IconArrowsDiagonal,{size:14})}):p.jsx(L.Tooltip,{label:e("editor.menu.main.code.collapsible.expand"),children:p.jsx(ie.IconArrowsDiagonalMinimize2,{size:14})})}):null]}),p.jsx(L.Tooltip,{label:e("editor.menu.main.code.exitCommandText"),children:p.jsx(L.Text,{truncate:"end",size:"sm",id:"exitCommandParagraph",children:"Shift + Enter"})})]}),b&&p.jsx(HU,{onCodeLanguageSelect:M,CODE_LANGUAGE_OPTIONS:S,codeLanguage:r,onCollapsibleCode:N,copyToClipboard:D,pointerEvents:C,showExpandButton:v,isCollapsed:u})]})}function JU({anchorElem:n=document.body}){return Dr.createPortal(p.jsx(ZU,{anchorElem:n}),(n==null?void 0:n.parentElement)||document.body)}const xA=new Map;class Lr extends Ri{constructor(e=!1,r="plain",s){super(r,s);U(this,"__isCollapsed");this.__isCollapsed=e}static getType(){return"extend-code"}static clone(e){return new Lr(e.__isCollapsed,e.getLanguage(),e.__key)}static importJSON(e){const{isCollapsed:r=!0,language:s=null}=e,i=new Lr(r,s,e.key);return i.setLanguage(e.language||""),i}createDOM(e,r){const s=document.createElement("code");return s.classList.add("dsd__theme__code"),s.setAttribute("spellcheck","false"),s.setAttribute("data-language",String(this.__language)),s.setAttribute("data-highlight-language",String(this.__language)),this.__isCollapsed?(s.classList.add(e.theme.codeCollapsed),s.setAttribute("data-collapsed",String(this.__isCollapsed))):s.setAttribute("data-collapsed","false"),setTimeout(()=>{xA.set(this.__key,s.getAttribute("data-gutter")||"")},0),s}updateDOM(e,r,s){return this.__isCollapsed!==e.__isCollapsed?(this.__isCollapsed?(r.classList.add(Mo.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Mo.codeCollapsed),r.setAttribute("data-collapsed","false")),!1):(setTimeout(()=>{xA.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(e,r,s))}exportDOM(e){var o;const r=document.createElement("pre");pt(r,e._config.theme.code,(o=e._config.theme.ltr)==null?void 0:o[0]),r.setAttribute("spellcheck","false"),r.setAttribute("data-language",String(this.__language)||"plain"),r.setAttribute("data-highlight-language",String(this.__language)||"plain");const s=DM[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(s)),r.setAttribute("data-collapsed",String(this.__isCollapsed)),this.__isCollapsed&&r.classList.add(e._config.theme.codeCollapsed);const i=xA.get(this.__key);return r.setAttribute("data-gutter",i||"1"),{element:r}}static importDOM(){return{...super.importDOM(),pre:r=>{const s=r.getAttribute("data-collapsed")==="true",i=r.getAttribute("data-language")||"";return r.hasAttribute("data-collapsed")?{conversion:()=>({node:new Lr(s,i)}),priority:1}:null}}}exportJSON(){return{...super.exportJSON(),isCollapsed:this.__isCollapsed,language:this.getLanguage(),type:"extend-code",version:1}}toggleCodeState(){const e=this.getWritable();return e.__isCollapsed=!this.__isCollapsed}insertNewAfter(e,r=!0){const{anchor:s,focus:i}=e,l=(s.isBefore(i)?s:i).getNode();if(fe(l)){let a=VU(l);const u=[];for(;;)if(Wn(a))u.push(ts()),a=a.getNextSibling();else if(Xt(a)){let b=0;const v=a.getTextContent(),C=a.getTextContentSize();for(;b<C&&v[b]===" ";)b++;if(b!==0&&u.push(Bt(new Dl(" ".repeat(b)))),b!==C)break;a=a.getNextSibling()}else break;const d=l.splitText(s.offset)[0],h=s.offset===0?0:1,g=d.getIndexWithinParent()+h,m=l.getParentOrThrow(),A=[cr(),...u];m.splice(g,0,A);const y=u[u.length-1];y?y.select():s.offset===0?d.selectPrevious():d.getNextSibling().selectNext(0,0)}if(Ii(l)){const{offset:a}=e.anchor;l.splice(a,0,[cr()]),l.select(a+1,a+1)}return null}}function OM(n=!1){return Bt(new Lr(n))}function Ii(n){return n instanceof Lr}function VU(n){let t=n,e=n;for(;Xt(e)||Wn(e);)t=e,e=e.getPreviousSibling();return t}function Gt(n){const t=Q();if(J(t)){const r=t.anchor.getNode();if(r!==null){const s=r.getParent();return n?s:r}}return null}function QU(n){n.update(()=>{const t=Q();if(J(t)){const e=t.getNodes();let r=null,s=null;if(e.forEach((i,o)=>{o===0&&(r=i.getParent()),o===e.length-1&&(s=i.getParent())}),r&&s){const i=Q();J(i)&&(r.isAttached()&&s.isAttached()?Yn(r)&&Yn(s)?i.setTextNodeRange(r,0,s,s.getTextContentSize()):(i.anchor.set(r.getKey(),0,"element"),i.focus.set(s.getKey(),s.getChildrenSize(),"element")):console.error("Error: One of the nodes is not attached."))}}})}const tp=(n,t)=>{n.update(()=>{if(typeof t=="string"){const e=Te(t);e&&e.remove();return}t&&t.remove()})};function XU(n,t){t.update(()=>{let e=Zi();n.getParent()&&(e.anchor.set(n.getKey(),0,"element"),e.focus.set(n.getKey(),0,"element"),rt(e))})}function qU(){const n=Q();if(J(n)){const t=n.anchor,e=n.focus,r=e.getNode(),s=Ii(r)?r.__size:r.getTextContentSize(),i=t.offset===0,o=e.offset===s;if(i&&o)return!0}return!1}function Au(n,t){const e=h0(n),r=[[n,e]];let s;for(;(s=r.length)>0;)for(let i=0;i<s;i++){const o=r.shift();if(o!==void 0){const[l,a]=o;if(X(l)&&X(a)){const u=l.getChildren();for(const d of u){if(t&&d.is(t))continue;const h=h0(d);Yn(d)&&Yn(h)&&(h.setFormat(d.__format),h.setStyle(d.__style)),a.append(h),r.push([d,h])}}}}return e}function $U(n,t,e=3){if(!n)return null;let r=n,s=0;for(;r&&s<e;){if(t(r))return r;if(r.__type==="root")break;r=r.getParent(),s++}return null}function lc(n,t,e){var s;const r=e||{root:!0};if(n){let i=n.getParent();if(r[i==null?void 0:i.__type]){const o=t.getElementByKey(n.__key),l=$U(i,yd);if(l&&(l.getFirstChild()===n.getTopLevelElement()||l.getFirstChild()===((s=n.getTopLevelElement())==null?void 0:s.getParent()))){const u=l.getParent(),d=u?t.getElementByKey(u.__key):null;if(d)return{htmlElement:d,lexicalNode:He(d)}}return{htmlElement:o,lexicalNode:n}}return lc(i,t,r)}return{htmlElement:null,lexicalNode:null}}function IE(n,t,e,r){var s;if(n)if((n==null?void 0:n.__type)==="root"||(n==null?void 0:n.__type)==="layout-item"||(n==null?void 0:n.__type)==="callout-wrapper"||(n==null?void 0:n.__type)==="collapsible-content"){const i=(r==null?void 0:r.clientY)||0,{left:o}=((s=t.getElementByKey(n.__key))==null?void 0:s.getBoundingClientRect())||{left:0},{paddingLeft:l}=window.getComputedStyle(r==null?void 0:r.target),a=document.elementFromPoint(o+parseFloat(l)+10,i),u=He(a||document.body);return u?lc(u,t,e):{htmlElement:null,lexicalNode:null}}else return lc(n,t,e);return{htmlElement:null,lexicalNode:null}}const Zh=n=>{n.update(()=>{Q()!==null&&rt(null)})},Z0=()=>{const n=Ue(),t=n==null?void 0:n.getFirstChild();return n.getChildren().length>1?!1:t&&X(t)&&t.isEmpty()&&!Ii(t)},RM=n=>{n.update(()=>{const t=Ue(),e=Me(),r=Q();J(r)&&(r.format=0,r.setStyle("")),t.append(e).selectEnd()})},oi={transition:"fade",duration:400},LE=x.lazy(()=>Promise.resolve().then(()=>require("./layers.C_76Fkdi.js")));function eK(n){const t=n.getAttribute("data-lexical-excalidraw-json"),e=n.firstChild.style.height||"0",r=n.firstChild.style.width||"0",s=n.style.justifyContent||"left",i=e==="inherit"?"inherit":parseInt(e,10),o=r==="inherit"?"inherit":parseInt(r,10);return t?{node:jM(t,o,i,s)}:null}class Oo extends _s{constructor(e="[]",r="inherit",s="inherit",i="left",o){super(o);U(this,"__data");U(this,"__width");U(this,"__height");U(this,"__alignment");this.__data=e,this.__width=r,this.__height=s,this.__alignment=i}static getType(){return"excalidraw"}static clone(e){return new Oo(e.__data,e.__width,e.__height,e.__alignment,e.__key)}static importJSON(e){return new Oo(e.data,e.width??"inherit",e.height??"inherit",e.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(e){const r=document.createElement("span"),i=e.theme.excalidraw;return i!==void 0&&(r.className=i),r}updateDOM(){return!1}static importDOM(){return{span:e=>e.className==="editor-excalidraw"?{conversion:eK,priority:2}:null}}exportDOM(e){const r=document.createElement("span"),s=document.createElement("span");r.style.display="inline-block",r.style.width="100%";const i=e.getElementByKey(this.getKey());if(i!==null){const o=i.querySelector(".excalidraw-svg");o!==null&&(s.innerHTML=o.outerHTML)}return s.style.width=this.__width==="inherit"?"inherit":`${parseInt(String(this.__width))}%`,s.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(s),{element:r}}setData(e){const r=this.getWritable();r.__data=e}getWidth(){return this.getLatest().__width}setWidth(e){const r=this.getWritable();r.__width=e}getHeight(){return this.getLatest().__height}setHeight(e){const r=this.getWritable();r.__height=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}setAlignment(e){const r=this.getWritable();r.__alignment=e}isInline(){return!1}decorate(){return LE?p.jsx(x.Suspense,{fallback:null,children:p.jsx(LE,{nodeKey:this.getKey(),data:this.__data,width:this.__width,height:this.__height,alignment:this.__alignment})}):p.jsx("div",{})}}function jM(n="[]",t="inherit",e="inherit",r="left"){return new Oo(n,t,e,r)}function tK(n){return n instanceof Oo}const nK=x.lazy(()=>Promise.resolve().then(()=>require("./layers.CZpgoAb0.js")));function rK(n){const t=n;if(t.src.startsWith("file:///"))return null;const{alt:e,src:r,width:s,height:i}=t,o=t.getAttribute("data-id"),l=t.getAttribute("height")??"inherit",a=t.getAttribute("width")??"inherit",u=r===window.location.href?"":r,d=t.style.justifyContent||"left";return{node:np({altText:e,height:l!=null&&l.includes("%")?l:i,src:u,width:a!=null&&a.includes("%")?a:s,id:String(o),alignment:d})}}class qi extends _s{constructor(e,r,s,i,o,l,a,u,d,h,g,m){super(d);U(this,"__src");U(this,"__altText");U(this,"__width");U(this,"__height");U(this,"__maxWidth");U(this,"__showCaption");U(this,"__caption");U(this,"__captionsEnabled");U(this,"__id");U(this,"__create");U(this,"__alignment");this.__src=e,this.__altText=r,this.__maxWidth=Number(s),this.__width=i||"inherit",this.__height=o||"inherit",this.__showCaption=l||!1,this.__caption=a||nd(),this.__captionsEnabled=u||u===void 0,this.__id=h||"0",this.__create=g||!1,this.__alignment=m||"left"}static getType(){return"image"}static clone(e){return new qi(e.__src,e.__altText,e.__maxWidth,e.__width,e.__height,e.__showCaption,e.__caption,e.__captionsEnabled,e.__key,e.__id,e.__create,e.__alignment)}static importJSON(e){const{altText:r,height:s,width:i,maxWidth:o,caption:l,src:a,showCaption:u,alignment:d}=e,h=np({altText:r,height:s,maxWidth:o,showCaption:u,src:a,width:i,create:!1,alignment:d}),g=h.__caption,m=g.parseEditorState(l.editorState);return m.isEmpty()||g.setEditorState(m),h}exportDOM(){const e=document.createElement("img");e.setAttribute("src",this.__src),e.setAttribute("alt",""),e.setAttribute("data-id",this.__id),(this.__width==="auto"||typeof this.__width=="number"&&this.__width%1!==0)&&e.setAttribute("data-type","icon/image"),typeof this.__width=="number"?(e.setAttribute("width","inherit"),e.setAttribute("height","inherit")):(e.setAttribute("width",this.__width.toString()),e.setAttribute("height",this.__height.toString())),e.setAttribute("data-id",this.__id),e.style.justifyContent=this.__alignment||"left";const r=document.createElement("span");return r.className="editor-image",r.style.justifyContent=this.__alignment||"left",r.appendChild(e),{element:r}}static importDOM(){return{img:()=>({conversion:rK,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}}setId(e){const r=this.getWritable();r.__id=e}setSrc(e){if(this.getSrc()!==""&&e.trim()==="")return;const s=this.getWritable();s.__src=e}setAlt(e){const r=this.getWritable();r.__altText=e}setAlignment(e){const r=this.getWritable();r.__alignment=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}setShowCaption(e){const r=this.getWritable();r.__showCaption=e}createDOM(e){const r=document.createElement("span"),i=e.theme.image;return r.style.justifyContent=this.__alignment||"left",i!==void 0&&(r.className=i),r}updateDOM(e,r){return this.__alignment!==e.__alignment&&(r.style.display="flex",r.style.justifyContent=this.__alignment||"left"),!1}getSrc(){return this.__src}replaceBase64(e,r){const s=this.getWritable();s.__src=e,r&&(s.__id=r)}getAltText(){return this.__altText}isInline(){return!1}isKeyboardSelectable(){return!0}setCreated(e){const r=this.getWritable();r.__create=e}decorate(){return p.jsx(nK,{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})}}function np({altText:n,height:t,maxWidth:e,captionsEnabled:r,src:s,width:i,showCaption:o,caption:l,key:a,id:u,create:d,alignment:h}){return Bt(new qi(s,n,e,i,t,o,l,r,a,u,d,h))}function ac(n){return n instanceof qi}const hw=({editor:n,nodeKey:t,opened:e,setOpened:r,t:s,setShown:i,isShown:o})=>{const l=a=>{t&&n.update(()=>{const u=Te(t);(u instanceof qi||u instanceof na||u instanceof Oo)&&(u.setAlignment(a),u.getPreviousSibling()?u.selectPrevious():u.selectStart(),i&&i(!1))})};return p.jsxs(L.Menu,{opened:e,shadow:"md",onChange:r,transitionProps:oi,children:[p.jsx(L.Menu.Target,{children:p.jsx(L.Tooltip,{label:s("editor.toolbar.align"),disabled:o,children:p.jsx(L.ActionIcon,{size:24,variant:"default",color:"gray","aria-label":"Settings",children:p.jsx(Ne,{size:"14",name:"align-justify"})})})}),p.jsxs(L.Menu.Dropdown,{p:0,py:3,children:[p.jsx(L.Menu.Item,{onClick:()=>{l("left")},leftSection:p.jsx(Ne,{size:"16",name:"align-left"}),children:s("editor.toolbar.left")}),p.jsx(L.Menu.Item,{onClick:()=>l("center"),leftSection:p.jsx(Ne,{size:"16",name:"align-center"}),children:s("editor.toolbar.center")}),p.jsx(L.Menu.Item,{onClick:()=>l("right"),leftSection:p.jsx(Ne,{size:"16",name:"align-right"}),children:s("editor.toolbar.right")})]})]})},sK=n=>{if(n==="left")return["n-resize","s-resize","e-resize","se-resize","ne-resize"];if(n==="center")return["sw-resize","nw-resize","w-resize","n-resize","s-resize","e-resize","se-resize","ne-resize"];if(n==="right")return["sw-resize","nw-resize","w-resize","n-resize","s-resize"]},ji=Ee(),J0=Ee(),gw=Ee(),V0=Ee(),pw=Ee(),PM=Ee(),BM=Ee(),FM=Ee(),Q0=(()=>{var t;const n=(t=window.navigator)==null?void 0:t.userAgentData;return n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),iK={center:-8,right:2,left:-18},oK=(n,t,e,r)=>{const i=n.width/2,o=n.height/2,l=r==null?void 0:r.classList[1],a=iK[l];switch(t){case"nw-resize":return{x:0,y:0};case"ne-resize":return{x:n.width-16,y:0};case"sw-resize":return{x:0,y:n.height-16};case"se-resize":return{x:n.width-16,y:n.height-16};case"n-resize":return{x:i+a,y:0};case"s-resize":return{x:i+a,y:n.height-16};case"w-resize":return{x:0,y:o-8};case"e-resize":return{x:n.width-16,y:o-(e?17:8)}}},lK=(n,t,e,r=["nw-resize","ne-resize","sw-resize","se-resize","n-resize","s-resize","w-resize","e-resize"])=>{const i=e<=32,o=e>=n.height-32,l=t<=32,a=t>=n.width-32;return i&&l?r.includes("nw-resize")?"nw-resize":"default":i&&a?r.includes("ne-resize")?"ne-resize":"default":o&&l?r.includes("sw-resize")?"sw-resize":"default":o&&a?r.includes("se-resize")?"se-resize":"default":i?r.includes("n-resize")?"n-resize":"default":o?r.includes("s-resize")?"s-resize":"default":l?r.includes("w-resize")?"w-resize":"default":a&&r.includes("e-resize")?"e-resize":"default"},Lf=32,Df=(n,t)=>n&&typeof n=="number"?Math.min(n/t*100,95.5):95.5;function aK(n){const e=100-4e3/n;return{minResizePercent:Math.max(5,9792/n),maxWidthPercent:e}}const mw=({editor:n,width:t,height:e,initialHeight:r,initialWidth:s,children:i,onResizeStart:o,isIcon:l,onResizeEnd:a,alignment:u,isEmbed:d,type:h,disableInteractions:g=!1})=>{const[m,A]=x.useState({x:-1e3,y:-1e3}),[y,b]=x.useState(30),[v,C]=x.useState("default"),[S,k]=x.useState(!1),{imperativeHandleRef:_}=x.useContext(Pt),[T,N]=x.useState(null),M=x.useMemo(()=>sK(u)||["e-resize"],[u]),I=M.length===1&&M[0]==="e-resize",D=x.useRef(null),j=x.useRef(null),B=x.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}),R=(K,Y=95.5)=>{var ue;const te=(ue=n._window)==null?void 0:ue.innerWidth;if(te){let re=100;d&&(re=250);const se=re/te*100;return K<se?se:K>Y?Y:K}else return K<20?20:K>100?100:K},z=(K,Y)=>{const te=Math.min(K,Y);return 15+(Math.max(200,Math.min(800,te))-100)/500*15},G=(K,Y,te)=>{if(C("default"),!S)return;let ue=v;ue=lK(K,Y,te,M),B.current.isResizing&&(ue=v),C(ue),b(y),A(re=>oK(K,ue,d||!1,D.current)||re)},ce=K=>{var re;if(Q0)return;K.preventDefault();const Y=(re=D.current)==null?void 0:re.getBoundingClientRect();if(!Y)return;const te=K.clientX-Y.left,ue=K.clientY-Y.top;B.current.isResizing||G(Y,te,ue)},oe=(K,Y=12,te=95.5,ue=B.current.rootWidth)=>{const re=D.current,se=B.current;if(!re||K.button===2||!(se!=null&&se.isResizing))return;const he=re.getBoundingClientRect(),xe=K.clientX-he.left,pe=K.clientY-he.top;G(he,xe,pe);const $=.17,le=u==="right",Se=u==="center",we=se.isLeft,Oe=se.isTop,Ke=se.isBottom,ke=se.direction==="y",_e=se.isRight,et=Math.floor(le?he.right-K.clientX-(he.right-se.startX):K.clientX-se.startX),mt=Math.floor(K.clientY-se.startY);let Ve=0;we||_e?Ve=et/ue*100:(Oe||Ke||Se)&&(Ve=mt*$),(we||Oe)&&(!le||ke&&!we)&&(!Ke||Se)&&(Ve=-Ve),(Oe&&_e||Ke&&_e)&&(Ve=et/ue*100),Ve=Math.max(-100,Math.min(100,Ve));const Ft=se.startWidthPercent+Ve,Re=se.startHeightPercent+Ve;se.currentWidthPercent=R(Math.max(Y,Ft),te),se.currentHeightPercent=R(Math.max(Y,Re),te),re.style.width=`${se.currentWidthPercent}%`,re.style.height=`${se.currentHeightPercent}%`},W=K=>{var re,se;const Y=B.current;if(Y.isResizing=!1,(re=D.current)==null||re.classList.remove("is-resizing"),(se=D.current)==null||se.releasePointerCapture(K.pointerId),a(Y.currentWidthPercent+"%",Y.currentHeightPercent+"%"),document.removeEventListener("pointermove",oe),!D.current)return;const te=D.current.getBoundingClientRect(),ue=z(te.width,te.height);b(ue)},Z=K=>{var ve,Be;if(K.button===2||!S){K.preventDefault(),K.stopPropagation();return}if(!D.current)return;D.current.classList.add("is-resizing");const Y=n.getRootElement();if(!Y)return;const te=Y.getBoundingClientRect();if(!n.isEditable()||v==="default")return;const ue=j.current;if(ue===null)return;const re=(ve=D.current)==null?void 0:ve.getBoundingClientRect();if(!ue.getBoundingClientRect()||!re)return;const{width:he,height:xe,top:pe,left:$}=re,le=K.clientX-$,Se=K.clientY-pe,we=Se<=Lf,Oe=Se>=xe-Lf,Ke=le<=Lf,ke=le>=he-Lf,_e=B.current,et=window.getComputedStyle(Y),mt=parseFloat(et.paddingTop),Ve=parseFloat(et.paddingBottom),Ft=parseFloat(et.paddingLeft),Re=parseFloat(et.paddingRight);_e.rootHeight=te.height-mt-Ve||0,_e.rootWidth=te.width-Ft-Re||0,_e.ratio=he/xe,_e.currentWidth=_e.currentWidth||he,_e.currentWidthPercent=+D.current.style.width.replace("%",""),_e.currentHeight=_e.currentHeight||xe,_e.currentHeightPercent=+D.current.style.height.replace("%",""),_e.startX=K.clientX,_e.startY=K.clientY,_e.startWidth=_e.currentWidth||he,_e.startWidthPercent=_e.currentWidthPercent,_e.startHeight=_e.currentHeight||xe,_e.startHeightPercent=_e.currentHeightPercent,_e.isResizing=!0,_e.isTop=we,_e.isBottom=Oe,_e.isLeft=Ke,_e.isRight=ke,_e.direction=Oe||we?"y":"x",o&&o(),D.current.setPointerCapture(K.pointerId);const tt=((Be=D.current.parentElement)==null?void 0:Be.offsetWidth)??_e.rootWidth,{maxWidthPercent:nt,minResizePercent:ye}=aK(tt);document.addEventListener("pointermove",At=>{var ot,Zt;return oe(At,h==="video"?40:ye,nt,(Zt=(ot=D.current)==null?void 0:ot.parentElement)==null?void 0:Zt.offsetWidth)}),document.addEventListener("pointerup",W,{capture:!0,once:!0})};x.useEffect(()=>{var re;const K=D.current;if(!K)return;if(typeof t=="number"&&typeof e=="number"){K.style.width=`${R(t)}%`,K.style.height=`${R(e)}%`;return}const Y=(re=K.parentElement)==null?void 0:re.getBoundingClientRect();if(!Y)return;const te=Df(r,Y.height),ue=Df(s,Y.width);K.style.width=`${ue}%`,K.style.height=`${te}%`},[t,e,s,r]),x.useEffect(()=>{var ue;if(!D.current)return;const K=D.current.getBoundingClientRect(),Y=(ue=D.current.parentElement)==null?void 0:ue.getBoundingClientRect(),te=z(K.width,K.height);if(b(te),typeof t=="number"&&typeof e=="number")D.current.style.width=`${R(t)}%`,D.current.style.height=`${R(e)}%`,B.current.currentWidthPercent=t,B.current.currentHeightPercent=e;else if(Y){const re=Df(r,Y.height),se=Df(s,Y.width);requestAnimationFrame(()=>{D.current&&(D.current.style.height=`${re}%`,D.current.style.width=`${se}%`)}),B.current.currentWidthPercent=se,B.current.currentHeightPercent=re}else D.current.style.height="100%",D.current.style.width="100%",B.current.currentWidthPercent=100,B.current.currentHeightPercent=100},[D.current,l,r,s]);const ae=K=>{const te=K.target.closest("[data-lexical-decorator]");return te?n.update(()=>{const ue=He(te);ue&&ue instanceof _s&&(typeof ue.select=="function"&&ue.select(),N(ue))}):N(null),!1},q=()=>(T&&setTimeout(()=>{n.update(()=>(T.insertAfter(Me()).selectStart(),N(null),!0))}),!1);return _!=null&&_.current&&(_.current.decoratorEnterAction=q),x.useEffect(()=>{const K=n.registerCommand(Gi,ae,Ss);return()=>{K()}},[T]),Q0?i:p.jsxs("div",{ref:D,className:`resizable-container ${u||""} ${I?"hide-padding":""}`,style:{cursor:v,pointerEvents:g?"none":"auto"},onMouseMove:g?void 0:ce,onMouseEnter:g?void 0:()=>k(!0),onMouseLeave:g?void 0:()=>{k(!1),C("default")},onMouseUp:g?void 0:()=>{n.dispatchCommand(ji,"show_menu")},onPointerDown:g?void 0:Z,children:[p.jsx("svg",{className:`resizable-container__handle ${S?"hovered":""}`,style:{"--clip-x1":`${m.x-y}px`,"--clip-y1":`${m.y-y}px`,"--clip-x2":`${m.x+y}px`,"--clip-y2":`${m.y-y}px`,"--clip-x3":`${m.x+y}px`,"--clip-y3":`${m.y+y}px`,"--clip-x4":`${m.x-y}px`,"--clip-y4":`${m.y+y}px`,clipPath:`polygon(
|
|
40
|
-
var(--clip-x1) var(--clip-y1),
|
|
41
|
-
var(--clip-x2) var(--clip-y2),
|
|
42
|
-
var(--clip-x3) var(--clip-y3),
|
|
43
|
-
var(--clip-x4) var(--clip-y4)
|
|
44
|
-
)`,opacity:S?1:0,transition:`${B.current.isResizing?"none":` opacity 0.3s ease-in-out, clip-path ${(M==null?void 0:M.length)<4?"0.2s":"0.3s"} cubic-bezier(0.825, 0.225, 0.280, 0.770)`}`},children:p.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),p.jsx("div",{ref:j,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:B.current.isResizing?"none":"auto"},children:i})]})},Jh=n=>typeof n=="string"&&n.includes("%")?parseFloat(n):n,X0=Ee("INSERT_VIDEO_COMMAND"),zM=Ee("UPLOAD_VIDEO_COMMAND");function UM(n,t=!1){const e=n.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(e&&e[2].length===11)return{platform:"youtube",id:e[2]};const r=n.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const o=r[1]||r[3],l=r[2]||r[4];return{platform:"vk",id:`${o}-${l}`}}const s=n.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(s)return{platform:"rutube",id:s[1]};if(n==="upload")return{platform:"upload",id:null};if(t)return{platform:"link",id:n};const i=n.split("/").pop();return i?{platform:"download",id:i}:{platform:"unknown",id:null}}function Hu(n,t){let e="";switch(n){case"youtube":e=`https://www.youtube-nocookie.com/embed/${t}`;break;case"download":t.includes("/")?e=`${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(t)?e=`/v1/attachments/${t}`:e=`${t}`;break;case"vk":const r=t.split("-");e=`https://vk.com/video_ext.php?oid=-${r[0]}&id=${r[1]}`;break;case"link":e=t;break;case"rutube":e=`https://rutube.ru/play/embed/${t}`;break}return e}function cK({children:n}){return p.jsx("div",{className:"media-actions",children:n})}function Aw({size:n=32}){return p.jsx("div",{className:"stars-animation",style:{width:n,height:n},children:p.jsxs("svg",{className:"stars-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 32 32",fill:"none",children:[p.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:"black"}),p.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"}),p.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:"black"}),p.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:"black"})]})})}function rp(){return""}function sp(){return{}}async function ip(n,t,e=6e4){const r=new AbortController,s=setTimeout(()=>r.abort(),e);try{const i=await fetch(n,{...t,signal:r.signal});return clearTimeout(s),i}catch(i){throw clearTimeout(s),i}}async function DE(n,t,e="PAGE",r,s){const i=(r||rp())+"/v1/videos/init",o={"Content-Type":"application/json",...s||sp()},l={parentId:t,parentType:e,file:{originalFileName:n.name,contentType:n.type||"application/octet-stream",bytesTotal:n.size}};try{const a=await ip(i,{method:"POST",headers:o,body:JSON.stringify(l),credentials:r?void 0:"include"},3e4);if(!a.ok){let d={};try{const g=await a.text();g&&(d=JSON.parse(g))}catch{d={message:"Unknown error"}}const h={status:a.status,statusText:a.statusText,data:d};throw console.error("initVideo API error:",{url:i,status:a.status,statusText:a.statusText,data:d,requestBody:l}),h}return await a.json()}catch(a){throw(a==null?void 0:a.name)==="AbortError"?(console.error("initVideo timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):a!=null&&a.status?a:(console.error("initVideo fetch error:",{url:i,error:(a==null?void 0:a.message)||a}),{status:0,statusText:"Network Error",data:{message:(a==null?void 0:a.message)||"Network error occurred"}})}}async function Yu(n,t,e){const r=(t||rp())+`/v1/videos/${n}/status`,s={...e||sp()};try{const i=await ip(r,{method:"GET",headers:s,credentials:t?void 0:"include"},1e4);if(!i.ok){const l=await i.json().catch(()=>({}));throw console.error("fetchStatus API error:",{url:r,status:i.status,statusText:i.statusText,data:l}),{status:i.status,statusText:i.statusText,data:l}}return await i.json()}catch(i){throw(i==null?void 0:i.name)==="AbortError"?(console.error("fetchStatus timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):i!=null&&i.status?i:(console.error("fetchStatus fetch error:",{url:r,error:(i==null?void 0:i.message)||i}),{status:0,statusText:"Network Error",data:{message:(i==null?void 0:i.message)||"Network error occurred"}})}}async function uK(n,t,e,r){const s=rp()+`/v1/videos/${n}/cover`,i=new FormData;i.append("file",t);const o=await ip(s,{method:"POST",headers:sp(),body:i,credentials:"include"},3e4);if(!o.ok){const l=await o.json().catch(()=>({}));throw{status:o.status,statusText:o.statusText,data:l}}return o.json()}async function dK(n,t,e){const r=rp()+`/v1/videos/${n}/retry`,s={...sp()};try{const i=await ip(r,{method:"POST",headers:s,credentials:t?void 0:"include"},3e4);if(!i.ok){const o=await i.json().catch(()=>({}));throw console.error("retryVideoProcessing API error:",{url:r,status:i.status,statusText:i.statusText,data:o}),{status:i.status,statusText:i.statusText,data:o}}}catch(i){throw(i==null?void 0:i.name)==="AbortError"?(console.error("retryVideoProcessing timeout"),{status:408,statusText:"Request Timeout",data:{message:"Request timeout"}}):i!=null&&i.status?i:(console.error("retryVideoProcessing fetch error:",{url:r,error:(i==null?void 0:i.message)||i}),{status:0,statusText:"Network Error",data:{message:(i==null?void 0:i.message)||"Network error occurred"}})}}const fK=2e3;function hK(n){return!n||n.playable!==!0?null:n.downloadUrl?n.downloadUrl:n.primaryUrl&&n.optimizedReady||n.proxyReady&&n.primaryUrl?n.primaryUrl:n.rawPlayable&&n.rawUrl?n.rawUrl:n.primaryUrl?n.primaryUrl:n.rawUrl?n.rawUrl:n.fallbackUrl?n.fallbackUrl:null}function gK(n){return!n||n.playable!==!0?null:n.rawPlayable&&n.rawUrl?n.rawUrl:n.proxyReady&&n.primaryUrl?n.primaryUrl:null}function pK({videoId:n,baseUrl:t,authHeaders:e,enabled:r=!0}){const[s,i]=x.useState(null),[o,l]=x.useState(!0),a=x.useRef(null),u=x.useCallback(()=>{a.current&&(clearInterval(a.current),a.current=null)},[]),d=x.useCallback(()=>{if(u(),!n||!r)return;l(!0);const v=n,C=async()=>{var S;if(v)try{const k=await Yu(v,t,e);if(i(k),k.failure){u();return}if(((S=k.playback)==null?void 0:S.optimizedReady)===!0){u();return}}catch(k){if((k==null?void 0:k.status)===404||(k==null?void 0:k.statusText)==="Not Found"){l(!1),u();return}console.error("Video status polling error:",(k==null?void 0:k.message)||k)}};a.current=setInterval(C,fK),C()},[n,r,t,e,u]);x.useEffect(()=>(r&&n?d():(u(),l(!0)),()=>{u()}),[r,n,d,u]);const h=(s==null?void 0:s.playback)||null,g=hK(h),m=(h==null?void 0:h.primaryUrl)||null,A=(h==null?void 0:h.optimizedReady)===!0,y=(h==null?void 0:h.rawPlayable)===!0,b=gK(h);return{status:s,playback:h,videoUrl:g,primaryUrl:m,optimizedReady:A,nativeVideoUrl:b,rawPlayable:y,isStatusAvailable:o}}const mK=18e4;function AK(n){if(!n)return"analysis";switch(n){case"QUEUED":case"PROXY_LQ":case"TRANSCODING":return"analysis";case"PACKAGING":case"THUMBNAILS":return"conversion";default:return"analysis"}}function yK({videoId:n,status:t,onAnalysisComplete:e,onConversionComplete:r,onError:s}){const[i,o]=x.useState({percent:0,stage:"analysis",remaining:void 0}),[l,a]=x.useState(!1),[u,d]=x.useState(!1),h=x.useRef(!1),g=x.useRef(""),m=x.useRef(0),A=x.useRef(!1),y=x.useRef(!1),b=x.useRef(!1),v=x.useRef(e),C=x.useRef(r),S=x.useRef(s);v.current=e,C.current=r,S.current=s,x.useEffect(()=>{var B,R,z,G,ce,oe;if(!l||u||!t)return;if(t.failure){const W=t.failure,Z=(W==null?void 0:W.message)||(W==null?void 0:W.reason)||"Unknown error";console.error("Video processing failed:",Z),a(!1),(B=S.current)==null||B.call(S);return}const I=t.playback||null,D=(I==null?void 0:I.playable)===!0,j=(I==null?void 0:I.optimizedReady)===!0;if(D&&!y.current&&(y.current=!0,(R=v.current)==null||R.call(v)),D&&!b.current&&(b.current=!0,(z=C.current)==null||z.call(C)),j){y.current||(y.current=!0,(G=v.current)==null||G.call(v)),b.current||(b.current=!0,(ce=C.current)==null||ce.call(C)),a(!1);return}if(t.processing){const W=t.processing,Z=W.percent!=null?W.percent:0,ae=AK(W.stage),q=JSON.stringify({stage:W.stage,percent:Z});q!==g.current&&(g.current=q,m.current=Date.now(),A.current=!1,ae==="conversion"&&!y.current&&(y.current=!0,(oe=v.current)==null||oe.call(v)));const K=Date.now();!A.current&&m.current>0&&K-m.current>mK&&(A.current=!0,console.warn("Processing stall detected",{stage:W.stage,percent:Z,stalledMs:K-m.current})),o({percent:Z,stage:ae,remaining:Z<100?Math.ceil((100-Z)/5):void 0})}},[l,u,t]);const k=x.useCallback(()=>{n&&(a(!0),h.current=!1,d(!1),y.current=!1,o({percent:0,stage:"analysis",remaining:void 0}),g.current="",m.current=0,A.current=!1,b.current=!1)},[n]),_=x.useCallback(()=>{n&&(a(!0),h.current=!1,d(!1),o({percent:0,stage:"conversion",remaining:void 0}))},[n]),T=x.useCallback(()=>{h.current=!0,d(!0)},[]),N=x.useCallback(()=>{h.current=!1,d(!1)},[]),M=x.useCallback(()=>{a(!1),d(!1),h.current=!1,o({percent:0,stage:"analysis",remaining:void 0}),y.current=!1,g.current="",m.current=0,A.current=!1,b.current=!1},[]);return{transcodingProgress:i,isTranscoding:l,isPaused:u,startAnalysis:k,startConversion:_,handlePause:T,handleResume:N,handleCancel:M}}const bK=8*1024*1024,wK=3e4;function CK(){return""}function xK(){return{}}async function vK(n,t,e,r,s,i,o,l,a,u){return new Promise((d,h)=>{const g=(i||CK())+`/v1/videos/${n}/upload`,m=t.slice(e,r+1),A=`bytes ${e}-${r}/${s}`,y=new XMLHttpRequest;u&&u(y),l&&l.addEventListener("abort",()=>{y.abort(),h(new Error("Upload cancelled"))}),y.upload.addEventListener("progress",v=>{v.lengthComputable&&a&&a(v.loaded)}),y.addEventListener("load",()=>{if(y.status>=200&&y.status<300)try{const S=(y.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(y.responseText):y.responseText;if(y.status===409&&S&&typeof S=="object"&&"expectedOffset"in S){d({expectedOffset:S.expectedOffset});return}d(typeof S=="object"&&S!==null?S:{})}catch(v){h(v)}else{let v={};try{v=(y.getResponseHeader("content-type")||"").includes("application/json")?JSON.parse(y.responseText):y.responseText}catch{v={message:"Unknown error"}}h({status:y.status,statusText:y.statusText,data:v})}}),y.addEventListener("error",()=>{h({status:0,statusText:"Network Error",data:{message:"Network error occurred"}})}),y.addEventListener("abort",()=>{const v=new Error("Upload cancelled");v.isPaused=!0,h(v)}),y.open("PUT",g,!0);const b={"Content-Range":A,...o||xK()};Object.keys(b).forEach(v=>{y.setRequestHeader(v,b[v])}),i||(y.withCredentials=!0),y.send(m)})}function SK({onError:n,parentId:t,parentType:e="PAGE",baseUrl:r,authHeaders:s}){const[i,o]=x.useState({percent:0,uploaded:0,total:0,speed:0,remaining:0}),[l,a]=x.useState(!1),[u,d]=x.useState(!1),[h,g]=x.useState(null),{start:m,cancel:A}=Ug(),y=x.useRef({videoId:null,attachmentId:null,currentOffset:0,file:null,signal:null,lastUploadAckAt:0,uploadStallReported:!1,lastTime:0,lastBytes:0,startedAt:0,isPaused:!1,isPausing:!1,currentXhr:null}),b=x.useRef(null),v=x.useRef([]),C=5,S=x.useCallback((D,j,B)=>{const R=y.current;if(R.lastTime===0)return R.lastTime=B,R.lastBytes=D,v.current=[],{speed:0,remaining:0};const z=(B-R.lastTime)/1e3,G=D-R.lastBytes;if(z>0&&!R.isPaused){const ce=G/z;v.current.push(ce),v.current.length>C&&v.current.shift();const oe=v.current.length>0?v.current.reduce((Z,ae)=>Z+ae,0)/v.current.length:ce;R.lastTime=B,R.lastBytes=D;const W=j>D&&oe>0?Math.ceil((j-D)/oe):0;return{speed:oe,remaining:W}}if(R.isPaused&&v.current.length>0){const ce=v.current[v.current.length-1],oe=j>D&&ce>0?Math.ceil((j-D)/ce):0;return{speed:ce,remaining:oe}}return{speed:0,remaining:0}},[]),k=x.useCallback((D,j)=>{const B=Date.now(),{speed:R,remaining:z}=S(D,j,B),G=Math.floor(D*100/j);o({percent:G,uploaded:D,total:j,speed:R,remaining:z})},[S]),_=x.useCallback(async(D,j,B=0)=>{var oe,W,Z;const R=y.current,z=D.size;let G=Math.max(0,B);const ce=bK;for(R.lastUploadAckAt=Date.now(),R.uploadStallReported=!1,R.startedAt=Date.now(),R.lastTime=0,R.lastBytes=G,R.currentOffset=G,v.current=[],b.current&&clearInterval(b.current),b.current=setInterval(()=>{var ae;R.isPaused||R.isPausing||!((ae=R.signal)!=null&&ae.aborted)&&R.currentOffset<z&&k(R.currentOffset,z)},100),G>0?k(G,z):k(0,z);G<z;){if((oe=R.signal)!=null&&oe.aborted)throw new Error("Upload cancelled");if(R.isPaused)break;if(R.isPausing){R.isPausing=!1,R.isPaused=!0,d(!0);break}const ae=Date.now();!R.uploadStallReported&&ae-R.lastUploadAckAt>wK&&(R.uploadStallReported=!0,console.warn("Upload stall detected",{atOffset:G,stalledMs:ae-R.lastUploadAckAt}));const q=Math.min(z-1,G+ce-1),K=G;try{const Y=await vK(j,D,G,q,z,r,s,R.signal||void 0,te=>{if(R.isPaused||R.isPausing)return;const ue=K+te;ue<=q+1&&(R.currentOffset=ue)},te=>{R.currentXhr=te});if(Y.expectedOffset!=null){console.warn("Offset mismatch detected",{expectedOffset:Y.expectedOffset,hadOffset:G}),G=Y.expectedOffset;continue}if(G=Y.nextOffset!=null?Y.nextOffset:q+1,R.currentOffset=G,R.currentXhr=null,R.lastUploadAckAt=Date.now(),R.uploadStallReported=!1,!R.isPaused&&!R.isPausing&&k(G,z),R.isPausing){R.isPausing=!1,R.isPaused=!0,d(!0);break}}catch(Y){if(R.currentXhr=null,Y!=null&&Y.isPaused&&R.isPaused){R.isPausing=!1;break}if((Y==null?void 0:Y.name)==="AbortError"||(W=R.signal)!=null&&W.aborted)throw new Error("Upload cancelled");if((Y==null?void 0:Y.status)===409&&((Z=Y==null?void 0:Y.data)==null?void 0:Z.expectedOffset)!=null){G=Y.data.expectedOffset;continue}throw Y}}b.current&&(clearInterval(b.current),b.current=null),G>=z?!R.isPaused&&!R.isPausing&&k(z,z):R.isPaused||R.isPausing?k(R.currentOffset,z):k(z,z)},[r,s,k]),T=x.useCallback(async D=>{var B,R;a(!0),d(!1);const j=y.current;j.isPaused=!1,j.isPausing=!1,j.file=D,j.currentOffset=0,j.lastTime=0,j.lastBytes=0,j.uploadStallReported=!1,j.signal=m();try{const z=t||"18bd8809-7503-4761-8c1e-d5651dd7b497";let G=j.videoId,ce=j.attachmentId,oe=0;if(G){try{const W=await Yu(G,r,s);((R=W.upload)==null?void 0:R.nextOffset)!=null?oe=W.upload.nextOffset:(G=null,ce=null,j.videoId=null,j.attachmentId=null)}catch{G=null,ce=null,j.videoId=null,j.attachmentId=null}if(!G){const W=await DE(D,z,e,r,s);G=W.videoId,ce=W.sourceAttachmentId,j.videoId=G,j.attachmentId=ce,g(G)}}else try{const W=await DE(D,z,e,r,s);if(G=W.videoId,ce=W.sourceAttachmentId,j.videoId=G,j.attachmentId=ce,g(G),W.status){const Z=W.status;((B=Z.upload)==null?void 0:B.nextOffset)!=null&&(oe=Z.upload.nextOffset)}}catch(W){throw console.error("Init video error:",{status:W==null?void 0:W.status,statusText:W==null?void 0:W.statusText,data:W==null?void 0:W.data,error:W}),W}if(!G)throw new Error("Video ID is missing after initialization");if(j.currentOffset=oe,j.file=D,await _(D,G,oe),j.isPaused)return;if(!G)throw new Error("Video ID became null after upload");a(!1),!j.isPaused&&!j.isPausing&&g(null)}catch(z){if(a(!1),console.error("Upload error:",(z==null?void 0:z.message)||z),(z==null?void 0:z.message)==="Upload cancelled")return;(z==null?void 0:z.status)===409?n("offset-mismatch"):z!=null&&z.status?(console.error(`API error: ${z.status} ${z.statusText}`,z.data),n("interrupted",y.current.videoId)):(console.error("Unknown upload error:",z),n("interrupted",y.current.videoId))}},[t,e,r,s,m,_,n]),N=x.useCallback(()=>{const D=y.current;D.isPaused||D.isPausing||D.file&&D.currentOffset>=D.file.size||(D.isPausing=!0,D.isPaused=!0,d(!0),b.current&&(clearInterval(b.current),b.current=null),D.currentXhr?D.currentXhr.abort():D.isPausing=!1)},[]),M=x.useCallback(async()=>{var j;const D=y.current;if(D.file&&D.videoId&&D.currentOffset<(D.file.size||0)){a(!0);try{let B=D.currentOffset;try{const R=await Yu(D.videoId,r,s);((j=R.upload)==null?void 0:j.nextOffset)!=null&&(B=R.upload.nextOffset,D.currentOffset=B)}catch{}d(!1),D.isPaused=!1,D.isPausing=!1,await _(D.file,D.videoId,B),!D.isPaused&&!D.isPausing&&D.videoId&&(a(!1),g(null))}catch(B){if(a(!1),console.error("Resume upload error:",(B==null?void 0:B.message)||B),(B==null?void 0:B.message)==="Upload cancelled")return;(B==null?void 0:B.status)===409?n("offset-mismatch"):B!=null&&B.status?(console.error(`API error: ${B.status} ${B.statusText}`,B.data),n("interrupted",y.current.videoId)):(console.error("Unknown upload error:",B),n("interrupted",y.current.videoId))}}D.file&&D.videoId&&D.currentOffset>=(D.file.size||0)&&(a(!1),!D.isPaused&&!D.isPausing&&g(null))},[r,s,_,n]),I=x.useCallback(()=>{const D=y.current;A(),D.signal&&(D.signal=null),b.current&&(clearInterval(b.current),b.current=null),a(!1),d(!1),o({percent:0,uploaded:0,total:0,speed:0,remaining:0}),D.videoId=null,D.attachmentId=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,v.current=[],g(null)},[A]);return{uploadProgress:i,isUploading:l,isPaused:u,handleUpload:T,handlePause:N,handleResume:M,handleCancel:I,uploadVideoId:h}}const EK=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 15.9883V15.9983",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8",key:"2"}]],kK=[["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"}]],TK=[["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"}]],_K=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],NK=[["path",{d:"M19 14.0052V10.6606C19 9.84276 19 9.43383 18.8478 9.06613C18.6955 8.69843 18.4065 8.40927 17.8284 7.83096L13.0919 3.09236C12.593 2.59325 12.3436 2.3437 12.0345 2.19583C11.9702 2.16508 11.9044 2.13778 11.8372 2.11406C11.5141 2 11.1614 2 10.4558 2C7.21082 2 5.58831 2 4.48933 2.88646C4.26731 3.06554 4.06508 3.26787 3.88607 3.48998C3 4.58943 3 6.21265 3 9.45908V14.0052C3 17.7781 3 19.6645 4.17157 20.8366C5.11466 21.7801 6.52043 21.9641 9 22M12 2.50022V3.00043C12 5.83009 12 7.24492 12.8787 8.12398C13.7574 9.00304 15.1716 9.00304 18 9.00304H18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 19.5L19.4453 20.4635C20.1297 20.9198 20.4719 21.1479 20.7359 21.0066C21 20.8653 21 20.454 21 19.6315V18.3685C21 17.546 21 17.1347 20.7359 16.9934C20.4719 16.8521 20.1297 17.0802 19.4453 17.5365L18 18.5M18 19.5V18.5M18 19.5C18 20.4346 18 20.9019 17.799 21.25C17.6674 21.478 17.478 21.6674 17.25 21.799C16.9019 22 16.4346 22 15.5 22H15C13.5858 22 12.8787 22 12.4393 21.5607C12 21.1213 12 20.4142 12 19C12 17.5858 12 16.8787 12.4393 16.4393C12.8787 16 13.5858 16 15 16H15.5C16.4346 16 16.9019 16 17.25 16.201C17.478 16.3326 17.6674 16.522 17.799 16.75C18 17.0981 18 17.5654 18 18.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],MK=[["path",{d:"M15.5 21C16.8956 21 17.5933 21 18.1611 20.8278C19.4395 20.44 20.44 19.4395 20.8278 18.1611C21 17.5933 21 16.8956 21 15.5M21 8.5C21 7.10444 21 6.40666 20.8278 5.83886C20.44 4.56046 19.4395 3.56004 18.1611 3.17224C17.5933 3 16.8956 3 15.5 3M8.5 21C7.10444 21 6.40666 21 5.83886 20.8278C4.56046 20.44 3.56004 19.4395 3.17224 18.1611C3 17.5933 3 16.8956 3 15.5M3 8.5C3 7.10444 3 6.40666 3.17224 5.83886C3.56004 4.56046 4.56046 3.56004 5.83886 3.17224C6.40666 3 7.10444 3 8.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],KM=[["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"}]],IK=[["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"}]],LK=[["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"}]],DK=[["path",{d:"M20.0092 2V5.13219C20.0092 5.42605 19.6418 5.55908 19.4537 5.33333C17.6226 3.2875 14.9617 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],OK=[["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"}]],RK=[["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"}]],jK=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],PK=[["path",{d:"M2.99994 17C2.99994 17.93 2.99994 18.395 3.10216 18.7765C3.37956 19.8117 4.18821 20.6204 5.22348 20.8978C5.60498 21 6.06997 21 6.99994 21L16.9999 21C17.9299 21 18.3949 21 18.7764 20.8978C19.8117 20.6204 20.6203 19.8117 20.8977 18.7765C20.9999 18.395 20.9999 17.93 20.9999 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 7.49993C16.5 7.49993 13.1858 2.99997 12 2.99996C10.8141 2.99995 7.50002 7.49996 7.50002 7.49996M12 3.99996V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],BK=[["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"}]],FK=[["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"}]],zK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Li=x.forwardRef(({color:n="currentColor",size:t=24,strokeWidth:e,absoluteStrokeWidth:r=!1,className:s="",altIcon:i,showAlt:o=!1,icon:l,primaryColor:a,secondaryColor:u,disableSecondaryOpacity:d=!1,...h},g)=>{const m=e!==void 0?r?Number(e)*24/Number(t):e:void 0,A=m!==void 0?{strokeWidth:m,stroke:"currentColor"}:{},y={ref:g,...zK,width:t,height:t,color:a||n,className:s,...A,...h},v=[...o&&i?i:l].sort(([,C],[,S])=>{const k=C.opacity!==void 0;return S.opacity!==void 0?1:k?-1:0}).map(([C,S])=>{const k=S.opacity!==void 0,_=k&&!d?S.opacity:void 0,T=u?{...S.stroke!==void 0?{stroke:k?u:a||n}:{fill:k?u:a||n}}:{};return x.createElement(C,{...S,...A,...T,opacity:_,key:S.key})});return x.createElement("svg",y,v)});Li.displayName="HugeiconsIcon";function op({onPause:n,onResume:t,onCancel:e,onRetry:r,isPaused:s=!1,showRetry:i=!1}){const{t:o}=Je.useTranslation();return p.jsxs("div",{className:"video-upload-actions",children:[(n||t)&&p.jsx(L.Tooltip,{label:o(s?"editor.video.actions.resume":"editor.video.actions.pause"),children:p.jsx(L.ActionIcon,{variant:"light",color:s?"blue":"gray",size:28,radius:"md",onClick:s?t:n,children:s?p.jsx(Li,{icon:LK,size:16,color:"currentColor"}):p.jsx(Li,{icon:KM,size:16,color:"currentColor"})})}),e&&p.jsx(L.Tooltip,{label:o("editor.video.actions.cancel"),children:p.jsx(L.ActionIcon,{variant:"light",color:"red",size:28,radius:"md",onClick:e,children:p.jsx(Li,{icon:_K,size:16,color:"currentColor"})})}),i&&r&&p.jsx(L.Tooltip,{label:o("editor.video.actions.retry"),children:p.jsx(L.ActionIcon,{variant:"light",color:"gray",size:28,radius:"md",onClick:r,children:p.jsx(Li,{icon:DK,size:16,color:"currentColor"})})})]})}function yw({progress:n,showSpeed:t=!0,showRemaining:e=!1}){const r=o=>o===0?"0 MB":`${(o/(1024*1024)).toFixed(2)} MB`,s=o=>o===0?"0.00 MB/s":`${(o/(1024*1024)).toFixed(2)} MB/s`,i=o=>{if(o<60)return`${o}s`;const l=Math.floor(o/60),a=o%60;return`${l}m ${a}s`};return p.jsxs("div",{className:"video-upload-progress-container",children:[p.jsxs("div",{className:"video-upload-progress-header",children:[p.jsxs(L.Text,{size:"sm",fw:400,children:[Math.round(n.percent),"%"]}),e&&n.remaining>0&&p.jsxs(L.Text,{size:"sm",c:"dimmed",children:["Remaining:"," ",p.jsx(L.Text,{component:"span",c:"dark",children:i(n.remaining)})]})]}),p.jsx(L.Progress,{value:Math.round(n.percent),size:"xs",radius:"md"}),t&&p.jsxs("div",{className:"video-upload-progress-info",children:[p.jsxs(L.Text,{size:"xs",c:"dimmed",children:["Uploading: ",r(n.uploaded)," /"," ",r(n.total)]}),p.jsx(L.Text,{size:"xs",c:"dimmed",children:"·"}),p.jsx(L.Text,{size:"xs",c:"dark",children:s(n.speed||0)})]})]})}function bw({size:n=32}){return p.jsxs("div",{className:"video-analysis-animation",style:{width:n,height:n,display:"flex",alignItems:"center",justifyContent:"center"},children:[p.jsxs("svg",{className:"video-analysis-animation__icon",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 32 32",fill:"none",children:[p.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"}),p.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"}),p.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"}),p.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"}),p.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"})]}),p.jsx("div",{className:"video-analysis-animation__line"})]})}function UK({progress:n,onPause:t,onResume:e,onCancel:r,isPaused:s=!1}){const{t:i}=Je.useTranslation();return p.jsxs(L.Paper,{p:"xl",withBorder:!0,radius:"md",style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center",width:"100%"},children:[p.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:8},children:s?p.jsx(bw,{size:32}):p.jsx(Aw,{size:32})}),p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[p.jsx(L.Text,{size:"md",fw:500,children:i("editor.video.transcoding.title")}),p.jsx(L.Text,{size:"sm",c:"dimmed",children:i("editor.video.transcoding.analysis")})]})]}),p.jsx("div",{style:{width:"100%"},children:p.jsx(yw,{progress:{percent:n.percent,uploaded:0,total:100,speed:0,remaining:n.remaining||0},showSpeed:!1,showRemaining:!1})}),p.jsx(op,{onPause:t,onResume:e,onCancel:r,isPaused:s})]})}function KK({progress:n,onPause:t,onResume:e,onCancel:r,isPaused:s=!1}){const{t:i}=Je.useTranslation();return p.jsxs(L.Paper,{p:"xl",withBorder:!0,radius:"md",style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center",width:"100%"},children:[p.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:8},children:s?p.jsx(bw,{size:32}):p.jsx(Aw,{size:32})}),p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[p.jsx(L.Text,{size:"md",fw:500,children:i("editor.video.transcoding.title")}),p.jsx(L.Text,{size:"sm",c:"dimmed",children:i("editor.video.transcoding.conversion")})]})]}),p.jsx("div",{style:{width:"100%"},children:p.jsx(yw,{progress:{percent:n.percent,uploaded:0,total:100,speed:0,remaining:n.remaining||0},showSpeed:!1,showRemaining:!!n.remaining})}),p.jsx(op,{onPause:t,onResume:e,onCancel:r,isPaused:s})]})}const WK="_dropzone_w5n39_1",HK="_disabled_w5n39_9",YK="_focused_w5n39_12",GK="_dropzoneContent_w5n39_20",ZK="_iconContainer_w5n39_40",JK="_contentWrapper_w5n39_48",VK="_title_w5n39_57",QK="_description_w5n39_62",wi={dropzone:WK,disabled:HK,focused:YK,dropzoneContent:GK,iconContainer:ZK,contentWrapper:JK,title:VK,description:QK};function XK({onFileSelect:n,maxFileSize:t,accept:e,disabled:r=!1}){const{t:s}=Je.useTranslation(),[i,o]=x.useState(!1),l=x.useRef(null),a=d=>{if(d.length>0){const h=d[0];n(h)}},u=d=>d>=1024?`${(d/1024).toFixed(1)} GB`:`${d} MB`;return p.jsx(HA.Dropzone,{openRef:l,onDrop:a,accept:e,disabled:r,onFocus:()=>o(!0),onBlur:()=>o(!1),className:`${wi.dropzone} ${i?wi.focused:""} ${r?wi.disabled:""}`.trim(),children:p.jsxs(L.Paper,{className:`${wi.dropzoneContent} ${r?wi.disabled:""}`.trim(),onClick:()=>{var d;return!r&&((d=l.current)==null?void 0:d.call(l))},children:[p.jsx("div",{className:wi.iconContainer,children:p.jsx(Li,{icon:NK,size:32,color:"var(--mantine-color-bright)"})}),p.jsxs("div",{className:wi.contentWrapper,children:[p.jsxs(L.Text,{className:wi.title,size:"md",fw:500,children:[s("editor.video.upload.dragDrop")," ",p.jsx(L.Text,{component:"span",style:{color:"var(--primary-color-text, #4C6EF5)"},children:s("editor.video.upload.chooseFile")})," ",s("editor.video.upload.toUpload")]}),p.jsxs(L.Text,{className:wi.description,size:"sm",c:"dimmed",children:[s("editor.video.upload.maxSize",{size:u(t)}),p.jsx("br",{}),s("editor.video.upload.otherFormats")]})]})]})})}function OE({onFileSelect:n,maxFileSize:t}){const e={"video/*":[]};return p.jsx(XK,{onFileSelect:n,maxFileSize:t,accept:e})}function qK({errorType:n,onRetry:t,onCancel:e,maxFileSize:r}){const{t:s}=Je.useTranslation(),i=l=>l>=1024?`${(l/1024).toFixed(1)} GB`:`${l} MB`,o=()=>{switch(n){case"size-limit":return s("editor.video.errors.sizeLimit",{size:i(r)});case"format":return p.jsxs(p.Fragment,{children:[s("editor.video.errors.format"),p.jsx("br",{}),s("editor.video.errors.formatHint")]});case"interrupted":return s("editor.video.errors.interrupted");case"offset-mismatch":return s("editor.video.errors.offsetMismatch");case"stall":return s("editor.video.errors.stall");default:return s("editor.video.errors.unknown")}};return p.jsxs(L.Paper,{p:"xl",withBorder:!0,radius:"md",style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg, 20px)",alignItems:"center",justifyContent:"center"},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center"},children:[p.jsx(Li,{icon:EK,size:32,color:"var(--mantine-color-red-6, #fa5252)",className:"video-upload-error-icon"}),p.jsx(L.Text,{size:"md",fw:500,style:{lineHeight:1.55},children:s("editor.video.errors.uploadFailed")})]}),p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs, 10px)",alignItems:"center",justifyContent:"center",width:"100%"},children:[n==="interrupted"&&p.jsx("div",{style:{width:"100%"},children:p.jsx(L.Progress,{value:100,color:"red",size:"xs",radius:"md",style:{height:6,backgroundColor:"var(--mantine-color-gray-2, #e9ecef)"}})}),p.jsx(L.Text,{size:"xs",c:"red",ta:"center",style:{lineHeight:1.4,color:"#fa5252"},className:"video-upload-error-message",children:o()})]}),n==="interrupted"?p.jsx(op,{onRetry:t,onCancel:e,showRetry:!0}):p.jsx(L.Button,{variant:"default",size:"sm",onClick:t,style:{height:36,padding:"6px 18px"},children:s("editor.video.actions.selectAnotherFile")})]})}function $K({progress:n,onPause:t,onResume:e,onCancel:r,isPaused:s=!1}){return p.jsxs(L.Paper,{p:"xl",withBorder:!0,radius:"md",style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-lg)",alignItems:"center"},children:[p.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--mantine-spacing-xs)",alignItems:"center",width:"100%"},children:[s?p.jsx(bw,{size:32}):p.jsx(L.Loader,{size:32,color:"var(--mantine-color-bright)"}),p.jsx(L.Text,{size:"md",fw:500,children:"Uploading File"})]}),p.jsx("div",{style:{width:"100%"},children:p.jsx(yw,{progress:n,showSpeed:!0,showRemaining:!0})}),p.jsx(op,{onPause:t,onResume:e,onCancel:r,isPaused:s})]})}function RE(n){const t=n.match(/(\d+):(\d+):(\d+)\.(\d+)/);if(!t)return 0;const e=Number(t[1]),r=Number(t[2]),s=Number(t[3]),i=Number(t[4]);return e*3600+r*60+s+i/1e3}function WM(n,t){if(n.startsWith("http://")||n.startsWith("https://"))return n;const e=t||(typeof window<"u"?window.location.origin:""),r=n.startsWith("/")?n:`/${n}`;return`${e}${r}`}function eW(n,t){const r=WM(n,t).split("/");return r.pop(),r.join("/")}function tW(n,t,e){const r=n.split(/\r?\n/),s=[],i=eW(t,e);let o=0;for(;o<r.length;){const l=r[o].trim();if(l.includes("-->")){const[a,u]=l.split("-->").map(A=>A.trim()),d=RE(a),h=RE(u),m=(r[o+1]||"").trim().match(/^(sheet_\d+\.jpg)#xywh=(\d+),(\d+),(\d+),(\d+)/);if(m){const A=m[1],y=Number(m[2]),b=Number(m[3]),v=Number(m[4]),C=Number(m[5]),S=`${i}/${A}`;s.push({start:d,end:h,sheetUrl:S,x:y,y:b,w:v,h:C})}o+=2;continue}o+=1}return s}function jE(n,t){return WM(n,t)}function nW(n){return Math.min(1,Math.max(0,n))}function rW({storyboard:n,baseUrl:t,authHeaders:e,enabled:r=!0}){const[s,i]=x.useState([]),[o,l]=x.useState(0),[a,u]=x.useState(!1),[d,h]=x.useState(()=>new Map),g=x.useRef(new Set),m=r&&(n==null?void 0:n.ready)&&n.vttUrl&&n.metaUrl;x.useEffect(()=>{if(!m){u(!1),i([]),l(0);return}let v=!0;return(async()=>{const S=jE(n.vttUrl,t),k=jE(n.metaUrl,t),T={method:"GET",headers:e||{},credentials:t?void 0:"include"},[N,M]=await Promise.all([fetch(S,T),fetch(k,T)]);if(!N.ok||!M.ok){v&&u(!1);return}const[I,D]=await Promise.all([N.text(),M.json().catch(()=>({}))]);if(!v)return;const j=tW(I,S,t),B=Number(D.durationSec||0);i(j),l(B),u(j.length>0&&B>0)})().catch(()=>{v&&u(!1)}),()=>{v=!1}},[m,n==null?void 0:n.vttUrl,n==null?void 0:n.metaUrl,t,e]);const A=x.useCallback(async v=>{if(d.has(v)||g.current.has(v))return d.get(v);g.current.add(v);const C=new Image,S=await new Promise(k=>{C.onload=()=>k({width:C.naturalWidth,height:C.naturalHeight}),C.onerror=()=>k(null),C.src=v});return g.current.delete(v),S?(h(k=>{const _=new Map(k);return _.set(v,S),_}),S):null},[d]),y=x.useCallback(v=>{if(!a||!o||s.length===0)return null;const C=nW(v),S=Math.min(s.length-1,Math.max(0,Math.floor(C*s.length))),k=s[S],_=d.get(k.sheetUrl);return{...k,sheetWidth:_==null?void 0:_.width,sheetHeight:_==null?void 0:_.height}},[a,o,s,d]),b=x.useMemo(()=>s.map(v=>v.sheetUrl),[s]);return x.useEffect(()=>{if(!a||b.length===0)return;const v=b[0];d.has(v)||A(v).catch(()=>{})},[a,b,d,A]),{ready:a,cues:s,durationSec:o,getFrameAtRatio:y,ensureSheetDimensions:A}}const Rs=(n,t,e)=>Math.min(e,Math.max(t,n)),Of=n=>{if(!Number.isFinite(n))return"0:00";const t=Math.max(0,Math.floor(n)),e=Math.floor(t/3600),r=Math.floor(t%3600/60),s=t%60;return e>0?`${e}:${String(r).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${r}:${String(s).padStart(2,"0")}`},PE=n=>{if(!n||!Number.isFinite(n.duration)||n.duration<=0)return[];const t=[],e=n.buffered;for(let r=0;r<e.length;r+=1){const s=Rs(e.start(r)/n.duration,0,1),i=Rs(e.end(r)/n.duration,0,1);t.push({start:s,end:i})}return t},sW=160;function iW({frame:n,left:t,width:e=sW}){const r=x.useMemo(()=>{const s=e/n.w,i=Math.round(n.h*s),o=n.sheetWidth&&n.sheetHeight?`${n.sheetWidth*s}px ${n.sheetHeight*s}px`:void 0,l=`-${n.x*s}px -${n.y*s}px`;return{container:{left:t,width:e,height:i},image:{backgroundImage:`url('${n.sheetUrl}')`,backgroundSize:o,backgroundPosition:l}}},[n,t,e]);return p.jsx("div",{className:"video-player-storyboard-preview",style:r.container,children:p.jsx("div",{className:"video-player-storyboard-preview-image",style:r.image})})}function li(n){return function({size:e=20,color:r="currentColor"}){return p.jsx(Li,{icon:n,size:e,color:r})}}function HM({size:n=20,color:t="currentColor"}){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n*44/42,viewBox:"0 0 42 44",fill:"none","aria-hidden":"true",focusable:"false",children:p.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:t})})}const oW=li(KM),lW=li(BK),aW=li(FK),cW=li(RK),uW=li(OK),yu=li(TK),dW=li(MK),fW=li(IK),ww=li(kK),Cw=li(jK);function lp({header:n,items:t}){return p.jsxs(L.Menu.Dropdown,{children:[n&&p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Item,{onClick:n.onClick,disabled:n.disabled,leftSection:n.leftSection,w:"169",children:p.jsx(L.Text,{children:n.label})}),p.jsx(L.Menu.Divider,{})]}),t.map(e=>p.jsx(L.Menu.Item,{w:"169",onClick:e.onClick,disabled:e.disabled,p:"xs",leftSection:p.jsx(L.Text,{children:e.leftLabel}),rightSection:e.rightSection,children:p.jsx(L.Text,{children:e.centerLabel??""})},e.key))]})}function hW({disabled:n,settings:t,onBack:e,onSelect:r}){const{t:s}=Je.useTranslation(),i=t.qualities.map(o=>{const l=o.id===t.currentQualityId;return{key:`quality-${o.id}`,onClick:()=>r(o.id),disabled:n,leftLabel:o.label,rightSection:l?p.jsx(Cw,{size:18}):null}});return p.jsx(lp,{header:{label:s("editor.video.settings.quality"),onClick:e,disabled:n,leftSection:p.jsx(ww,{size:18})},items:i})}function gW({disabled:n,settings:t,onSpeedClick:e,onQualityClick:r,onSubtitlesClick:s}){var u;const{t:i}=Je.useTranslation(),o=`${t.currentSpeed}x`,l=((u=t.qualities.find(d=>d.id===t.currentQualityId))==null?void 0:u.label)||i("editor.video.settings.auto"),a=[{key:"subtitles",onClick:s,disabled:n,leftLabel:i("editor.video.settings.subtitlesCc"),centerLabel:void 0,rightSection:p.jsx(yu,{size:18})},{key:"speed",onClick:e,disabled:n||!t.hasRealSpeeds,leftLabel:i("editor.video.settings.speed"),centerLabel:o,rightSection:p.jsx(yu,{size:18})},{key:"quality",onClick:r,disabled:n||!t.hasRealQualities,leftLabel:i("editor.video.settings.quality"),centerLabel:l,rightSection:p.jsx(yu,{size:18})}];return p.jsx(lp,{items:a})}function pW({disabled:n,settings:t,currentSpeed:e,onBack:r,onSelect:s}){const{t:i}=Je.useTranslation(),o=u=>u===1?i("editor.video.settings.normal"):u.toString(),l=e??t.currentSpeed,a=t.speeds.map(u=>{const d=u===l;return{key:`speed-${u}`,onClick:()=>s(u),disabled:n,leftLabel:o(u),rightSection:d?p.jsx(Cw,{size:18}):null}});return p.jsx(lp,{header:{label:i("editor.video.settings.speed"),onClick:r,disabled:n,leftSection:p.jsx(ww,{size:18})},items:a})}function mW({disabled:n,settings:t,onBack:e,onSelect:r}){const{t:s}=Je.useTranslation(),i=t.subtitles.map(o=>{const l=o.id===t.currentSubtitleId;return{key:`subtitle-${o.id??"off"}`,onClick:()=>r(o.id),disabled:n,leftLabel:o.label,rightSection:l?p.jsx(Cw,{size:18}):null}});return p.jsx(lp,{header:{label:s("editor.video.settings.subtitlesCc"),onClick:e,disabled:n,leftSection:p.jsx(ww,{size:18})},items:i})}function AW({video:n,containerRef:t,title:e,settings:r,isSettingsDisabled:s,onSubtitlesOpen:i,onSpeedClick:o,onQualityClick:l,onSubtitleSelect:a,storyboard:u,baseUrl:d,authHeaders:h,chapters:g=[]}){const{t:m}=Je.useTranslation(),[A,y]=x.useState(0),[b,v]=x.useState(0),[C,S]=x.useState(!1),[k,_]=x.useState(1),[T,N]=x.useState(!1),[M,I]=x.useState([]),[D,j]=x.useState(!1),[B,R]=x.useState(!1),[z,G]=x.useState(!1),[ce,oe]=x.useState(!1),W=x.useRef(null),[Z,ae]=x.useState(null),[q,K]=x.useState(null),[Y,te]=x.useState(!1),[ue,re]=x.useState("main"),[se,he]=x.useState(null),xe=rW({storyboard:u,baseUrl:d,authHeaders:h,enabled:!!u}),pe=x.useMemo(()=>Z==null?null:xe.getFrameAtRatio(Z),[Z,xe]);x.useEffect(()=>{pe!=null&&pe.sheetUrl&&xe.ensureSheetDimensions(pe.sheetUrl).catch(()=>{})},[pe,xe]),x.useEffect(()=>{if(!n)return;const ye=()=>{y(n.currentTime||0)},ve=()=>{v(n.duration||0),I(PE(n))},Be=()=>{S(!0)},At=()=>{S(!1)},ot=()=>{_(n.volume??1),N(n.muted)},Zt=()=>{I(PE(n))};return ye(),ve(),ot(),S(!n.paused),n.addEventListener("timeupdate",ye),n.addEventListener("durationchange",ve),n.addEventListener("loadedmetadata",ve),n.addEventListener("play",Be),n.addEventListener("pause",At),n.addEventListener("volumechange",ot),n.addEventListener("progress",Zt),()=>{n.removeEventListener("timeupdate",ye),n.removeEventListener("durationchange",ve),n.removeEventListener("loadedmetadata",ve),n.removeEventListener("play",Be),n.removeEventListener("pause",At),n.removeEventListener("volumechange",ot),n.removeEventListener("progress",Zt)}},[n]),x.useEffect(()=>{const ye=()=>{R(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",ye),ye(),()=>{document.removeEventListener("fullscreenchange",ye)}},[]),x.useEffect(()=>{if(!n)return;const ye=()=>G(!0),ve=()=>G(!1);return n.addEventListener("enterpictureinpicture",ye),n.addEventListener("leavepictureinpicture",ve),G(document.pictureInPictureElement===n&&!!document.pictureInPictureElement),()=>{n.removeEventListener("enterpictureinpicture",ye),n.removeEventListener("leavepictureinpicture",ve)}},[n]),x.useEffect(()=>{if(!D)return;const ye=Be=>{var nn;if(!n||!b)return;const At=(nn=W.current)==null?void 0:nn.getBoundingClientRect();if(!At)return;const Zt=Rs((Be.clientX-At.left)/At.width,0,1)*b;n.currentTime=Zt,y(Zt)},ve=()=>{j(!1)};return window.addEventListener("pointermove",ye),window.addEventListener("pointerup",ve),()=>{window.removeEventListener("pointermove",ye),window.removeEventListener("pointerup",ve)}},[D,n,b]),x.useEffect(()=>{he(null)},[r.currentSpeed]);const $=b>0?Rs(A/b,0,1):0,le=x.useMemo(()=>!g||g.length===0?[]:[...g].sort((ye,ve)=>ye.startSec-ve.startSec),[g]),Se=x.useMemo(()=>{if(le.length===0||b<=0)return[];const ye=[];for(let ve=0;ve<le.length;ve++){const Be=le[ve],At=Rs(Be.startSec/b,0,1),ot=le[ve+1],Zt=ot?Rs(ot.startSec/b,0,1):1;ye.push({chapter:Be,startRatio:At,endRatio:Zt})}return ye},[le,b]),we=x.useMemo(()=>{if(le.length===0)return null;for(let ye=le.length-1;ye>=0;ye--)if(A>=le[ye].startSec)return le[ye];return le[0]},[le,A]),Oe=x.useMemo(()=>{if(Z==null||le.length===0||b<=0)return null;const ye=Z*b;for(let ve=le.length-1;ve>=0;ve--)if(ye>=le[ve].startSec)return le[ve];return le[0]},[Z,le,b]),Ke=ye=>{n&&(n.currentTime=ye.startSec,y(ye.startSec))},ke=()=>{n&&(n.paused?n.play().catch(()=>{}):n.pause())},_e=()=>{n&&(n.muted=!n.muted,N(n.muted))},et=ye=>{n&&(n.volume=ye,ye===0?n.muted=!0:n.muted&&(n.muted=!1),_(ye),N(n.muted))},mt=()=>{var ve,Be;const ye=(t==null?void 0:t.current)||n;ye&&(document.fullscreenElement?(ve=document.exitFullscreen)==null||ve.call(document):(Be=ye.requestFullscreen)==null||Be.call(ye))},Ve=async()=>{if(!(!n||!document.pictureInPictureEnabled))try{document.pictureInPictureElement?await document.exitPictureInPicture():await n.requestPictureInPicture()}catch{return}},Ft=ye=>{var ot;if(!n||!b)return;const ve=(ot=W.current)==null?void 0:ot.getBoundingClientRect();if(!ve)return;const At=Rs((ye.clientX-ve.left)/ve.width,0,1)*b;n.currentTime=At,y(At),j(!0)},Re=ye=>{var At;if(!b)return;const ve=(At=W.current)==null?void 0:At.getBoundingClientRect();if(!ve)return;const Be=Rs((ye.clientX-ve.left)/ve.width,0,1);ae(Be),K(Be*ve.width)},tt=()=>{ae(null),K(null)},nt=Se.length>0;return p.jsxs("div",{className:"video-player-controls",children:[p.jsxs("div",{className:"video-player-timeline",ref:W,children:[p.jsx("div",{className:"video-player-timeline-hitbox",onPointerDown:Ft,onPointerMove:Re,onPointerLeave:tt,role:"presentation",children:p.jsxs("div",{className:`video-player-timeline-track ${nt?"video-player-timeline-track--chapters":""}`,children:[nt?p.jsx("div",{className:"video-player-chapter-segments",children:Se.map((ye,ve)=>{const Be=ye.endRatio-ye.startRatio,At=$<=ye.startRatio?0:$>=ye.endRatio?1:($-ye.startRatio)/Be;return p.jsxs("div",{className:"video-player-chapter-segment",style:{flex:`${Be*100} 0 0`},children:[p.jsx("div",{className:"video-player-chapter-segment-progress",style:{width:`${At*100}%`}}),M.map((ot,Zt)=>{const nn=Rs((ot.start-ye.startRatio)/Be,0,1),Pr=Rs((ot.end-ye.startRatio)/Be,0,1);return Pr<=0||nn>=1?null:p.jsx("span",{className:"video-player-chapter-segment-buffered",style:{left:`${nn*100}%`,width:`${(Pr-nn)*100}%`}},`buf-${ve}-${Zt}`)})]},`chapter-${ve}`)})}):p.jsxs(p.Fragment,{children:[M.map((ye,ve)=>p.jsx("span",{className:"video-player-buffered",style:{left:`${ye.start*100}%`,width:`${(ye.end-ye.start)*100}%`}},`${ye.start}-${ye.end}-${ve}`)),p.jsx("span",{className:"video-player-progress",style:{width:`${$*100}%`}})]}),p.jsx("span",{className:"video-player-knob",style:{left:`${$*100}%`}})]})}),q!=null&&p.jsxs("div",{className:"video-player-hover-preview",style:{left:q,transform:"translateX(-50%)"},children:[pe&&xe.ready&&p.jsx(iW,{frame:pe,left:0}),Oe&&p.jsxs("div",{className:"video-player-hover-preview-info",children:[p.jsx("span",{className:"video-player-hover-preview-time",children:Of(Z!=null?Z*b:0)}),p.jsx("span",{className:"video-player-hover-preview-title",children:Oe.title})]})]})]}),p.jsxs("div",{className:"video-player-controls-row",children:[p.jsxs("div",{className:"video-player-left",children:[p.jsx("button",{className:"video-player-button",type:"button",onClick:ke,"aria-label":m(C?"editor.video.player.pause":"editor.video.player.play"),children:C?p.jsx(oW,{size:20}):p.jsx(HM,{size:20})}),p.jsxs(L.Box,{onMouseEnter:()=>oe(!0),onMouseLeave:()=>oe(!1),style:{display:"inline-flex",alignItems:"center",height:28,borderRadius:8,padding:"0 4px",gap:6,background:ce?"rgba(134, 142, 150, 0.15)":"transparent",backdropFilter:ce?"blur(2px)":"none"},children:[p.jsx(L.ActionIcon,{variant:"subtle",onClick:_e,"aria-label":m(T||k===0?"editor.video.player.unmute":"editor.video.player.mute"),styles:{root:{width:28,height:28,borderRadius:8,color:"#fff"}},children:T||k===0?p.jsx(aW,{size:20}):p.jsx(lW,{size:20})}),p.jsx(L.Box,{className:"video-player-volume-slider",style:{width:ce?57:0,opacity:ce?1:0,pointerEvents:ce?"auto":"none",transition:"width 120ms ease, opacity 120ms ease",display:"flex",alignItems:"center"},children:p.jsx(L.Slider,{w:57,min:0,max:1,step:.01,value:T?0:k,onChange:et,label:null,"aria-label":m("editor.video.player.volume"),styles:{track:{height:2,background:"rgba(255, 255, 255, 0.6)"},bar:{height:2,background:"rgba(255, 255, 255, 0.6)"},thumb:{width:10,height:10,borderColor:"#fff",background:"#fff"}}})})]}),p.jsxs("div",{className:"video-player-time",children:[Of(A)," / ",Of(b)]}),we&&p.jsxs("div",{className:"video-player-chapter-title",children:[p.jsx("span",{children:we.title}),p.jsx(yu,{size:18})]}),!we&&e&&p.jsxs("div",{className:"video-player-title",children:[p.jsx("span",{children:e}),p.jsx(yu,{size:18})]})]}),p.jsxs("div",{className:"video-player-right",children:[p.jsxs(L.Menu,{opened:Y,onChange:ye=>{te(ye),ye||re("main")},position:"top-end",offset:8,withinPortal:!0,shadow:"md",radius:"md",closeOnItemClick:!1,closeOnEscape:!0,trapFocus:!0,children:[p.jsx(L.Menu.Target,{children:p.jsx("button",{className:"video-player-button",type:"button","aria-label":m("editor.video.player.settings"),onClick:()=>{te(ye=>!ye),re("main")},children:p.jsx(uW,{size:20})})}),ue==="main"&&p.jsx(gW,{isOpen:!0,disabled:s,settings:r,onSpeedClick:()=>{r.hasRealSpeeds&&re("speed")},onQualityClick:()=>{r.hasRealQualities&&re("quality")},onSubtitlesClick:()=>{s||(i==null||i(),re("subtitles"))}}),ue==="speed"&&p.jsx(pW,{disabled:s,settings:r,currentSpeed:se??r.currentSpeed,onBack:()=>re("main"),onSelect:ye=>{he(ye),o(ye)}}),ue==="subtitles"&&p.jsx(mW,{disabled:s,settings:r,onBack:()=>re("main"),onSelect:a}),ue==="quality"&&p.jsx(hW,{disabled:s,settings:r,onBack:()=>re("main"),onSelect:l})]}),p.jsx("button",{className:"video-player-button",type:"button","aria-label":m("editor.video.player.pictureInPicture"),onClick:Ve,disabled:!document.pictureInPictureEnabled,"aria-pressed":z,children:p.jsx(fW,{size:20})}),p.jsx("button",{className:"video-player-button",type:"button",onClick:mt,"aria-label":m(B?"editor.video.player.exitFullscreen":"editor.video.player.enterFullscreen"),children:p.jsx(dW,{size:20})})]})]}),le.length>0&&p.jsx("div",{className:"video-player-chapters-list",children:le.map((ye,ve)=>{const Be=we===ye;return p.jsxs("button",{type:"button",className:`video-player-chapters-item ${Be?"video-player-chapters-item--active":""}`,onClick:()=>Ke(ye),children:[p.jsx("span",{className:"video-player-chapters-item-time",children:Of(ye.startSec)}),p.jsx("span",{className:"video-player-chapters-item-title",children:ye.title})]},`chapter-list-${ve}`)})})]})}const BE=[.25,.5,.75,1,1.25,1.5,2],FE=[{id:1,label:"English (Automatic)"},{id:2,label:"Русский (Автоматические)"},{id:3,label:"Spanish (automatic)"}],yW=n=>n.height?`${n.height}p`:n.bandwidth?`${(n.bandwidth/1e6).toFixed(1)} Mbps`:"Auto",YM=n=>n!=null&&n.textTracks?Array.from(n.textTracks).filter(t=>t.kind==="subtitles"||t.kind==="captions"):[],pr=(n,t)=>{var m,A,y;if(!n){const b=YM(t),v=b.length>0,C=b.findIndex(k=>k.mode==="showing"),S=v?[{id:null,label:"Off"},...b.map((k,_)=>({id:_,label:k.label||k.language||"Unknown"}))]:[{id:null,label:"Off"},...FE];return{speeds:BE,currentSpeed:(t==null?void 0:t.playbackRate)??1,hasRealSpeeds:!0,qualities:[],currentQualityId:null,hasRealQualities:!1,subtitles:S,currentSubtitleId:C>=0?C:null,hasRealSubtitles:v}}const e=BE,r=((m=n.getPlaybackRate)==null?void 0:m.call(n))??(t==null?void 0:t.playbackRate)??1,s=e.length>0,i=((A=n.getVariantTracks)==null?void 0:A.call(n))??[],o=i.map(b=>({id:b.id,label:yW(b)})),l=i.find(b=>b.active),a=o.length>0,u=((y=n.getTextTracks)==null?void 0:y.call(n))??[],d=u.length>0,h=d?[{id:null,label:"Off"},...u.map(b=>({id:b.id,label:b.label||b.language||"Unknown"}))]:[{id:null,label:"Off"},...FE],g=u.find(b=>b.active);return{speeds:e,currentSpeed:r,hasRealSpeeds:s,qualities:o,currentQualityId:(l==null?void 0:l.id)??null,hasRealQualities:a,subtitles:h,currentSubtitleId:(g==null?void 0:g.id)??null,hasRealSubtitles:d}},bW=(n,t)=>{var e;(e=n==null?void 0:n.setPlaybackRate)==null||e.call(n,t)},wW=(n,t)=>{var s,i;if(!n)return;const r=(((s=n.getVariantTracks)==null?void 0:s.call(n))??[]).find(o=>o.id===t);r&&((i=n.selectVariantTrack)==null||i.call(n,r,!0))},Rf=(n,t,e)=>{var s,i,o,l;if(n){if(t===null){(s=n.setTextTrackVisibility)==null||s.call(n,!1);return}const u=(((i=n.getTextTracks)==null?void 0:i.call(n))??[]).find(d=>d.id===t);u&&((o=n.selectTextTrack)==null||o.call(n,u),(l=n.setTextTrackVisibility)==null||l.call(n,!0));return}if(!e)return;const r=YM(e);if(t===null){r.forEach(a=>{a.mode="disabled"});return}r.forEach((a,u)=>{a.mode=u===t?"showing":"disabled"})};function ap(n,t){return n.startsWith("http://")||n.startsWith("https://")?n:`${t||(typeof window<"u"?window.location.origin:"")}${n}`}function xw(n){return n?{Authorization:`Bearer ${n}`}:{}}async function zE(n){const t=await n.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}}async function vw(n){if(!n.ok){const t=await zE(n),e=(t&&typeof t=="object"&&"message"in t?t.message:null)||n.statusText||"Request failed";throw new Error(e)}return zE(n)}function Gu(n){const t=(n==null?void 0:n.id)??(n==null?void 0:n.trackId)??(n==null?void 0:n.subtitleId)??"",e=(n==null?void 0:n.lang)??(n==null?void 0:n.language)??(n==null?void 0:n.srclang)??"",r=e?String(e):"und",s=(n==null?void 0:n.label)??(n==null?void 0:n.name)??(n==null?void 0:n.title)??r,i=s?String(s):r,o=(n==null?void 0:n.kind)??"subtitles",l=!!((n==null?void 0:n.isDefault)??(n==null?void 0:n.default)??!1),a=typeof(n==null?void 0:n.url)=="string"?n.url:typeof(n==null?void 0:n.vttUrl)=="string"?n.vttUrl:typeof(n==null?void 0:n.src)=="string"?n.src:void 0,u=typeof(n==null?void 0:n.createdAt)=="string"?n.createdAt:void 0,d=typeof(n==null?void 0:n.fileName)=="string"?n.fileName:void 0;return{id:String(t),lang:r,label:i,kind:String(o),isDefault:l,url:a,createdAt:u,fileName:d,status:"ready"}}async function GM(n,t={}){const e=ap(`/v1/videos/${n}/subtitles`,t.baseUrl),r=await fetch(e,{method:"GET",credentials:"include",headers:{...xw(t.authToken)}}),s=await vw(r);return(Array.isArray(s)?s:Array.isArray(s==null?void 0:s.tracks)?s.tracks:[]).map(Gu).filter(o=>o.id)}async function CW(n,t,e,r={}){const s=new URLSearchParams;s.set("lang",e.lang),e.label&&s.set("label",e.label),e.kind&&s.set("kind",e.kind),s.set("default","false");const i=ap(`/v1/videos/${n}/subtitles?${s.toString()}`,r.baseUrl),o=new FormData;o.append("file",t);const l=await fetch(i,{method:"POST",credentials:"include",headers:{...xw(r.authToken)},body:o,signal:e.signal}),a=await vw(l);return a?Gu(a):null}function xW(n,t,e={}){return ap(`/v1/videos/${n}/subtitles/${t}.vtt`,e.baseUrl)}function vW(n,t){if(n.startsWith("http://")||n.startsWith("https://"))return n;const e=t||(typeof window<"u"?window.location.origin:"");return n.startsWith("/")?`${e}${n}`:`${e}/${n}`}function UE(n,t,e={}){return t.url?vW(t.url,e.baseUrl):xW(n,t.id,e)}async function SW(n,t,e={}){const r=ap(`/v1/videos/${n}/subtitles/${t}`,e.baseUrl),s=await fetch(r,{method:"DELETE",credentials:"include",headers:{...xw(e.authToken)}});await vw(s)}function q0(n,t){return n?n.startsWith("http://")||n.startsWith("https://")?n:n.startsWith("/")?`${t||window.location.origin}${n}`:n:null}function EW(n){return Array.from(n.textTracks||[]).filter(t=>t.kind==="subtitles"||t.kind==="captions")}function vA(n,t){return n.url?q0(n.url,t):null}function kW({videoId:n,baseUrl:t,videoUrl:e,primaryUrl:r,optimizedReady:s,nativeVideoUrl:i,storyboard:o,chapters:l,subtitles:a,posterUrl:u,onPlayerInfo:d}){const{t:h}=Je.useTranslation(),[g,m]=x.useState(null),[A,y]=x.useState(null),[b,v]=x.useState(null),C=x.useRef(null),S=x.useRef(null),k=x.useRef(null),[_,T]=x.useState(null),[N,M]=x.useState(()=>pr(null,null)),[I,D]=x.useState([]),[j,B]=x.useState([{id:null,label:"Off"}]),[R,z]=x.useState(null),[G,ce]=x.useState(!0),[oe,W]=x.useState(0),Z=x.useRef(null),ae=x.useRef(null),q=x.useRef(null),K=x.useRef(null),Y=x.useRef([]),te=x.useRef(!1),ue=x.useRef(!1);x.useEffect(()=>{if(!n){D([]),ue.current=!1;return}if(a!=null){const $=(a||[]).map(Gu).filter(le=>le.id);D($)}},[n,a]);const re=x.useCallback(async()=>{if(n){if(a!=null){const $=(a||[]).map(Gu).filter(le=>le.id);D($);return}if(!ue.current)try{const $=await GM(n,{baseUrl:t});ue.current=!0,D($)}catch{ue.current=!0}}},[n,a,t]);x.useEffect(()=>{if(I.length===0){B([{id:null,label:"Off"}]),z(null);return}const $=[{id:null,label:"Off"},...I.map((le,Se)=>({id:Se,label:le.label||le.lang||"Unknown"}))];B($),z(le=>le!=null&&le>=0&&le<I.length?le:null)},[I]),x.useEffect(()=>{var Oe;let $=!1;const le=((Oe=C.current)==null?void 0:Oe.player)||null;return s?(async()=>{var Ft,Re,tt;if(!le)return;if(R==null){Rf(le,null),M(pr(le,_));return}const Ke=I[R],ke=(Ke==null?void 0:Ke.label)||(Ke==null?void 0:Ke.lang)||"und",_e=(Ke==null?void 0:Ke.lang)||"und",et=(Ke==null?void 0:Ke.kind)||"subtitles";let Ve=(((Ft=le.getTextTracks)==null?void 0:Ft.call(le))||[]).find(nt=>(nt.language||"")===_e&&(nt.label||"")===ke&&(nt.kind||"subtitles")===et);if(!Ve&&Ke){const nt=vA(Ke,t);if(!nt||typeof le.addTextTrackAsync!="function")return;let ye=null;ye=await le.addTextTrackAsync(nt,_e,et,"text/vtt",void 0,ke),ye&&typeof ye.id=="number"&&(Ve=ye)}$||Ve&&((Re=le.selectTextTrack)==null||Re.call(le,Ve),(tt=le.setTextTrackVisibility)==null||tt.call(le,!0),M(pr(le,_)))})().catch(()=>{}):(()=>{_&&(Rf(null,R,_),M(pr(null,_)))})(),()=>{$=!0}},[R,I,s,_,t,n]),x.useEffect(()=>{var Se;if(!g||!((Se=C.current)!=null&&Se.player))return;const $=C.current.player;if(q.current)try{$.removeEventListener("error",q.current)}catch(we){console.warn("Error removing old event listener:",we)}const le=we=>{const Oe=we.detail;if(console.error("Shaka Player error:",{code:Oe.code,category:Oe.category,severity:Oe.severity,data:Oe.data}),Oe.severity===2)v(h("editor.video.player.playbackError",{code:Oe.code}));else try{$.recover()}catch(Ke){console.error("Failed to recover from error:",Ke)}};return q.current=le,$.addEventListener("error",le),()=>{if($&&q.current)try{$.removeEventListener("error",q.current)}catch(we){console.warn("Error removing event listener on cleanup:",we)}}},[g]),x.useEffect(()=>{var $,le;if(s&&r){const Se=q0(r,t);if(Se){if(Z.current&&Z.current!==Se){const we=S.current||(($=C.current)==null?void 0:$.videoElement);we&&(ae.current={time:we.currentTime||0,paused:we.paused})}else if(S.current&&!ae.current){const we=S.current;ae.current={time:we.currentTime||0,paused:we.paused}}m(Se),v(null),Z.current=Se}}else if(i){const Se=q0(i,t);if(Se){if(Z.current&&Z.current!==Se){const we=(le=C.current)==null?void 0:le.videoElement;we&&(ae.current={time:we.currentTime||0,paused:we.paused})}y(Se),m(null),Z.current=Se}}},[e,r,t,s,i]),x.useEffect(()=>{if(s&&g&&C.current){const $=C.current.videoElement;if($){const le=()=>{$.readyState>=1&&ae.current&&($.currentTime=ae.current.time,ae.current.paused||$.play().catch(()=>{}),ae.current=null)};if($.readyState>=1)le();else{const Se=()=>{le()},we=()=>{le()};return $.addEventListener("loadedmetadata",Se,{once:!0}),$.addEventListener("canplay",we,{once:!0}),()=>{$.removeEventListener("loadedmetadata",Se),$.removeEventListener("canplay",we)}}}}},[s,g]),x.useEffect(()=>{var le;const $=s?((le=C.current)==null?void 0:le.videoElement)||null:S.current;T($)},[s,g,A]),x.useEffect(()=>{if(!_)return;const $=()=>{ce(_.paused)};return $(),_.addEventListener("play",$),_.addEventListener("pause",$),_.addEventListener("ended",$),()=>{_.removeEventListener("play",$),_.removeEventListener("pause",$),_.removeEventListener("ended",$)}},[_]),x.useEffect(()=>{const $=k.current;if(!$)return;const le=new ResizeObserver(Se=>{const we=Se[0];we&&W(Math.round(we.contentRect.width))});return le.observe($),()=>le.disconnect()},[]),x.useEffect(()=>{var we;if(!d)return;const $=((we=C.current)==null?void 0:we.player)||null,le=S.current||null;d({shakaPlayer:$,nativeVideo:le,mode:s&&$?"shaka":"native"})},[d,s,g,A]),x.useEffect(()=>{var Se;const $=S.current;$&&($.poster=u||"");const le=(Se=C.current)==null?void 0:Se.videoElement;le&&(le.poster=u||"")},[u,g,A]),x.useEffect(()=>{var le;const $=((le=C.current)==null?void 0:le.player)||null;if(!s||!$){M(pr(null,_));return}M(pr($,_))},[s,g,_]),x.useEffect(()=>{if(!_)return;const $=()=>{var Se;const le=((Se=C.current)==null?void 0:Se.player)||null;M(pr(le,_))};return _.addEventListener("ratechange",$),()=>{_.removeEventListener("ratechange",$)}},[_]),x.useEffect(()=>{const $=S.current;if(!$||!A)return;const le=()=>{ae.current&&($.currentTime=ae.current.time,ae.current.paused||$.play().catch(()=>{}))};$.readyState>=1?le():$.addEventListener("loadedmetadata",le,{once:!0});const Se=()=>{K.current&&clearTimeout(K.current),K.current=setTimeout(()=>{ae.current||(ae.current={time:0,paused:!0}),ae.current.time=$.currentTime},100)},we=()=>{ae.current?ae.current.paused=!1:ae.current={time:0,paused:!1}},Oe=()=>{ae.current?ae.current.paused=!0:ae.current={time:$.currentTime,paused:!0}};return $.addEventListener("timeupdate",Se),$.addEventListener("play",we),$.addEventListener("pause",Oe),()=>{$.removeEventListener("loadedmetadata",le),$.removeEventListener("timeupdate",Se),$.removeEventListener("play",we),$.removeEventListener("pause",Oe),K.current&&clearTimeout(K.current)}},[A]),x.useEffect(()=>{if(s)return;const $=S.current;if(!$)return;$.querySelectorAll('track[data-subtitle-track="managed"]').forEach(Oe=>Oe.remove()),n&&I.forEach(Oe=>{const Ke=vA(Oe,t);if(!Ke)return;const ke=document.createElement("track");ke.setAttribute("data-subtitle-track","managed"),ke.kind=Oe.kind||"subtitles",ke.label=Oe.label||Oe.lang||"und",ke.srclang=Oe.lang||"und",ke.src=Ke,ke.setAttribute("crossorigin","use-credentials"),ke.default=!1,$.appendChild(ke)});try{$.textTracks}catch{}const Se=EW($);Se.some(Oe=>Oe.mode==="showing")&&Se.forEach(Oe=>{Oe.mode="disabled"}),M(pr(null,$))},[s,A,I,n,t]),x.useEffect(()=>{var Ke,ke,_e,et;if(!s){Y.current=[];return}const $=((Ke=C.current)==null?void 0:Ke.player)||null;if(!$)return;const le=(ke=$.getNetworkingEngine)==null?void 0:ke.call($);le&&!te.current&&((_e=le.registerRequestFilter)==null||_e.call(le,(mt,Ve)=>{Ve.allowCrossSiteCredentials=!0}),te.current=!0),(((et=$.getTextTracks)==null?void 0:et.call($))||[]).forEach(mt=>{var Ve;Y.current.includes(mt.id)&&((Ve=$.removeTextTrack)==null||Ve.call($,mt))}),Y.current=[];let we=!1;return(async()=>{var Ve,Ft;const mt=((Ve=$.getTextTracks)==null?void 0:Ve.call($))||[];if(n)for(const Re of I){const tt=vA(Re,t);if(!tt||typeof $.addTextTrackAsync!="function")continue;const nt=Re.label||Re.lang||"und",ye=Re.lang||"und",ve=Re.kind||"subtitles";if(mt.some(ot=>(ot.language||"")===ye&&(ot.label||"")===nt&&(ot.kind||"subtitles")===ve))continue;let At=null;if(At=await $.addTextTrackAsync(tt,ye,ve,"text/vtt",void 0,nt),we)return;At&&typeof At.id=="number"&&(Y.current.push(At.id),mt.push(At))}(Ft=$.setTextTrackVisibility)==null||Ft.call($,!1),M(pr($,_))})().catch(()=>{}),()=>{we=!0}},[s,g,I,n,t,_]);const se=x.useMemo(()=>({...N,subtitles:j,currentSubtitleId:R,hasRealSubtitles:j.length>1}),[N,j,R]),he=$=>{if(!_)return;$.target.closest(".video-player-controls")!==null||(_.paused?_.play().catch(()=>{}):_.pause())};if(b)return p.jsx(L.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,padding:16}},children:p.jsx("div",{style:{textAlign:"center",color:"red"},children:b})});const xe=oe>0&&oe<500,pe=oe>0&&oe<380;return p.jsx(L.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200,position:"relative"}},children:p.jsxs("div",{className:`video-player-container video-player-container--with-player ${xe?"video-player--compact":""} ${pe?"video-player--narrow":""}`,ref:k,onClick:he,children:[!s&&p.jsx("video",{ref:S,src:A||void 0,className:"video-player-media",poster:u||void 0}),s&&g&&p.jsx(cP,{ref:C,src:g,autoPlay:!1,className:"video-player-media"}),(A||g)&&p.jsxs(p.Fragment,{children:[G&&!xe&&p.jsx("button",{className:"video-player-center-play",type:"button","aria-label":h("editor.video.player.play"),onClick:$=>{$.stopPropagation(),_==null||_.play().catch(()=>{})},children:p.jsx(HM,{size:28})}),p.jsxs("div",{className:"video-player-overlay",children:[p.jsx("div",{className:"video-player-gradient"}),p.jsx(AW,{video:_,containerRef:k,settings:se,isSettingsDisabled:!1,onSubtitlesOpen:re,storyboard:o,chapters:l,baseUrl:t,onSpeedClick:$=>{var we;const le=((we=C.current)==null?void 0:we.player)||null,Se=$;M(Oe=>({...Oe,currentSpeed:Se})),_&&(_.playbackRate=Se),le?(bW(le,Se),M(pr(le,_))):M(pr(null,_))},onQualityClick:$=>{var we;const le=((we=C.current)==null?void 0:we.player)||null;if(!le||N.qualities.length===0)return;const Se=N.qualities.find(Oe=>Oe.id===$)||null;Se&&wW(le,Se.id),M(pr(le,_))},onSubtitleSelect:$=>{var we,Oe;const le=((we=C.current)==null?void 0:we.player)||null,Se=typeof $=="number"?$:null;if(z(Se),le){const Ke=((Oe=le.getTextTracks)==null?void 0:Oe.call(le))??[];let ke=Se;if(typeof Se=="number"&&!Ke.find(_e=>_e.id===Se)){const _e=I[Se];if(_e){const et=_e.label||_e.lang||"und",mt=_e.lang||"und",Ve=Ke.find(Ft=>(Ft.language||"")===mt&&(Ft.label||"")===et);Ve&&(ke=Ve.id)}}Rf(le,ke),M(pr(le,_));return}_&&(Rf(null,Se,_),M(pr(null,_)))}})]})]})]})})}function TW({className:n,format:t,nodeKey:e,onUploadComplete:r,initialVideoId:s,initialVideoState:i,onStateChange:o,posterUrl:l,chaptersOverride:a,subtitlesOverride:u,platform:d,fallbackNativeVideoUrl:h,onStatusAvailabilityChange:g,onPlayerInfo:m}){var ye;const[A]=je(),{t:y}=Je.useTranslation(),{maxFileSize:b,pageId:v}=x.useContext(Pt),[C,S]=x.useState(i??"default"),[k,_]=x.useState(null),[T,N]=x.useState(s??null),M=x.useRef(null),I=x.useRef(!1),{uploadProgress:D,isUploading:j,isPaused:B,handleUpload:R,handlePause:z,handleResume:G,handleCancel:ce,uploadVideoId:oe}=SK({parentId:v,parentType:"PAGE",onError:(ve,Be)=>{_(ve),S(`error-${ve}`),Be!=null&&N(Be)}});x.useEffect(()=>{oe&&N(oe)},[oe]),x.useEffect(()=>{I.current=!1},[T]);const{status:W,playback:Z,videoUrl:ae,primaryUrl:q,optimizedReady:K,nativeVideoUrl:Y,rawPlayable:te,isStatusAvailable:ue}=pK({videoId:T}),re=a??(W==null?void 0:W.chapters)??void 0,se=u??(W==null?void 0:W.subtitles)??void 0,he=x.useMemo(()=>{if(h)return h;if(d==="download"||d==="link"){const ve=T??s;if(ve)return Hu(d,ve)}return null},[h,d,T,s]),xe=Y??he??null,pe=(Z==null?void 0:Z.rawUrl)??null;x.useEffect(()=>{g==null||g(ue)},[ue,g]),x.useEffect(()=>{!I.current&&te&&pe&&T&&!j&&(I.current=!0,r(pe,T))},[te,pe,T,j,r]),x.useEffect(()=>{if(!j)return;const ve=Be=>{Be.preventDefault(),Be.returnValue=""};return window.addEventListener("beforeunload",ve),()=>{window.removeEventListener("beforeunload",ve)}},[j]),x.useEffect(()=>{C==="upload"&&!j&&T&&S("analysis")},[C,j,T]);const{transcodingProgress:$,isTranscoding:le,isPaused:Se,startAnalysis:we,startConversion:Oe,handlePause:Ke,handleResume:ke,handleCancel:_e}=yK({videoId:T,status:W,onAnalysisComplete:()=>{S("conversion"),Oe()},onConversionComplete:()=>{S("video-preview")},onError:()=>{_("interrupted"),S("error-interrupted")}}),et=C==="video-preview"&&!!Y&&!K,mt=Math.max(0,Math.min(100,((ye=W==null?void 0:W.processing)==null?void 0:ye.percent)??0)),Ve=ve=>{const Be=b*1024*1024;if(ve.size>Be){_("size-limit"),S("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)){_("format"),S("error-format");return}S("upload"),M.current=ve,R(ve)};x.useEffect(()=>A.registerCommand(zM,ve=>(d==="upload"&&ve.length>0&&Ve(ve[0]),!1),De),[A,d,Ve]);const Ft=async()=>{const ve=T??oe;if(k==="interrupted"&&ve)try{await dK(ve),_(null),S("analysis")}catch{}else M.current?(_(null),S("upload"),R(M.current)):(_(null),S("default"))},Re=()=>{ce(),M.current=null,S("default"),N(null)},tt=()=>{_e(),M.current=null,S("default"),N(null)};x.useEffect(()=>{C==="analysis"&&T&&!le&&we()},[C,T,le,we]),x.useEffect(()=>{s&&N(s),i&&S(i)},[s,i]),x.useEffect(()=>{o==null||o(C)},[C,o]);const nt=()=>{var ve;switch(C){case"default":case"hover":case"focus":return p.jsx(OE,{onFileSelect:Ve,maxFileSize:b});case"upload":return p.jsx($K,{progress:D,onPause:z,onResume:G,onCancel:Re,isPaused:B});case"error-size-limit":case"error-format":case"error-interrupted":case"error-offset-mismatch":case"error-stall":return p.jsx(qK,{errorType:k||"interrupted",onRetry:Ft,onCancel:Re,maxFileSize:b});case"analysis":return p.jsx(UK,{progress:$,onPause:Ke,onResume:ke,onCancel:tt,isPaused:Se});case"conversion":return p.jsx(KK,{progress:$,onPause:Ke,onResume:ke,onCancel:tt,isPaused:Se});case"video-preview":return T?p.jsx(kW,{videoId:T,videoUrl:ae,primaryUrl:q,optimizedReady:K,nativeVideoUrl:xe,storyboard:(W==null?void 0:W.storyboard)??null,chapters:re,subtitles:se,posterUrl:l??((ve=W==null?void 0:W.cover)==null?void 0:ve.url)??null,onPlayerInfo:m}):null;default:return p.jsx(OE,{onFileSelect:Ve,maxFileSize:b})}};return p.jsx(ic,{className:n,format:t,nodeKey:e,children:p.jsxs(L.Box,{className:"video-upload-container","data-state":C,"data-ready":K?"true":"false",children:[et?p.jsxs("div",{className:"video-upload-processing-banner",children:[p.jsx(Aw,{size:20}),p.jsx(L.Text,{className:"video-upload-processing-text",children:y("editor.video.upload.processed",{percent:Math.round(mt)})})]}):C!=="video-preview"?p.jsx(L.Text,{className:"video-upload-title-text",children:y("editor.video.upload.title")}):null,p.jsx("div",{className:"video-upload-plugin",children:nt()})]})})}function KE(n){const t=Math.max(0,Number(n)||0),e=Math.floor(t/3600),r=Math.floor(t%3600/60),s=Math.floor(t%60);return e>0?`${String(e).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${String(r).padStart(2,"0")}:${String(s).padStart(2,"0")}`}function _W(n){const t=n.split(":").map(e=>e.trim());if(t.length===2){const e=Number(t[0]),r=Number(t[1]);return!Number.isFinite(e)||!Number.isFinite(r)?null:e*60+r}if(t.length===3){const e=Number(t[0]),r=Number(t[1]),s=Number(t[2]);return!Number.isFinite(e)||!Number.isFinite(r)||!Number.isFinite(s)?null:e*3600+r*60+s}return null}function Sw(n,t){return n.startsWith("http://")||n.startsWith("https://")?n:`${t||(typeof window<"u"?window.location.origin:"")}${n}`}function Ew(n){return n?{Authorization:`Bearer ${n}`}:{}}async function WE(n){const t=await n.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}}async function kw(n){if(!n.ok){const t=await WE(n),e=(t&&typeof t=="object"&&"message"in t?t.message:null)||(t&&typeof t=="object"&&"error"in t?t.error:null)||n.statusText||"Request failed";throw new Error(e)}return WE(n)}async function NW(n,t={}){const e=Sw(`/v1/videos/${n}/chapters/effective`,t.baseUrl),r=await fetch(e,{method:"GET",credentials:"include",headers:{...Ew(t.authToken)}}),s=await kw(r);return Array.isArray(s)?s:[]}async function MW(n,t={}){const e=Sw(`/v1/videos/${n}/chapters/suggest`,t.baseUrl),r=await fetch(e,{method:"GET",credentials:"include",headers:{...Ew(t.authToken)}}),s=await kw(r);return Array.isArray(s)?s:[]}async function IW(n,t,e={}){const r=Sw(`/v1/videos/${n}/chapters`,e.baseUrl),s=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json",...Ew(e.authToken)},body:JSON.stringify({chapters:t})});await kw(s)}function LW(n){return n.map(t=>({startSec:t.startSec??0,title:(t.title??"").trim()}))}function DW({chapter:n,index:t,disabled:e,timePlaceholder:r,titlePlaceholder:s,deleteChapterLabel:i,onChange:o,onRemove:l}){const[a,u]=x.useState(()=>KE(n.startSec)),[d,h]=x.useState(!1);x.useEffect(()=>{u(KE(n.startSec))},[n.startSec]);const g=m=>{u(m);const A=_W(m);A!==null?(h(!1),o(t,{startSec:A})):m.trim()===""?(h(!1),o(t,{startSec:0})):h(!0)};return p.jsxs(L.Group,{gap:"xs",align:"center",wrap:"nowrap",children:[p.jsx(L.TextInput,{size:"sm",placeholder:r,value:a,onChange:m=>g(m.currentTarget.value),miw:70,style:{flex:"0 0 auto"},error:d,disabled:e}),p.jsx(L.TextInput,{size:"sm",placeholder:s,value:n.title,onChange:m=>o(t,{title:m.currentTarget.value}),style:{flex:1},disabled:e}),p.jsxs(L.Menu,{position:"bottom-end",children:[p.jsx(L.Menu.Target,{children:p.jsx(L.ActionIcon,{size:"sm",variant:"subtle",color:"gray","aria-label":"Chapter actions",children:p.jsx(ie.IconDotsVertical,{size:16})})}),p.jsx(L.Menu.Dropdown,{children:p.jsx(L.Menu.Item,{color:"red",onClick:()=>l(t),children:i})})]})]})}function OW({videoId:n,initialChapters:t,nativeVideo:e,baseUrl:r,authToken:s,title:i,toggleLabel:o,autoChaptersEnabled:l,onAutoChaptersChange:a,onSave:u,timePlaceholder:d,titlePlaceholder:h,addChapterLabel:g,deleteChapterLabel:m,emptyLabel:A,errorLabel:y}){const[b,v]=x.useState([]),[C,S]=x.useState(null),[k,_]=x.useState(!1),[T,N]=x.useState(!1),M=x.useRef(!1),I=x.useRef(!1),D=x.useMemo(()=>({baseUrl:r,authToken:s}),[r,s]),j=x.useCallback(W=>{I.current||M.current||v(LW(W))},[]),B=x.useCallback(async()=>{if(n){_(!0),S(null);try{const W=await NW(n,D);j(W)}catch(W){S(W instanceof Error?W.message:y)}finally{_(!1)}}},[n,D,j,y]),R=x.useCallback(async()=>{if(n){M.current=!0,_(!0),S(null);try{const W=await MW(n,D);j(W)}catch(W){S(W instanceof Error?W.message:y)}finally{_(!1)}}},[n,D,j,y]),z=x.useCallback(async()=>{if(!n)return null;N(!0),I.current=!0,S(null);try{const W=b.filter(Z=>Z.title.trim()).sort((Z,ae)=>Z.startSec-ae.startSec).map(({startSec:Z,title:ae})=>({startSec:Z,title:ae}));return await IW(n,W,D),M.current=!1,await B(),W}catch(W){return S(W instanceof Error?W.message:y),null}finally{N(!1),I.current=!1}},[n,b,D,B,y]);x.useEffect(()=>{u==null||u(z)},[z,u]);const G=x.useCallback(()=>{M.current=!0,v(W=>[...W,{startSec:0,title:""}])},[]),ce=x.useCallback((W,Z)=>{M.current=!0,v(ae=>ae.map((q,K)=>K===W?{...q,...Z}:q))},[]),oe=x.useCallback(W=>{M.current=!0,v(Z=>Z.filter((ae,q)=>q!==W))},[]);return x.useEffect(()=>{if(!n){v([]),S(null),M.current=!1;return}if(!(I.current||M.current)){if(Array.isArray(t)){j(t);return}B().catch(()=>{})}},[n,t,j,B]),p.jsxs(L.Box,{children:[p.jsx(L.Text,{fw:600,size:"sm",mb:"xs",className:"video-settings-modal-section-title",children:i}),p.jsxs(L.Flex,{justify:"space-between",align:"center",mb:"xs",children:[p.jsx(L.Text,{size:"sm",c:"dimmed",children:o}),p.jsx(L.Switch,{size:"sm",color:"var(--mantine-primary-color-filled)",checked:l,onChange:W=>{const Z=W.currentTarget.checked;a(Z),Z&&R()}})]}),C&&p.jsx(L.Text,{size:"sm",c:"red",mb:"xs",children:C}),p.jsx(L.Stack,{gap:"xs",children:b.map((W,Z)=>p.jsx(DW,{chapter:W,index:Z,disabled:l,timePlaceholder:d,titlePlaceholder:h,deleteChapterLabel:m,onChange:ce,onRemove:oe},`chapter-${Z}`))}),p.jsx(L.Flex,{gap:"xs",mt:"sm",wrap:"wrap",align:"center",children:p.jsx(L.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:G,disabled:l,children:g})}),b.length===0&&!k&&p.jsx(L.Text,{size:"xs",c:"dimmed",mt:"xs",children:A})]})}function RW({opened:n,videoId:t,title:e,uploadLabel:r,cropLabel:s,emptyCoverLabel:i,loadErrorLabel:o,retryLabel:l,onCoverUpload:a,onCropCover:u,onPosterChange:d,onSelectedPosterChange:h,selectedPosterUrl:g}){var te,ue;const[m,A]=x.useState(null),[y,b]=x.useState(null),[v,C]=x.useState(!1),[S,k]=x.useState(!1),[_,T]=x.useState(new Set),[N,M]=x.useState(new Set),[I,D]=x.useState(null),j=x.useRef(null),B=x.useRef(!1),R=x.useMemo(()=>{const re=(m==null?void 0:m.previews)??[];return I?[...re,{id:"uploaded",url:I,order:re.length}]:re},[m==null?void 0:m.previews,I]),z=x.useMemo(()=>{var re,se;return((re=m==null?void 0:m.cover)==null?void 0:re.previewId)??((se=R[0])==null?void 0:se.id)??null},[(te=m==null?void 0:m.cover)==null?void 0:te.previewId,R]),G=y??z,ce=R.length>0,oe=R.length+1,W=oe>3,Z=x.useCallback(re=>{T(se=>{const he=new Set(se);return he.delete(re),he}),M(se=>{const he=new Set(se);return he.delete(re),he})},[]),ae=x.useCallback(re=>{T(se=>{const he=new Set(se);return he.delete(re),he}),M(se=>new Set(se).add(re))},[]),q=x.useCallback(async()=>{var re,se,he;if(t){C(!0),k(!1);try{const xe=await Yu(t);A(xe);const pe=((se=(re=xe==null?void 0:xe.previews)==null?void 0:re[0])==null?void 0:se.id)??null,$=((he=xe==null?void 0:xe.cover)==null?void 0:he.previewId)??pe;b($),T(new Set),M(new Set)}catch(xe){console.error("cover status fetch failed",xe instanceof Error?xe.message:xe),k(!0)}finally{C(!1)}}},[t]),K=x.useCallback(async re=>{var xe,pe,$;const se=re[0];if(!se||!a)return;const he=URL.createObjectURL(se);D(he),T(new Set(["uploaded"])),b("uploaded"),h==null||h(he);try{const le=await Promise.resolve(a(se));console.log("cover upload response",le),D(null),he&&URL.revokeObjectURL(he);const Se=le==null?void 0:le.previews,we=Array.isArray(Se)&&Se.length>0;if(le&&we&&Se){B.current=!0,A(le);const Oe=((xe=Se[0])==null?void 0:xe.id)??((pe=le==null?void 0:le.cover)==null?void 0:pe.previewId);b((($=le==null?void 0:le.cover)==null?void 0:$.previewId)??Oe??"uploaded"),T(new Set),M(new Set)}else q()}catch(le){D(null),he&&URL.revokeObjectURL(he),b(null),console.error("cover upload failed",le instanceof Error?le.message:le),q()}},[a,q]),Y=x.useMemo(()=>{var re,se;return g||(((re=R.find(he=>he.id===G))==null?void 0:re.url)??((se=m==null?void 0:m.cover)==null?void 0:se.url)??null)},[g,R,G,(ue=m==null?void 0:m.cover)==null?void 0:ue.url]);return x.useEffect(()=>{!n||!t||q()},[n,t,q]),x.useEffect(()=>{if(!I||!j.current)return;const se=requestAnimationFrame(()=>{var pe;const xe=((m==null?void 0:m.previews)??[]).length+1;(pe=j.current)==null||pe.scrollTo(xe)});return()=>cancelAnimationFrame(se)},[I,m==null?void 0:m.previews]),x.useEffect(()=>{if(!B.current)return;B.current=!1;const re=j.current;if(!re)return;const he=((m==null?void 0:m.previews)??[]).length;requestAnimationFrame(()=>re.scrollTo(he))},[m==null?void 0:m.previews]),x.useEffect(()=>()=>{j.current=null},[]),p.jsxs(L.Box,{children:[p.jsx(L.Text,{fw:600,size:"sm",mb:"xs",className:"video-settings-modal-section-title",children:e}),S&&p.jsxs(L.Group,{gap:"xs",mb:"xs",children:[p.jsx(L.Text,{size:"sm",c:"red",children:o}),l&&p.jsx(L.Button,{variant:"light",size:"xs",onClick:q,children:l})]}),p.jsxs(Om.Carousel,{className:"video-settings-modal-cover-carousel",classNames:{controls:"video-settings-modal-cover-controls",control:"video-settings-modal-cover-control"},slideSize:"129.333px",slideGap:"10px",emblaOptions:{loop:!1},withControls:W,draggable:oe>1,nextControlIcon:p.jsx(ie.IconChevronRight,{size:16}),previousControlIcon:p.jsx(ie.IconChevronLeft,{size:16}),getEmblaApi:re=>{j.current=re},children:[p.jsx(Om.Carousel.Slide,{children:p.jsx(L.Box,{className:"video-settings-modal-cover-cell",children:p.jsx(HA.Dropzone,{className:"video-settings-modal-cover-upload",onDrop:K,accept:HA.IMAGE_MIME_TYPE,maxFiles:1,disabled:!a,style:a?void 0:{opacity:.7,pointerEvents:"none"},children:p.jsxs(L.Box,{className:"video-settings-modal-cover-upload-inner",children:[p.jsx(Li,{icon:PK,size:24,color:"var(--mantine-color-bright)"}),p.jsx(L.Text,{size:"sm",fw:500,className:"video-settings-modal-cover-upload-label",children:r})]})})})}),R.map(re=>{const se=Y!=null?re.url===Y:G!=null&&re.id===G,he=_.has(re.id),xe=N.has(re.id);return p.jsx(Om.Carousel.Slide,{children:p.jsxs(L.Box,{className:`video-settings-modal-cover-cell video-settings-modal-cover-thumb ${se?"selected":""} ${he?"loading":""} ${xe?"error":""}`,onClick:()=>{xe||(b(re.id),h==null||h(re.url))},role:"button",tabIndex:0,onKeyDown:pe=>pe.key==="Enter"&&!xe&&(()=>{b(re.id),h==null||h(re.url)})(),children:[p.jsx("img",{src:re.url,alt:"",onLoad:()=>Z(re.id),onError:()=>ae(re.id)}),he&&p.jsx("span",{className:"video-settings-modal-cover-spinner","aria-hidden":!0,children:p.jsx(L.Loader,{size:"sm",color:"gray"})}),xe&&p.jsx("span",{className:"video-settings-modal-cover-error-icon","aria-hidden":!0,children:"!"}),se&&p.jsx("span",{className:"video-settings-modal-cover-check","aria-hidden":!0,children:"✓"})]})},re.id)})]}),!ce&&!v&&!S&&p.jsx(L.Text,{size:"xs",c:"dimmed",mt:"xs",children:i})]})}function jW({cancelLabel:n,saveLabel:t,onCancel:e,onSave:r}){return p.jsxs(L.Group,{justify:"flex-end",gap:"sm",mt:"md",children:[p.jsx(L.Button,{variant:"default",color:"gray",onClick:e,children:n}),p.jsx(L.Button,{color:"blue",onClick:r,children:t})]})}const Tw=[{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ă"}],SA="ru",$0=Tw.reduce((n,t)=>(n[t.value]=t.label,n),{});function PW({videoId:n,mode:t,shakaPlayer:e,nativeVideo:r,baseUrl:s,authToken:i,statusSubtitles:o,onTracksChange:l}){const{t:a}=Je.useTranslation(),[u,d]=x.useState([]),[h,g]=x.useState([]),[m,A]=x.useState(null),y=x.useRef(new Map),b=x.useRef([]),v=x.useRef(!1),C=x.useMemo(()=>({baseUrl:s,authToken:i}),[s,i]),S=x.useCallback(async(I=!1)=>{if(n){if(!I&&o!=null){const D=(o||[]).map(Gu).filter(j=>j.id);d(D),A(null);return}try{const D=await GM(n,C);d(D),A(null)}catch(D){const j=D instanceof Error?D.message:a("editor.video.errors.uploadFailed");A(j)}}},[n,C,a,o]);x.useEffect(()=>{if(!n){d([]),g([]);return}S().catch(()=>{})},[n,S,o]),x.useEffect(()=>{l==null||l(u)},[u,l]);const k=x.useCallback(()=>{const I=$0[SA]||SA;g(D=>[...D,{id:crypto.randomUUID(),lang:SA,label:I,status:"draft"}])},[]),_=x.useCallback((I,D)=>{g(j=>j.map(B=>B.id===I?{...B,...D}:B))},[]),T=x.useCallback(async(I,D)=>{if(!n)return;const j=h.find(R=>R.id===I);if(!(j!=null&&j.lang))return;const B=new AbortController;y.current.set(I,B),_(I,{status:"uploading",fileName:D.name});try{const R=await CW(n,D,{lang:j.lang,label:j.label||$0[j.lang]||j.lang,kind:"subtitles",default:!1,signal:B.signal},C);y.current.delete(I),g(z=>z.filter(G=>G.id!==I)),R?d(z=>z.find(G=>G.id===R.id)?z:[...z,R]):await S(!0)}catch{y.current.delete(I),_(I,{status:"error"})}},[n,h,C,S,_]),N=x.useCallback(async I=>{n&&(await SW(n,I,C),await S(!0))},[n,C,S]);x.useEffect(()=>{if(t!=="native"||!r)return;r.querySelectorAll('track[data-subtitle-track="managed"]').forEach(D=>D.remove()),u.forEach(D=>{const j=document.createElement("track");j.setAttribute("data-subtitle-track","managed"),j.kind=D.kind||"subtitles",j.label=D.label,j.srclang=D.lang,j.src=UE(n||"",D,C),j.default=D.isDefault,r.appendChild(j)})},[t,r,u,n,C]),x.useEffect(()=>{var j;if(t!=="shaka"||!e)return;const I=(j=e.getNetworkingEngine)==null?void 0:j.call(e);I&&!v.current&&(I.registerRequestFilter((B,R)=>{R.allowCrossSiteCredentials=!0,i&&(R.headers=R.headers||{},R.headers.Authorization=`Bearer ${i}`)}),v.current=!0),e.getTextTracks&&e.removeTextTrack&&(e.getTextTracks().forEach(R=>{b.current.includes(R.id)&&e.removeTextTrack(R)}),b.current=[]),(async()=>{var z,G,ce;const B=((z=e.getTextTracks)==null?void 0:z.call(e))||[];for(const oe of u){const W=UE(n||"",oe,C),Z=oe.label||oe.lang||"und",ae=oe.lang||"und",q=oe.kind||"subtitles";if(B.some(te=>(te.language||"")===ae&&(te.label||"")===Z&&(te.kind||"subtitles")===q))continue;let Y=null;typeof e.addTextTrackAsync=="function"?Y=await e.addTextTrackAsync(W,ae,q,Z):typeof e.addTextTrack=="function"&&(Y=e.addTextTrack(W,ae,q,Z)),Y&&typeof Y.id=="number"&&(b.current.push(Y.id),B.push(Y))}const R=u.find(oe=>oe.isDefault);if(R&&e.selectTextTrack){const W=(((G=e.getTextTracks)==null?void 0:G.call(e))||[]).find(Z=>Z.language===R.lang&&Z.label===R.label);W&&((ce=e.setTextTrackVisibility)==null||ce.call(e,!0),e.selectTextTrack(W))}})().catch(()=>{})},[t,e,u,n,C,i]);const M=x.useCallback(I=>{g(D=>D.filter(j=>j.id!==I))},[]);return p.jsxs("div",{className:"video-settings-modal-subtitles",children:[m&&p.jsx(L.Text,{size:"sm",c:"red",mb:"xs",children:m}),p.jsx(L.Text,{size:"sm",mb:0,className:"video-settings-modal-subtitles-label",children:a("editor.video.settingsModal.uploadSubtitlesManually")}),u.map(I=>p.jsxs(L.Flex,{align:"center",gap:"xs",mb:"sm",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[p.jsx(L.Select,{size:"sm",data:Tw,value:I.lang,allowDeselect:!1,disabled:!0,flex:1,miw:140}),p.jsxs(L.Menu,{position:"bottom-end",children:[p.jsx(L.Menu.Target,{children:p.jsx(L.ActionIcon,{size:"sm",variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:p.jsx(ie.IconDotsVertical,{size:16})})}),p.jsx(L.Menu.Dropdown,{children:p.jsx(L.Menu.Item,{color:"red",onClick:()=>N(I.id),children:a("editor.video.settingsModal.deleteSubtitle")})})]})]},I.id)),h.map(I=>p.jsx(BW,{draft:I,onChange:D=>_(I.id,D),onUpload:D=>T(I.id,D),onRemove:()=>M(I.id)},I.id)),p.jsx(L.Text,{component:"button",type:"button",className:"video-settings-modal-link",onClick:k,mt:"sm",children:a("editor.video.settingsModal.addSubtitleTrack")})]})}function BW({draft:n,onChange:t,onUpload:e,onRemove:r}){const{t:s}=Je.useTranslation(),i=x.useRef(null),o=l=>{var u;const a=(u=l.target.files)==null?void 0:u[0];l.target.value="",a&&e(a)};return p.jsx(L.Box,{mb:"sm",children:p.jsxs(L.Flex,{align:"center",gap:"xs",wrap:"nowrap",className:"video-settings-modal-subtitles-row",children:[p.jsx(L.Select,{size:"sm",placeholder:s("editor.video.settingsModal.selectLanguage"),data:Tw,value:n.lang,onChange:l=>t({lang:l,label:l?$0[l]:null}),flex:1,miw:140}),n.status==="uploading"&&p.jsx(L.Loader,{size:"sm",color:"blue"}),n.status!=="uploading"&&p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:i,type:"file",accept:".srt,.vtt",hidden:!0,onChange:o}),p.jsx(L.Button,{variant:"default",size:"sm",className:"video-settings-modal-upload-button",disabled:!n.lang,onClick:()=>{var l;return(l=i.current)==null?void 0:l.click()},children:s("editor.video.settingsModal.uploadFile")})]}),p.jsxs(L.Menu,{position:"bottom-end",children:[p.jsx(L.Menu.Target,{children:p.jsx(L.ActionIcon,{size:"sm",variant:"subtle",color:"gray","aria-label":"Subtitle actions",children:p.jsx(ie.IconDotsVertical,{size:16})})}),p.jsx(L.Menu.Dropdown,{children:p.jsx(L.Menu.Item,{color:"red",onClick:r,children:s("editor.video.settingsModal.deleteSubtitle")})})]}),n.status==="error"&&p.jsx(L.Text,{size:"sm",c:"red",children:s("editor.video.settingsModal.uploadError")})]})})}function FW({opened:n,onClose:t,videoId:e,onPosterChange:r,onChaptersSaved:s,onSubtitlesSaved:i,posterUrl:o,shakaPlayer:l,nativeVideo:a,playerMode:u="native"}){const{t:d}=Je.useTranslation(),[h,g]=x.useState(!1),[m,A]=x.useState(null),[y,b]=x.useState(null),[v,C]=x.useState([]),S=x.useRef(null),k=x.useCallback(N=>{A(N)},[]);x.useEffect(()=>{if(!n||!e){b(null);return}Yu(e).then(N=>b(N)).catch(()=>{})},[n,e]);const _=x.useCallback(async N=>{if(e)return uK(e,N)},[e]),T=x.useCallback(async()=>{if(S.current){const N=await S.current();Array.isArray(N)&&(s==null||s(N))}i==null||i(v),m!==null&&(r==null||r(m)),t()},[s,t,r,i,m,v]);return p.jsx(L.Modal,{opened:n,onClose:t,title:d("editor.video.settingsModal.title"),size:"md",withinPortal:!0,zIndex:300,className:"video-settings-modal",children:p.jsx(L.Box,{className:"video-settings-modal-body",children:p.jsxs(L.Stack,{gap:"lg",children:[p.jsx(RW,{opened:n,videoId:e,title:d("editor.video.settingsModal.cover"),uploadLabel:d("editor.video.settingsModal.uploadFile"),cropLabel:d("editor.video.settingsModal.cropCoverImage"),emptyCoverLabel:d("editor.video.settingsModal.emptyCovers"),loadErrorLabel:d("editor.video.settingsModal.loadError"),retryLabel:d("editor.video.settingsModal.retry"),onCoverUpload:_,onSelectedPosterChange:k,selectedPosterUrl:m??o??null}),p.jsx(L.Divider,{}),p.jsxs(L.Box,{children:[p.jsx(L.Text,{fw:600,size:"sm",mb:"xs",className:"video-settings-modal-section-title",children:d("editor.video.settingsModal.subtitles")}),p.jsx(PW,{videoId:e,mode:u,shakaPlayer:l,nativeVideo:a,statusSubtitles:y==null?void 0:y.subtitles,onTracksChange:C})]}),p.jsx(L.Divider,{}),p.jsx(OW,{videoId:e,initialChapters:y==null?void 0:y.chapters,nativeVideo:a,title:d("editor.video.settingsModal.chapters"),toggleLabel:d("editor.video.settingsModal.enableAutoChapters"),autoChaptersEnabled:h,onAutoChaptersChange:g,onSave:N=>{S.current=N},timePlaceholder:d("editor.video.settingsModal.chaptersTimePlaceholder"),titlePlaceholder:d("editor.video.settingsModal.chaptersTitlePlaceholder"),addChapterLabel:d("editor.video.settingsModal.addChapter"),deleteChapterLabel:d("editor.video.settingsModal.deleteChapter"),emptyLabel:d("editor.video.settingsModal.emptyChapters"),errorLabel:d("editor.video.settingsModal.chaptersError")}),p.jsx(jW,{cancelLabel:d("editor.video.settingsModal.cancel"),saveLabel:d("editor.video.settingsModal.save"),onCancel:t,onSave:T})]})})})}function zW({className:n,format:t,platform:e,videoID:r,editor:s,nodeKey:i,width:o,height:l,alignment:a}){const[,u]=x.useState(!1),[d,h]=x.useState(!1),[g,m]=x.useState(!1),[A,y]=x.useState(!1),[b,v]=x.useState(null),[C,S]=x.useState(null),[k,_]=x.useState(null),[T,N]=x.useState(!0),[M,I]=x.useState({shakaPlayer:null,nativeVideo:null,mode:"native"}),D=x.useMemo(()=>e==="download"||e==="link"?Hu(e,r):null,[e,r]),{t:j}=Je.useTranslation(),B=(Z,ae=!1,q,K)=>{WW(s,i,{url:Z,isLink:ae,platformOverride:q,overrideId:K})||u(!0)},R=(Z,ae)=>{HW(s,i,Z,ae)},z=Z=>{h(Z==="video-preview")},G=()=>{GW(s,i)},ce=x.useCallback(Z=>{v(Z),YW(s,i,Z)},[s,i]),oe=x.useCallback(Z=>{I(Z)},[]);x.useEffect(()=>{s.getEditorState().read(()=>{const Z=Te(i);Pl(Z)&&v(Z.getPosterUrl()||null)})},[s,i]);const W={className:n,format:t,nodeKey:i,onUploadComplete:(Z,ae)=>{B(Z,!1,"download",ae)},onStateChange:z,initialVideoState:e==="download"&&r?"video-preview":void 0};return p.jsx(mw,{editor:s,isIcon:!1,isEmbed:!0,width:Jh(o),height:Jh(l),onResizeEnd:R,alignment:a,type:"video",disableInteractions:!d||A,children:p.jsxs("div",{className:"media-wrapper",children:[p.jsxs(cK,{children:[T&&p.jsxs(p.Fragment,{children:[p.jsx(L.Tooltip,{label:j("editor.video.player.settings"),children:p.jsx(L.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",variant:"default",size:24,onClick:Z=>{Z.stopPropagation(),y(!0)},children:p.jsx(cW,{size:14})})}),p.jsx(FW,{opened:A,onClose:()=>y(!1),videoId:r,posterUrl:b,onPosterChange:ce,onChaptersSaved:Z=>S(Z),onSubtitlesSaved:Z=>_(Z),shakaPlayer:M.shakaPlayer,nativeVideo:M.nativeVideo,playerMode:M.mode})]}),p.jsx(hw,{opened:g,setOpened:m,t:j,editor:s,nodeKey:i}),p.jsx(L.Tooltip,{label:j("editor.video.delete"),children:p.jsx(L.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",variant:"default",size:24,onClick:G,children:p.jsx(Ne,{name:"trash",size:"14"})})})]}),p.jsx(TW,{...W,initialVideoId:r,posterUrl:b,chaptersOverride:C,subtitlesOverride:k,platform:e,fallbackNativeVideoUrl:D,onStatusAvailabilityChange:N,onPlayerInfo:oe})]})})}function UW(n){return p.jsx(zW,{...n})}function HE(n){const t=n.getAttribute("data-lexical-platform"),e=n.getAttribute("data-lexical-videoid"),r=n.getAttribute("src"),s=n.getAttribute("poster"),i=parseFloat(n.getAttribute("width")??"100%"),o=parseFloat(n.getAttribute("height")??"100%"),l=n.style.justifyContent||"left",a=t||(r!=null&&r.startsWith("/v1/attachments/")?"download":null),u=(typeof e=="string"&&e.length>0?e:null)||r||null;if(a&&u){const d=_w(Hu(a,u),i,o,l);return a==="download"&&r&&d.setUrl(r),s&&d.setPosterUrl(s),{node:d}}return{node:null}}class na extends _s{constructor(e,r,s,i,o,l,a="left",u){super(l);U(this,"__platform");U(this,"__id");U(this,"__url");U(this,"__posterUrl");U(this,"__create");U(this,"__width");U(this,"__height");U(this,"__alignment");U(this,"__format");this.__platform=e,this.__id=r,this.__url="",this.__posterUrl="",this.__create=u||!1,this.__width=i||560,this.__height=o||315,this.__height=o||315,this.__alignment=a||"left",this.__format=s??null}static getType(){return"video"}static clone(e){const r=new na(e.__platform,e.__id,e.__format,e.__width,e.__height,e.__key,e.__alignment,e.__create);return r.__url=e.__url,r.__posterUrl=e.__posterUrl,r}static importJSON(e){const r=_w(e.videoID,e.width,e.height);return e.format!=null&&r.setFormat(e.format),e.url&&r.setUrl(e.url),e.posterUrl&&r.setPosterUrl(e.posterUrl),e.create&&r.setCreated(!0),r}exportJSON(){return{...super.exportJSON(),type:"video",version:1,platform:this.__platform,videoID:this.__id,url:this.__url,posterUrl:this.__posterUrl,width:this.__width,height:this.__height,create:this.__create,format:this.__format}}static importDOM(){return{iframe:e=>{const r=e.getAttribute("data-lexical-platform"),s=e.getAttribute("data-lexical-videoid");return r!=="download"&&typeof s=="string"?{conversion:HE,priority:1}:null},video:e=>{const r=e.getAttribute("data-lexical-platform"),s=e.getAttribute("data-lexical-videoid"),i=e.getAttribute("src");return(r==="download"||r==="link")&&(typeof s=="string"||typeof i=="string")?{conversion:HE,priority:1}:null}}}isInline(){return!1}createDOM(){const e=document.createElement("div");return e.className="video-container",e.style.justifyContent=this.__alignment||"left",e.style.display="flex",e}updateDOM(e,r){return this.__alignment!==e.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const e=this.__platform==="download"||this.__platform==="link"?"video":"iframe",r=document.createElement(e),s=this.__platform==="download"&&this.__url?this.__url:this.__id,i=Hu(this.__platform,s),o=i==="upload"?"":i;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",o),r.setAttribute("data-lexical-platform",this.__platform),r.setAttribute("data-lexical-videoid",this.__id),r.setAttribute("width",this.__width.toString()+"%"),r.setAttribute("height",this.__height.toString()+"%"),r.setAttribute("style","aspect-ratio: 128 / 72 ");const l=document.createElement("span");return l.setAttribute("data-src",o),l.className="video-container",l.style.justifyContent=this.__alignment||"left",r.style.justifyContent=this.__alignment||"left",l.appendChild(r),{element:l}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return console.log("decorate",this.__platform,this.__id),x.createElement(UW,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment})}setPlatform(e){const r=this.getWritable();r.__platform=e}setFormat(e){const r=this.getWritable();r.__format=e}setId(e){const r=this.getWritable();r.__id=e}setUrl(e){const r=this.getWritable();r.__url=e}setPosterUrl(e){const r=this.getWritable();r.__posterUrl=e}setCreated(e){const r=this.getWritable();r.__create=e}getId(){return this.__id}getUrl(){return this.__url}getPosterUrl(){return this.__posterUrl}getFormat(){return this.__format}setAlignment(e){const r=this.getWritable();r.__alignment=e}getTextContent(){const e=this.__platform==="download"&&this.__url?this.__url:this.__id;return Hu(this.__platform,e)}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}}function _w(n,t,e,r,s){const i=n.startsWith("https")||n.startsWith("http"),{platform:o,id:l}=UM(n,i),a=new na(o,l||"",void 0,t,e,void 0,r,s);return o==="download"&&n.startsWith("/")&&a.setUrl(n),a}function Pl(n){return n instanceof na}function KW(n,t){n.update(()=>{const e=_w(t,"100%","100%","left",t==="upload");gp(e)})}function WW(n,t,{url:e,isLink:r=!1,platformOverride:s,overrideId:i}){const{platform:o,id:l}=i?{platform:s,id:i}:UM(e,r);if(!l&&o!=="upload")return!1;const a=l??"";return n.update(()=>{const u=Te(t);if(!u||!Pl(u))return;u.setPlatform(o),u.setId(a),u.setUrl(e),u.setCreated(!1);const d=u.getNextSibling();d&&rt(d.selectNext())}),!0}function HW(n,t,e,r){n.update(()=>{const s=Te(t);!s||!Pl(s)||s.setWidthAndHeight(e,r)})}function YW(n,t,e){n.update(()=>{const r=Te(t);!r||!Pl(r)||r.setPosterUrl(e||"")})}function GW(n,t){tp(n,t)}function ZW(){const[n]=je(),{t}=Je.useTranslation(),{imperativeHandleRef:e,maxFileSize:r}=x.useContext(Pt);return x.useEffect(()=>{if(!n.hasNodes([na]))throw new Error("VideoEditorPlugin: VideoNode not registered on editor");const s=i=>{const o=i.filter(l=>l.type.includes("video/"));if(i.length>1){Rt.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(o[0].size>r*1024*1024){Rt.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(X0,"upload"),setTimeout(()=>{n.dispatchCommand(zM,i)})};return e!=null&&e.current&&(e.current.insertVideos=s),n.registerCommand(X0,i=>(KW(n,i),!1),De)},[n,e,r,t]),null}const ZM=x.createContext([n=>()=>{},n=>{}]),JW=({children:n})=>{const t=x.useMemo(()=>{let e=null;const r=new Set;return[s=>(s(e),r.add(s),()=>{r.delete(s)}),s=>{e=s;for(const i of r)i(s)}]},[]);return p.jsx(ZM.Provider,{value:t,children:n})},VW=()=>{const[n,t]=x.useContext(ZM),[e,r]=x.useState(null);return x.useEffect(()=>n(s=>{r(s)}),[n]),[e,t]},QW=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class cp extends _s{constructor(e,r){super(r);U(this,"__uuid");this.__uuid=e}static clone(e){return new cp(e.__uuid,e.__key)}static getType(){return"autocomplete"}static importJSON(e){return XW(e.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}updateDOM(){return!1}createDOM(){return document.createElement("span")}decorate(){return this.__uuid!==QW?null:p.jsx(qW,{})}}function XW(n){return new cp(n)}function qW(){const[n]=VW(),t=window.navigator.userAgentData,e=t!==void 0?t.mobile:window.innerWidth<=800&&window.innerHeight<=600;return p.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[n," ",e?"(SWIPE ⮕)":"(TAB)"]})}const $W=({editor:n,keyNode:t,emoji:e})=>{const{t:r}=Je.useTranslation(),s=x.useRef(null);return x.useEffect(()=>{n.update(()=>{var l,a;const i=Te(t),o=((a=(l=s.current)==null?void 0:l.firstChild)==null?void 0:a.outerHTML)||"";i instanceof Ro&&i.setRef(o)})},[e]),p.jsx("div",{ref:s,children:p.jsx(Rt.EmojiPicker,{value:e,onChange:i=>{n.update(()=>{var l;const o=Te(t);o instanceof Ro&&((l=o.getNextSibling())==null||l.selectStart(),o.setEmoji(i))})},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:oi},children:p.jsx(L.ActionIcon,{size:28,variant:"subtle",children:p.jsx(Rt.ProjectIcon,{size:27,fz:27,icon:e,fallback:p.jsx(ie.IconFile,{size:"1em"})})})})})};function eH(n){const t=n.getAttribute("data-emoji");return{node:Nw(t||"","")}}const YE=new Map;class Ro extends Uo{constructor(e,r,s,i){super(s,i);U(this,"__emojiCode");U(this,"__refElem");this.__emojiCode=e||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(e){return new Ro(e.__emojiCode,e.__refElem,e.__format,e.__key)}static importJSON(e){return Nw(e.emojiCode)}exportJSON(){return{...super.exportJSON(),type:"callout-image",version:1,emojiCode:this.__emojiCode,refElem:""}}static importDOM(){return{div:e=>e.classList.contains("callout-image")?{conversion:eH,priority:2}:null}}createDOM(){const e=document.createElement("div");return e.className="callout-image",e}updateDOM(){return!1}exportDOM(){const e=document.createElement("div"),r=YE.get(this.__key)||"";return e.innerHTML=r,e.classList.add("callout-image"),e.setAttribute("data-emoji",this.__emojiCode),{element:e}}setEmoji(e){const r=this.getWritable();r.__emojiCode=e}setRef(e){YE.set(this.__key,e)}decorate(e,r){return p.jsx($W,{emoji:this.__emojiCode,editor:e,keyNode:this.__key})}}function Nw(n,t){return new Ro(n||"",t||"")}const bd=({icon:n,title:t,pointerEvents:e="auto",isLoading:r,progress:s,nodeKey:i,onAfterCancel:o,...l})=>{const[a]=je(),{t:u}=Je.useTranslation(),{fetchUploadMedia:d}=x.useContext(Pt),h=((d==null?void 0:d.length)??0)>=5,g=()=>{a.update(()=>{const A=Te(i);A&&A.remove()})},m=A=>{A.stopPropagation(),o==null||o()};return p.jsxs(L.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":e,boxSizing:"border-box"}},...l,children:[p.jsxs("div",{className:"empty-node-button__content",children:[r&&!h&&p.jsx(L.Loader,{size:"xs",mb:2,mr:4,color:"gray"}),!r&&p.jsx(Ne,{name:n}),t,r&&o&&p.jsx(L.Text,{component:"span",onClick:m,variant:"link",style:{marginLeft:"auto",cursor:"pointer",pointerEvents:"auto"},children:u("editor.cancel")}),i&&!r&&p.jsx(Ne,{style:{pointerEvents:"auto"},className:"delete-icon",name:"close",size:22,onClick:g})]}),r&&typeof s=="number"&&h&&p.jsx(L.Progress,{w:"100%",value:s,animated:!0,transitionDuration:200})]})},tH="_title_81iwv_1",nH="_icon_81iwv_11",rH="_link_81iwv_20",EA={title:tH,icon:nH,link:rH},sH=({page:n})=>{const{t}=Je.useTranslation();return p.jsxs("div",{className:EA.link,onClick:n.onClick,children:[p.jsx("div",{className:EA.icon,children:n.icon?p.jsx(Rt.ProjectIcon,{size:16,fz:16,icon:n.icon,fallback:p.jsx(ie.IconFile,{size:"1em"})}):p.jsx(Rt.EntityIcon,{item:{...n,type:"PAGE"}})}),p.jsx(L.Tooltip,{label:n.title,disabled:!n.title,openDelay:400,children:p.jsx(L.Text,{truncate:!0,className:EA.title,"data-empty":!n.title,children:n.title||t("editor.noTitle")})})]})},iH=x.memo,oH=iH(sH),lH=({page:n})=>p.jsx("div",{className:"docs-item",children:p.jsx(oH,{page:n})});function aH({nodeKey:n}){const{pages:t}=x.useContext(Pt),{t:e}=Je.useTranslation();return t.length===0?p.jsx("p",{style:{margin:0},children:p.jsx(bd,{title:e("editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none",nodeKey:n})}):p.jsx("div",{className:"docs-container",children:t.map(r=>p.jsx(lH,{page:r},r.id))})}function cH(n){return n.getAttribute("data-child-docs")?{node:JM()}:null}class cc extends Uo{static getType(){return"childDocs"}static clone(t){return new cc(t.__format,t.__key)}constructor(t,e){super(t,e)}createDOM(){const t=document.createElement("div");return t.className="editor-child-docs",t}updateDOM(){return!1}decorate(t,e){return p.jsx(aH,{nodeKey:this.__key})}static importJSON(t){const{format:e,key:r}=t;return new cc(e,r)}exportJSON(){return{type:"childDocs",format:this.__format,key:this.__key}}exportDOM(){const t=document.createElement("div");return t.setAttribute("data-child-docs","true"),{element:t}}static importDOM(){return{div:t=>t.getAttribute("data-child-docs")?{conversion:cH,priority:2}:null}}}function JM(){return new cc(void 0)}function yl(n,t){if(!t||!(t instanceof HTMLElement)){console.error("Invalid DOM element provided.");return}n?t.classList.add("disable-scroll"):t.classList.remove("disable-scroll")}function uH(n,t){if(n.match(/\n/))return!1;try{const e=new URL(n);return["javascript:","file:","vbscript:","data:"].includes(e.protocol)?!1:e.hostname?!0:e.protocol!==""&&(e.pathname.startsWith("//")||e.pathname.startsWith("http"))&&!(t!=null&&t.requireHostname)}catch{return!1}}function VM(n){try{if(n.includes("maps/embed"))return n;const t=new URL(n),e=t.href.match(/@([0-9.]+),([0-9.]+),([0-9]+)m/),r=t.href.match(/1s([^!]+)/),s=t.href.match(/!3d([0-9.]+)!4d([0-9.]+)/);if(!e&&!s)throw new Error("Неверный формат ссылки Google Maps");const i=s?s[1]:e?e[1]:"0",o=s?s[2]:e?e[2]:"0",l=e?Math.round(Math.log2(40075016686e-3/(parseFloat(e[3])*2))):14,a=r?r[1]:"";return`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14774!2d${o}!3d${i}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f${l}!3m3!1m2!1s${a}!2z!5e1!3m2!1sru!2s!4v${Date.now()}!5m2!1sru!2s`}catch(t){return console.error("Error link:",t),""}}function dH(n){const t=/https:\/\/lookerstudio\.google\.com\/u\/\d+\/reporting\/([^\/]+)\/page\/([^\/]+)(\/edit)?/;return n.replace(t,"https://lookerstudio.google.com/embed/reporting/$1/page/$2")}function fH(n){if(n)return n.includes("lookerstudio")?dH(n):n.includes("maps")?VM(n):!uH(n,{requireHostname:!1})&&!n.startsWith("/")&&!n.startsWith("#")&&!n.startsWith("mailto:")&&!n.startsWith("sms:")&&!n.startsWith("fax:")&&!n.startsWith("tel:")?`https://${n}`:n}const hH=28,Bl=x.forwardRef(({src:n,title:t,icon:e,canonicalUrl:r,isSelected:s,width:i="100%",height:o,saveUrl:l,editor:a,updateMinHeight:u,disableOutline:d},h)=>{var v;const g=x.useRef(null),[m,A]=x.useState(!1),y=!!(e||r),b=x.useMemo(()=>{var S;return(o?parseFloat(String(o)):((S=g.current)==null?void 0:S.scrollHeight)||0)+hH},[o,(v=g.current)==null?void 0:v.scrollHeight]);return x.useEffect(()=>{const C=setTimeout(()=>{A(!0),n&&(a==null||a.update(()=>{l(n)}))},0);return()=>clearTimeout(C)},[n]),x.useEffect(()=>{b&&u(b)},[b]),p.jsxs(L.Box,{className:`frame-container ${s?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:[m&&p.jsx("iframe",{ref:h||g,style:d?{outline:"none"}:{outline:"1px"},className:`editor-video ${y?"with-bar":""}`,sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:o,frameBorder:"0",title:t||"embed",loading:"lazy",src:fH(n),allowFullScreen:!0}),p.jsxs("div",{className:"frame-bar",children:[e," ",p.jsx(L.Text,{className:"frame-title",children:t}),r&&p.jsx(L.Anchor,{className:"frame-open-link",href:r,target:"_blank",rel:"noopener noreferrer",children:p.jsxs(L.Flex,{gap:2,children:[p.jsx(ie.IconExternalLink,{size:16}),p.jsx(L.Text,{children:"Open"})]})})]})]})}),gH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAACglBMVEUAAAAktvjtMET/wAAmtfkhsfkltPjsL0nxVAD/vwAltfj/wgD/wAD/vwD/wAD/wAD/wQD/wgAArvYltvj/wAD/wAD/uwD/vQAQr/8ltvnqKUPHJ0LuMUrKKEL/wAAlt/n/wQDeADn/wQD/vwAbsf3/wQDJKEIltvn/wAD/wQD/wAD/wAD/wQD/wgD/wAD/wAD/wAAjtPYis/oZsPn/sQD0JC4mtfjIJ0Iltvn/wAD/wAD/wAAltvj/wQAltvn/wADvMEn/wQD/wAD/wQD/wAD/wAAjtvjVK0P/wwDjKkD/wADIJ0Iltvn/wQD/wQDvMEoltvnPKUP/wADvMUkkt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uR0tXHzYVLxfQLxdRA28dXQI9BLJ0MCAzXQMwbw2lbwAzxMHyhuPSwSI1v7HxbMHmRz73w3/qOTcJNuXSEsBRlQOuIKP3rFO3htxvl/cYC+To4BZyzsXWva1TgAlZdq7a1HxWU7OFntitgNxry3KOzUH16OcfHQYaYBnl92rQAnbPye2QyZOyc5DjteKEiyXkUprWf4qAgPnngPiXYDrAAS5YFVOzkapfFt64KkLWY9AS2BLIofKcCABNORwt3ZxdTJBxMgHr9thysbxpag1gmaK7P98zBffmwOrPmiFbC/mODnIO7KhAbzsiH0vQMQOWAg2lJkOUmzvQjjbZdHHrZA2YkEvtsAYs/+aT/FuLwrl/1Iy6hfz+meev/8jGDs1QqIA1DuWA50Bfs8RO2Qp0b3ar4GQC7i3rEYAlZMxL82ap+ublXsDoLaNDFZh8CzOQzTi30A1/fPLnSze2ex6wBViTdx5bLBdha+iEzDjEzdLJcgrTCzmoBFnfrNwaKsm/3AbX4iJ+APv6ZlNt4cw5Cm6evOXj1VAJDXEUJU8Ay81UBrQ1V205OTVPbUJ2ujjlYEIGXEw/tq49v9lcW8j/j0bQwdGTdxybhVrUqn/NRwfwLGwJOuPmImTjYgTg4ipSzsXdFaYWMCFrB/PPAvFP9cGxABvq+vbg2lc2m3tD1zycVUtD2ljbwf7F8RF4FuKoqgENqBqyBl0BOZeqpy2xNdK0BAxJuA/t+a4OaqjTX2K1TajjP25eCls4kJeHA/o0enbh4O4BcPS+I/SQziN4wr9jTKBrYFugnek6eVmxBRxvyhaidjGcy0hh/RtAEiaWLbdAXwh1t6aF+ppxcfl/GD6NurIGm8AAAAAASUVORK5CYII=",IH="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",LH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAn1BMVEUAAAD3jR3zhhT1hxTthxb3dwD3jR34jR74jR33jR33ihf4jB33jB34jR33jRz4jBz3jBz4ixv4iRn3hgD3jR33jRz3jB34ixf5iBb3jRz3jR33jR33jB33jB32jBz4jBz4jBz4jBn4jR33jR33jRz3jBz3ixv4jR33jR33jBz3jB34jRz4jR33jRz4jRv3jRz2jBr3jRr5jBr4jRz3jR5wb2LMAAAANHRSTlMA/AwPCAPo+fWvIovN8pxLNi4TBu3GchkW496qgnhWUEUd2JdlYEDSwbSloblrXH07MyeRXwFKAQAABC1JREFUaN7t2ulymzAQAODlMgYMGGyM7/uIHR9Juu//bJ1pnQKJtBUyUtpOv9/YAiHtaoXgvz+eud8NBtu9Bb+1ii+zwfW110yrnos/uOelRba67eBP4aZrw4OWLpYYV+CaYtnah4ecDawwMhOYumusakcPdLg/xk9aCTDMQ/zES0HScIwMLZ/xQpDlKPvMT8h0+NwzbWQ6gZQpckSCd4huAhLsPnK0c6iIkWcsM6tuyLWBst4IuZYSD+wilzGsBA7iSom33EVCDCUz4sK2CXXNkTCAkg4S9lDXNyRMyq8Y6Vus6xkJHhRSpARQ10m04WHDDXuiXW0hZQp1jZDwDAUHKVuoyxD+u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HHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",jH="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",PH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ+FbZGhqICmpvSz9QQtTMgkW/PtSEvWQBfrSPzAr13Vnd2fsXPYe9nj39/M3OzMx957f98KX329mZ4ad+5lz7v3dc879GTO5FbzH80mbSCdIf5FqpCtQW2T7/gLppGOyIIPdpFYU54tIp9Cpwes4qS+F4VWtJF6wTXzAKKnijrDeMKxYMuHntwkLLqZZbhfpkHuD/YBhdGjwsoxG3PlhUtmHLP32PvfCi6Q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O+0tP7Bc+C6EuHBG1cugYPNOnRZV6R0AewiUXXus3gi4LcD6cMNsk6pNwtyTPV9TlsInykeAP8qSQTdlLYyPDkjnZO9kR7cNjIiuW2dcUm3iy3yh5SZ3tGFkZpBWzFfSZxm+ENtYpdC9iu9JBSchjxs04m3KiwXXpHykk8Xx/s/ROGsEWKG45xjYiRW/om4AVqzebfw3gaK0gmHMBLCn12hvC00VDiO7xe0CMpzmbjsrsFrxkaJCmdCcCNibioF/CirEOa3oUiiDWkdQJexGsFSUyP80hBWh/CywoPaUxx2VQ1SnhdEOFqNYfXWTGuFZuwA3FiuI49wC5qHVfREg67KK64hlKrsI/UWRW3DWEn6o2tiOuksJtcvsksGq8In2wys30B+xnuTDKuV6uwI94qKMXNM9hV5aEM/RHCvtJeKu7Jgp2JRqLW2hh3P5X79sFBC3uGC9oMdrH217TOhLdI52vNagFv0jCcplUc3sXQZ+ZkwuF9pu4hTHMMDm+UXSfGc2fBeyUulW7kq/Bu9ZfIin0yOLydyO0/qtz4JnyC6jvaGPba+iF8iDByx2U/ahxfkhA+SDWK+vKo/SRV4dOEaarHv+APh8PhcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function KH({matches:n,...t}){const e=n[0],r=new URL(e).searchParams,s="Draw.io",i=r.get("title")?`${s} (${r.get("title")})`:s;return p.jsx(Bl,{...t,src:t.attrs.href,icon:p.jsx(L.Image,{src:QM,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:t.attrs.href,title:i})}function WH(n){return n.endsWith(".pibb")?n:`${n}.pibb`}function HH(n){const t=WH(n.attrs.href);return p.jsx(Bl,{...n,src:t,canonicalUrl:t,width:"100%",title:"GitHub Gist"})}function YH({matches:n,...t}){let e="";try{e=new URL(n[0]).pathname}catch{e=""}const r=e.replace(/^\/embed/,"/");let s;return r.includes("episode")||r.includes("show")?s=232:r.includes("track")?s=80:s=380,p.jsx(Bl,{...t,disableOutline:!0,width:"100%",height:`${s}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function GH({matches:n,...t}){const e=n[2];return n[1]==="c"?p.jsx(Bl,{...t,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${e}`,title:`Trello Card (${e})`}):p.jsx(Bl,{...t,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${e}`,title:`Trello Board (${e})`})}function ZH({matches:n,...t}){const e=n[4],r=n[5],s=`https://player.vimeo.com/video/${e}?byline=0${r?`&h=${r}`:""}`;return p.jsx(Bl,{...t,src:s,canonicalUrl:s,title:`Vimeo Embed (${e})`,height:"412px",referrerPolicy:"origin"})}const JH={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},kc=[{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:p.jsx(It,{className:"integration-icon",src:RH}),name:"Spotify",component:YH},{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:n=>n[0].includes("/embed")?n[0]:`https://www.figma.com/embed?embed_host=outline&url=${encodeURIComponent(n[0])}`,icon:p.jsx(It,{className:"integration-icon",src:yH}),name:"Figma",getIframeUrl:n=>`https://www.figma.com/embed?embed_host=share&url=${n}`},{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:p.jsx(It,{className:"integration-icon",src:gH}),name:"Airtable",transformMatch:n=>`https://airtable.com/embed/${n[1]??""}${n[2]}`,getIframeUrl:n=>`https://airtable.com/embed/${n}`},{parentKey:"integrations",platform:"codepen",keywords:["code","editor"],key:"codepen",hide:!1,regexMatches:[/^https:\/\/codepen\.io\/(.*?)\/(pen|embed)\/(.*)$/],icon:p.jsx(It,{className:"integration-icon",src:pH}),name:"Codepen",transformMatch:n=>`https://codepen.io/${n[1]}/embed/${n[3]}`,getIframeUrl:n=>`https://codepen.io/${n}/embed/`},{parentKey:"integrations",platform:"dbdiagram",keywords:["diagrams","database"],key:"dbdiagram",hide:!1,regexMatches:[/^https:\/\/dbdiagram\.io\/(embed|e|d)\/(\w+)(\/.*)?$/],icon:p.jsx(It,{className:"integration-icon",src:mH}),name:"DBDiagram",transformMatch:n=>`https://dbdiagram.io/embed/${n[2]}`,getIframeUrl:n=>`https://dbdiagram.io/embed/${n}`},{parentKey:"integrations",platform:"diagrams",keywords:["diagrams","drawio"],key:"diagrams",hide:!1,regexMatches:[/^https:\/\/viewer\.diagrams\.net\/(?!proxy).*(title=\\w+)?/],icon:p.jsx(It,{className:"integration-icon",src:QM}),name:"Diagrams.net",component:KH},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:p.jsx(It,{className:"integration-icon",src:AH}),name:"Descript",transformMatch:n=>`https://share.descript.com/embed/${n[1]}`,getIframeUrl:n=>`https://share.descript.com/embed/${n}`},{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:p.jsx(It,{className:"integration-icon",src:bH}),name:"GitHub Gist",component:HH},{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:p.jsx(It,{className:"integration-icon",src:kH}),name:"Google Maps",transformMatch:n=>n[0]},{parentKey:"integrations",platform:"google-drawings",keywords:["drawings"],key:"google-drawings",hide:!1,regexMatches:[/^https:\/\/docs\.google\.com\/drawings\/d\/(.*)\/(edit|preview)(.*)$/],icon:p.jsx(It,{className:"integration-icon",src:xH}),name:"Google Drawings",transformMatch:n=>n[0].replace("/edit","/preview")},{parentKey:"integrations",platform:"google-drive",keywords:["drive"],key:"google-drive",hide:!1,regexMatches:[/^https?:\/\/drive\.google\.com\/file\/d\/(.*)$/],icon:p.jsx(It,{className:"integration-icon",src:vH}),name:"Google Drive",transformMatch:n=>n[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:p.jsx(It,{className:"integration-icon",src:CH}),name:"Google Docs",transformMatch:n=>n[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:p.jsx(It,{className:"integration-icon",src:TH}),name:"Google Sheets",transformMatch:n=>n[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:n=>n[0].replace("/edit","/preview").replace("/pub","/embed"),icon:p.jsx(It,{className:"integration-icon",src:_H,alt:"Google Slides"}),name:"Google Slides"},{parentKey:"integrations",platform:"google-calendar",keywords:["calendar"],key:"calendar",hide:!1,regexMatches:[/^https:\/\/calendar\.google\.com\/calendar\/embed\?src=(.*)$/],transformMatch:n=>n[0],icon:p.jsx(It,{className:"integration-icon",src:wH,alt:"Google Calendar"}),name:"Google Calendar"},{parentKey:"integrations",platform:"google-forms",keywords:["form","survey"],key:"forms",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/forms\/d\/(.+)$/],transformMatch:n=>n[0].replace(/\/(edit|viewform)(\?.+)?$/,"/viewform?embedded=true"),icon:p.jsx(It,{className:"integration-icon",src:SH,alt:"Google Forms"}),name:"Google 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:n=>n[0].replace("u/0","embed").replace("/edit",""),icon:p.jsx(It,{className:"integration-icon",src:EH,alt:"Google Looker Studio"}),name:"Google Looker Studio"},{parentKey:"integrations",platform:"grist",keywords:["spreadsheet"],key:"grist",hide:!1,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:n=>{const t=n.input??n[0];return t.includes("style=singlePage")?t:t.replace(/(\?embed=true)?$/,"?embed=true")},icon:p.jsx(It,{className:"integration-icon",src:NH,alt:"Grist"}),name:"Grist"},{parentKey:"integrations",platform:"instagram",keywords:["post"],key:"instagram",hide:!1,regexMatches:[/^https?:\/\/www\.instagram\.com\/(p|reel)\/([\w-]+)(\/?utm_source=\w+)?/],transformMatch:n=>`${n[0]}/embed`,icon:p.jsx(It,{className:"integration-icon",src:MH,alt:"Instagram"}),name:"Instagram"},{parentKey:"integrations",platform:"loom",keywords:["video","screencast"],key:"loom",hide:!1,regexMatches:[/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/],transformMatch:n=>n[0].replace("share","embed"),icon:p.jsx(It,{className:"integration-icon",src:IH,alt:"Loom"}),name:"Loom"},{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:n=>{var t;return`https://lucidchart.com/documents/embeddedchart/${(t=n.groups)==null?void 0:t.chartId}`},icon:p.jsx(It,{className:"integration-icon",src:LH,alt:"Lucidchart"}),name:"Lucidchart"},{parentKey:"integrations",platform:"miro",keywords:["whiteboard"],key:"miro",hide:!1,regexMatches:[/^https:\/\/(realtimeboard|miro)\.com\/app\/board\/(.*)$/],transformMatch:n=>`https://${n[1]}.com/app/embed/${n[2]}`,icon:p.jsx(It,{className:"integration-icon",src:DH,alt:"Miro"}),name:"Miro"},{parentKey:"integrations",platform:"scribe",keywords:["screencast"],key:"scribe",hide:!1,regexMatches:[/^https?:\/\/scribehow\.com\/shared\/(.*)$/],transformMatch:n=>`https://scribehow.com/embed/${n[1]}`,icon:p.jsx(It,{className:"integration-icon",src:OH,alt:"Scribe"}),name:"Scribe"},{parentKey:"integrations",platform:"swagger",keywords:["swagger","api"],key:"swagger",hide:!0,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:n=>n.input??n[0],icon:p.jsx(It,{className:"integration-icon",src:jH,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:n=>n[0],icon:p.jsx(It,{className:"integration-icon",src:PH,alt:"Tldraw"}),name:"Tldraw"},{parentKey:"integrations",platform:"trello",keywords:["kanban"],key:"trello",hide:!1,regexMatches:[/^https:\/\/trello\.com\/(c|b)\/([^/]*)(.*)?$/],icon:p.jsx(It,{className:"integration-icon",src:BH,alt:"Trello"}),component:GH,name:"Trello"},{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:n=>n[0],icon:p.jsx(It,{className:"integration-icon",src:FH,alt:"Typeform"}),name:"Typeform"},{parentKey:"integrations",platform:"valtown",keywords:["code"],key:"valtown",hide:!1,regexMatches:[/^https?:\/\/(?:www.)?val\.town\/(?:v|embed)\/(.*)$/],transformMatch:n=>`https://www.val.town/embed/${n[1]}`,icon:p.jsx(It,{className:"integration-icon",src:zH,alt:"Valtown"}),name:"Valtown"},{parentKey:"integrations",platform:"vimeo",keywords:["video"],key:"vimeo",hide:!1,regexMatches:[/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/],icon:p.jsx(It,{className:"integration-icon",src:UH,alt:"Vimeo"}),name:"Vimeo",component:ZH}];function It({w:n=34,h:t=34,...e}){return p.jsx(L.Image,{w:n,h:t,...e})}const ey=(n,t=[])=>{const e=t??[];for(const r of e){const s=n.match(r);if(s)return s}return!1};function VH(n){for(const t of kc){const e=ey(n,t.regexMatches);if(e)return{embed:t,matches:e}}}function QH(n){var r;let t=null;const e=kc.find(s=>s.regexMatches.some(i=>{var o;return t=n.match(i),t?{platform:s.platform,id:((o=s==null?void 0:s.transformMatch)==null?void 0:o.call(s,t))||"valid"}:{platform:"unknown",id:null}}));return e?{platform:e.platform,id:t?((r=e.transformMatch)==null?void 0:r.call(e,t))||"valid":null}:{platform:"unknown",id:null}}function XH(n,t){var r;const e=kc.find(s=>s.platform===n);return e?((r=e==null?void 0:e.getIframeUrl)==null?void 0:r.call(e,t))||"valid":""}const qH=({height:n,width:t,id:e,platform:r,src:s})=>{const i=JH[r]||r,l=`${parseInt(n,10)-24}px`;return p.jsxs("span",{className:"frame-container",style:{width:t,height:n},children:[p.jsx("iframe",{"data-lexical-embedid":e,"data-lexical-platform":r,src:s,style:{margin:0},width:"100%","data-exportheight":n,"data-exportwidth":t,height:l,allowFullScreen:!0,frameBorder:"0"}),p.jsx("span",{className:"frame-bar","data-title":i,children:p.jsx("a",{className:"frame-open-link",href:s,target:"_blank",rel:"noopener noreferrer"})})]})};function $H({className:n,format:t,platform:e,embedId:r,width:s,editor:i,nodeKey:o,create:l}){const[a,u]=x.useState(r||""),[d,h]=x.useState(!1),[g,m]=x.useState(l||!1),{t:A}=Je.useTranslation(),y=x.useMemo(()=>kc.find(T=>T.platform===e),[e]);x.useEffect(()=>{const T=document.documentElement;yl(g,T)},[g]);const b=x.useMemo(()=>VH(a),[a]),v=T=>{i.update(()=>{const N=Te(o);return kA(N)&&N.setMinHeight(T),!0})},C=T=>{const N=Te(o),M=ey(a,(b==null?void 0:b.embed.regexMatches)||[]);if(kA(N)&&M){const I=a.includes("maps");if(T&&!I){N.setSrc(T);return}N.setPlatform(b==null?void 0:b.embed.platform),N.setId(a),I?N.setSrc(VM(a)):b!=null&&b.embed.transformMatch?N.setSrc(b==null?void 0:b.embed.transformMatch(b==null?void 0:b.matches)):N.setSrc(a)}},S=(T,N)=>{i.update(()=>{rt(null);const M=Te(o);return kA(M)&&M.setWidthAndHeight(T,N),!0})},k=T=>{if(T.preventDefault(),!ey(a,(b==null?void 0:b.embed.regexMatches)||[])&&!(b!=null&&b.embed.platform)){h(!0);return}i.update(()=>{const M=Te(o);if(!M)return;C(),m(!1);const I=M.getNextSibling();I&&rt(I.selectNext())}),h(!1)},_=()=>{if(b!=null&&b.embed.transformMatch){const T=b==null?void 0:b.embed.transformMatch(b==null?void 0:b.matches);return p.jsx(Bl,{src:T,width:"100%",height:"400px",canonicalUrl:a,title:y==null?void 0:y.name,allow:"encrypted-media",saveUrl:C,editor:i,updateMinHeight:v})}return y!=null&&y.component?y.component({saveUrl:C,attrs:{href:a},matches:b==null?void 0:b.matches,isSelected:!1,isEditable:!1,embed:y,editor:i,updateMinHeight:v}):p.jsx("div",{})};return x.useEffect(()=>{l&&m(!0)},[l]),r?b?p.jsx(mw,{editor:i,width:Jh(s),isIcon:!1,isEmbed:!0,height:400,onResizeEnd:S,children:p.jsx("div",{className:"media-wrapper",children:p.jsx(ic,{className:n,format:t,nodeKey:o,children:_()})})}):null:p.jsxs(L.Popover,{width:400,position:"bottom",shadow:"md",opened:g,trapFocus:!0,onChange:T=>{m(T),T||(u(""),h(!1))},withinPortal:!0,children:[p.jsx(L.Popover.Target,{children:p.jsx(L.Flex,{w:"100%",children:p.jsx(ic,{className:n,format:t,nodeKey:o,children:p.jsx(bd,{title:A("editor.embed.addEmbed"),icon:"embed",onClick:()=>m(T=>!T),nodeKey:o})})})}),p.jsx(L.Popover.Dropdown,{children:p.jsx("form",{onSubmit:k,children:p.jsxs(L.Stack,{gap:16,children:[p.jsxs(L.Box,{children:[p.jsx(L.TextInput,{placeholder:A("editor.embed.placeholder"),type:"url","data-autofocus":!0,value:a,onChange:T=>{u(T.currentTarget.value)}}),d&&p.jsx(L.Text,{size:"xs",mt:8,color:"red",children:A("editor.validation.link")})]}),p.jsx(L.Center,{children:p.jsx(L.Button,{w:"100%",type:"submit",disabled:!a,children:A("editor.embed.insert")})})]})})})]})}function eY(n){const t=n.getAttribute("data-lexical-platform"),e=n.getAttribute("src"),r=n.getAttribute("data-lexical-embedid")||"",s=parseFloat(n.getAttribute("data-exportwidth")??"100%"),i=parseFloat(n.getAttribute("height")??"100%"),o=n.getAttribute("data-exportheight");if(t&&typeof e=="string"){const l=Mw(e,s,i,r,!1,t);return l.setMinHeight(parseFloat(o)),{node:l}}return{node:null}}class Tc extends Uo{constructor(e,r,s,i,o,l,a,u,d){super(s,l);U(this,"__platform");U(this,"__id");U(this,"__create");U(this,"__width");U(this,"__height");U(this,"__src");U(this,"__minHeight");this.__platform=e,this.__id=r,this.__create=a||!1,this.__width=i||560,this.__height=o||315,this.__src=u,this.__minHeight=d||400}static getType(){return"embed"}static clone(e){return new Tc(e.__platform,e.__id,e.__format,e.__width,e.__height,e.__key,e.__create,e.__src,e.__minHeight)}static importJSON(e){const r=Mw(e.src,e.width,e.height,e.embedId,e.create,e.platform);return r.setFormat(e.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}}createDOM(){const e=document.createElement("div");return e.className="editor-iframe",e}static importDOM(){return{iframe:e=>{const r=e.getAttribute("data-lexical-platform"),s=e.getAttribute("data-lexical-embedid");return r&&typeof s=="string"?{conversion:eY,priority:1}:null}}}updateDOM(){return!1}exportDOM(){if(!this.__src)return{element:null};const e=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=uP.renderToString(p.jsx(qH,{platform:this.__platform,id:this.__id,src:this.__src||"",height:(typeof this.__height=="number"?this.__height:this.__minHeight).toString()+"px",width:e})),s=document.createElement("div");return s.innerHTML=r,this.__src!==""?{element:s.firstChild}:{element:null}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return p.jsx($H,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,create:this.__create})}setMinHeight(e){const r=this.getWritable();r.__minHeight=e}setPlatform(e){const r=this.getWritable();r.__platform=e}setId(e){const r=this.getWritable();r.__id=e}setSrc(e){const r=this.getWritable();r.__src=e}getId(){return this.__id}setCreated(e){const r=this.getWritable();r.__create=e}getTextContent(){return XH(this.__platform,this.__id)}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}}function Mw(n,t,e,r,s,i){let o=i||"unknown";if(!i){const{platform:l}=QH(n||"");o=l||"unknown"}return new Tc(o,r,void 0,t,e,void 0,s,n)}function kA(n){return n instanceof Tc}function tY({className:n,format:t,editor:e,nodeKey:r,formID:s}){const i={base:"dsd__theme__embedBlock dsd__theme__embedBlock__form",focus:"dsd__theme__embedBlockFocus"};return p.jsxs(ic,{className:i,format:t,nodeKey:r,children:[p.jsx(L.Tooltip,{label:"Удалить",children:p.jsx(L.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:o=>{o.stopPropagation(),e.update(()=>{if(Q()){const l=Te(r);l&&l.remove()}return!1})},children:p.jsx(Ne,{name:"trash"})})}),p.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${s}`,title:"Form",style:{border:"none"}})]})}function nY(n){const t=n.getAttribute("data-form");return t?{node:Iw(t)}:null}class wd extends Uo{constructor(e,r,s){super(r,s);U(this,"__id");this.__id=e}static getType(){return"form"}static clone(e){return new wd(e.__id,e.__format,e.__key)}static importJSON(e){const r=Iw(e.formID);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"form",version:1,formID:this.__id}}exportDOM(){const e=document.createElement("iframe");return e.setAttribute("data-form",this.__id),e.setAttribute("width","100%"),e.setAttribute("height","500"),e.setAttribute("src",`https://dudoc.io/f/${this.__id}`),e.setAttribute("title","Form"),{element:e}}static importDOM(){return{iframe:e=>e.hasAttribute("data-form")?{conversion:nY,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getTextContent(){return`https://dudoc.io/f/${this.__id}`}decorate(e,r){const s=r.theme.embedBlock||{},i={base:s.base||"",focus:s.focus||""};return p.jsx(tY,{className:i,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:e})}}function Iw(n){return new wd(n)}const rY=x.lazy(()=>Promise.resolve().then(()=>require("./layers.fDFlciWK.js")));function sY(n){if(n instanceof HTMLImageElement){const{alt:t,src:e,width:r,height:s}=n;return{node:XM({altText:t,height:s,src:e,width:r})}}return null}class up extends _s{constructor(e,r,s,i,o,l,a,u){super(u);U(this,"__src");U(this,"__altText");U(this,"__width");U(this,"__height");U(this,"__showCaption");U(this,"__caption");U(this,"__position");this.__src=e,this.__altText=r,this.__width=i||"inherit",this.__height=o||"inherit",this.__showCaption=l||!1,this.__caption=a||nd(),this.__position=s}static getType(){return"inline-image"}static clone(e){return new up(e.__src,e.__altText,e.__position,e.__width,e.__height,e.__showCaption,e.__caption,e.__key)}static importJSON(e){const{altText:r,height:s,width:i,caption:o,src:l,showCaption:a,position:u}=e,d=XM({altText:r,height:s,position:u,showCaption:a,src:l,width:i}),h=d.__caption,g=h.parseEditorState(o.editorState);return g.isEmpty()||h.setEditorState(g),d}static importDOM(){return{img:()=>({conversion:sY,priority:0})}}exportDOM(){const e=document.createElement("img");return e.setAttribute("src",this.__src),e.setAttribute("alt",this.__altText),e.setAttribute("width",this.__width.toString()),e.setAttribute("height",this.__height.toString()),{element:e}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,position:this.__position,showCaption:this.__showCaption,src:this.getSrc(),type:"inline-image",version:1,width:this.__width==="inherit"?0:this.__width}}getSrc(){return this.__src}getAltText(){return this.__altText}setAltText(e){const r=this.getWritable();r.__altText=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}getShowCaption(){return this.__showCaption}setShowCaption(e){const r=this.getWritable();r.__showCaption=e}getPosition(){return this.__position}setPosition(e){const r=this.getWritable();r.__position=e}update(e){const r=this.getWritable(),{altText:s,showCaption:i,position:o}=e;s!==void 0&&(r.__altText=s),i!==void 0&&(r.__showCaption=i),o!==void 0&&(r.__position=o)}createDOM(e){const r=document.createElement("span"),s=`${e.theme.inlineImage} position-${this.__position}`;return s!==void 0&&(r.className=s),r}updateDOM(e,r,s){const i=this.__position;if(i!==e.__position){const o=`${s.theme.inlineImage} position-${i}`;o!==void 0&&(r.className=o)}return!1}decorate(){return p.jsx(x.Suspense,{fallback:null,children:p.jsx(rY,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,position:this.__position})})}}function XM({altText:n,position:t,height:e,src:r,width:s,showCaption:i,caption:o,key:l}){return Bt(new up(r,n,t,s,e,i,o,l))}function iY(n){return n instanceof up}class dp extends On{static getType(){return"keyword"}static clone(t){return new dp(t.__text,t.__key)}static importJSON(t){const e=oY(t.text);return e.setFormat(t.format),e.setDetail(t.detail),e.setMode(t.mode),e.setStyle(t.style),e}exportJSON(){return{...super.exportJSON(),type:"keyword",version:1}}createDOM(t){const e=super.createDOM(t);return e.style.cursor="default",e.className="keyword",e}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}isTextEntity(){return!0}}function oY(n){return new dp(n)}function lY(n){const t=n.style.gridTemplateColumns;return t?{node:fp(t)}:null}class ss extends xt{constructor(e,r){super(r);U(this,"__templateColumns");this.__templateColumns=e}static getType(){return"layout-container"}static clone(e){return new ss(e.__templateColumns,e.__key)}createDOM(e){const r=document.createElement("div");return r.style.gridTemplateColumns=this.__templateColumns,typeof e.theme.layoutContainer=="string"&&pt(r,e.theme.layoutContainer),r}exportDOM(){const e=document.createElement("div");return e.style.gridTemplateColumns=this.__templateColumns,e.setAttribute("data-lexical-layout-container","true"),e.classList.add("dsd__theme__layoutContainer"),{element:e}}updateDOM(e,r){return e.__templateColumns!==this.__templateColumns&&(r.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:e=>e.hasAttribute("data-lexical-layout-container")?{conversion:lY,priority:2}:null}}static importJSON(e){return fp(e.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(e){this.getWritable().__templateColumns=e}}function fp(n){return new ss(n)}function Vh(n){return n instanceof ss}function aY(n){var e;const t=ps();return(e=n.parentElement)!=null&&e.classList.contains("dsd__theme__layoutItem")?{node:t}:null}class ks extends xt{static getType(){return"layout-divider"}static clone(t){return new ks(t.__key)}createDOM(t){const e=document.createElement("div");return typeof t.theme.layoutDivider=="string"&&pt(e,t.theme.layoutDivider),e.setAttribute("contenteditable","false"),e}updateDOM(){return!1}static importDOM(){return{div:t=>t.className!=="dsd__theme__layoutDivider"?null:{conversion:aY,priority:2}}}static importJSON(){return ps()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function ps(){return new ks}function cY(n){return n instanceof ks}function uY(n){const t=n.style.backgroundColor||"transparent";return{node:Bs(t)}}class Rr extends xt{constructor(e,r){super(r);U(this,"__backgroundColor");this.__backgroundColor=e}static getType(){return"layout-item"}static clone(e){return new Rr(e.__backgroundColor,e.__key)}createDOM(e){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof e.theme.layoutItem=="string"&&pt(r,e.theme.layoutItem),r}exportDOM(){const e=document.createElement("div");return e.style.backgroundColor=this.__backgroundColor,e.classList.add("dsd__theme__layoutItem"),{element:e}}updateDOM(e,r){return e.__backgroundColor!==this.__backgroundColor&&(r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:e=>e.className!=="dsd__theme__layoutItem"?null:{conversion:uY,priority:2}}}static importJSON(){return Bs()}isShadowRoot(){return!1}setLayoutBackground(e){this.getWritable().__backgroundColor=e}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function Bs(n="transparent"){return new Rr(n)}function Ws(n){return n instanceof Rr}function dY(n){const t=n.textContent;return t!==null?{node:qM(t)}:null}const fY="background-color: rgba(24, 119, 232, 0.2)";class hp extends On{constructor(e,r,s){super(r??e,s);U(this,"__mention");this.__mention=e}static getType(){return"mention"}static clone(e){return new hp(e.__mention,e.__text,e.__key)}static importJSON(e){const r=qM(e.mentionName);return r.setTextContent(e.text),r.setFormat(e.format),r.setDetail(e.detail),r.setMode(e.mode),r.setStyle(e.style),r}exportJSON(){return{...super.exportJSON(),mentionName:this.__mention,type:"mention",version:1}}createDOM(e){const r=super.createDOM(e);return r.style.cssText=fY,r.className="mention",r}exportDOM(){const e=document.createElement("span");return e.setAttribute("data-lexical-mention","true"),e.textContent=this.__text,{element:e}}static importDOM(){return{span:e=>e.hasAttribute("data-lexical-mention")?{conversion:dY,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function qM(n){const t=new hp(n);return t.setMode("segmented").toggleDirectionless(),Bt(t)}const ty=Ee("INSERT_MUSIC_COMMAND"),$M=Ee("UPLOAD_MUSIC_COMMAND");function hY(){const[n]=je(),{t}=Je.useTranslation(),{imperativeHandleRef:e,maxFileSize:r}=x.useContext(Pt);return x.useEffect(()=>{if(!n.hasNodes([_c]))throw new Error("MusicPlugin: MusicNode not registered on editor");const s=i=>{const o=i.filter(l=>l.type.includes("Music/"));if(i.length>1){Rt.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(o[0].size>r*1024*1024){Rt.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(ty,"upload"),setTimeout(()=>{n.dispatchCommand($M,i)})};return e!=null&&e.current&&(e.current.insertMusics=s),n.registerCommand(ty,i=>{const l=Lw(i==="upload"?"":i,i!=="upload");return gp(l),!1},De)},[n]),null}function gY({className:n,format:t,src:e,editor:r,nodeKey:s,create:i}){const{t:o}=Je.useTranslation(),{t:l}=Je.useTranslation("ui"),[a,u]=x.useState(!1),[d,h]=x.useState(!1),{start:g,cancel:m}=Ug(),[A,y]=x.useState(0),{fetchUploadMedia:b,maxFileSize:v}=x.useContext(Pt);x.useEffect(()=>{i&&h(!0)},[i]),x.useEffect(()=>{const _=document.documentElement;yl(d,_)},[d]);const C=x.useMemo(()=>[{key:"link",enabled:!0},{key:"upload",enabled:!0}].filter(T=>T.enabled).map(T=>T.key),[]);x.useEffect(()=>r.registerCommand($M,_=>!1,De),[]);const S=_=>{r.update(()=>{const T=Te(s);if(!T)return;Qh(T)&&(h(!1),T.setSrc(_));const N=T.getNextSibling();N&&rt(N.selectNext())})},k=_=>{r.update(()=>{u(!0),h(!1);const T=g();b&&b(_[0],(N,M,I)=>{const{originalFileName:D}=I,j=new URLSearchParams({originalFileName:D}),B=`${N}?${j.toString()}`;S(B),y(0),u(!1)},()=>{y(0),u(!1)},T,N=>{y(N)})})};return e?p.jsx("audio",{src:e,controls:!0}):p.jsx(Rt.FilePicker,{showTabs:C,uploading:!1,type:"audio",dropZoneProps:{multiple:!1,maxSize:v*1024*1024,accept:{"audio/*":[]}},onUpload:k,onChange:_=>{S(_)},popoverProps:{opened:d,position:"bottom",onChange:h},children:p.jsx(L.Flex,{w:"100%",children:p.jsx(ic,{className:n,format:t,nodeKey:s,children:p.jsx(bd,{isLoading:a,title:o("editor.audio.add_audio"),icon:"music",onClick:()=>h(_=>!_),nodeKey:s,progress:A,onAfterCancel:()=>{m(),u(!1)}})})})})}function pY(n){const t=n.getAttribute("data-src");return{node:Lw(t||"")}}class _c extends Uo{constructor(e,r,s,i){super(r,s);U(this,"__src");U(this,"__create");this.__src=e,this.__create=i||!1}static getType(){return"music"}static clone(e){return new _c(e.__src,e.__format,e.__key,e.__create)}static importJSON(e){const r=Lw(e.src);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"music",version:1,src:this.__src}}static importDOM(){return{span:e=>e.classList.contains("audio-container")?{conversion:pY,priority:1}:null}}createDOM(){const e=document.createElement("div");return e.className="audio-container",e}updateDOM(e,r){return!1}exportDOM(){const e=document.createElement("span"),r=document.createElement("audio");return e.className="audio-container",r.setAttribute("controls","true"),r.setAttribute("src",this.__src),e.setAttribute("data-src",this.__src),e.appendChild(r),{element:e}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return p.jsx(gY,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,src:this.__src,create:this.__create})}setSrc(e){const r=this.getWritable();r.__src=e}setCreated(e){const r=this.getWritable();r.__create=e}}function Lw(n,t){return new _c(n,void 0,void 0,t)}function Qh(n){return n instanceof _c}function mY({nodeKey:n}){const[t]=je(),[e,r,s]=zg(n),i=x.useCallback(o=>{if(o.preventDefault(),e&&$t(Q())){const l=Te(n);if(yY(l))return l.remove(),!0}return!1},[e,n]);return x.useEffect(()=>ct(t.registerCommand(Gi,o=>{const l=t.getElementByKey(n);return o.target===l?(o.shiftKey||s(),r(!e),!0):!1},De),t.registerCommand(hc,i,De),t.registerCommand(Kl,i,De)),[s,t,e,n,i,r]),x.useEffect(()=>{const o=t.getElementByKey(n);o!==null&&(o.className=e?"selected":"")},[t,e,n]),null}class Cd extends _s{static getType(){return"page-break"}static clone(t){return new Cd(t.__key)}static importJSON(){return eI()}static importDOM(){return{figure:t=>t.getAttribute("type")!==this.getType()?null:{conversion:AY,priority:ki}}}exportJSON(){return{type:this.getType(),version:1}}createDOM(){const t=document.createElement("figure");return t.style.pageBreakAfter="always",t.setAttribute("type",this.getType()),t}getTextContent(){return`
|
|
45
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return p.jsx(mY,{nodeKey:this.__key})}}function AY(){return{node:eI()}}function eI(){return new Cd}function yY(n){return n instanceof Cd}function bY(n){const t=n.getAttribute("data-src"),e=n.getAttribute("data-json");return{node:Dw(t||"",e||"",!1)}}class xd extends Uo{constructor(e,r,s,i,o){super(i,o);U(this,"__src");U(this,"__json");U(this,"__create");this.__src=e,this.__json=r,this.__create=s}static getType(){return"swagger"}static clone(e){return new xd(e.__src,e.__json,!1,e.__format,e.__key)}static importJSON(e){const r=Dw(e.src,e.json);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),src:this.__src,json:this.__json,create:this.__create,type:"swagger",version:1}}createDOM(){const e=document.createElement("span");return e.className="editor-swagger",e}setSrc(e){const r=this.getWritable();r.__src=e}setJSON(e){const r=this.getWritable();r.__json=e}updateDOM(){return!1}getSrc(){return this.__src}getJSON(){return this.__json}exportDOM(){const e=document.createElement("span");return e.classList.add("editor-swagger"),e.setAttribute("data-src",this.getSrc()),e.setAttribute("data-json",this.getJSON()),{element:e}}static importDOM(){return{span:e=>e.classList.contains("editor-swagger")?{conversion:bY,priority:1}:null}}decorate(e,r){return(r.theme.embedBlock||{}).base,p.jsx("div",{})}}function Dw(n,t,e){return new xd(n,t,e)}const Xh=Ee("INSERT_IMAGE_COMMAND"),tI=Ee("UPLOAD_IMAGE_COMMAND");function wY(){const[n]=je(),{t}=Je.useTranslation(),{imperativeHandleRef:e}=x.useContext(Pt),{maxFileSize:r}=x.useContext(Pt);return x.useEffect(()=>{if(!n.hasNodes([qi]))throw new Error("ImageOlugin: FileNode not registered on editor");const s=i=>{if(i.length>1){Rt.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(i[0].size>r*1024*1024){Rt.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(Xh,{src:"upload",create:!1,altText:""}),setTimeout(()=>{n.dispatchCommand(tI,i)},100)};return e!=null&&e.current&&(e.current.insertImages=s),n.registerCommand(Xh,i=>{const o=np(i);return gp(o),!1},De)},[n]),null}const gp=n=>{var o;const t=Gt();if(Vt(t))return t.append(n),!0;let e=t==null?void 0:t.getParent();const r=e instanceof Vi||e instanceof kn||e instanceof jr,s=t instanceof Ki&&!!t.__text,i=X(t)&&(t==null?void 0:t.getChildrenSize())>0;if(i&&(e=t),r&&s||r||i)return e.insertAfter(n),!0;if(t&&e)return t instanceof ks?((o=t.getPreviousSibling())==null||o.replace(n),!0):(t==null||t.replace(n),!0);if(!t)return Ue().append(n),!0},ny=Ee("INSERT_FILE_COMMAND"),nI=Ee("UPLOAD_FILE_COMMAND");function CY(){const[n]=je(),{t}=Je.useTranslation(),{imperativeHandleRef:e,maxFileSize:r}=x.useContext(Pt);return x.useEffect(()=>{if(!n.hasNodes([ra]))throw new Error("FilePlugin: FileNode not registered on editor");const s=i=>{if(i.length>1){Rt.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(i[0].size>r*1024*1024){Rt.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(ny,"upload"),setTimeout(()=>{n.dispatchCommand(nI,i)})};return e!=null&&e.current&&(e.current.insertFiles=s),n.registerCommand(ny,i=>{const o=Ow(i,"100%","100%","left",i!=="upload");return gp(o),!1},De)},[n]),null}function xY(n,t=2){if(n===0)return"0 B";const e=1024,r=["B","KB","MB","GB","TB","PB"];if(n<e)return`${n} B`;if(n<=0)return"0 B";const s=Math.floor(Math.log(n)/Math.log(e)),i=(n/Math.pow(e,s)).toFixed(1);return`${parseFloat(i).toString()}${r[s]}`}function vY({className:n,format:t,src:e,editor:r,nodeKey:s,create:i}){const{t:o}=Je.useTranslation(),{t:l}=Je.useTranslation("ui"),[a,u]=x.useState(!1),[d,h]=x.useState(!1),[g,m]=x.useState(0),A=x.useRef(null),{fetchUploadMedia:y,maxFileSize:b}=x.useContext(Pt),{startLoading:v,stopLoading:C}=G7(),{start:S,cancel:k}=Ug();x.useEffect(()=>{r.update(()=>{var R,z;const j=Te(s),B=((z=(R=A.current)==null?void 0:R.firstChild)==null?void 0:z.outerHTML)||"";j instanceof ra&&e&&j.setRef(B)})},[e]),x.useEffect(()=>{i&&h(!0)},[i]);const{fileSize:_,fileName:T}=x.useMemo(()=>{const j=new URL(window.location.href+e),B=j.searchParams.get("contentType"),R=j.searchParams.get("fileSize"),z=j.searchParams.get("originalFileName");return{contentType:B,fileName:z||e,fileSize:R}},[e]),N=x.useMemo(()=>[{key:"link",enabled:!0},{key:"upload",enabled:!0}].filter(B=>B.enabled).map(B=>B.key),[]);x.useEffect(()=>{const j=document.documentElement;yl(d,j)},[d]),x.useEffect(()=>r.registerCommand(nI,j=>(e==="upload"&&I(j),!1),De),[e]);const M=j=>{r.update(()=>{const B=Te(s);if(!B)return;ry(B)&&(h(!1),B.setSrc(j));const R=B.getNextSibling();R&&rt(R.selectNext())})},I=j=>{r.update(()=>{u(!0),h(!1),v();const B=S();y&&y(j[0],(R,z,G)=>{const{contentType:ce,fileSize:oe,originalFileName:W}=G,Z=new URLSearchParams({contentType:ce,fileSize:oe,originalFileName:W}),ae=R.includes("?")?`${R}&${Z.toString()}`:`${R}?${Z.toString()}`;M(ae),C(),u(!1),m(0)},R=>{R&&!B.aborted&&Rt.showErrorNotification({message:o("editor.gallery.errorFile")}),u(!1),m(0),C()},B,R=>{m(R)})})},D=j=>{j.stopPropagation(),j.preventDefault(),r.update(()=>{const B=Te(s);B&&B.remove()})};return!e||e==="upload"?p.jsx(Rt.FilePicker,{showTabs:N,uploading:!1,type:"file",dropZoneProps:{multiple:!1,maxSize:b*1024*1024,accept:{}},onUpload:I,onChange:j=>M(j),popoverProps:{opened:d,position:"bottom",onChange:h},children:p.jsx(L.Flex,{w:"100%",children:p.jsx(ic,{className:n,format:t,nodeKey:s,children:p.jsx(bd,{isLoading:a,title:o("editor.file.add_file"),icon:"file",progress:g,onClick:()=>h(j=>!j),onAfterCancel:()=>{k(),u(!1)},nodeKey:s})})})}):p.jsx("div",{ref:A,children:p.jsx(L.Anchor,{href:e,target:"_blank",children:p.jsxs(L.Button,{fullWidth:!0,className:"file-button",style:{boxSizing:"border-box"},leftSection:p.jsx(ie.IconFile,{}),rightSection:p.jsx(ie.IconX,{onClick:D}),variant:"light",color:"gray",justify:"left",m:0,children:[T," ",xY(Number(_),2)]})})})}const GE=new Map;function SY(n){const t=n.getAttribute("data-src"),e=parseFloat(n.getAttribute("width")??"100%"),r=parseFloat(n.getAttribute("height")??"100%"),s=n.style.justifyContent||"left";return{node:Ow(t||"",e,r,s)}}class ra extends Uo{constructor(e,r,s,i,o,l="left",a){super(r,o);U(this,"__src");U(this,"__create");U(this,"__width");U(this,"__height");U(this,"__alignment");this.__src=e,this.__create=a||!1,this.__width=s||560,this.__height=i||315,this.__height=i||315,this.__alignment=l||"left"}static getType(){return"file"}static clone(e){return new ra(e.__src,e.__format,e.__width,e.__height,e.__key,e.__alignment)}static importJSON(e){const r=Ow(e.src,e.width,e.height);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"file",version:1,src:this.__src,width:this.__width,height:this.__height}}static importDOM(){return{span:e=>e.className=="file-container"?{conversion:SY,priority:1}:null}}createDOM(){const e=document.createElement("div");return e.className="file-container",e.style.justifyContent=this.__alignment||"left",e}updateDOM(e,r){return this.__alignment!==e.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const e=this.__src==="upload"?"":this.__src,r=document.createElement("div"),s=document.createElement("span"),i=GE.get(this.__key)||"";return r.innerHTML=i,s.className="file-container",s.setAttribute("data-src",e),s.appendChild(r),{element:s}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return p.jsx(vY,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,src:this.__src,create:this.__create})}setRef(e){GE.set(this.__key,e)}setSrc(e){const r=this.getWritable();r.__src=e}setCreated(e){const r=this.getWritable();r.__create=e}setAlignment(e){const r=this.getWritable();r.__alignment=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}}function Ow(n,t,e,r,s){return new ra(n,void 0,t,e,void 0,r,s)}function ry(n){return n instanceof ra}function jf(n){if(n&&n.includes("unsplash"))return null;const 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,e=n==null?void 0:n.match(t);return e&&(n.startsWith("/v1/attachments/")||n.includes(window.location.origin))?e[0]:null}function ZE(n,t,e){n.update(()=>{const r=Te(t);ac(r)||Qh(r)?r.setSrc(e):Pl(r)&&e.trim()&&r.setId(e)},{tag:"historic"})}const Gr=new Map;function EY({editor:n}){const{fetchDeleteMedia:t,fetchRestoreMedia:e,pageId:r}=x.useContext(Pt);return x.useEffect(()=>()=>{Gr.clear()},[r]),x.useEffect(()=>{if(n)return n.getEditorState().read(()=>{var o;const s=((o=n.getDecorators)==null?void 0:o.call(n))||n._decorators,i=new Map;for(const[l,a]of Object.entries(s)){const u=a.props,d=a._self,g=ac(d)||Pl(d)||ry(d)||Qh(d);if(!u&&g)continue;const m=(u==null?void 0:u.src)||(u==null?void 0:u.videoID);if(m!=null&&m.trim()&&!(m!=null&&m.includes("unsplash"))&&jf(m)){const A=i.get(m)||[],y=A.includes(l)?A:[...A,l];i.set(m,y)}}for(const[l,a]of i.entries())Gr.set(l,{mediaNodeKeys:a})}),n.registerDecoratorListener(s=>{var l;const i=new Map;let o=!1;for(const[a,u]of Object.entries(s)){const d=u==null?void 0:u.props,h=u==null?void 0:u._self,g=Pl(h)||ac(h)||ry(h)||Qh(h);if(g&&((l=d==null?void 0:d.src)!=null&&l.includes("unsplash"))||!d&&g)continue;const m=d.src||d.videoID;if(!m)continue;if(m.trim()==="")return;const A=i.get(m)||[];!A.includes(a)&&jf(d==null?void 0:d.src)&&i.set(m,[...A,a])}for(const[a,u]of Gr.entries()){const d=i.get(a);if(Array.isArray(u.mediaNodeKeys)&&u.mediaNodeKeys.length>0&&(!d||d.length===0)){const h=jf(a);if(h&&t){const g=n.registerCommand(dc,()=>!0,Ss);t(h,()=>{g()}),Gr.set(a,{mediaNodeKeys:[]})}}}for(const[a]of Gr.entries())i.has(a)||Gr.set(a,{mediaNodeKeys:[]});if(Gr.size>0)for(const[a,u]of i.entries()){const d=Gr.get(a);if(d&&Array.isArray(d.mediaNodeKeys)&&d.mediaNodeKeys.length===0&&u.length>0){ZE(n,u[0]," "),o=!0;const h=jf(a);if(Gr.set(a,{mediaNodeKeys:u}),h&&e){const g=n.registerCommand(zl,()=>!0,Ss);e(h,()=>{g(),ZE(n,u[0],a)})}}}if(!o)for(const[a,u]of i.entries())Gr.set(a,{mediaNodeKeys:u})})},[n,e,t]),Gr}const kY=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function TY({onClear:n}){const[t]=je();return kY(()=>d7(t,n),[t,n]),null}function _Y({newTab:n=!0,disabled:t=!1}){const[e]=je();return x.useEffect(()=>vz(e,Hb({disabled:t,newTab:n})),[e,n,t]),null}const NY=x.createContext(null),TA={didCatch:!1,error:null};class MY extends x.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=TA}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var e,r,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];(e=(r=this.props).onReset)===null||e===void 0||e.call(r,{args:i,reason:"imperative-api"}),this.setState(TA)}}componentDidCatch(t,e){var r,s;(r=(s=this.props).onError)===null||r===void 0||r.call(s,t,e)}componentDidUpdate(t,e){const{didCatch:r}=this.state,{resetKeys:s}=this.props;if(r&&e.error!==null&&IY(t.resetKeys,s)){var i,o;(i=(o=this.props).onReset)===null||i===void 0||i.call(o,{next:s,prev:t.resetKeys,reason:"keys"}),this.setState(TA)}}render(){const{children:t,fallbackRender:e,FallbackComponent:r,fallback:s}=this.props,{didCatch:i,error:o}=this.state;let l=t;if(i){const a={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof e=="function")l=e(a);else if(r)l=x.createElement(r,a);else if(s!==void 0)l=s;else throw o}return x.createElement(NY.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},l)}}function IY(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.length!==t.length||n.some((e,r)=>!Object.is(e,t[r]))}function rI({children:n,onError:t}){return p.jsx(MY,{fallback:p.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:n})}function LY(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([Wg]))throw new Error("HashtagPlugin: HashtagNode not registered on editor");return yz(n)},[n]),null}function DY(){const[n]=je();return x.useEffect(()=>n.registerCommand(BN,t=>{const e=Q();if(!J(e))return!1;if(e.focus.getNode()!==null){const r=vc();G2(r)}return!0},Ze),[n]),null}const OY=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function RY({ignoreHistoryMergeTagChange:n=!0,ignoreSelectionChange:t=!1,onChange:e}){const[r]=je();return OY(()=>{if(e)return r.registerUpdateListener(({editorState:s,dirtyElements:i,dirtyLeaves:o,prevEditorState:l,tags:a})=>{t&&i.size===0&&o.size===0||n&&a.has(qr)||l.isEmpty()||e(s,r,a)})},[r,n,t,e]),null}const jY=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function PY(n){return{initialValueFn:()=>n.isEditable(),subscribe:t=>n.registerEditableListener(t)}}function Rw(){return(function(n){const[t]=je(),e=x.useMemo(()=>n(t),[t,n]),[r,s]=x.useState(()=>e.initialValueFn()),i=x.useRef(r);return jY(()=>{const{initialValueFn:o,subscribe:l}=e,a=o();return i.current!==a&&(i.current=a,s(a)),l(u=>{i.current=u,s(u)})},[e,n]),r})(PY)}const BY={name:"@lexical/react/ReactProvider"};function FY(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const jw=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function zY({editor:n,ErrorBoundary:t}){return(function(e,r){const[s,i]=x.useState(()=>e.getDecorators());return jw(()=>e.registerDecoratorListener(o=>{Dr.flushSync(()=>{i(o)})}),[e]),x.useEffect(()=>{i(e.getDecorators())},[e]),x.useMemo(()=>{const o=[],l=Object.keys(s);for(let a=0;a<l.length;a++){const u=l[a],d=p.jsx(r,{onError:g=>e._onError(g),children:p.jsx(x.Suspense,{fallback:null,children:s[u]})}),h=e.getElementByKey(u);h!==null&&o.push(Dr.createPortal(d,h,u))}return o},[r,s,e])})(n,t)}function UY({editor:n,ErrorBoundary:t}){return(function(e){const r=PN.maybeFromEditor(e);if(r&&r.hasExtensionByName(BY.name)){for(const s of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(s)&&FY(320,s);return!0}return!1})(n)?null:p.jsx(zY,{editor:n,ErrorBoundary:t})}function JE(n){return n.getEditorState().read(iM(n.isComposing()))}function sI({contentEditable:n,placeholder:t=null,ErrorBoundary:e}){const[r]=je();return(function(s){jw(()=>ct(Uz(s),Dz(s)),[s])})(r),p.jsxs(p.Fragment,{children:[n,p.jsx(KY,{content:t}),p.jsx(UY,{editor:r,ErrorBoundary:e})]})}function KY({content:n}){const[t]=je(),e=(function(s){const[i,o]=x.useState(()=>JE(s));return jw(()=>{function l(){const a=JE(s);o(a)}return l(),ct(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),i})(t),r=Rw();return e?typeof n=="function"?n(r):n:null}const VE=window.location.hostname,WY=VE!=="playground.lexical.dev"&&VE!=="lexical-playground.vercel.app",HY=new URLSearchParams(window.location.search),QE=n=>HY.get(n)==="true",{isShowTreeView:YY,isMaxLength:GY}={isShowTreeView:QE("showTreeView"),isMaxLength:QE("isMaxLength")},Zu={disableBeforeInput:!1,emptyEditor:WY,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:GY,isRichText:!0,measureTypingPerf:!1,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:YY,tableCellBackgroundColor:!0,tableCellMerge:!0},XE={...Zu},iI=x.createContext({setOption:(n,t)=>{},settings:Zu});function ZY(){const n={},t=new URLSearchParams(window.location.search);for(const e of Object.keys(Zu)){const r=t.get(e);r!==null&&(n[e]=r==="true")}return n}const JY=({children:n})=>{const[t,e]=x.useState(()=>({...Zu,...ZY()})),r=x.useCallback((i,o)=>{e(l=>({...l,[i]:o})),Zu[i]===o?qE(i,null):qE(i,o)},[]),s=x.useMemo(()=>({setOption:r,settings:t}),[r,t]);return p.jsx(iI.Provider,{value:s,children:n})},Pw=()=>x.useContext(iI);function qE(n,t){const e=new URL(window.location.href),r=new URLSearchParams(e.search);t!==null?r.has(n)?r.set(n,String(t)):r.append(n,String(t)):r.has(n)&&r.delete(n),e.search=r.toString(),window.history.pushState(null,"",e.toString())}const oI=x.createContext({}),VY=({children:n})=>{const t=x.useMemo(()=>({historyState:Zb()}),[]);return p.jsx(oI.Provider,{value:t,children:n})},Bw=()=>x.useContext(oI),QY=({t:n,src:t,isShown:e,setShown:r,id:s})=>{const[i,{open:o,close:l}]=Ja.useDisclosure(!1),a=x.useMemo(()=>[{id:!s||s==="0"?"":s,Url:t??"",contentType:"",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[t,s]),u=d=>{d?o():l()};return p.jsxs(p.Fragment,{children:[p.jsx(Rt.AttachmentsGalleryModal,{opened:i,onOpenChange:u,attachments:a}),p.jsx(L.Tooltip,{disabled:!e,label:n("editor.image.preview"),children:p.jsx(L.ActionIcon,{onClick:()=>{r(!1),o()},size:24,variant:"default",color:"gray","aria-label":"Settings",children:p.jsx(Ne,{size:"14",name:"photo-check"})})})]})},$E=8,XY=({anchorElem:n=document.body})=>{var y;const[t]=je(),[e,r]=x.useState(!1),[s,i]=x.useState(!1),[o,l]=x.useState(null),a=x.useRef(null),[u,d]=x.useState({right:"0",top:"0"}),{t:h}=Je.useTranslation(),g=ep(b=>{if(b.target instanceof HTMLElement&&b.target.clientWidth<100)return;const{lexicalDOMNode:C,isOutside:S}=IM(b,"img",["div.media-actions"]);if(S){i(!1);return}if(a.current=C,C){t.update(()=>{const D=He(C);D&&l({key:D.__key,src:D.__src})});const{y:k,right:_}=n.getBoundingClientRect(),{y:T,right:N}=C.getBoundingClientRect();i(!0);const M=T-k+$E,I=_-N+$E;d(()=>({right:`${I}px`,top:`${M}px`}))}},50,500);x.useEffect(()=>(document.addEventListener("mousemove",g),document.addEventListener("touchstart",g),()=>{i(!1),g.cancel(),document.removeEventListener("mousemove",g)}),[g]);const m=(b,v)=>{{b();return}},A=s?"auto":"none";return Dr.createPortal(p.jsxs("div",{className:`media-actions ${s?"visible":""}`,style:{right:u.right,top:u.top,pointerEvents:A},children:[!Q0&&p.jsx(hw,{opened:e,setOpened:r,t:h,editor:t,nodeKey:o==null?void 0:o.key,setShown:i,isShown:s}),p.jsx(QY,{setShown:i,isShown:s,t:h,src:o==null?void 0:o.src,id:(y=a.current)==null?void 0:y.getAttribute("data-id")}),p.jsx(L.Tooltip,{disabled:!s,label:h("editor.contextMenu.delete"),children:p.jsx(L.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",size:24,onClick:b=>{b.stopPropagation(),m(()=>{t.update(()=>{if(o!=null&&o.key){const v=Te(o==null?void 0:o.key);ac(v)&&(v.getPreviousSibling()?v.remove():v.replace(Me()),t.dispatchCommand(ji,"hide_menu"),i(!1))}return!1})})},variant:"default",children:p.jsx(Ne,{size:"14",name:"trash"})})})]}),n)};function lI(n,t=Object.freeze({})){return{editorState:n.toJSON(),lastSaved:t.lastSaved||Date.now(),source:t.source||"Lexical",version:"0.38.2"}}function aI(n,t){const e=typeof t=="string"?JSON.parse(t):t;return n.parseEditorState(e.editorState)}function qY(n){(function(t){const e=document.createElement("input");e.type="file",e.accept=".lexical",e.addEventListener("change",r=>{const s=r.target;if(s.files){const i=s.files[0],o=new FileReader;o.readAsText(i,"UTF-8"),o.onload=l=>{if(l.target){const a=l.target.result;t(a)}}}}),e.click()})(t=>{n.setEditorState(aI(n,t)),n.dispatchCommand(Py,void 0)})}function $Y(n,t=Object.freeze({})){const e=new Date;(function(r,s){const i=document.createElement("a"),o=document.body;if(o===null)return;o.appendChild(i),i.style.display="none";const l=JSON.stringify(r),a=new Blob([l],{type:"octet/stream"}),u=window.URL.createObjectURL(a);i.href=u,i.download=s,i.click(),window.URL.revokeObjectURL(u),i.remove()})(lI(n.getEditorState(),{...t,lastSaved:e.getTime()}),`${t.fileName||e.toISOString()}.lexical`)}function su(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function eG(n){let t=1,e=n.getParent();for(;e!=null;){if(Qn(e)){const r=e.getParent();if(Dt(r)){t++,e=r.getParent();continue}su(40)}return t}return t}function Ks(n){return Qn(n)&&Dt(n.getFirstChild())}function ek(n){return Yi().append(n)}function cI(n,t){n.splice(n.getChildrenSize(),0,t)}function Fw(n,t){const e=n.getLastChild(),r=t.getFirstChild();e&&r&&Ks(e)&&Ks(r)&&(Fw(e.getFirstChild(),r.getFirstChild()),r.remove());const s=t.getChildren();s.length>0&&n.append(...s),t.remove()}function tG(n){const t=n.getListType()!=="check";let e=n.getStart();for(const r of n.getChildren())Qn(r)&&(r.getValue()!==e&&r.setValue(e),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),Dt(r.getFirstChild())||e++)}function nG(n){const t=new Set;if(Ks(n)||t.has(n.getKey()))return;const e=n.getParent(),r=n.getNextSibling(),s=n.getPreviousSibling();if(Ks(r)&&Ks(s)){const i=s.getFirstChild();if(Dt(i)){i.append(n);const o=r.getFirstChild();Dt(o)&&(cI(i,o.getChildren()),r.remove(),t.add(r.getKey()))}}else if(Ks(r)){const i=r.getFirstChild();if(Dt(i)){const o=i.getFirstChild();o!==null&&o.insertBefore(n)}}else if(Ks(s)){const i=s.getFirstChild();Dt(i)&&i.append(n)}else if(Dt(e)){const i=Yi().setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle()),o=Vs(e.getListType()).setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle());i.append(o),o.append(n),s?s.insertAfter(i):r?r.insertBefore(i):e.append(i)}}function rG(n){if(Ks(n))return;const t=n.getParent(),e=t?t.getParent():void 0;if(Dt(e?e.getParent():void 0)&&Qn(e)&&Dt(t)){const r=t?t.getFirstChild():void 0,s=t?t.getLastChild():void 0;if(n.is(r))e.insertBefore(n),t.isEmpty()&&e.remove();else if(n.is(s))e.insertAfter(n),t.isEmpty()&&e.remove();else{const i=t.getListType(),o=Yi(),l=Vs(i);o.append(l),n.getPreviousSiblings().forEach(d=>l.append(d));const a=Yi(),u=Vs(i);a.append(u),cI(u,n.getNextSiblings()),e.insertBefore(o),e.insertAfter(a),e.replace(n)}}}function qh(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}let vd=class extends xt{constructor(e=1,r=void 0,s){super(s);U(this,"__value");U(this,"__checked");this.__value=e===void 0?1:e,this.__checked=r}$config(){return this.config("listitem",{$transform:e=>{if(e.__checked==null)return;const r=e.getParent();Dt(r)&&r.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)},extends:xt,importDOM:{li:()=>({conversion:sG,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const r=document.createElement("li");return this.updateListItemDOM(null,r,e),r}updateListItemDOM(e,r,s){(function(l,a,u){const d=a.getParent();!Dt(d)||d.getListType()!=="check"||Dt(a.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&a.__checked===u.__checked||l.setAttribute("aria-checked",a.getChecked()?"true":"false"))})(r,this,e),r.value=this.__value,(function(l,a,u){const d=[],h=[],g=a.list,m=g?g.listitem:void 0;let A;if(g&&g.nested&&(A=g.nested.listitem),m!==void 0&&d.push(...qh(m)),g){const y=u.getParent(),b=Dt(y)&&y.getListType()==="check",v=u.getChecked();b&&!v||h.push(g.listitemUnchecked),b&&v||h.push(g.listitemChecked),b&&d.push(v?g.listitemChecked:g.listitemUnchecked)}if(A!==void 0){const y=qh(A);u.getChildren().some(b=>Dt(b))?d.push(...y):h.push(...y)}h.length>0&&_r(l,...h),d.length>0&&pt(l,...d)})(r,s.theme,this);const i=e?e.__style:"",o=this.__style;i!==o&&(o===""?r.removeAttribute("style"):r.style.cssText=o),(function(l,a,u){const d=Nu(a.__textStyle);for(const h in d)l.style.setProperty(`--listitem-marker-${h}`,d[h]);if(u)for(const h in Nu(u.__textStyle))h in d||l.style.removeProperty(`--listitem-marker-${h}`)})(r,this,e)}updateDOM(e,r,s){const i=r;return this.updateListItemDOM(e,i,s),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const r=this.createDOM(e._config),s=this.getFormatType();s&&(r.style.textAlign=s);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let r=0;r<e.length;r++){const s=e[r];if(X(s)&&this.canMergeWith(s)){const i=s.getChildren();this.append(...i),s.remove()}else super.append(s)}return this}replace(e,r){if(Qn(e))return super.replace(e);this.setIndent(0);const s=this.getParentOrThrow();if(!Dt(s))return e;if(s.__first===this.getKey())s.insertBefore(e);else if(s.__last===this.getKey())s.insertAfter(e);else{const i=Vs(s.getListType());let o=this.getNextSibling();for(;o;){const l=o;o=o.getNextSibling(),i.append(l)}s.insertAfter(e),e.insertAfter(i)}return r&&(X(e)||su(139),this.getChildren().forEach(i=>{e.append(i)})),this.remove(),s.getChildrenSize()===0&&s.remove(),e}insertAfter(e,r=!0){const s=this.getParentOrThrow();if(Dt(s)||su(39),Qn(e))return super.insertAfter(e,r);const i=this.getNextSiblings();if(s.insertAfter(e,r),i.length!==0){const o=Vs(s.getListType());i.forEach(l=>o.append(l)),e.insertAfter(o,r)}return e}remove(e){const r=this.getPreviousSibling(),s=this.getNextSibling();super.remove(e),r&&s&&Ks(r)&&Ks(s)&&(Fw(r.getFirstChild(),s.getFirstChild()),s.remove())}insertNewAfter(e,r=!0){const s=Yi().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(s,r),s}collapseAtStart(e){const r=Me();this.getChildren().forEach(l=>r.append(l));const s=this.getParentOrThrow(),i=s.getParentOrThrow(),o=Qn(i);if(s.getChildrenSize()===1)if(o)s.remove(),i.select();else{s.insertBefore(r),s.remove();const l=e.anchor,a=e.focus,u=r.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),a.type==="element"&&a.getNode().is(this)&&a.set(u,a.offset,"element")}else s.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const r=this.getWritable();return r.__value=e,r}getChecked(){const e=this.getLatest();let r;const s=this.getParent();return Dt(s)&&(r=s.getListType()),r==="check"?!!e.__checked:void 0}setChecked(e){const r=this.getWritable();return r.__checked=e,r}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let r=e.getParentOrThrow(),s=0;for(;Qn(r);)r=r.getParentOrThrow().getParentOrThrow(),s++;return s}setIndent(e){typeof e!="number"&&su(117),(e=Math.floor(e))>=0||su(199);let r=this.getIndent();for(;r!==e;)r<e?(nG(this),r++):(rG(this),r--);return this}canInsertAfter(e){return Qn(e)}canReplaceWith(e){return Qn(e)}canMergeWith(e){return Qn(e)||fn(e)}extractWithChild(e,r){if(!J(r))return!1;const s=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(s)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Vs("bullet")}canMergeWhenEmpty(){return!0}};function sG(n){if(n.classList.contains("task-list-item")){for(const e of n.children)if(e.tagName==="INPUT")return tk(e)}if(n.classList.contains("joplin-checkbox")){for(const e of n.children)if(e.classList.contains("checkbox-wrapper")&&e.children.length>0&&e.children[0].tagName==="INPUT")return tk(e.children[0])}const t=n.getAttribute("aria-checked");return{node:Yi(t==="true"||t!=="false"&&void 0)}}function tk(n){return n.getAttribute("type")!=="checkbox"?{node:null}:{node:Yi(n.hasAttribute("checked"))}}function Yi(n){return Bt(new vd(void 0,n))}function Qn(n){return n instanceof vd}let Sd=class extends xt{constructor(e="number",r=1,s){super(s);U(this,"__tag");U(this,"__start");U(this,"__listType");const i=oG[e]||e;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:e=>{(function(r){const s=r.getNextSibling();Dt(s)&&r.getListType()===s.getListType()&&Fw(r,s)})(e),tG(e)},extends:xt,importDOM:{ol:()=>({conversion:rk,priority:0}),ul:()=>({conversion:rk,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const r=this.getWritable();return r.__listType=e,r.__tag=e==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const r=this.getWritable();return r.__start=e,r}createDOM(e,r){const s=this.__tag,i=document.createElement(s);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,nk(i,e.theme,this),i}updateDOM(e,r,s){return e.__tag!==this.__tag||e.__listType!==this.__listType||(nk(r,s.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const r=this.createDOM(e._config,e);return Nt(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()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,r,s){let i=s;for(let o=0;o<s.length;o++){const l=s[o];Qn(l)||(i===s&&(i=[...s]),i[o]=Yi().append(!X(l)||Dt(l)||l.isInline()?l:Ct(l.getTextContent())))}return super.splice(e,r,i)}extractWithChild(e){return Qn(e)}};function nk(n,t,e){const r=[],s=[],i=t.list;if(i!==void 0){const o=i[`${e.__tag}Depth`]||[],l=eG(e)-1,a=l%o.length,u=o[a],d=i[e.__tag];let h;const g=i.nested,m=i.checklist;if(g!==void 0&&g.list&&(h=g.list),d!==void 0&&r.push(d),m!==void 0&&e.__listType==="check"&&r.push(m),u!==void 0){r.push(...qh(u));for(let A=0;A<o.length;A++)A!==a&&s.push(e.__tag+A)}if(h!==void 0){const A=qh(h);l>1?r.push(...A):s.push(...A)}}s.length>0&&_r(n,...s),r.length>0&&pt(n,...r)}function iG(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e];if(Qn(r)){t.push(r);const s=r.getChildren();s.length>1&&s.forEach(i=>{Dt(i)&&t.push(ek(i))})}else t.push(ek(r))}return t}function rk(n){const t=n.nodeName.toLowerCase();let e=null;return t==="ol"?e=Vs("number",n.start):t==="ul"&&(e=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const s of r.childNodes)if(Nt(s)&&s.hasAttribute("aria-checked"))return!0;return!1})(n)?Vs("check"):Vs("bullet")),{after:iG,node:e}}const oG={ol:"number",ul:"bullet"};function Vs(n="number",t=1){return Bt(new Sd(n,t))}function Dt(n){return n instanceof Sd}function sy(n,t){const e={};for(const r of n){const s=t(r);s&&(e[s]?e[s].push(r):e[s]=[r])}return e}function zw(n){const t=sy(n,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}const $h=/[!-/:-@[-`{-~\s]/,lG=/^\s{0,3}$/;function iy(n){if(!fn(n))return!1;const t=n.getFirstChild();return t==null||n.getChildrenSize()===1&&fe(t)&&lG.test(t.getTextContent())}function aG(n,t,e,r){for(const s of t){if(!s.export)continue;const i=s.export(n,o=>eg(o,e,r));if(i!=null)return i}return X(n)?eg(n,e,r):ft(n)?n.getTextContent():null}function eg(n,t,e,r,s){const i=[],o=n.getChildren();r||(r=[]),s||(s=[]);e:for(const l of o){for(const a of e){if(!a.export)continue;const u=a.export(l,d=>eg(d,t,e,r,[...s,...r]),(d,h)=>sk(d,h,t,r,s));if(u!=null){i.push(u);continue e}}jt(l)?i.push(`
|
|
46
|
-
`):fe(l)?i.push(sk(l,l.getTextContent(),t,r,s)):X(l)?i.push(eg(l,t,e,r,s)):ft(l)&&i.push(l.getTextContent())}return i.join("")}function sk(n,t,e,r,s){let i=n.getFormat()===0?t:(function(g){return g.replace(/^\s+|\s+$/g,m=>[...m].map(A=>"&#"+A.codePointAt(0)+";").join(""))})(t);n.hasFormat("code")||(i=i.replace(/([*_`~\\])/g,"\\$1"));let o="",l="",a="";const u=ik(n,!0),d=ik(n,!1),h=new Set;for(const g of e){const m=g.format[0],A=g.tag;Pf(n,m)&&!h.has(m)&&(h.add(m),Pf(u,m)&&r.find(y=>y.tag===A)||(r.push({format:m,tag:A}),o+=A))}for(let g=0;g<r.length;g++){const m=Pf(n,r[g].format),A=Pf(d,r[g].format);if(m&&A)continue;const y=[...r];for(;y.length>g;){const b=y.pop();s&&b&&s.find(v=>v.tag===b.tag)||(b&&typeof b.tag=="string"&&(m?A||(a+=b.tag):l+=b.tag),r.pop())}break}return i=o+i+a,l+i}function ik(n,t){let e=t?n.getPreviousSibling():n.getNextSibling();if(!e){const r=n.getParentOrThrow();r.isInline()&&(e=t?r.getPreviousSibling():r.getNextSibling())}for(;e;){if(X(e)){if(!e.isInline())break;const r=t?e.getLastDescendant():e.getFirstDescendant();if(fe(r))return r;e=t?e.getPreviousSibling():e.getNextSibling()}if(fe(e))return e;if(!X(e))return null}return null}function Pf(n,t){return fe(n)&&n.hasFormat(t)}function cG(n,t){const e=(function(s,i){const o=s.match(i.openTagsRegExp);if(o==null)return null;for(const l of o){const a=l.replace(/^\s/,""),u=i.fullMatchRegExpByTag[a];if(u==null)continue;const d=s.match(u),h=i.transformersByTag[a];if(d!=null&&h!=null){if(h.intraword!==!1)return d;const{index:g=0}=d,m=s[g-1],A=s[g+d[0].length];if((!m||$h.test(m))&&(!A||$h.test(A)))return d}}return null})(n.getTextContent(),t);if(!e)return null;const r=e.index||0;return{endIndex:r+e[0].length,match:e,startIndex:r,transformer:t.transformersByTag[e[1]]}}function tl(n){return fe(n)&&!n.hasFormat("code")}function nl(n,t,e){let r=cG(n,t),s=(function(o,l){const a=o;let u,d,h,g;for(const m of l){if(!m.replace||!m.importRegExp)continue;const A=a.getTextContent().match(m.importRegExp);if(!A)continue;const y=A.index||0,b=m.getEndIndex?m.getEndIndex(a,A):y+A[0].length;b!==!1&&(u===void 0||d===void 0||y<u&&(b>d||b<=u))&&(u=y,d=b,h=m,g=A)}return u===void 0||d===void 0||h===void 0||g===void 0?null:{endIndex:d,match:g,startIndex:u,transformer:h}})(n,e);if(r&&s&&(r.startIndex<=s.startIndex&&r.endIndex>=s.endIndex||s.startIndex>r.endIndex?s=null:r=null),r){const o=(function(l,a,u,d,h){const g=l.getTextContent();let m,A,y;if(h[0]===g?m=l:a===0?[m,A]=l.splitText(u):[y,m,A]=l.splitText(a,u),m.setTextContent(h[2]),d)for(const b of d.format)m.hasFormat(b)||m.toggleFormat(b);return{nodeAfter:A,nodeBefore:y,transformedNode:m}})(n,r.startIndex,r.endIndex,r.transformer,r.match);tl(o.nodeAfter)&&nl(o.nodeAfter,t,e),tl(o.nodeBefore)&&nl(o.nodeBefore,t,e),tl(o.transformedNode)&&nl(o.transformedNode,t,e)}else if(s){const o=(function(l,a,u,d,h){let g,m,A;return a===0?[g,m]=l.splitText(u):[A,g,m]=l.splitText(a,u),d.replace?{nodeAfter:m,nodeBefore:A,transformedNode:d.replace(g,h)||void 0}:null})(n,s.startIndex,s.endIndex,s.transformer,s.match);if(!o)return;tl(o.nodeAfter)&&nl(o.nodeAfter,t,e),tl(o.nodeBefore)&&nl(o.nodeBefore,t,e),tl(o.transformedNode)&&nl(o.transformedNode,t,e)}const i=n.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(o,l)=>String.fromCodePoint(l));n.setTextContent(i)}function uG(n,t=!1){const e=zw(n),r=(function(s){const i={},o={},l=[],a="(?<![\\\\])";for(const u of s){const{tag:d}=u;i[d]=u;const h=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(h),d.length===1?o[d]=d==="`"?new RegExp("(?<![\\\\`])(`)((?:\\\\`|[^`])+?)(`)(?!`)"):new RegExp(`(?<![\\\\${h}])(${h})((\\\\${h})?.*?[^${h}\\s](\\\\${h})?)((?<!\\\\)|(?<=\\\\\\\\))(${h})(?![\\\\${h}])`):o[d]=new RegExp(`(?<!\\\\)(${h})((\\\\${h})?.*?[^\\s](\\\\${h})?)((?<!\\\\)|(?<=\\\\\\\\))(${h})(?!\\\\)`)}return{fullMatchRegExpByTag:o,openTagsRegExp:new RegExp(`${a}(${l.join("|")})`,"g"),transformersByTag:i}})(e.textFormat);return(s,i)=>{const o=s.split(`
|
|
47
|
-
`),l=o.length,a=i||Ue();a.clear();for(let d=0;d<l;d++){const h=o[d],[g,m]=dG(o,d,e.multilineElement,a);g?d=m:fG(h,a,e.element,r,e.textMatch,t)}const u=a.getChildren();for(const d of u)!t&&iy(d)&&a.getChildrenSize()>1&&d.remove();Q()!==null&&a.selectStart()}}function dG(n,t,e,r){for(const s of e){const{handleImportAfterStartMatch:i,regExpEnd:o,regExpStart:l,replace:a}=s,u=n[t].match(l);if(!u)continue;if(i){const A=i({lines:n,rootNode:r,startLineIndex:t,startMatch:u,transformer:s});if(A===null)continue;if(A)return A}const d=typeof o=="object"&&"regExp"in o?o.regExp:o,h=o&&typeof o=="object"&&"optional"in o?o.optional:!o;let g=t;const m=n.length;for(;g<m;){const A=d?n[g].match(d):null;if(!A&&(!h||h&&g<m-1)){g++;continue}if(A&&t===g&&A.index===u.index){g++;continue}const y=[];if(A&&t===g)y.push(n[t].slice(u[0].length,-A[0].length));else for(let b=t;b<=g;b++)if(b===t){const v=n[b].slice(u[0].length);y.push(v)}else if(b===g&&A){const v=n[b].slice(0,-A[0].length);y.push(v)}else y.push(n[b]);if(a(r,null,u,A,y,!0)!==!1)return[!0,g];break}}return[!1,t]}function fG(n,t,e,r,s,i){const o=Ct(n),l=Me();l.append(o),t.append(l);for(const{regExp:a,replace:u}of e){const d=n.match(a);if(d&&(o.setTextContent(n.slice(d[0].length)),u(l,[o],d,!0)!==!1))break}if(nl(o,r,s),l.isAttached()&&n.length>0){const a=l.getPreviousSibling();if(!i&&(fn(a)||oc(a)||Dt(a))){let u=a;if(Dt(a)){const d=a.getLastDescendant();u=d==null?null:Le(d,Qn)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[cr(),...l.getChildren()]),l.remove())}}}function hG(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const uI=/^(\s*)(\d{1,})\.\s/,dI=/^(\s*)[-*+]\s/,fI=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,oy=/^(#{1,6})\s/,hI=/^>\s/,gI=/^[ \t]*```([\w-]+)?/,ly=/[ \t]*```$/,gG=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,pG=/^(?:\|)(.+)(?:\|)\s?$/,mG=/^(\| ?:?-*:? ?)+\|\s?$/,ok=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,lk=/^<\/[a-z_][\w-]*\s*>/i,ak=n=>new RegExp(`(?:${n.source})$`,n.flags),iu=DT("mdListMarker",{parse:n=>typeof n=="string"&&/^[-*+]$/.test(n)?n:"-"}),pI=n=>(t,e,r,s)=>{const i=n(r);i.append(...e),t.replace(i),s||i.select(0,0)},Uw=n=>(t,e,r,s)=>{const i=t.getPreviousSibling(),o=t.getNextSibling(),l=Yi(n==="check"?r[3]==="x":void 0),a=r[0].trim()[0],u=n!=="bullet"&&n!=="check"||a!==iu.parse(a)?void 0:a;if(Dt(o)&&o.getListType()===n){u&&jm(o,iu,u);const h=o.getFirstChild();h!==null?h.insertBefore(l):o.append(l),t.remove()}else if(Dt(i)&&i.getListType()===n)u&&jm(i,iu,u),i.append(l),t.remove();else{const h=Vs(n,n==="number"?Number(r[2]):void 0);u&&jm(h,iu,u),h.append(l),t.replace(h)}l.append(...e),s||l.select(0,0);const d=(function(h){const g=h.match(/\t/g),m=h.match(/ /g);let A=0;return g&&(A+=g.length),m&&(A+=Math.floor(m.length/4)),A})(r[1]);d&&l.setIndent(d)},pp=(n,t,e)=>{const r=[],s=n.getChildren();let i=0;for(const o of s)if(Qn(o)){if(o.getChildrenSize()===1){const h=o.getFirstChild();if(Dt(h)){r.push(pp(h,t,e+1));continue}}const l=" ".repeat(4*e),a=n.getListType(),u=OT(n,iu),d=a==="number"?`${n.getStart()+i}. `:a==="check"?`${u} [${o.getChecked()?"x":" "}] `:u+" ";r.push(l+d+t(o)),i++}return r.join(`
|
|
48
|
-
`)},mI={dependencies:[Ad],export:(n,t)=>{if(!Js(n))return null;const e=Number(n.getTag().slice(1));return"#".repeat(e)+" "+t(n)},regExp:oy,replace:pI(n=>{const t="h"+n[1].length;return Mi(t)}),type:"element"},AI={dependencies:[Zg],export:(n,t)=>{if(!oc(n))return null;const e=t(n).split(`
|
|
49
|
-
`),r=[];for(const s of e)r.push("> "+s);return r.join(`
|
|
50
|
-
`)},regExp:hI,replace:(n,t,e,r)=>{if(r){const i=n.getPreviousSibling();if(oc(i))return i.splice(i.getChildrenSize(),0,[cr(),...t]),void n.remove()}const s=md();s.append(...t),n.replace(s),r||s.select(0,0)},type:"element"},AG={dependencies:[Ri],export:n=>{if(!Mr(n))return null;const t=n.getTextContent();return"```"+(n.getLanguage()||"")+(t?`
|
|
51
|
-
`+t:"")+"\n```"},regExpEnd:{optional:!0,regExp:ly},regExpStart:gI,replace:(n,t,e,r,s,i)=>{let o,l;if(!t&&s){if(s.length===1)r?(o=es(),l=e[1]+s[0]):(o=es(e[1]),l=s[0].startsWith(" ")?s[0].slice(1):s[0]);else{if(o=es(e[1]),s[0].trim().length===0)for(;s.length>0&&!s[0].length;)s.shift();else s[0]=s[0].startsWith(" ")?s[0].slice(1):s[0];for(;s.length>0&&!s[s.length-1].length;)s.pop();l=s.join(`
|
|
52
|
-
`)}const a=Ct(l);o.append(a),n.append(o)}else t&&pI(a=>es(a?a[1]:void 0))(n,t,e,i)},type:"multiline-element"},yG={dependencies:[Sd,vd],export:(n,t)=>Dt(n)?pp(n,t,0):null,regExp:dI,replace:Uw("bullet"),type:"element"},bG={dependencies:[Sd,vd],export:(n,t)=>Dt(n)?pp(n,t,0):null,regExp:fI,replace:Uw("check"),type:"element"},wG={dependencies:[Sd,vd],export:(n,t)=>Dt(n)?pp(n,t,0):null,regExp:uI,replace:Uw("number"),type:"element"},CG={format:["code"],tag:"`",type:"text-format"},xG={format:["highlight"],tag:"==",type:"text-format"},vG={format:["bold","italic"],tag:"***",type:"text-format"},SG={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},EG={format:["bold"],tag:"**",type:"text-format"},kG={format:["bold"],intraword:!1,tag:"__",type:"text-format"},TG={format:["strikethrough"],tag:"~~",type:"text-format"},_G={format:["italic"],tag:"*",type:"text-format"},NG={format:["italic"],intraword:!1,tag:"_",type:"text-format"},MG={dependencies:[ql],export:(n,t,e)=>{if(!Mn(n)||ll(n))return null;const r=n.getTitle(),s=t(n);return r?`[${s}](${n.getURL()} "${r}")`:`[${s}](${n.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(n,t)=>{const[,e,r,s]=t,i=Co(r,{title:s}),o=e.split("[").length-1,l=e.split("]").length-1;let a=e,u="";if(o<l)return;if(o>l){const h=e.split("[");u="["+h[0],a=h.slice(1).join("[")}const d=Ct(a);return d.setFormat(n.getFormat()),i.append(d),n.replace(i),u&&i.insertBefore(Ct(u)),d},trigger:")",type:"text-match"},IG=[mI,AI,yG,wG],yI=[AG],bI=[CG,vG,SG,EG,kG,xG,_G,NG,TG],wI=[MG],mp=[...IG,...yI,...bI,...wI];function ck(n,t,e){const r=e.length;for(let s=t;s>=r;s--){const i=s-r;if(CI(n,i,e,0,r)&&n[i+r]!==" ")return i}return-1}function CI(n,t,e,r,s){for(let i=0;i<s;i++)if(n[t+i]!==e[r+i])return!1;return!0}function LG(n,t=mp){const e=zw(t),r=sy(e.textFormat,({tag:o})=>o[o.length-1]),s=sy(e.textMatch,({trigger:o})=>o);for(const o of t){const l=o.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const a=o.dependencies;for(const u of a)n.hasNode(u)||hG(173,u.getType())}}const i=(o,l,a)=>{(function(u,d,h,g){const m=u.getParent();if(!$n(m)||u.getFirstChild()!==d)return!1;const A=d.getTextContent();if(A[h-1]!==" ")return!1;for(const{regExp:y,replace:b}of g){const v=A.match(y);if(v&&v[0].length===(v[0].endsWith(" ")?h:h-1)){const C=d.getNextSiblings(),[S,k]=d.splitText(h);if(b(u,k?[k,...C]:C,v,!1)!==!1)return S.remove(),!0}}return!1})(o,l,a,e.element)||(function(u,d,h,g){const m=u.getParent();if(!$n(m)||u.getFirstChild()!==d)return!1;const A=d.getTextContent();if(A[h-1]!==" ")return!1;for(const{regExpStart:y,replace:b,regExpEnd:v}of g){if(v&&!("optional"in v)||v&&"optional"in v&&!v.optional)continue;const C=A.match(y);if(C&&C[0].length===(C[0].endsWith(" ")?h:h-1)){const S=d.getNextSiblings(),[k,_]=d.splitText(h);if(b(u,_?[_,...S]:S,C,null,null,!1)!==!1)return k.remove(),!0}}return!1})(o,l,a,e.multilineElement)||(function(u,d,h){let g=u.getTextContent();const m=h[g[d-1]];if(m==null)return!1;d<g.length&&(g=g.slice(0,d));for(const A of m){if(!A.replace||!A.regExp)continue;const y=g.match(A.regExp);if(y===null)continue;const b=y.index||0,v=b+y[0].length;let C;return b===0?[C]=u.splitText(v):[,C]=u.splitText(b,v),C.selectNext(0,0),A.replace(C,y),!0}return!1})(l,a,s)||(function(u,d,h){const g=u.getTextContent(),m=d-1,A=g[m],y=h[A];if(!y)return!1;for(const b of y){const{tag:v}=b,C=v.length,S=m-C+1;if(C>1&&!CI(g,S,v,0,C)||g[S-1]===" ")continue;const k=g[m+1];if(b.intraword===!1&&k&&!$h.test(k))continue;const _=u;let T=_,N=ck(g,S,v),M=T;for(;N<0&&(M=M.getPreviousSibling())&&!jt(M);)if(fe(M)){if(M.hasFormat("code"))continue;const oe=M.getTextContent();T=M,N=ck(oe,oe.length,v)}if(N<0||T===_&&N+C===S)continue;const I=T.getTextContent();if(N>0&&I[N-1]===A)continue;const D=I[N-1];if(b.intraword===!1&&D&&!$h.test(D))continue;const j=_.getTextContent(),B=j.slice(0,S)+j.slice(m+1);_.setTextContent(B);const R=T===_?B:I;T.setTextContent(R.slice(0,N)+R.slice(N+C));const z=Q(),G=Zi();rt(G);const ce=m-C*(T===_?2:1)+1;G.anchor.set(T.__key,N,"text"),G.focus.set(_.__key,ce,"text");for(const oe of b.format)G.hasFormat(oe)||G.formatText(oe);G.anchor.set(G.focus.key,G.focus.offset,G.focus.type);for(const oe of b.format)G.hasFormat(oe)&&G.toggleFormat(oe);return J(z)&&(G.format=z.format),!0}})(l,a,r)};return n.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:a,prevEditorState:u})=>{if(o.has($u)||o.has(Sl)||n.isComposing())return;const d=a.read(Q),h=u.read(Q);if(!J(h)||!J(d)||!d.isCollapsed()||d.is(h))return;const g=d.anchor.key,m=d.anchor.offset,A=a._nodeMap.get(g);!fe(A)||!l.has(g)||m!==1&&m>h.anchor.offset+1||n.update(()=>{if(!tl(A))return;const y=A.getParent();y===null||Mr(y)||i(y,A,d.anchor.offset)})})}function xI(n,t=mp,e,r=!1,s=!1){const i=r?n:(function(o,l=!1){const a=o.split(`
|
|
53
|
-
`);let u=!1;const d=[];for(let h=0;h<a.length;h++){const g=a[h].trimEnd(),m=d[d.length-1];gG.test(g)?d.push(g):gI.test(g)||ly.test(g)?(u=!u,d.push(g)):u||g===""||m===""||!m||oy.test(m)||oy.test(g)||hI.test(g)||uI.test(g)||dI.test(g)||fI.test(g)||pG.test(g)||mG.test(g)||!l||ok.test(g)||lk.test(g)||ak(lk).test(m)||ak(ok).test(m)||ly.test(m)?d.push(g):d[d.length-1]=m+" "+g.trimStart()}return d.join(`
|
|
54
|
-
`)})(n,s);return uG(t,r)(i,e)}function vI(n=mp,t,e=!1){return(function(s,i=!1){const o=zw(s),l=[...o.multilineElement,...o.element],a=!i,u=o.textFormat.filter(d=>d.format.length===1).sort((d,h)=>Number(d.format.includes("code"))-Number(h.format.includes("code")));return d=>{const h=[],g=(d||Ue()).getChildren();for(let m=0;m<g.length;m++){const A=g[m],y=aG(A,l,u,o.textMatch);y!=null&&h.push(a&&m>0&&!iy(A)&&!iy(g[m-1])?`
|
|
55
|
-
`.concat(y):y)}return h.join(`
|
|
56
|
-
`)}})(n,e)(t)}function DG({children:n}){return Dr.createPortal(p.jsx("div",{className:"FlashMessage__overlay",role:"dialog",children:p.jsx("p",{className:"FlashMessage__alert",role:"alert",children:n})}),document.body)}const SI=x.createContext(void 0),_A={},OG=1e3,RG=({children:n})=>{const[t,e]=x.useState(_A),r=x.useCallback((s,i)=>e(s?{duration:i,message:s}:_A),[]);return x.useEffect(()=>{if(t.message){const s=setTimeout(()=>e(_A),t.duration??OG);return()=>clearTimeout(s)}},[t]),p.jsxs(SI.Provider,{value:r,children:[n,t.message&&p.jsx(DG,{children:t.message})]})},jG=()=>{const n=x.useContext(SI);if(!n)throw new Error("Missing FlashMessageContext");return n};function PG(){return jG()}function BG({onClose:n,children:t,title:e,size:r}){return p.jsx(L.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:n,title:e,zIndex:999,children:t})}function Ap(n){const[t,e]=x.useState(null),r=x.useCallback(()=>{e(null)},[]),s=x.useMemo(()=>{if(t===null)return null;const{title:o,content:l,closeOnClickOutside:a}=t;return p.jsx(BG,{onClose:r,title:o,size:"md",closeOnClickOutside:a,children:l})},[t,r]),i=x.useCallback((o,l,a=!1)=>{e({closeOnClickOutside:a,content:l(r),title:o})},[r]);return[s,i]}function ay({"data-test-id":n,children:t,className:e,onClick:r,disabled:s,small:i,title:o}){return p.jsx(L.Button,{onClick:r,disabled:s,variant:"filled",children:t})}async function*EI(n){let t=!1;for(;!t;){const e=await n.read(),{value:r}=e;r!==void 0&&(yield r),t=e.done}}async function FG(n){const t=[];for await(const r of EI(n))for(let s=0;s<r.length;s+=32768)t.push(String.fromCharCode(...r.subarray(s,s+32768)));return t.join("")}async function zG(n){const t=new CompressionStream("gzip"),e=t.writable.getWriter(),[,r]=await Promise.all([e.write(new TextEncoder().encode(JSON.stringify(n))).then(()=>e.close()),FG(t.readable.getReader())]);return`#doc=${btoa(r).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}`}async function UG(n){const t=/^#doc=(.*)$/.exec(n);if(!t)return null;const e=new DecompressionStream("gzip"),r=e.writable.getWriter(),s=atob(t[1].replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(s.length);for(let a=0;a<s.length;a++)i[a]=s.charCodeAt(a);const o=r.write(i).then(()=>r.close()),l=[];for await(const a of EI(e.readable.pipeThrough(new TextDecoderStream).getReader()))l.push(a);return await o,JSON.parse(l.join(""))}const Kw=/^(\d+(?:\.\d+)?)px$/,Qs={BOTH:3,NO_STATUS:0,ROW:1};class Nc extends xt{constructor(e=Qs.NO_STATUS,r=1,s,i){super(i);U(this,"__colSpan");U(this,"__rowSpan");U(this,"__headerState");U(this,"__width");U(this,"__backgroundColor");U(this,"__verticalAlign");this.__colSpan=r,this.__rowSpan=1,this.__headerState=e,this.__width=s,this.__backgroundColor=null,this.__verticalAlign=void 0}static getType(){return"tablecell"}static clone(e){return new Nc(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:uk,priority:0}),th:e=>({conversion:uk,priority:0})}}static importJSON(e){return Ww().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}createDOM(e){const r=document.createElement(this.getTag());return this.__width&&(r.style.width=`${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),cy(this.__verticalAlign)&&(r.style.verticalAlign=this.__verticalAlign),pt(r,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),r}exportDOM(e){const r=super.exportDOM(e);if(Nt(r.element)){const s=r.element;s.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),s.style.border="1px solid black",this.__colSpan>1&&(s.colSpan=this.__colSpan),this.__rowSpan>1&&(s.rowSpan=this.__rowSpan),s.style.width=`${this.getWidth()||75}px`,s.style.verticalAlign=this.getVerticalAlign()||"top",s.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(s.style.backgroundColor="#f2f3f5")}return r}exportJSON(){return{...super.exportJSON(),...cy(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){const r=this.getWritable();return r.__colSpan=e,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){const r=this.getWritable();return r.__rowSpan=e,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,r=Qs.BOTH){const s=this.getWritable();return s.__headerState=e&r|s.__headerState&~r,s}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){const r=this.getWritable();return r.__width=e,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){const r=this.getWritable();return r.__backgroundColor=e,r}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){const r=this.getWritable();return r.__verticalAlign=e||void 0,r}toggleHeaderStyle(e){const r=this.getWritable();return(r.__headerState&e)===e?r.__headerState-=e:r.__headerState+=e,r}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==Qs.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function cy(n){return n==="middle"||n==="bottom"}function uk(n){const t=n,e=n.nodeName.toLowerCase();let r;Kw.test(t.style.width)&&(r=parseFloat(t.style.width));const s=Ww(e==="th"?Qs.ROW:Qs.NO_STATUS,t.colSpan,r);s.__rowSpan=t.rowSpan;const i=t.style.backgroundColor;i!==""&&(s.__backgroundColor=i);const o=t.style.verticalAlign;cy(o)&&(s.__verticalAlign=o);const l=t.style,a=(l&&l.textDecoration||"").split(" "),u=l.fontWeight==="700"||l.fontWeight==="bold",d=a.includes("line-through"),h=l.fontStyle==="italic",g=a.includes("underline");return{after:m=>{const A=[];let y=null;const b=()=>{if(y){const v=y.getFirstChild();jt(v)&&y.getChildrenSize()===1&&v.remove()}};for(const v of m)dB(v)||fe(v)||jt(v)?(fe(v)&&(u&&v.toggleFormat("bold"),d&&v.toggleFormat("strikethrough"),h&&v.toggleFormat("italic"),g&&v.toggleFormat("underline")),y?y.append(v):(y=Me().append(v),A.push(y))):(A.push(v),b(),y=null);return b(),A.length===0&&A.push(Me()),A},node:s}}function Ww(n=Qs.NO_STATUS,t=1,e){return Bt(new Nc(n,t,e))}function lr(n){return n instanceof Nc}function En(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class Ed extends xt{constructor(e,r){super(r);U(this,"__height");this.__height=e}static getType(){return"tablerow"}static clone(e){return new Ed(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:KG,priority:0})}}static importJSON(e){return Hw().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}exportJSON(){const e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),pt(r,e.theme.tableRow),r}extractWithChild(e,r,s){return s==="html"}isShadowRoot(){return!0}setHeight(e){const r=this.getWritable();return r.__height=e,r}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function KG(n){const t=n;let e;return Kw.test(t.style.height)&&(e=parseFloat(t.style.height)),{after:r=>Z2(r,lr),node:Hw(e)}}function Hw(n){return Bt(new Ed(n))}function jo(n){return n instanceof Ed}const kI=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,WG=kI&&"documentMode"in document?document.documentMode:null;kI&&"InputEvent"in window&&!WG&&new window.InputEvent("input");function HG(n,t,e){const[r,s,i]=TI(n,t,e);return s===null&&En(207),i===null&&En(208),[r,s,i]}function TI(n,t,e){const r=[];let s=null,i=null;function o(a){let u=r[a];return u===void 0&&(r[a]=u=[]),u}const l=n.getChildren();for(let a=0;a<l.length;a++){const u=l[a];jo(u)||En(209);const d=o(a);for(let h=u.getFirstChild(),g=0;h!=null;h=h.getNextSibling()){for(lr(h)||En(147);d[g]!==void 0;)g++;const m={cell:h,startColumn:g,startRow:a},{__rowSpan:A,__colSpan:y}=h;for(let b=0;b<A&&!(a+b>=l.length);b++){const v=o(a+b);for(let C=0;C<y;C++)v[g+C]=m}t!==null&&s===null&&t.is(h)&&(s=m),e!==null&&i===null&&e.is(h)&&(i=m)}}return[r,s,i]}function YG(n){let t;if(n instanceof Nc)t=n;else if("__type"in n){const s=Le(n,lr);lr(s)||En(148),t=s}else{const s=Le(n.getNode(),lr);lr(s)||En(148),t=s}const e=t.getParent();jo(e)||En(149);const r=e.getParent();return bu(r)||En(210),[t,e,r]}function GG(n,t,e){let r,s=Math.min(t.startColumn,e.startColumn),i=Math.min(t.startRow,e.startRow),o=Math.max(t.startColumn+t.cell.__colSpan-1,e.startColumn+e.cell.__colSpan-1),l=Math.max(t.startRow+t.cell.__rowSpan-1,e.startRow+e.cell.__rowSpan-1);do{r=!1;for(let a=0;a<n.length;a++)for(let u=0;u<n[0].length;u++){const d=n[a][u];if(!d)continue;const h=d.startColumn+d.cell.__colSpan-1,g=d.startRow+d.cell.__rowSpan-1,m=d.startColumn<=o&&h>=s,A=d.startRow<=l&&g>=i;if(m&&A){const y=Math.min(s,d.startColumn),b=Math.max(o,h),v=Math.min(i,d.startRow),C=Math.max(l,g);y===s&&b===o&&v===i&&C===l||(s=y,o=b,i=v,l=C,r=!0)}}}while(r);return{maxColumn:o,maxRow:l,minColumn:s,minRow:i}}function dk(n){const[t,,e]=YG(n),r=e.getChildren(),s=r.length,i=r[0].getChildren().length,o=new Array(s);for(let l=0;l<s;l++)o[l]=new Array(i);for(let l=0;l<s;l++){const a=r[l].getChildren();let u=0;for(let d=0;d<a.length;d++){for(;o[l][u];)u++;const h=a[d],g=h.__rowSpan||1,m=h.__colSpan||1;for(let A=0;A<g;A++)for(let y=0;y<m;y++)o[l+A][u+y]=h;if(t===h)return{colSpan:m,columnIndex:u,rowIndex:l,rowSpan:g};u+=m}}return null}function fk(n){const[[t,e,r,s],[i,o,l,a]]=["anchor","focus"].map(u=>{const d=n[u].getNode(),h=Le(d,lr);lr(h)||En(238,u,d.getKey(),d.getType());const g=h.getParent();jo(g)||En(239,u);const m=g.getParent();return bu(m)||En(240,u),[d,h,g,m]});return s.is(a)||En(241),{anchorCell:e,anchorNode:t,anchorRow:r,anchorTable:s,focusCell:o,focusNode:i,focusRow:l,focusTable:a}}class Yw{constructor(t,e,r){U(this,"tableKey");U(this,"anchor");U(this,"focus");U(this,"_cachedNodes");U(this,"dirty");this.anchor=e,this.focus=r,e._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=t}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if(this.tableKey==="root"||this.anchor.key==="root"||this.anchor.type!=="element"||this.focus.key==="root"||this.focus.type!=="element")return!1;const t=Te(this.tableKey),e=Te(this.anchor.key),r=Te(this.focus.key);return t!==null&&e!==null&&r!==null}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return Gw(t)&&this.tableKey===t.tableKey&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)}set(t,e,r){this.dirty=this.dirty||t!==this.tableKey||e!==this.anchor.key||r!==this.focus.key,this.tableKey=t,this.anchor.key=e,this.focus.key=r,this._cachedNodes=null}clone(){return new Yw(this.tableKey,jn(this.anchor.key,this.anchor.offset,this.anchor.type),jn(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(t){}insertText(){}hasFormat(t){let e=0;this.getNodes().filter(lr).forEach(s=>{const i=s.getFirstChild();fn(i)&&(e|=i.getTextFormat())});const r=Pi[t];return(e&r)!==0}insertNodes(t){const e=this.focus.getNode();X(e)||En(151),So(e.select(0,e.getChildrenSize())).insertNodes(t)}getShape(){const{anchorCell:t,focusCell:e}=fk(this),r=dk(t);r===null&&En(153);const s=dk(e);s===null&&En(155);const i=Math.min(r.columnIndex,s.columnIndex),o=Math.max(r.columnIndex+r.colSpan-1,s.columnIndex+s.colSpan-1),l=Math.min(r.rowIndex,s.rowIndex),a=Math.max(r.rowIndex+r.rowSpan-1,s.rowIndex+s.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(l,a),toX:Math.max(i,o),toY:Math.max(l,a)}}getNodes(){if(!this.isValid())return[];const t=this._cachedNodes;if(t!==null)return t;const{anchorTable:e,anchorCell:r,focusCell:s}=fk(this),i=s.getParents()[1];if(i!==e){if(e.isParentOf(s)){const b=i.getParent();b==null&&En(159),this.set(this.tableKey,s.getKey(),b.getKey())}else{const b=e.getParent();b==null&&En(158),this.set(this.tableKey,b.getKey(),s.getKey())}return this.getNodes()}const[o,l,a]=HG(e,r,s),{minColumn:u,maxColumn:d,minRow:h,maxRow:g}=GG(o,l,a),m=new Map([[e.getKey(),e]]);let A=null;for(let b=h;b<=g;b++)for(let v=u;v<=d;v++){const{cell:C}=o[b][v],S=C.getParent();jo(S)||En(160),S!==A&&(m.set(S.getKey(),S),A=S),m.has(C.getKey())||ZG(C,k=>{m.set(k.getKey(),k)})}const y=Array.from(m.values());return Yl()||(this._cachedNodes=y),y}getTextContent(){const t=this.getNodes().filter(r=>lr(r));let e="";for(let r=0;r<t.length;r++){const s=t[r],i=s.__parent,o=(t[r+1]||{}).__parent;e+=s.getTextContent()+(o!==i?`
|
|
57
|
-
`:" ")}return e}}function Gw(n){return n instanceof Yw}function ZG(n,t){const e=[[n]];for(let r=e.at(-1);r!==void 0&&e.length>0;r=e.at(-1)){const s=r.pop();s===void 0?e.pop():t(s)!==!1&&X(s)&&e.push(s.getChildren())}}function Xc(n){return Nt(n)&&n.nodeName==="TABLE"}function JG(n,t){for(let e=t,r=null;e!==null;e=e.getParent()){if(n.is(e))return r;lr(e)&&(r=e)}return null}function VG(n,t,e){return JG(n,He(t,e))}function hk(n,t,e){if(!t.theme.tableAlignment)return;const r=[],s=[];for(const i of["center","right"]){const o=t.theme.tableAlignment[i];o&&(i===e?s:r).push(o)}_r(n,...r),pt(n,...s)}const QG=new WeakSet;function gk(n=Jl()){return QG.has(n)}class kd extends xt{constructor(e){super(e);U(this,"__rowStriping");U(this,"__frozenColumnCount");U(this,"__frozenRowCount");U(this,"__colWidths");this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){const r=this.getWritable();return r.__colWidths=e,r}static clone(e){return new kd(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:XG,priority:1})}}static importJSON(e){return Zw().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,r,s){return s==="html"}getDOMSlot(e){const r=Xc(e)?e:e.querySelector("table");return Xc(r)||En(229),super.getDOMSlot(e).withElement(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){const s=document.createElement("table");this.__style&&(s.style.cssText=this.__style);const i=document.createElement("colgroup");if(s.appendChild(i),T2(i),pt(s,e.theme.table),this.updateTableElement(null,s,e),gk(r)){const o=document.createElement("div"),l=e.theme.tableScrollableWrapper;return l?pt(o,l):o.style.cssText="overflow-x: auto;",o.appendChild(s),this.updateTableWrapper(null,o,s,e),o}return s}updateTableWrapper(e,r,s,i){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(function(o,l,a,u){u>0?(pt(o,a.theme.tableFrozenColumn),l.setAttribute("data-lexical-frozen-column","true")):(_r(o,a.theme.tableFrozenColumn),l.removeAttribute("data-lexical-frozen-column"))})(r,s,i,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(function(o,l,a,u){u>0?(pt(o,a.theme.tableFrozenRow),l.setAttribute("data-lexical-frozen-row","true")):(_r(o,a.theme.tableFrozenRow),l.removeAttribute("data-lexical-frozen-row"))})(r,s,i,this.__frozenRowCount)}updateTableElement(e,r,s){this.__style!==(e?e.__style:"")&&(r.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(function(i,o,l){l?(pt(i,o.theme.tableRowStriping),i.setAttribute("data-lexical-row-striping","true")):(_r(i,o.theme.tableRowStriping),i.removeAttribute("data-lexical-row-striping"))})(r,s,this.__rowStriping),(function(i,o,l,a){const u=i.querySelector("colgroup");if(!u)return;const d=[];for(let h=0;h<l;h++){const g=document.createElement("col"),m=a&&a[h];m&&(g.style.width=`${m}px`),d.push(g)}u.replaceChildren(...d)})(r,0,this.getColumnCount(),this.getColWidths()),hk(r,s,this.getFormatType())}updateDOM(e,r,s){const i=this.getDOMSlot(r).element;return r===i===gk()||(Nt(o=r)&&o.nodeName==="DIV"&&this.updateTableWrapper(e,r,i,s),this.updateTableElement(e,i,s),!1);var o}exportDOM(e){const r=super.exportDOM(e),{element:s}=r;return{after:i=>{if(r.after&&(i=r.after(i)),!Xc(i)&&Nt(i)&&(i=i.querySelector("table")),!Xc(i))return null;hk(i,e._config,this.getFormatType());const[o]=TI(this,null,null),l=new Map;for(const h of o)for(const g of h){const m=g.cell.getKey();l.has(m)||l.set(m,{colSpan:g.cell.getColSpan(),startColumn:g.startColumn})}const a=new Set;for(const h of i.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){const g=h.getAttribute("data-temporary-table-cell-lexical-key");if(g){const m=l.get(g);if(h.removeAttribute("data-temporary-table-cell-lexical-key"),m){l.delete(g);for(let A=0;A<m.colSpan;A++)a.add(A+m.startColumn)}}}const u=i.querySelector(":scope > colgroup");if(u){const h=Array.from(i.querySelectorAll(":scope > colgroup > col")).filter((g,m)=>a.has(m));u.replaceChildren(...h)}const d=i.querySelectorAll(":scope > tr");if(d.length>0){const h=document.createElement("tbody");for(const g of d)h.appendChild(g);i.append(h)}return i},element:!Xc(s)&&Nt(s)?s.querySelector("table"):s}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){const{rows:s,domRows:i}=r;for(let o=0;o<s;o++){const l=i[o];if(l!=null)for(let a=0;a<l.length;a++){const u=l[a];if(u==null)continue;const{elem:d}=u,h=VG(this,d);if(h!==null&&e.is(h))return{x:a,y:o}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,s){const{domRows:i}=s,o=i[r];if(o==null)return null;const l=o[e<o.length?e:o.length-1];return l??null}getDOMCellFromCordsOrThrow(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(!i)throw new Error("Cell not found at cords.");return i}getCellNodeFromCords(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(i==null)return null;const o=He(i.elem);return lr(o)?o:null}getCellNodeFromCordsOrThrow(e,r,s){const i=this.getCellNodeFromCords(e,r,s);if(!i)throw new Error("Node at cords not TableCellNode.");return i}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){const r=this.getWritable();return r.__rowStriping=e,r}setFrozenColumns(e){const r=this.getWritable();return r.__frozenColumnCount=e,r}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){const r=this.getWritable();return r.__frozenRowCount=e,r}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(s=>{lr(s)&&(r+=s.getColSpan())}),r}}function XG(n){const t=Zw();n.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),n.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),n.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);const e=n.querySelector(":scope > colgroup");if(e){let r=[];for(const s of e.querySelectorAll(":scope > col")){let i=s.style.width||"";if(!Kw.test(i)&&(i=s.getAttribute("width")||"",!/^\d+$/.test(i))){r=void 0;break}r.push(parseFloat(i))}r&&t.setColWidths(r)}return{after:r=>Z2(r,jo),node:t}}function Zw(){return Bt(new kd)}function bu(n){return n instanceof kd}const _I=4,qG={dependencies:[Yg],export:n=>UN(n)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(n,t,e,r)=>{const s=vc();r||n.getNextSibling()!=null?n.replace(s):n.insertBefore(s),s.selectNext()},type:"element"},$G={dependencies:[qi],export:n=>ac(n)?`})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(n,t)=>{const[,e,r]=t,s=np({altText:e,maxWidth:800,src:r});n.replace(s)},trigger:")",type:"text-match"};function eZ(n){const t=n.match(/\t/g),e=n.match(/ /g);let r=0;return t&&(r+=t.length),e&&(r+=Math.floor(e.length/_I)),r}const NI=n=>(t,e,r)=>{const s=t.getPreviousSibling(),i=t.getNextSibling(),o=wr(n==="check"?r[3]==="x":void 0);if(at(i)&&i.getListType()===n){const a=i.getFirstChild();a!==null?a.insertBefore(o):i.append(o),t.remove()}else if(at(s)&&s.getListType()===n)s.append(o),t.remove();else{const a=ar(n,n==="number"?Number(r[2]):void 0);a.append(o),t.replace(a)}o.append(...e),o.select(0,0);const l=eZ(r[1]);l&&o.setIndent(l)},Jw=(n,t,e)=>{const r=[],s=n.getChildren();let i=0;for(const o of s)if(kt(o)){if(o.getChildrenSize()===1){const d=o.getFirstChild();if(at(d)){r.push(Jw(d,t,e+1));continue}}const l=" ".repeat(e*_I),a=n.getListType(),u=a==="number"?`${n.getStart()+i}. `:a==="check"?`- [${o.getChecked()?"x":" "}] `:"- ";r.push(l+u+t(o)),i++}return r.join(`
|
|
58
|
-
`)},tZ=/^(\s*)(\d{1,})\.\s/,nZ=/^(\s*)[-*+]\s/,rZ={dependencies:[jr,kn],export:(n,t)=>at(n)?Jw(n,t,0):null,regExp:tZ,replace:NI("number"),type:"element"},sZ={dependencies:[jr,kn],export:(n,t)=>at(n)?Jw(n,t,0):null,regExp:nZ,replace:NI("bullet"),type:"element"},MI=/^(?:\|)(.+)(?:\|)\s?$/,iZ=/^(\| ?:?-*:? ?)+\|\s?$/,oZ={dependencies:[kd,Ed,Nc],export:n=>{if(!bu(n))return null;const t=[];for(const e of n.getChildren()){const r=[];if(!jo(e))continue;let s=!1;for(const i of e.getChildren())lr(i)&&(r.push(vI(Ju,i).replace(/\n/g,"\\n")),i.__headerState===Qs.ROW&&(s=!0));t.push(`| ${r.join(" | ")} |`),s&&t.push(`| ${r.map(i=>"---").join(" | ")} |`)}return t.join(`
|
|
59
|
-
`)},regExp:MI,replace:(n,t,e)=>{if(iZ.test(e[0])){const u=n.getPreviousSibling();if(!u||!bu(u))return;const d=u.getChildren(),h=d[d.length-1];if(!h||!jo(h))return;h.getChildren().forEach(g=>{lr(g)&&g.setHeaderStyles(Qs.ROW,Qs.ROW)}),n.remove();return}const r=pk(e[0]);if(r==null)return;const s=[r];let i=n.getPreviousSibling(),o=r.length;for(;i&&!(!fn(i)||i.getChildrenSize()!==1);){const u=i.getFirstChild();if(!Yn(u))break;const d=pk(u.getTextContent());if(d==null)break;o=Math.max(o,d.length),s.unshift(d);const h=i.getPreviousSibling();i.remove(),i=h}const l=Zw();for(const u of s){const d=Hw();l.append(d);for(let h=0;h<o;h++)d.append(h<u.length?u[h]:II(""))}const a=n.getPreviousSibling();bu(a)&&lZ(a)===o?(a.append(...l.getChildren()),n.remove()):n.replace(l),l.selectEnd()},type:"element"};function lZ(n){const t=n.getFirstChild();return jo(t)?t.getChildrenSize():0}const II=n=>{n=n.replace(/\\n/g,`
|
|
60
|
-
`);const t=Ww(Qs.NO_STATUS);return xI(n,Ju,t),t},pk=n=>{const t=n.match(MI);return!t||!t[1]?null:t[1].split("|").map(e=>II(e))},Ju=[oZ,qG,$G,bG,mI,AI,sZ,rZ,...yI,...bI,...wI],aZ=Ee("SPEECH_TO_TEXT_COMMAND"),cZ="SpeechRecognition"in window||"webkitSpeechRecognition"in window;async function uZ(n){const t=JSON.stringify(n.getEditorState());try{await fetch("http://localhost:1235/setEditorState",{body:t,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}}async function dZ(n){const t=JSON.stringify(n.getEditorState());let e=null;try{e=await fetch("http://localhost:1235/validateEditorState",{body:t,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}if(e!==null&&e.status===403)throw new Error("Editor state validation failed! Server did not accept changes.")}async function fZ(n){const t=new URL(window.location.toString());t.hash=await zG(n);const e=t.toString();window.history.replaceState({},"",e),await window.navigator.clipboard.writeText(e)}function hZ({isRichText:n,shouldPreserveNewLinesInMarkdown:t}){const[e]=je(),[r,s]=x.useState(()=>e.isEditable()),[i,o]=x.useState(!1),[l,a]=x.useState(!1),[u,d]=x.useState(!0),[h,g]=Ap(),m=PG(),A=!1;x.useEffect(()=>{XE.isCollab||UG(window.location.hash).then(b=>{b&&b.source==="Playground"&&(e.setEditorState(aI(e,b)),e.dispatchCommand(Py,void 0))})},[e]),x.useEffect(()=>ct(e.registerEditableListener(b=>{s(b)}),e.registerCommand(NN,b=>(a(b),!1),Ze)),[e]),x.useEffect(()=>e.registerUpdateListener(({dirtyElements:b,prevEditorState:v,tags:C})=>{!r&&b.size>0&&!C.has(Sl)&&!C.has($u)&&dZ(e),e.getEditorState().read(()=>{const k=Ue().getChildren();if(k.length>1)d(!1);else if(fn(k[0])){const _=k[0].getChildren();d(_.length===0)}else d(!1)})}),[e,r]);const y=x.useCallback(()=>{e.update(()=>{const b=Ue(),v=b.getFirstChild();if(Mr(v)&&v.getLanguage()==="markdown")xI(v.getTextContent(),Ju,void 0,t);else{const C=vI(Ju,void 0,t),S=es("markdown");S.append(Ct(C)),b.clear().append(S),C.length===0&&S.select()}})},[e,t]);return p.jsxs("div",{className:"actions",children:[cZ&&p.jsx("button",{onClick:()=>{e.dispatchCommand(aZ,!i),o(!i)},className:"action-button action-button-mic "+(i?"active":""),title:"Speech To Text","aria-label":`${i?"Enable":"Disable"} speech to text`,children:p.jsx("i",{className:"mic"})}),p.jsx("button",{className:"action-button import",onClick:()=>qY(e),title:"Import","aria-label":"Import editor state from JSON",children:p.jsx("i",{className:"import"})}),p.jsx("button",{className:"action-button export",onClick:()=>$Y(e,{fileName:`Playground ${new Date().toISOString()}`,source:"Playground"}),title:"Export","aria-label":"Export editor state to JSON",children:p.jsx("i",{className:"export"})}),p.jsx("button",{className:"action-button share",disabled:XE.isCollab,onClick:()=>fZ(lI(e.getEditorState(),{source:"Playground"})).then(()=>m("URL copied to clipboard"),()=>m("URL could not be copied to clipboard")),title:"Share","aria-label":"Share Playground link to current editor state",children:p.jsx("i",{className:"share"})}),p.jsx("button",{className:"action-button clear",disabled:u,onClick:()=>{g("Clear editor",b=>p.jsx(gZ,{editor:e,onClose:b}))},title:"Clear","aria-label":"Clear editor contents",children:p.jsx("i",{className:"clear"})}),p.jsx("button",{className:`action-button ${r?"lock":"unlock"}`,onClick:()=>{r&&uZ(e),e.setEditable(!e.isEditable())},title:"Read-Only Mode","aria-label":`${r?"Lock":"Unlock"} read-only mode`,children:p.jsx("i",{className:r?"lock":"unlock"})}),p.jsx("button",{className:"action-button",onClick:y,title:"Convert From Markdown","aria-label":"Convert from markdown",children:p.jsx("i",{className:"markdown"})}),A,h]})}function gZ({editor:n,onClose:t}){return p.jsxs(p.Fragment,{children:["Are you sure you want to clear the editor?",p.jsxs("div",{className:"Modal__content",children:[p.jsx(ay,{onClick:()=>{n.dispatchCommand(gg,void 0),n.focus(),t()},children:"Clear"})," ",p.jsx(ay,{onClick:()=>{n.focus(),t()},children:"Cancel"})]})]})}const pZ=[".toolbar",'[role="menu"]',".floating-text-format-popup","[data-comment-submit-button]","[data-modal-content]"],mZ=({onBlur:n})=>{const[t]=je();return x.useEffect(()=>{const e=t.getRootElement();if(!e)return;const r=(i,o,l)=>i>=l.left&&i<=l.right&&o>=l.top&&o<=l.bottom,s=i=>{const o=e.getBoundingClientRect(),l=i.target,a=l instanceof Element&&pZ.some(A=>l.closest(A)),{clientX:u,clientY:d}=i,h=r(u,d,o),g=document.activeElement;!e.contains(g)&&!h&&!a&&t.update(()=>{var A;rt(null),t.dispatchCommand(Xr,void 0),(A=t._rootElement)==null||A.classList.remove("focused"),n&&(n==null||n(t.getEditorState(),t))})};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[t,n]),null};let Vw=function(n,t){if(!n.parentElement)return null;if(n.parentElement.classList.contains("ContentEditable__root")){let e=[];if(!CSS.supports("selector(:has(*))"))e=n.querySelectorAll("li:has(+ .dsd__theme__nestedListItem)");else{const r=n.querySelectorAll("li");e=Array.from(r).filter(s=>{const i=s.nextElementSibling;return i&&i.classList.contains("dsd__theme__nestedListItem")})}return setTimeout(()=>{for(let r=0;r<e.length;r++){const s=e[r],i=s.nextElementSibling;if(!i)return;let o=!1,l=!0;Array.from(i.querySelectorAll("li:not(.dsd__theme__nestedListItem):not(:has(+ .dsd__theme__nestedListItem))")).forEach(u=>{const d=u.getAttribute("aria-checked");(d===null||d==="false")&&(l=!1),d==="true"&&(o=!0)}),t.update(()=>{if(!l&&o){const u=He(s);u instanceof kn&&(u.setChecked(!1),u.setIndeterminate(!0))}if(!o&&!l){const u=He(s);u instanceof kn&&(u.setChecked(!1),u.setIndeterminate(!1))}if(l){const u=He(s);u instanceof kn&&(u.setChecked(!0),u.setIndeterminate(!1))}}),o=!1,l=!0}},0),null}return Vw(n.parentElement,t)};const AZ=()=>{const n=Gt();if(!n)return!1;try{const t=yc(n);t instanceof kn&&!t.__opened&&t.setOpened(!0)}catch{return!1}return!1},yZ=dl.debounce((n,t)=>{const e=t.getElementByKey(n);Vw(e,t)},100);function bZ(){const[n]=je();return x.useEffect(()=>{const t=n.registerMutationListener(jr,e=>{for(const[r,s]of e)s==="updated"&&yZ(r,n)},{skipInitialization:!0});return()=>{t()}},[n]),x.useEffect(()=>ct(n.registerCommand(ew,()=>(U0(n,"check"),!0),De),n.registerRootListener((t,e)=>{t!==null&&(t.addEventListener("click",mk),t.addEventListener("pointerdown",Ak)),e!==null&&(e.removeEventListener("click",mk),e.removeEventListener("pointerdown",Ak))})),[n]),null}function LI(n,t,e=!1){const r=n.target;if(r===null||!Nt(r))return;const s=r.firstChild;if(s!=null&&Nt(s)&&(s.tagName==="UL"||s.tagName==="OL"))return;const i=r.parentNode,o=r.getBoundingClientRect(),l=n.pageX/QB(r);if(i&&l>o.right){if(e){t();return}if(n.target instanceof HTMLElement){const a=sd(i);a!=null&&a.isEditable()&&a.update(()=>{const u=He(i);kt(u)&&u.toggleOpen()})}}!i||i.__lexicalListType!=="check"||(r.dir==="rtl"?l<o.right&&l>o.right-20:l>o.left&&l<o.left+20)&&t()}function mk(n){LI(n,()=>{if(n.target instanceof HTMLElement){const t=n.target,e=sd(t);e!=null&&e.isEditable()&&(e.update(()=>{const r=He(t);if(kt(r)&&(r.selectEnd(),r.toggleChecked()),t.getAttribute("data-list")&&t.getAttribute("aria-checked")==="false"&&t.nextElementSibling){Array.from(t.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(s=>{const i=He(s);i instanceof kn&&i.setChecked(!0)});return}if(t.getAttribute("data-list")&&t.getAttribute("aria-checked")==="true"&&t.nextElementSibling){Array.from(t.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(s=>{const i=He(s);i instanceof kn&&i.setChecked(!1)});return}}),Vw(t,e))}})}function Ak(n){LI(n,()=>{n.preventDefault()},!0)}const DI=Ee("INSERT_CHILD_DOCUMENTS_COMMAND");function wZ(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([cc]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return n.registerCommand(DI,t=>{const e=JM(),r=Gt();return r==null||r.replace(e),!0},Ze)},[n]),null}function CZ(){const[n]=je();return x.useEffect(()=>uz(n),[n]),null}const yp=(n,t,e)=>{var s,i,o,l,a;const r=Q();if(J(r)&&r.isCollapsed()){const u=r.anchor.getNode(),d=u.getKey(),h=u.getParent()===e,g=e instanceof xt&&(e.__type==="layout-item"?(i=(s=e.getLastChild())==null?void 0:s.getPreviousSibling())==null?void 0:i.getKey():(o=e.getLastChild())==null?void 0:o.getKey())===d,m=e instanceof xt&&((l=e.getFirstChild())==null?void 0:l.getKey())===d;if(e&&u instanceof Vi&&!u.getTextContent()&&h&&!((a=u.getPreviousSibling())!=null&&a.getTextContent())&&g&&!m){const y=n.registerCommand(Bi,()=>(y(),!0),Ss);return n.update(()=>{var v;if(e){let C=e.getChildren();const S=e.getLastChild();cY(S)&&(C=C.slice(0,-1)),C.length===2?C.slice(-1).forEach(k=>k.remove()):C.slice(-2).forEach(k=>k.remove())}const b=t==null?void 0:t.getNextSibling();if(fn(b)&&b.getTextContent()==="")(v=t==null?void 0:t.getNextSibling())==null||v.selectEnd();else{const C=t==null?void 0:t.insertAfter(Me());C==null||C.selectStart()}}),!0}}return!1},xZ=4,vZ=2,SZ="draggable-block-menu",EZ=16,yk="application/x-lexical-drag-block",bp=n=>n?n.match(/(\d*\.?\d+)%/g):[],uy=n=>n<0?0:n>100?100:n,OI=(n,t,e)=>{let r=0,s=[];n.update(()=>{if(n&&t){const a=n.getElementByKey(t.getKey());if(a){const u=a.style;s=bp(u.getPropertyValue("grid-template-columns")).map(d=>d.slice(0,-1)),r=s?s.length:0}}const i=100/(r+1),o=[...s];o.splice(e,0,`${i}%`);let l=i/r;for(let a=0;a<o.length;a++)if(e!==a){const u=Number(o[a])-l;o[a]=`minmax(100px,${uy(u)}%)`}else o[a]=`minmax(100px,${o[a]})`;t.setTemplateColumns(o.join(" "))})},dy=(n,t,e,r)=>{n.update(()=>{const s=n.getElementByKey(t.getKey());if(!s)return;let i=r;e<r&&(i=r-1);const l=s.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],a=l.splice(e,1)[0];l.splice(i,0,a),t.setTemplateColumns(l.join(" "))})},Vu=(n,t)=>(n!=null&&n.children?Array.from(n.children):[]).indexOf(t);function kZ(n,t,e,r){var a;let s=n.getAttribute("data-direction")==="left",i=n.getAttribute("data-direction")==="right",o=n.getAttribute("data-index"),l=n.getAttribute("data-index-start");if(s||i||o){let u=(a=e.getParent())==null?void 0:a.getParent();if(e instanceof ss&&(u=e),e instanceof ks||e instanceof ss){const d=u==null?void 0:u.getChildren();let h=r instanceof ks;if((d==null?void 0:d.length)>=4&&!h)return!0;t.update(()=>{var A;let g=0;s?g=0:i?g=((A=u==null?void 0:u.getChildren())==null?void 0:A.length)-1:g=Number(o),h?dy(t,u,Number(l),g):OI(t,u,g);let m=null;g!==void 0&&t.update(()=>{if(m=u.getChildren()[g],h)e instanceof ss?m.insertAfter(r.getParent()):m.insertBefore(r.getParent());else if(i)m.insertAfter(Bs().append(r).append(ps()));else{const y=r.getParent(),b=y==null?void 0:y.getParent();Ws(y)&&(y==null?void 0:y.getChildrenSize())===2&&Ws(y)&&Vh(b)&&uc(t,y,b),m.insertBefore(Bs().append(r).append(ps()))}})})}else t.update(()=>{const d=fp(dw);let h;if(Hi(e)||Ir(e)){const g=r.getParent(),m=g==null?void 0:g.getParent();if(Ws(g)&&(g==null?void 0:g.getChildrenSize())===2&&Vh(m)){const y=m.getParent(),b=y==null?void 0:y.getParent(),v=m.getChildren(),S=v.findIndex(_=>_===g)===0?1:0,k=v[S];if(Ws(k)){const _=k.getChildren()[0];Hi(b)&&(b.append(_),m.remove(),h=Au(b))}}else h=Au(e,r)}else h=Au(e);h&&(s?(d.append(Bs().append(r).append(ps())),d.append(Bs().append(h).append(ps()))):(d.append(Bs().append(h).append(ps())),d.append(Bs().append(r).append(ps()))),e.insertAfter(d),e.remove(),h.selectStart())});return!0}return!1}function TZ(n,t,e="right",r=!1){n.update(()=>{const s=He(t),i=s==null?void 0:s.getParent();if(i){if(bp(i.__templateColumns).length===4)return;let l=Vu(t.parentElement,t);e==="right"&&(l=l+1),OI(n,i,l)}const o=Bs().append(Me()).append(ps());s&&(e==="right"?r?(s.insertBefore(Au(s)),s.selectStart()):(s.insertAfter(o),o==null||o.selectStart()):(s.insertBefore(o),o.selectStart()))})}const RI=(n,t)=>{const e=t==null?void 0:t.getParent();let r=bp(e==null?void 0:e.getTemplateColumns());const s=e==null?void 0:e.getChildren();let i=0;if(s&&t){for(let d=0;d<s.length;d++)if(s[d].__key===t.__key){i=d;break}}r.splice(i,1);const o=r.map(d=>parseFloat(d)),l=o.reduce((d,h)=>d+h,0),u=o.map(d=>d/l*100).map(d=>`minmax(50px,${d.toFixed(2)}%)`);e==null||e.setTemplateColumns(u.join(" "))},_Z=n=>n.className.includes("editor-image")||n.className.includes("video-container")?n:n.className.includes("editor-excalidraw")?n.firstChild:null,jI=(n,t)=>t!=null&&t.__key&&n!==t.__key?jI(n,t==null?void 0:t.getParent()):n===(t==null?void 0:t.__key),bk=(n,t,e)=>{n.update(()=>{var o,l,a;const r=(o=t==null?void 0:t.getParent())==null?void 0:o.getParent(),s=t==null?void 0:t.getParent(),i=e==="right"?(l=t==null?void 0:t.getParent())==null?void 0:l.getNextSibling():(a=t==null?void 0:t.getParent())==null?void 0:a.getPreviousSibling();if(s&&i&&r instanceof ss){const u=n.getElementByKey(s.getKey()),d=n.getElementByKey(r.getKey()),h=Vu(d,u);s&&r&&i&&(e==="right"&&(dy(n,r,h+1,h),i.insertAfter(s)),e==="left"&&(dy(n,r,h,h+1),i.insertBefore(s)))}})};function NZ(n){n&&(n.style.display="none")}function wk({blockElement:n,editor:t,isTop:e,isClickedBlockRef:r,setDraggableBlockElem:s}){n&&(r.current=!0,t.update(()=>{const i=He(n);if(i){const o=Me();e?(i.insertBefore(o),setTimeout(()=>{s(t.getElementByKey(o.__key)),t.update(()=>{o.selectStart()})})):(i.insertAfter(o),setTimeout(()=>{s(t.getElementByKey(o.__key)),t.update(()=>{o.selectEnd()})}))}}))}function MZ(n){const t=(a,u)=>a?parseFloat(window.getComputedStyle(a)[u]):0,{marginTop:e,marginBottom:r}=window.getComputedStyle(n),s=t(n.previousElementSibling,"marginBottom"),i=t(n.nextElementSibling,"marginTop"),o=Math.max(parseFloat(e),s);return{marginBottom:Math.max(parseFloat(r),i),marginTop:o}}function IZ(n){return!!n.closest(`.${SZ}`)}function Ck(n,t,e,r){if(!n){t.style.opacity="0";return}t.style.display="block";let s=null;const i=_Z(n);i&&i.style.justifyContent!=="left"&&i.firstChild instanceof HTMLElement?s=i.firstChild.getBoundingClientRect():s=n.getBoundingClientRect();let o=null,l=0,a=!0,u=0;if(s){let v=n.firstChild instanceof HTMLElement&&(n.firstChild.hasAttribute("data-lexical-text")||n.firstChild.tagName==="LI"||n.firstChild.tagName==="A")?n.firstChild:null;if(v&&!v.className.includes("editor-image")&&n.tagName!=="CODE"){const C=window.getComputedStyle(v),S=parseFloat(C.lineHeight),k=parseFloat(C.fontSize);u=Math.ceil(k+(S-k)/2),o=v.getBoundingClientRect()}else if(n.firstChild instanceof HTMLElement&&n.firstChild.tagName==="BR"&&n.tagName!=="CODE"){const C=window.getComputedStyle(n,"::before");u=parseFloat(C.height)||30}else n&&(n.tagName==="HR"||n.matches(":has(audio)")||n.classList.contains("file-container"))?u=n.clientHeight:n.firstChild instanceof HTMLElement&&n.firstChild.tagName==="SUMMARY"?u=n.firstChild.clientHeight:(o=s,a=!1)}const d=e.getBoundingClientRect(),h=(o==null?void 0:o.top)||s.top,g=u||l,m=t.clientHeight,A=g-m;let y=!a||!g?s.top+7-d.top:h+A/2-d.top,b=s.left-d.left-m*2-3;n.tagName==="LI"&&n.getAttribute("role")!=="checkbox"&&(b=b-26,y=y-1),i&&(y=h-d.top+7,(i.style.justifyContent==="center"||i.style.justifyContent==="right")&&(b=b+10)),n.matches(":has(.resizable-container__handle)")&&!n.matches(":has(.hide-padding)")&&n.tagName!=="DETAILS"&&(y=h-d.top+27),s.top<0&&(y=y+-s.top),n.className==="dsd__theme__layoutDivider"&&(t.style.display="none",s.top-t.clientHeight<0?n.style.setProperty("--height-column",`${n.clientHeight+s.top-t.clientHeight-7}px`):n.style.setProperty("--height-column",`${n.clientHeight}px`)),t.style.opacity="1",!r&&b>-40&&(t.style.transform=`translate(${b}px, ${y}px)`)}function xk(n,t){const{transform:e}=t.style;t.style.transform="translateZ(0)",n.setDragImage(t,0,0),setTimeout(()=>{t.style.transform=e})}function LZ(n,t){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",t.forEach(r=>{const s=r.cloneNode(!0);s.style.position="relative",e.appendChild(s)}),document.body.appendChild(e),n.setDragImage(e,0,0),setTimeout(()=>document.body.removeChild(e),0)}function DZ(n,t,e,r,s,i,o){var T;const{top:l,height:a,width:u,left:d}=t.getBoundingClientRect(),{top:h,left:g,width:m}=s==null?void 0:s.getBoundingClientRect(),{marginTop:A,marginBottom:y}=MZ(t);let b=l;e>=l?(o.current.isBottom=!0,b+=a+y/2):(o.current.isBottom=!1,b-=A/2);const v=b-h-vZ,C=EZ-xZ,k=i.target.closest(".dsd__theme__layoutDivider");n.setAttribute("data-index",""),n.style.background="deepskyblue";const _=d-g-C;if(r<=d&&!k){if(t.closest(".dsd__theme__layoutItem"))return;n.style.transform=`translate(${_}px, ${l-h}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-direction","left")}else if(r>=m-_&&!k&&!t.closest(".dsd__theme__layoutItem"))t.classList.contains("dsd__theme__layoutContainer")&&!n.getAttribute("data-index-start")&&t&&t.children.length>=4&&(n.style.background="red"),n.style.transform=`translate(${m-_}px, ${l-h}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-direction","right");else if(k){i.preventDefault();const N=(T=k.parentNode)==null?void 0:T.parentNode;(N==null?void 0:N.children.length)===4&&(n.style.background="red");const M=k.parentNode,I=Vu(N,M),D=I?k.getBoundingClientRect().left-g:_+30;n.style.transform=`translate(${D}px, ${l-h}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-index",`${I}`)}else n.style.transform=`translate(${_}px, ${v}px)`,n.style.width=`${u+C}px`,n.style.opacity=".4",n.style.height="4px",n.setAttribute("data-direction","")}function vk(n){n&&(n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)")}const uc=(n,t,e)=>{var i,o,l;const r=(e==null?void 0:e.getChildren())||[];if((r==null?void 0:r.length)===2){for(const a of r)a.__key!==(t==null?void 0:t.__key)&&(e==null||e.insertBefore(a),(i=a.getFirstChild())==null||i.selectEnd());e.remove()}else for(const a of r)if(a.__key===(t==null?void 0:t.__key)){RI(n,a),tp(n,a);const u=a.getPreviousSibling()??a.getNextSibling();(l=(o=u==null?void 0:u.getFirstChild)==null?void 0:o.call(u))==null||l.selectEnd()}const s=n.registerCommand(Hs,()=>(s(),!0),Ss);return!0},PI=Ee(),OZ=n=>{const t=Q();if(J(t)&&t.isCollapsed()){const e=t.anchor.getNode(),r=Le(e,Wu),s=Le(e,Ir);return yp(n,s,r)&&Wu(r)}return!0},RZ=()=>{const n=Q();if(!J(n)||!n.isCollapsed()||n.anchor.offset!==0)return!1;const e=n.anchor.getNode().getTopLevelElement();if(e===null)return!1;const r=e.getPreviousSibling();return!Ir(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},jZ=()=>{var t;const n=Q();if(J(n)&&n.isCollapsed()&&n.anchor.offset===0){const e=Le(n.anchor.getNode(),Ir);if(Ir(e)){const r=e.getParent();r!==null&&r.getFirstChild()===e&&n.anchor.key===((t=e.getFirstDescendant())==null?void 0:t.getKey())&&e.insertBefore(Me())}}return!1},PZ=()=>{const n=Q();if(J(n)&&n.isCollapsed()){const t=Le(n.anchor.getNode(),Ir);if(Ir(t)){const e=t.getParent();if(e!==null&&e.getLastChild()===t){const r=t.getFirstDescendant(),s=t.getLastDescendant();(s!==null&&n.anchor.key===s.getKey()&&n.anchor.offset===s.getTextContentSize()||r!==null&&n.anchor.key===r.getKey()&&n.anchor.offset===r.getTextContentSize())&&t.insertAfter(Me())}}}return!1},BZ=n=>{const t=Q();if(J(t)&&t.isCollapsed()){const e=t.focus.getNode().getParent(),r=e==null?void 0:e.getParent();return uc(n,e,r)}return!1};function FZ(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([jl,Lo,Wi]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return ct(n.registerNodeTransform(Wi,t=>{const e=t.getParent();if(!Ir(e)){const r=t.getChildren();for(const s of r)t.insertBefore(s);t.remove()}}),n.registerNodeTransform(Lo,t=>{const e=t.getParent();if(!Ir(e)){t.replace(Me().append(...t.getChildren()));return}}),n.registerNodeTransform(jl,t=>{const e=t.getChildren();if(e.length!==2||!Al(e[0])||!Wu(e[1])){for(const r of e)t.insertBefore(r);t.remove()}}),n.registerCommand(Bi,()=>{var e;const t=Q();if(J(t)){const r=Le(t.anchor.getNode(),s=>Al(s));if(Al(r)){const s=r.getParent();if(s&&Ir(s))return s.getOpen()||s.toggleOpen(),(e=r.getNextSibling())==null||e.selectEnd(),!0}}return!1},De),n.registerCommand(PI,()=>(n.update(()=>{const t=cw(),e=Me(),r=Gt(),s=lw(!1).append(t.append(e),aw().append(Me()));r==null||r.replace(s),e.select()}),!0),De))},[n]),null}class vs extends pd{constructor(e,r=null,s){super(e,s);U(this,"__extendIds");U(this,"__resolve");this.__extendIds=e||[],this.__resolve=r}static getType(){return"extend-mark"}static clone(e){return new vs(e.__extendIds,e.__resolve,e.__key)}static importJSON(e){return new vs(e.ids)}static importDOM(){return{mark:r=>({conversion:()=>{const s=r.getAttribute("data-key"),i=s?s.split(" "):[],o=r.getAttribute("resolve"),l=document.createDocumentFragment();return Array.from(r.childNodes).forEach(a=>l.appendChild(a.cloneNode(!0))),{node:BI(i,o)}},priority:1})}}resolveThreat(e){const r=this.getWritable();return r.__resolve=e}createDOM(e){const r=document.createElement("mark");if(pt(r,e.theme.mark),pt(r,e.theme.markOverlap),r.style.background="transparent",r.style.border="none",this.__extendIds.length>0){const s=this.__extendIds.join(" ");r.setAttribute("data-key",s)}return this.__resolve&&r.setAttribute("resolve",this.__resolve),r}exportDOM(e){let{element:r}=super.exportDOM(e);return this.__resolve&&r.setAttribute("resolve",this.__resolve),{element:r}}updateDOM(e,r,s){return this.__resolve&&r.setAttribute("resolve",this.__resolve),super.updateDOM(e,r,s)}exportJSON(){return{...super.exportJSON(),type:"extend-mark",ids:this.__extendIds}}excludeFromCopy(e){return!1}updateExtendId(e,r){const s=this.getWritable(),i=s.__extendIds.indexOf(e);i!==-1&&(s.__extendIds[i]=r)}}function BI(n,t=null){return Bt(new vs(n,t))}function hs(n){return n instanceof vs}function zZ(n,t){if(n=n.trim(),n.startsWith("rgb"))return n.replace("rgb","rgba").replace(")",`, ${t})`);const e=n.replace("#",""),r=parseInt(e,16),s=r>>16&255,i=r>>8&255,o=r&255;return`rgba(${s}, ${i}, ${o}, ${t})`}const Qw=Ee("INSERT_INLINE_COMMAND");function UZ(){var _;const[n]=je(),[t,e]=x.useState([]),[r,s]=x.useState(!1),i=x.useRef(new Map),{t:o}=Je.useTranslation(),l=(_=x.useContext(Pt))==null?void 0:_.commentController,{onHighlight:a,activeCommentId:u,actions:d,editorComments:h}=l??{onHighlight:void 0,activeCommentId:{id:"",source:""},actions:{add:async()=>{},delete:()=>{},restore:()=>{}},editorComments:new Map};x.useEffect(()=>{const T=document.documentElement,N=getComputedStyle(T).getPropertyValue("--mantine-primary-color-filled").trim()||"#4c6ef5",M=zZ(N,.35);T.style.setProperty("--comment-selection-color",M)},[]),x.useEffect(()=>{const T=u==null?void 0:u.id;!T||u.source==="editor"||n.update(()=>{const N=g.get(T);if(!N)return;const M=Array.from(N).filter(D=>!!Te(D)),I=Te(M[0]);I&&hs(I)&&I.selectStart()})},[u==null?void 0:u.id,u==null?void 0:u.source]);const g=x.useMemo(()=>new Map,[]),m=x.useRef(h);x.useEffect(()=>{m.current=h},[h]);function A(T,N){n.update(()=>{const M=g.get(T);if(M)for(const I of M){const D=Te(I);hs(D)&&D.resolveThreat(N)}})}function y(T){const N=g.get(T);!N||N.size===0||(n.update(()=>{for(const M of N){const I=Te(M);hs(I)&&(I.deleteID(T),I.getIDs().length===0&&nE(I))}}),g.delete(T))}function b(T,N){N&&y(T)}x.useEffect(()=>{if(h){for(const[T,N]of h.entries()){const M=i.current.get(T);M&&(M.resolution!==N.resolution&&A(T,N.resolution),M.deleted!==N.deleted&&b(T,N.deleted))}i.current=new Map(h)}},[h]),x.useEffect(()=>{const T=[];if(t.length!==0){for(let N=0;N<t.length;N++){const M=t[0],I=g.get(M);if(I!==void 0)for(const D of I){const j=n.getElementByKey(D);j!==null&&(j.classList.add("selected"),T.push(j))}}return()=>{for(let N=0;N<T.length;N++)T[N].classList.remove("selected")}}},[t,n,g]),x.useEffect(()=>{const T=new Map;return ct(GB(n,vs,N=>BI(N.getIDs()),(N,M)=>{N.getIDs().forEach(D=>{M.addID(D)})}),n.registerMutationListener(vs,N=>{n.getEditorState().read(()=>{for(const[M,I]of N){const D=Te(M);let j=[];if(I==="created"&&hs(D)&&D.getIDs().forEach(R=>{var G;const z=(G=m.current)==null?void 0:G.get(R);z!=null&&z.deleted&&(d==null||d.restore(R))}),I==="destroyed"){const B=T.get(M)||[];for(const R of B)d==null||d.delete(R)}I==="destroyed"?j=T.get(M)||[]:hs(D)&&(j=D.getIDs());for(let B=0;B<j.length;B++){const R=j[B];let z=g.get(R);if(T.set(M,j),I==="destroyed"){let G=!1;for(const[ce,oe]of N)if(oe==="created"){const W=Te(ce);hs(W)&&W.getIDs().some(Z=>j.includes(Z))&&(G=!0)}G||z!==void 0&&(z.delete(M),z.size===0&&g.delete(R))}else z===void 0&&(z=new Set,g.set(R,z)),z.has(M)||z.add(M)}}})},{skipInitialization:!1}),n.registerUpdateListener(({editorState:N})=>{N.read(()=>{const M=Q();let I=!1;if(J(M)){const D=M.anchor.getNode();if(Yn(D)){const j=Ez(D,M.anchor.offset);j!==null&&(a==null||a(j[0],"editor"),e(B=>B[0]===j[0]?B:j),I=!0)}}I||(a==null||a(null,"editor"),e(D=>D.length===0?D:[]))})}),n.registerCommand(Qw,()=>{const N=window.getSelection();return N!==null&&N.removeAllRanges(),s(!0),!0},Ze),n.registerCommand(Wl,N=>{if(!(N!=null&&N.clipboardData))return!1;N.preventDefault();const M=Q();if(!M||!M.getNodes().some(B=>hs(B)||hs(B.getParent())))return!1;const j=M.getTextContent();return N.clipboardData.setData("text/plain",j),!0},De))},[n,g]);const v=x.useCallback((T,N,M)=>{n.getEditorState().read(()=>{const I=Q();if(J(I)){N.current=I.clone();const D=I.anchor,j=I.focus,B=R2(n,D.getNode(),D.offset,j.getNode(),j.offset);if(B!==null&&T!==null){const{left:R,bottom:z,top:G,width:ce}=B.getBoundingClientRect(),oe=j2(n,B),W=T.offsetHeight||200,Z=window.pageYOffset||document.documentElement.scrollTop,ae=window.innerHeight-z>W+20;let q=oe.length===1?R+ce/2-125:R-125;q<10&&(q=10),T.style.left=`${q}px`,T.style.top=ae?`${z+10+Z}px`:`${G-W-55+Z}px`;const K=oe.length,{container:Y,elements:te}=M,ue=te.length;for(let re=0;re<K;re++){const se=oe[re];let he=te[re];he===void 0&&(he=document.createElement("span"),te[re]=he,Y.appendChild(he));const pe=document.body.scrollHeight>window.innerHeight?0:8;he.style.cssText=`
|
|
61
|
-
position:absolute;
|
|
62
|
-
top:${se.top+Z}px;
|
|
63
|
-
left:${se.left+pe}px;
|
|
64
|
-
height:${se.height}px;
|
|
65
|
-
width:${se.width}px;
|
|
66
|
-
background-color: var(--comment-selection-color, rgba(76, 110, 245, 0.35));
|
|
67
|
-
pointer-events:none;
|
|
68
|
-
z-index:5;
|
|
69
|
-
`}for(let re=ue-1;re>=K;re--){const se=te[re];Y.removeChild(se),te.pop()}}}})},[n]);function C(T){n.update(()=>{const N=Q();if(!J(N))return;const M=N.isBackward(),I=N.getNodes(),D=new Set;for(const j of I){const B=j.getParent();if(hs(B)){if(D.has(B.getKey()))continue;D.add(B.getKey()),hs(B)&&B.getIDs().length>0&&nE(B)}}Sz(N,M,T,j=>new vs(j,null))})}function S(){let T=!1;return n.getEditorState().read(()=>{const N=Q();if(!J(N))return;const M=N.getNodes();for(const I of M){const D=I.getParent();if(hs(D)&&D.getIDs().length>0){T=!0;break}}}),T}function k(T){return async N=>{if(N.mode!=="create")return;const M=S();let I="";n.getEditorState().read(()=>{const j=Q();J(j)&&(I=j.getTextContent())});const D=async()=>{const j=await(d==null?void 0:d.add({text:N.data.text,files:N.data.files},I));j&&(T(j),s(!1))};if(M){await new Promise((j,B)=>{Rt.openRemoveConfirmModal({title:o("editor.composer.replaceComment.title"),children:o("editor.composer.replaceComment.description"),labels:{cancel:o("editor.composer.replaceComment.cancel"),confirm:o("editor.composer.replaceComment.confirm")},icon:null,onConfirm:async()=>{await D(),j()},onCancel:()=>{s(!1),B()}})});return}await D()}}return p.jsx(p.Fragment,{children:r&&Dr.createPortal(p.jsx(Rt.CommentComposer,{updateLocation:v,onSubmit:k(C),onBlur:()=>s(!1),ns:"",children:T=>{const{handleBlur:N,setCommentDraft:M,editorRef:I}=T;return p.jsx(kL,{initialContent:"",outputFormat:"html",debounce:1,editorRef:I,mode:"comment",placeholder:" ",shiftEnterInsertNewLine:!0,onBlur:N,onChange:D=>M(j=>({...j,text:D}))})}}),document.body)})}const Sk="startTransition",fy=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,KZ=fy?x.useLayoutEffect:x.useEffect;class WZ{constructor(t){U(this,"key");U(this,"ref");this.key=t,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(t){this.ref={current:t}}}const Ek=n=>{const t=document.getElementById("typeahead-menu");if(!t)return;const e=t.getBoundingClientRect();e.top+e.height>window.innerHeight&&t.scrollIntoView({block:"center"}),e.top<0&&t.scrollIntoView({block:"center"}),n.scrollIntoView({block:"nearest"})};function kk(n,t){const e=n.getBoundingClientRect(),r=t.getBoundingClientRect();return e.top>=r.top-6&&e.top<=r.bottom+6}function HZ(n,t,e,r){const[s]=je();x.useEffect(()=>{if(t!=null&&n!=null){const i=s.getRootElement(),o=i!=null?(function(h){let g=getComputedStyle(h);const m=g.position==="absolute",A=/(auto|scroll)/;if(g.position==="fixed")return document.body;for(let y=h;y=y.parentElement;)if(g=getComputedStyle(y),(!m||g.position!=="static")&&A.test(g.overflow+g.overflowY+g.overflowX))return y;return document.body})(i):document.body;let l=!1,a=kk(t,o);const u=function(){l||(window.requestAnimationFrame(function(){e(),l=!1}),l=!0);const h=kk(t,o);h!==a&&(a=h,r!=null&&r(h))},d=new ResizeObserver(e);return window.addEventListener("resize",e),document.addEventListener("scroll",u,{capture:!0,passive:!0}),d.observe(t),()=>{d.unobserve(t),window.removeEventListener("resize",e),document.removeEventListener("scroll",u,!0)}}},[t,s,r,e,n])}const Tk=Ee("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function YZ({close:n,editor:t,anchorElementRef:e,resolution:r,options:s,menuRenderFn:i,onSelectOption:o,shouldSplitNodeWithQuery:l=!1,commandPriority:a=De,preselectFirstItem:u=!0}){const[d,h]=x.useState(null),g=d!==null?Math.min(s.length-1,d):null,m=r.match&&r.match.matchingString;x.useEffect(()=>{u&&h(0)},[m,u]);const A=x.useCallback(b=>{t.update(()=>{const v=r.match!=null&&l?(function(C){const S=Q();if(!J(S)||!S.isCollapsed())return null;const k=S.anchor;if(k.type!=="text")return null;const _=k.getNode();if(!_.isSimpleText())return null;const T=k.offset,N=_.getTextContent().slice(0,T),M=C.replaceableString.length,I=T-(function(j,B,R){let z=R;for(let G=z;G<=B.length;G++)j.slice(-G)===B.substring(0,G)&&(z=G);return z})(N,C.matchingString,M);if(I<0)return null;let D;return I===0?[D]=_.splitText(T):[,D]=_.splitText(I,T),D})(r.match):null;o(b,v,n,r.match?r.match.matchingString:"")})},[t,l,r.match,o,n]),y=x.useCallback(b=>{const v=t.getRootElement();v!==null&&(v.setAttribute("aria-activedescendant","typeahead-item-"+b),h(b))},[t]);return x.useEffect(()=>()=>{const b=t.getRootElement();b!==null&&b.removeAttribute("aria-activedescendant")},[t]),KZ(()=>{s===null?h(null):g===null&&u&&y(0)},[s,g,y,u]),x.useEffect(()=>ct(t.registerCommand(Tk,({option:b})=>!(!b.ref||b.ref.current==null)&&(Ek(b.ref.current),!0),a)),[t,y,a]),x.useEffect(()=>ct(t.registerCommand(Eo,b=>{const v=b;if(s!==null&&s.length){const C=g===null?0:g!==s.length-1?g+1:0;y(C);const S=s[C];if(!S)return y(-1),v.preventDefault(),v.stopImmediatePropagation(),!0;S.ref&&S.ref.current&&t.dispatchCommand(Tk,{index:C,option:S}),v.preventDefault(),v.stopImmediatePropagation()}return!0},a),t.registerCommand(Xs,b=>{const v=b;if(s!==null&&s.length){const C=g===null?s.length-1:g!==0?g-1:s.length-1;y(C);const S=s[C];if(!S)return y(-1),v.preventDefault(),v.stopImmediatePropagation(),!0;S.ref&&S.ref.current&&Ek(S.ref.current),v.preventDefault(),v.stopImmediatePropagation()}return!0},a),t.registerCommand(fc,b=>{const v=b;return v.preventDefault(),v.stopImmediatePropagation(),n(),!0},a),t.registerCommand(gc,b=>{const v=b;return s!==null&&g!==null&&s[g]!=null&&(v.preventDefault(),v.stopImmediatePropagation(),A(s[g]),!0)},a),t.registerCommand(vl,b=>s!==null&&g!==null&&s[g]!=null&&(b!==null&&(b.preventDefault(),b.stopImmediatePropagation()),A(s[g]),!0),a)),[A,n,t,s,g,y,a]),i(e,x.useMemo(()=>({options:s,selectOptionAndCleanUp:A,selectedIndex:g,setHighlightedIndex:h}),[A,g,s]),r.match?r.match.matchingString:"")}function _k(n,t){t!=null&&(n.className=t),n.setAttribute("aria-label","Typeahead menu"),n.setAttribute("role","listbox"),n.style.display="block",n.style.position="absolute"}const GZ=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`;function ZZ(n,{minLength:t=1,maxLength:e=75,punctuation:r=GZ,allowWhitespace:s=!1}){return x.useCallback(i=>{const o=new RegExp("(^|\\s|\\()(["+n+"]((?:"+("[^"+n+r+(s?"":"\\s")+"]")+"){0,"+e+"}))$").exec(i);if(o!==null){const l=o[1],a=o[3];if(a.length>=t)return{leadOffset:o.index+l.length,matchingString:a,replaceableString:o[2]}}return null},[s,n,r,e,t])}function FI({options:n,onQueryChange:t,onSelectOption:e,onOpen:r,onClose:s,menuRenderFn:i,triggerFn:o,anchorClassName:l,commandPriority:a=De,parent:u,preselectFirstItem:d=!0,ignoreEntityBoundary:h=!1}){const[g]=je(),[m,A]=x.useState(null),y=(function(C,S,k,_=fy?document.body:void 0,T=!0){const[N]=je(),M=fy?document.createElement("div"):null,I=x.useRef(M),D=x.useCallback(()=>{if(I.current===null||_===void 0)return;I.current.style.top=I.current.style.bottom;const B=N.getRootElement(),R=I.current,z=R.firstChild;if(B!==null&&C!==null){const{left:G,top:ce,width:oe,height:W}=C.getRect(),Z=I.current.offsetHeight;if(R.style.top=`${ce+Z+3+(T?window.pageYOffset:0)}px`,R.style.left=`${G+window.pageXOffset}px`,R.style.height=`${W}px`,R.style.width=`${oe}px`,z!==null){z.style.top=`${ce}`;const ae=z.getBoundingClientRect(),q=ae.height,K=ae.width,Y=B.getBoundingClientRect();G+K>Y.right&&(R.style.left=`${Y.right-K+window.pageXOffset}px`),(ce+q>window.innerHeight||ce+q>Y.bottom)&&ce-Y.top>q+W&&(R.style.top=`${ce-q-W+(T?window.pageYOffset:0)}px`)}R.isConnected||(_k(R,k),_.append(R)),R.setAttribute("id","typeahead-menu"),B.setAttribute("aria-controls","typeahead-menu")}},[N,C,T,k,_]);x.useEffect(()=>{const B=N.getRootElement();return C!==null&&D(),()=>{B!==null&&B.removeAttribute("aria-controls");const R=I.current;R!==null&&R.isConnected&&(R.remove(),R.removeAttribute("id"))}},[N,D,C]);const j=x.useCallback(B=>{C!==null&&(B||S(null))},[C,S]);return HZ(C,I.current,D,j),M!=null&&M===I.current&&(_k(M,k),_!=null&&_.append(M)),I})(m,A,l,u),b=x.useCallback(()=>{A(null),s!=null&&m!==null&&s()},[s,m]),v=x.useCallback(C=>{A(C),r!=null&&m===null&&r(C)},[r,m]);return x.useEffect(()=>{const C=g.registerUpdateListener(()=>{g.getEditorState().read(()=>{if(!g.isEditable())return void b();const S=g._window||window,k=S.document.createRange(),_=Q(),T=(function(I){let D=null;return I.getEditorState().read(()=>{const j=Q();J(j)&&(D=(function(B){const R=B.anchor;if(R.type!=="text")return null;const z=R.getNode();if(!z.isSimpleText())return null;const G=R.offset;return z.getTextContent().slice(0,G)})(j))}),D})(g);if(!J(_)||!_.isCollapsed()||T===null||k===null)return void b();const N=o(T,g);if(t(N?N.matchingString:null),N!==null&&(h||!(function(I,D){return D===0&&I.getEditorState().read(()=>{const j=Q();if(J(j)){const B=j.anchor.getNode().getPreviousSibling();return fe(B)&&B.isTextEntity()}return!1})})(g,N.leadOffset))&&(function(D,j,B){const R=os(B);if(R===null||!R.isCollapsed)return!1;const z=R.anchorNode,G=D,ce=R.anchorOffset;if(z==null||ce==null)return!1;try{j.setStart(z,G),j.setEnd(z,ce)}catch{return!1}return!0})(N.leadOffset,k,S)!==null)return M=()=>v({getRect:()=>k.getBoundingClientRect(),match:N}),void(Sk in x?x[Sk](M):M());var M;b()})});return()=>{C()}},[g,o,t,m,b,v,h]),x.useEffect(()=>g.registerEditableListener(C=>{C||b()}),[g,b]),m===null||g===null||y.current===null?null:p.jsx(YZ,{close:b,resolution:m,editor:g,anchorElementRef:y,options:n,menuRenderFn:i,shouldSplitNodeWithQuery:!0,onSelectOption:e,commandPriority:a,preselectFirstItem:d})}const Nk=(n,t,e)=>{if(!n)return null;let r=null;return e.read(()=>{const s=He(n);r=s&&lb(s,t)}),r},Xw=Ee("INSERT_EMBED_INTEGRATION_COMMAND ");function JZ(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([Tc]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return n.registerCommand(Xw,t=>{const e=Mw(t,"100%","100%","",!0,"unknown"),r=Gt();return r&&r.getParent()&&(r==null||r.replace(e)),!0},Ze)},[n]),null}const qw=Ee(),VZ=n=>{const t=Q();if(J(t)&&t.isCollapsed()){const e=t.anchor.getNode(),r=Le(e,Vh),s=Le(e,Ws),{lexicalNode:i}=lc(e,n,{"layout-item":!0});if(i&&!i.getTextContent()&&r)return yp(n,r,s)&&Ws(i)}return!0},QZ=n=>{const t=Q();if(J(t)&&t.isCollapsed()){const e=t.focus.getNode().getParent(),r=e==null?void 0:e.getParent();if((e==null?void 0:e.getTextContent())===`
|
|
70
|
-
|
|
71
|
-
`&&(fn(e==null?void 0:e.getChildren()[0])||fn(e==null?void 0:e.getChildren()[1])))return uc(n,e,r)}return!1};function XZ(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([ss,Rr,ks]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return ct(n.registerCommand(qw,t=>(n.update(()=>{const e=fp(t),r=qZ(t);for(let i=0;i<r;i++)e.append(Bs().append(Me()).append(ps()));const s=Gt();s&&(s==null||s.replace(e),e.selectStart())}),!0),Ze),n.registerCommand(Kl,()=>{var i,o;const t=Q();if(!J(t))return!1;const e=(i=t.focus)==null?void 0:i.getNode(),r=(o=Le(e,Ws))==null?void 0:o.getKey(),s=e==null?void 0:e.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(s instanceof ss){const a=ps(),u=s.getLastChild();u==null||u.append(a)}const l=r?Te(r):null;if(l!=null&&l.getChildren&&l.getChildren().length===1){const a=Me();l.append(a),a.selectStart()}})},50),!1},vn),n.registerNodeTransform(Rr,t=>{const e=t.getParent();if(!Vh(e)){const r=t.getChildren();for(const s of r)t.insertBefore(s);t.remove()}}),n.registerNodeTransform(ss,t=>{const e=t.getChildren();if(!e.every(Ws)){for(const r of e)t.insertBefore(r);t.remove()}}))},[n]),x.useEffect(()=>{const t=a=>{const u=a.target.closest(".dsd__theme__layoutItem"),d=a.target.closest(".dsd__theme__layoutDivider");u&&d&&(a.preventDefault(),n.update(()=>{const h=He(u);h&&h.selectStart()}),o(u,a),d.classList.add("dragging"))};let e=!1,r=0,s=[],i;function o(a,u){e=!0;const d=document.querySelector("code");d&&(d.style.pointerEvents="none"),r=u.clientX,i=a.closest(".dsd__theme__layoutContainer");const h=i.querySelectorAll(".dsd__theme__layoutItem"),g=Array.from(h).indexOf(a),m=h[g-1];s[0]=m?m.getBoundingClientRect().width:0,s[1]=a.getBoundingClientRect().width;const A=b=>l(b,g,h),y=b=>{e=!1,n.dispatchCommand(V0,"up"),d&&d.style.pointerEvents==="none"&&(d.style.pointerEvents="auto");const v=b.target.closest(".dsd__theme__layoutContainer"),C=document.querySelector(".dsd__theme__layoutDivider.dragging");C&&C.classList.remove("dragging"),v&&n.update(()=>{He(v).setTemplateColumns(v.style.gridTemplateColumns)}),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",y)}function l(a,u,d){if(!e)return;n.dispatchCommand(V0,"move");const h=a.clientX-r;if(Math.abs(h)<4||!u)return;const m=s[0]+h,A=s[1]-h;let y=u;const{columnGap:b,gap:v}=getComputedStyle(i),C=parseFloat(b||v||"0")||0,S=i.clientWidth-C*Math.max(0,d.length-1),k=y===1?50:100,_=100,T=Math.max(k,m),N=Math.max(_,A),M=T/S*100,I=N/S*100,D=Array.from(d).map((B,R)=>{const z=R?100:50;if(R===y-1)return`minmax(${z}px,${uy(M)}%)`;if(R===y)return`minmax(${z}px, ${uy(I)}%)`;const G=bp(i.style.gridTemplateColumns)[R];return`minmax(${z}px,${G})`}),j=document.querySelector(".dsd__theme__layoutDivider.dragging");if(j&&i){const B=i.clientHeight+"px";j.style.getPropertyValue("--height-column")!==B&&requestAnimationFrame(()=>{j.style.setProperty("--height-column",B)})}i.style.gridTemplateColumns=D.join(" ")}return document.body.addEventListener("mousedown",t),()=>{document.body.removeEventListener("mousedown",t)}},[n]),null}function qZ(n){return n.replace(/\(([^)]+)\)/g,e=>e.replace(/\s+/g,"")).trim().split(/\s+/).length}const zI=Ee("INSERT_SWAGGER_COMMAND");function $Z(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([xd]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return n.registerCommand(zI,t=>{const e=Gt();if(e&&e.getParent()){const r=Dw(t,"",!0);e==null||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AQEAAgMBAQEBAQAAAAAAAAEAAhARIEAwUGAhcP/aAAgBAwEDPwD/AJJx/B8a5/JZ8fH53NzcesiI/BWZnXHp5sp4uX/blnn2LOyOh7edcS2UySeTmfzTRDGk2zP043z+iMREadMz9+fwT4GudGyCI1xHy40NjH4LPZnRBoiNERpZfoySbIiGPORFjY2NjER1ZsrKyn1JZWUz4mbKyn9pmZnsvZuPIzOmdcTLMzBGudEafIREWNiaZ8J2I06IIjRHUiI8fGmZbnqzJpspmbKy2GuYiPyTscx2INER246n4xERERERERERERERERH7RGmbKZmZ7M9j3H1LGxsbHuzM7fgzMzMz5iIixsYjTLNzM2Usz8iIiOhERERG2dvZ+jZWUzMzNlZWUzs0eZ6keBnbM7ZZnQRERsiPuz9GZmfAREbPaRGiIiLGxsbGwiNMzNlM2UzPVmZmfwWZmZmZmZ06erP2I8LMzM/wrMz/AAZERERER4yOyz+E2VlMzMzMzP3Ieg6CxmfwCIiIiI0d2WymZmeiaNcd2fUREbI6ER8OIsWPC+oufqzMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",yn={header:(n,t)=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsxs(L.Group,{p:8,gap:0,className:"hintBoard",children:[p.jsx(L.Title,{order:t,mb:"sm",mt:12-(t-1)*4,h:40-(t-1)*4,children:n("editor.heading.name")+` H${t}`}),p.jsx(L.Text,{size:"sm",h:80,lh:"21px",children:n("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n(`editor.menu.heading.h${t}.hintDescription`)})]}),ol:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(L.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:p.jsxs(L.List,{type:"ordered",mt:2,children:[p.jsx(L.List.Item,{fz:"sm",children:n("editor.menu.lists.numberList.hint.firstItem")}),p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondItem")}),p.jsxs(L.List,{pl:18,listStyleType:"upper-alpha",children:[p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubItem")}),p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubItem")}),p.jsxs(L.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubSubItem")}),p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.numberList.hint.description")})]}),ul:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(L.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:p.jsxs(L.List,{type:"unordered",mt:2,children:[p.jsx(L.List.Item,{fz:"sm",children:n("editor.menu.lists.numberList.hint.firstItem")}),p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondItem")}),p.jsxs(L.List,{pl:18,listStyleType:"circle",children:[p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubItem")}),p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubItem")}),p.jsxs(L.List,{pl:22,withPadding:!0,listStyleType:"square",children:[p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubSubItem")}),p.jsx(L.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.bulletList.hint.description")})]}),checkList:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(L.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:p.jsxs(L.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[p.jsx(L.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:n("editor.menu.lists.checkList.hint.indeterminate")}),p.jsxs(L.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[p.jsx(L.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:n("editor.menu.lists.checkList.hint.unchecked")}),p.jsx(L.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:n("editor.menu.lists.checkList.hint.indeterminate")}),p.jsxs(L.Checkbox.Group,{pl:18,defaultValue:["check"],children:[p.jsx(L.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:n("editor.menu.lists.checkList.hint.checked")}),p.jsx(L.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:n("editor.menu.lists.checkList.hint.unchecked")})]})]}),p.jsx(L.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:n("editor.menu.lists.checkList.hint.checked")})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.checkList.hint.description")})]}),type:(n,t,e)=>r=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsxs(L.Group,{p:8,gap:0,w:"100%",h:150,align:"start",wrap:"nowrap",className:"hintBoard dsd__theme__callout-wrapper","data-emoji":n,"data-type":e,style:{backgroundColor:t},children:[p.jsx(L.Box,{children:p.jsx(L.Text,{w:26,mr:"sm",ta:"center",children:n})}),p.jsx(L.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:p.jsx(L.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.paragraph.hint.description")})]}),quote:n=>p.jsxs(L.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{p:"sm",gap:0,children:p.jsx(L.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:p.jsx(L.Group,{gap:0,className:"quote",children:p.jsx(L.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.quote.hint.description")})]}),collapse:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(L.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:p.jsxs(L.List,{type:"unordered",children:[p.jsx(L.List.Item,{icon:p.jsx(ie.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:n("editor.menu.main.collapse.hint.firstItemEmpty")}),p.jsx(L.List.Item,{icon:p.jsx(ie.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:n("editor.menu.main.collapse.hint.secondItem")}),p.jsxs(L.List,{pl:18,listStyleType:"circle",children:[p.jsx(L.List.Item,{fz:"sm",mt:3,icon:p.jsx(ie.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:n("editor.menu.main.collapse.hint.firstSubItemEmpty")}),p.jsx(L.List.Item,{fz:"sm",mt:2,icon:p.jsx(ie.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:n("editor.menu.main.collapse.hint.secondSubItem")}),p.jsxs(L.List,{pl:22,withPadding:!0,listStyleType:"square",children:[p.jsx(L.List.Item,{fz:"sm",mt:2,icon:p.jsx(ie.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:n("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),p.jsx(L.List.Item,{fz:"sm",mt:2,icon:p.jsx(ie.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:n("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.collapse.hint.description")})]}),divider:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:p.jsxs(L.Box,{children:[p.jsx(L.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.horizontal-rule.hint.topText")}),p.jsx(L.Divider,{my:"sm"}),p.jsx(L.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.horizontal-rule.hint.description")})]}),table:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:p.jsxs(L.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[p.jsx(L.Table.Thead,{children:p.jsxs(L.Table.Tr,{h:58,children:[p.jsxs(L.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[p.jsx(L.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:p.jsx(Ne,{stroke:1,size:10,name:"chevron-down"})}),p.jsx(L.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:p.jsx(Ne,{stroke:1,size:10,name:"plus"})}),p.jsx(L.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:p.jsx(Ne,{stroke:1,size:10,name:"plus"})}),n("editor.menu.main.table.hint.firstRow")]}),p.jsx(L.Table.Th,{w:177,fz:"sm",fw:400})]})}),p.jsxs(L.Table.Tbody,{children:[p.jsxs(L.Table.Tr,{h:47,children:[p.jsx(L.Table.Td,{}),p.jsx(L.Table.Td,{})]}),p.jsxs(L.Table.Tr,{children:[p.jsxs(L.Table.Td,{miw:177,children:[" ",p.jsx(L.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:n("editor.menu.lists.checkList.hint.indeterminate")})]}),p.jsx(L.Table.Td,{miw:177,children:p.jsx(L.Text,{fz:"sm",fw:400,children:n("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.table.hint.description")})]}),grid:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Group,{gap:0,p:8,className:"hintBoard",w:276,children:p.jsxs(L.Flex,{align:"flex-start",gap:"sm",children:[p.jsx(L.Text,{size:"sm",lh:"21px",miw:180,children:n("editor.menu.main.grid.hint.firstColumn")}),p.jsx(L.Text,{size:"sm",lh:"21px",miw:180,children:n("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.grid.hint.description")})]}),code:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Group,{px:8,gap:0,className:"hintBoard",children:p.jsx(L.Image,{style:{flex:1},radius:"sm",fit:"cover",src:tJ,w:"110%",h:"110%"})})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.code.hint.description")})]}),image:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:sJ,w:"100%",h:"100%"})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.photo.hint.description")})]}),video:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsxs(L.Group,{px:"sm",pt:"sm",gap:0,children:[p.jsx(L.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:iJ,w:"100%",h:"100%"}),p.jsx(L.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:p.jsx(ie.IconPlayerPlayFilled,{size:32})})]}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.video.hint.description")})]}),audio:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:eJ,w:"100%",h:"100%"})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.audio.hint.description")})]}),file:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:nJ,w:"100%",h:"100%"})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.file.hint.description")})]}),excalidraw:n=>p.jsxs(L.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(L.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(L.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:rJ,w:"100%",h:"100%"})}),p.jsx(L.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.excalidraw.hint.description")})]})};function Fs(n,t,e){return e.filter(r=>n(r)).map(r=>t(r))}const oJ=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],lJ=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],aJ=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],cJ=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],uJ=["editor.menu.main.table.keywords.table"],dJ=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],fJ=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],hJ=["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"],gJ=["editor.menu.media.form.keywords"],pJ=["editor.menu.media.video.keywords.video"],Mk=(n,t,e)=>{const r=l=>e?Fs(e,t,l):[],s=r(oJ),i=r([`editor.menu.lists.${n}List.keywords.heading`,`editor.menu.lists.${n}List.keywords.headingList`,`editor.menu.lists.${n}List.keywords.markers`]);return({number:["numberedlist","orderedlist","ol","numbers"],bullet:["bulletedlist","unorderedlist","ul","bullets"],check:["checklist","todolist","check","done","shoppinglist"]}[n]||[]).concat(s,i)},$o=(n,t,e)=>{const r=e?Fs(e,t,lJ):[],s=e?Fs(e,t,aJ):[],i=e?Fs(e,t,cJ):[],o=e?Fs(e,t,uJ):[],l=e?Fs(e,t,dJ):[],a=e?Fs(e,t,fJ):[];switch(n){case"quote":return["blockquote","quote"].concat(r);case"collapse":return["collapse","collapsiblelist","toggle"].concat(s);case"horizontal-rule":return["horizontalrule","divider","hr","line"].concat(i);case"table":return["table","spreadsheet","rows","columns"].concat(o);case"grid":return["columns","layout","grid"].concat(l);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(a)}},qc=(n,t,e)=>{const r=e?Fs(e,t,hJ):[],s=e?Fs(e,t,gJ):[],i=e?Fs(e,t,pJ):[];switch(n){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(s);case"video":return["youtube","rutube","vkvideos","video","mp4","webm","media"].concat(i)}},zn={size:18},mJ=[{type:"number",command:Jg,name:"editor.menu.lists.numberList.name",iconName:"number",hint:yn.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:$b,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:yn.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:ew,name:"editor.menu.lists.checkList.name",iconName:"check",hint:yn.checkList,description:"editor.menu.lists.checkList.subtitle"}],AJ=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:yn.type("🙂","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:yn.type("❗","rgba(255, 224, 223, 1)","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:yn.type("✅","rgba(219, 242, 233, 1)","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:yn.type("⚠️","rgba(254, 247, 230)","warning"),description:"editor.menu.callout.warning.subtitle"}],yJ=n=>({1:n("editor.menu.heading.h1.subtitle"),2:n("editor.menu.heading.h2.subtitle"),3:n("editor.menu.heading.h3.subtitle")}),Un=(n,t,e)=>{n.update(()=>{let r=Gt();if(!e&&((r==null?void 0:r.__type)==="text"||(r==null?void 0:r.__type)==="listitem")){const s=Me(),{lexicalNode:i}=lc(r,n,{root:!0,"layout-item":!0,callout:!0,"collapsible-content":!0});s.append(),i==null||i.insertAfter(s).selectStart(),t(s)}else t(r)})};function UI(n){return n?"active dropdown-item-active":""}const KI={flip:!0,size:{padding:8,apply({availableHeight:n,elements:t}){requestAnimationFrame(()=>{Object.assign(t.floating.style,{maxHeight:`${n>=425?425:n}px`})})}}};function bJ(n,t){return n==="swagger"?!0:t}function Bf(n,t){n.update(()=>{const e=Q();e&&Ac(e,t)})}function WI({editor:n,isToolbar:t,excludeNodes:e,t:r,exists:s}){const i=yJ(r),o=y=>{switch(y){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")]}},l=y=>r(y).toUpperCase(),a=()=>[1,2,3].map(y=>({parentKey:"heading",name:`${r("editor.heading.name")} ${y}`,description:i[y]||"Добавите заголовок",hint:yn.header(r,y),keywords:[`${o(y)}`,`${r(`editor.menu.heading.h${y}.keywords.header${y}`)}`,`${r(`editor.menu.heading.h${y}.keywords.heading`)}`,`${r(`editor.menu.heading.h${y}.keywords.h${y}`)}`],icon:p.jsx(Ne,{...zn,radius:"xs",name:`h${y}`}),key:`${y}`,hide:e[`${y}`],"data-test-id":`block-type-h${y}`,onSelect:()=>{Un(n,()=>{Bf(n,()=>Mi(`h${y}`))},t)}})),u=()=>mJ.map(({type:y,command:b,iconName:v,hint:C,description:S,name:k})=>({parentKey:"list",name:r(k),description:r(S),icon:p.jsx(Ne,{...zn,name:v}),keywords:[`${Mk(y,r,s)}`],key:y,hint:C(r),hide:e[y],"data-test-id":`block-type-${y}`,onSelect:()=>Un(n,()=>{n.dispatchCommand(b,void 0)},t)})),d=()=>[{parentKey:"main",name:r("editor.menu.main.paragraph.name"),description:r("editor.menu.main.paragraph.subtitle"),icon:p.jsx(Ne,{...zn,name:"paragraph"}),keywords:[`${$o("paragraph",r,s)}`],key:"paragraph","data-test-id":"block-type-paragraph",hint:yn.paragraph(r),hide:e.paragraph||!t,onSelect:()=>Un(n,()=>{Bf(n,()=>Me())},t)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:p.jsx(Ne,{...zn,name:"quote"}),keywords:[`${$o("quote",r,s)}`],key:"quote",hint:yn.quote(r),hide:e.quote,"data-test-id":"block-type-quote",onSelect:()=>Un(n,()=>{Bf(n,()=>md())},t)},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:p.jsx(Ne,{...zn,name:"caret-right"}),keywords:[`${$o("collapse",r,s)}`],key:"caret-right",hint:yn.collapse(r),hide:t||e["caret-right"],"data-test-id":"block-type-collapse",onSelect:()=>Un(n,()=>{n.dispatchCommand(PI,void 0)},t)},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:p.jsx(Ne,{...zn,name:"horizontal-rule"}),keywords:[`${$o("horizontal-rule",r,s)}`],hint:yn.divider(r),hide:t||e["horizontal-rule"],key:"horizontal-rule","data-test-id":"block-type-horizontal-rule",onSelect:()=>{Un(n,y=>{const b=y==null?void 0:y.getParent();if(Ws(b)){const v=vc(),C=y==null?void 0:y.replace(v);C==null||C.insertAfter(Me())}else n.dispatchCommand(BN,void 0);!(y!=null&&y.getTextContent())&&!yd(y==null?void 0:y.getParent())&&(y==null||y.remove())},t)}},{parentKey:"main",name:r("editor.menu.main.table.name"),description:r("editor.menu.main.table.subtitle"),icon:p.jsx(Ne,{...zn,name:"table"}),keywords:[`${$o("table",r,s)}`],key:"table",hint:yn.table(r),hide:t||e.table,"data-test-id":"block-type-table",onSelect:()=>Un(n,()=>{n.dispatchCommand(Vg,{columns:"4",includeHeaders:!1,rows:"3"})},t)},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:p.jsx(Ne,{...zn,name:"grid"}),keywords:[`${$o("grid",r,s)}`],hide:t||e.grid,hint:yn.grid(r),key:"grid","data-test-id":"block-type-grid",onSelect:()=>Un(n,()=>{n.dispatchCommand(qw,dw)},t)},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:p.jsx(Ne,{...zn,name:"code"}),keywords:[`${$o("code",r,s)}`],key:"code",hint:yn.code(r),hide:e.code,"data-test-id":"block-type-code",onSelect:()=>Un(n,()=>{Bf(n,()=>OM())},t)}],h=()=>AJ.map(({type:y,command:b,iconName:v,hint:C,description:S,name:k})=>({parentKey:"callout",name:r(k),description:r(S),icon:p.jsx(Ne,{...zn,name:v}),keywords:[`${Mk(y,r,s)}`,`${r(`editor.menu.callout.${y}.keywords.heading`)}`,`${r(`editor.menu.callout.${y}.keywords.headingList`)}`,`${r(`editor.menu.callout.${y}.keywords.markers`)}`],key:y,hint:C(r),hide:e[y],"data-test-id":`block-type-${y}`,onSelect:()=>{Un(n,()=>{n.dispatchCommand(gw,b)},t)}})),g=()=>[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:p.jsx(Ne,{...zn,name:"photo"}),keywords:[`${qc("photo",r,s)}`],hide:t||e.photo,hint:yn.image(r),key:"photo",onSelect:()=>{Un(n,()=>{n.dispatchCommand(Xh,{altText:"new-image",src:"",create:!0})},t)}},{parentKey:"media",name:r("editor.menu.media.video.name"),description:r("editor.menu.media.video.subtitle"),hint:yn.video(r),keywords:[`${qc("video",r,s)}`],icon:p.jsx(Ne,{...zn,name:"youtube"}),key:"video",hide:t||e.video,onSelect:()=>{Un(n,()=>{n.dispatchCommand(X0,"")},t)}},{parentKey:"media",name:r("editor.menu.media.audio.name"),description:r("editor.menu.media.audio.subtitle"),hint:yn.audio(r),keywords:[`${qc("audio",r,s)}`],icon:p.jsx(Ne,{...zn,name:"music"}),key:"audio",hide:t||e.audio,onSelect:()=>{Un(n,()=>{n.dispatchCommand(ty,"")},t)}},{parentKey:"media",name:r("editor.menu.media.file.name"),description:r("editor.menu.media.file.subtitle"),hint:yn.file(r),keywords:[`${qc("file",r,s)}`],icon:p.jsx(Ne,{...zn,name:"file"}),key:"file",hide:t||e.file,onSelect:()=>{Un(n,()=>{n.dispatchCommand(ny,"")},t)}},{parentKey:"media",name:r("editor.menu.media.excalidraw.name"),description:r("editor.menu.media.excalidraw.subtitle"),hint:yn.excalidraw(r),keywords:[`${qc("excalidraw",r,s)}`,"media"],icon:p.jsx(Ne,{...zn,name:"palette"}),key:"excalidraw",hide:t||e.excalidraw,onSelect:()=>{e.excalidraw||Promise.resolve().then(()=>require("./layers.DwRGDhKS.js")).then(({INSERT_EXCALIDRAW_COMMAND:y})=>{Un(n,()=>{n.dispatchCommand(y,void 0)},t)})}}],m=()=>[{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:p.jsx(Ne,{...zn,name:"book2"}),keywords:["page","document","child"],hide:t||e.childDocs,key:"childDocuments",onSelect:()=>{Un(n,()=>{n.dispatchCommand(DI,void 0)},t)}},{parentKey:"other",name:r("editor.menu.other.emoji.name"),description:r("editor.menu.other.emoji.subtitle"),icon:p.jsx(Ne,{...zn,name:"emoji"}),keywords:["emoji","smile"],key:"emoji",hide:t||e.emoji,onSelect:()=>{n.focus(),n.dispatchCommand(FM,void 0)}}],A=()=>[...kc.map(y=>({...y,keywords:["iframe",...y.keywords],"data-test-id":`block-type-${y.platform}`,onSelect:()=>{Un(n,()=>{y.platform==="swagger"?n.dispatchCommand(zI,""):n.dispatchCommand(Xw,"")},t)},hide:bJ(y.platform,t)}))];return[{key:"heading",name:l("editor.menu.heading.title"),blocks:a()},{key:"list",name:l("editor.menu.lists.title"),blocks:u()},{key:"main",name:l("editor.menu.main.title"),blocks:d()},{key:"callout",name:l("editor.menu.callout.title"),blocks:h()},{key:"media",name:l("editor.menu.media.title"),blocks:g()},{key:"other",name:l("editor.menu.other.title"),blocks:m()},{key:"integrations",name:l("editor.menu.integrations.title"),blocks:A()}]}const wJ=(n,t,e)=>{var r;return(t==null?void 0:t.__key)!==e.current.key&&(e.current={show:!0,key:t.__key,isCheck:!0}),t&&e.current.show&&e.current.isCheck&&(Le(t,Al)||Le(t,St)||((r=Le(t,kt))==null?void 0:r.__checked)!==void 0)&&(e.current={show:!1,key:t.__key,isCheck:!1}),e.current.show&&(t==null?void 0:t.__key)===e.current.key&&(e.current={show:!0,key:(t==null?void 0:t.__key)||"",isCheck:!1}),e.current.show?n:""};class HI extends WZ{constructor(e,r,s,i,o,l){super(e);U(this,"key");U(this,"title");U(this,"description");U(this,"icon");U(this,"keywords");U(this,"keyboardShortcut");U(this,"onSelect");U(this,"hide");U(this,"parentKey");U(this,"index");U(this,"hint");this.key=e,this.title=r,this.hide=i,this.description=s,this.keywords=l.keywords||[],this.icon=l.icon,this.hint=l.hint,this.parentKey=o,this.index=0,this.keyboardShortcut=l.keyboardShortcut,this.onSelect=l.onSelect.bind(this)}}function CJ({index:n,isSelected:t,onClick:e,onMouseEnter:r,option:s}){return p.jsxs(L.HoverCard,{width:300,openDelay:200,closeDelay:0,shadow:"md",disabled:window.innerWidth<=800,position:"right",zIndex:1001,offset:-20,children:[p.jsx(L.HoverCard.Target,{children:p.jsxs("li",{tabIndex:-1,style:s.description?{padding:"12px 8px",flex:1}:{padding:"6px 8px",flex:1},className:"item",role:"option",id:"typeahead-item-"+n,ref:s.setRefElement,"aria-selected":t,onMouseEnter:r,onClick:e,"data-selected":t,"data-test-id":`block-type-${s.key}`,children:[s.icon,p.jsxs(L.Flex,{gap:0,direction:"column",justify:s.description?"flex-start":"center",ml:"sm",children:[p.jsx(L.Text,{style:{alignSelf:"flex-start"},mb:0,size:"sm",h:16,children:s.title}),s.description&&p.jsx(L.Text,{style:{alignSelf:"flex-start"},c:"dimmed",size:"xs",mb:0,h:14,children:s.description})]})]},s.key)}),s.hint&&p.jsx(L.HoverCard.Dropdown,{p:0,style:{borderRadius:"var(--mantine-radius-lg)"},children:s.hint})]})}function xJ(n,t){const e=[];if(t==null)return e;const r=t.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){const s=r[1],i=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);e.push(...i.map(o=>new HI("table",`${s}x${o} Table`,"",!1,"heading",{icon:p.jsx("i",{className:"icon table"}),keywords:["table"],onSelect:()=>n.dispatchCommand(Vg,{columns:o,rows:s})})))}return e}function vJ({editor:n,excludeNodes:t,t:e}){const r=WI({editor:n,isToolbar:!1,excludeNodes:t,t:e});let s=[],i={};r.forEach(l=>{i[l.key]=l,s=[...s,...l.blocks]});let o=[];return s.forEach(l=>{l.hide||(o=[...o,new HI(l.key,l.name,l.description,l.hide,l.parentKey,{hint:l.hint,icon:l.icon,keywords:l.keywords,onSelect:l.onSelect})])}),{groupedOptions:i,baseOptions:o}}function SJ({mode:n,setOpenedMenu:t,opened:e}){const[r]=je(),s=x.useRef({show:!0,key:"",isCheck:!0}),[i,o]=x.useState(null),[l,a]=x.useState(0),{t:u}=Je.useTranslation(),d=(l===100).toString(),{fetchUploadMedia:h,excludeNodes:g}=x.useContext(Pt),m=ZZ("/",{minLength:0}),{options:A,groupOptions:y,groupedInitialOptions:b}=x.useMemo(()=>{const{groupedOptions:_,baseOptions:T}=vJ({editor:r,excludeNodes:g,t:u}),N=D=>{const j=D.reduce((B,R,z)=>{const G=R.parentKey;return B[G]||(B[G]=[]),B[G].push({...R,index:z}),B},{});return Object.entries(j).map(([B,R])=>({name:B,items:R}))};if(!i)return{options:T,groupOptions:N(T),groupedInitialOptions:_};const M=new RegExp(i,"i"),I=[...xJ(r,i),...T.filter(D=>M.test(D.title)||D.keywords.some(j=>M.test(j)))];return{options:I,groupOptions:N(I),groupedInitialOptions:_}},[r,h,n,i]),v=x.useCallback((_,T,N,M)=>{r.update(()=>{T==null||T.remove(),_.onSelect(M),N()})},[r]),C=_=>{const T=_.target;if(Nk(T,xs,r)){a(100),t(!1);return}(!(T!=null&&T.closest(".editor-scroller"))||T instanceof HTMLButtonElement)&&(t(!1),document.removeEventListener("click",C))};x.useEffect(()=>(e&&document.addEventListener("click",C),()=>{document.removeEventListener("click",C)}),[e]);const S=_=>{var D;if(!_){setTimeout(()=>{t(!0),a(j=>j+1)},50);return}const{x:T,y:N}=((D=_.getRect)==null?void 0:D.call(_))??{},M=document.elementFromPoint(T+1,N+1);!M||Nk(M,xs,r)||setTimeout(()=>{t(!0),a(j=>j+1)},50)},k=(_,T)=>{if(_.substring(0,1)!=="/")return m(_,T);const M=Gt();if(!M)return m(_,T);const I=wJ(_,M,s);return S(),m(I,T)};return p.jsx(p.Fragment,{children:p.jsx(FI,{onQueryChange:o,onSelectOption:v,triggerFn:k,options:A,onOpen:S,anchorClassName:"reset-anchor",onClose:()=>{t(!1)},menuRenderFn:(_,{selectedIndex:T,selectOptionAndCleanUp:N,setHighlightedIndex:M})=>p.jsx(p.Fragment,{children:_.current&&p.jsx(L.Portal,{target:_.current||document.body,children:p.jsxs(L.Menu,{shadow:"md",opened:e,loop:!1,trapFocus:!1,menuItemTabIndex:0,styles:{dropdown:{overflow:"auto",zIndex:1e3,display:A.length?"block":"none"}},middlewares:{flip:!0,size:{padding:8,apply({availableHeight:I,elements:D,y:j,placement:B}){requestAnimationFrame(()=>{Object.assign(D.floating.style,{maxHeight:`${I>=425?425:I}px`,top:B==="top-start"?`${j-20}px`:`${j}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:oi,children:[p.jsx(L.Menu.Target,{children:p.jsx("span",{})},l),p.jsx(L.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:y.map(I=>{const D=b[I.name].name;return p.jsxs("div",{children:[p.jsx(L.Text,{ml:8,mt:12,size:"xs",c:"dimmed",children:D}),p.jsx("ul",{children:I.items.length&&I.items.map(j=>p.jsx(CJ,{index:j.index,isSelected:T===j.index,onClick:()=>{M(j.index),N(j)},onMouseEnter:()=>{M(j.index)},option:j},j.key))})]},D)})})]},d)})})})})}function EJ({isLoading:n}){const[t]=je();return x.useEffect(()=>{t.update(()=>{Ue().getFirstChild()&&setTimeout(()=>{var s;(s=t._rootElement)==null||s.setAttribute("contenteditable","true")},0)})},[t,n]),null}const kJ=n=>n.getEditorState().read(()=>Ue().getChildrenKeys()).map(e=>({key:e,node:Te(e),htmlElement:n.getElementByKey(e)})),YI=(n,t,e)=>{let r;if(Js(n)){const l=n.getTag();switch(r=t("editor.heading.name"),l){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}}}const s=Le(n,St),i=Le(n,Al);return(fn(n)?n:fn(n.getParent())?n.getParent():null)&&!s&&!i&&(r=e||t("editor.placeholder")),r},NA="node-placeholder";let Ff=null;const TJ=n=>n instanceof HTMLHeadingElement,_J=({selection:n,editor:t,t:e,customPlaceholder:r})=>{var l,a;const s=kJ(t);if(s[0]&&s.length===0&&s[0].htmlElement&&!TJ(s[0].htmlElement)){const u=t.getElementByKey(n.anchor.getNode().__key);(l=u==null?void 0:u.classList)==null||l.remove(NA),u==null||u.removeAttribute("data-placeholder");return}const i=n.anchor,o=YI(i.getNode(),e,r);if(o){const u=i.getNode().getTextContentSize(),d=t.getElementByKey(i.key);if(u===0&&(d==null||d.classList.add(NA),d==null||d.setAttribute("data-placeholder",o)),Ff&&(Ff!==i.key||u!==0)){const h=t.getElementByKey(Ff);(a=h==null?void 0:h.classList)==null||a.remove(NA),h==null||h.removeAttribute("data-placeholder")}Ff=i.key}},NJ=(n,t,e)=>{n.getEditorState().read(()=>{const r=Q();J(r)&&_J({selection:r,editor:n,t,customPlaceholder:e})})},MJ=()=>{const[n]=je(),{t}=Je.useTranslation(),{placeholder:e}=x.useContext(Pt);return x.useEffect(()=>(n.read(()=>{const s=Ue().getChildren();if(s.length===1){const i=s[0];i.getTextContent()||setTimeout(()=>{n.update(()=>{const l=n.getElementByKey(i.getKey()),a=YI(i,t,e);l&&a&&(l.classList.add("node-placeholder"),l.setAttribute("data-placeholder",a))})})}}),n.registerUpdateListener(()=>{NJ(n,t,e)})),[n,e]),null};function zf(n){return n instanceof HTMLElement}function tg(n){let t=0;n instanceof WheelEvent?t=n.deltaY:n instanceof TouchEvent&&(t=1);let e=n.target;for(;e&&e!==document.body&&e!==document.documentElement;){if(e.scrollHeight>e.clientHeight&&(t<0&&e.scrollTop>0||t>0&&e.scrollTop+e.clientHeight<e.scrollHeight))return;e=e.parentElement}n.preventDefault()}function GI(){document.addEventListener("wheel",tg,{passive:!1}),document.addEventListener("touchmove",tg,{passive:!1})}function ZI(){document.removeEventListener("wheel",tg),document.removeEventListener("touchmove",tg)}const IJ=({hoveredButton:n,insertNewParagraph:t,currentDraggableBlockRef:e,setHoveredButton:r,isClickedBlockRef:s,setDraggableBlockElem:i,editor:o,t:l})=>p.jsx("div",{className:`icon add-block-menu ${n?"active":""}`,onClick:()=>{t({blockElement:e.current.htmlElement,editor:o,isTop:!1,isClickedBlockRef:s,setDraggableBlockElem:i}),r("both")},onMouseEnter:()=>{r("bottom")},onMouseLeave:()=>{r("both")},children:p.jsx(L.Tooltip,{openDelay:300,label:l("editor.hoverOptions.addNewBlockAbove"),position:"bottom",disabled:s.current||!n,children:p.jsx(L.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:n==="bottom"?p.jsx(ie.IconPlus,{}):p.jsx(ie.IconMinus,{})})})}),LJ=({hoveredButton:n,insertNewParagraph:t,currentDraggableBlockRef:e,setHoveredButton:r,isClickedBlockRef:s,setDraggableBlockElem:i,editor:o,t:l})=>p.jsx("div",{className:`icon add-block-menu add-block-menu_top ${n?"active":""}`,onClick:()=>{t({blockElement:e.current.htmlElement,editor:o,isTop:!0,isClickedBlockRef:s,setDraggableBlockElem:i}),r("both")},onMouseEnter:()=>{r("top")},onMouseLeave:()=>{r("both")},children:p.jsx(L.Tooltip,{disabled:s.current||!n,openDelay:300,label:l("editor.hoverOptions.addNewBlockBelow"),position:"top",children:p.jsx(L.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:n==="top"?p.jsx(ie.IconPlus,{}):p.jsx(ie.IconMinus,{})})})}),MA=({label:n,icon:t,dataNameAttribute:e})=>p.jsxs("div",{className:"custom-menu-item","data-test-id":e||"color-picker",children:[p.jsxs("div",{children:[t,p.jsx("span",{children:n})]}),p.jsx(Ne,{name:"chevron-right"})]}),DJ={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"};function JI({editor:n,blockType:t,disabled:e=!1,mode:r,fetchUploadMedia:s,excludeNodes:i,children:o,menuProps:l,onChange:a}){const[u,d]=Ap(),{t:h,i18n:g}=Je.useTranslation(),m=x.useMemo(()=>WI({editor:n,isToolbar:!0,excludeNodes:i,t:h}).map(A=>({...A,blocks:A.blocks.filter(y=>!y.hide)})),[n,d,s,r,g.language]);return p.jsxs(p.Fragment,{children:[u,p.jsxs(L.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3,overscrollBehavior:"contain"}},middlewares:KI,position:"bottom-start",transitionProps:oi,...l,children:[p.jsx(L.Menu.Target,{children:o||p.jsx(L.Tooltip,{label:h("editor.toolbar.turnInto"),children:p.jsxs("button",{disabled:e,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:DJ[t],type:"button","data-test-id":"toolbar-block-controls",children:[p.jsx(Ne,{size:18,mr:5,name:t}),p.jsx(Ne,{name:"chevron-down"})]})})}),p.jsx(L.Menu.Dropdown,{children:m.map(A=>p.jsxs("div",{children:[A.blocks.length!==0&&p.jsx(L.Menu.Label,{children:A.name}),A.blocks.map(y=>p.jsx(x.Fragment,{children:p.jsx(L.Menu.Item,{className:"item "+UI(y.key==="1"),leftSection:y.icon,onClick:()=>{y.onSelect(),a&&a()},"data-test-id":y["data-test-id"],children:y.name})},y.key))]},A.key))})]})]})}function VI(n,t){var i,o;const e=(i=t.exportDOM)==null?void 0:i.call(t,n),r=(e==null?void 0:e.element)??null;if(X(t)){const l=r??document.createElement("div"),a=((o=t.getChildren)==null?void 0:o.call(t))??[];for(const u of a){const d=VI(n,u);if(d)l.appendChild(d);else{const h=typeof u.getTextContent=="function"?u.getTextContent():"";h&&l.appendChild(document.createTextNode(h))}}return typeof(e==null?void 0:e.after)=="function"&&e.after(l),l}if(r)return typeof(e==null?void 0:e.after)=="function"&&e.after(r),r;const s=typeof t.getTextContent=="function"?t.getTextContent():"";return s?document.createTextNode(s):null}async function Ik(n,t){const e=n.getRootElement(),r=Array.from(e.querySelectorAll(".selected-block"));if(!r.length)return;let s="",i="";n.getEditorState().read(()=>{n.update(()=>{let o=r.map(a=>He(a)).filter(a=>!!a);s=o.map(a=>typeof a.getTextContent=="function"?a.getTextContent():"").filter(Boolean).join(`
|
|
72
|
-
`);const l=document.createElement("div");o.forEach(a=>{const u=VI(n,a);t==="cut"&&a.remove(),u&&l.appendChild(u)}),i=l.innerHTML})}),(s||i)&&await OJ(s,i)}async function OJ(n,t){if(navigator.clipboard&&"write"in navigator.clipboard&&window.ClipboardItem){const e=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),...t?{"text/html":new Blob([t],{type:"text/html"})}:{}});await navigator.clipboard.write([e])}}const Lk=(n,t,e,r)=>{if(e)if(r==="layout"){const s=e.getParent(),i=s.getParent();uc(n,s,i),t("delete")}else{const s=e==null?void 0:e.getParent();if(s instanceof Rr&&s.getChildren().length===2){const i=s,o=s.getParent();if(e.__type==="image"){i.append(Me());return}uc(n,i,o)}tp(n,e),t("delete")}},RJ=n=>{const t=n._rootElement;return Array.from(t.querySelectorAll(".selected-block"))},hy=(n,t,e,r=!1)=>{t&&n.update(()=>{const s=n.getElementByKey(t.getParent().getKey());TZ(n,s,e,r)})},jJ=(n,t,e,r)=>{if(r==="layout")hy(n,e,"right",!0);else{const s=n._rootElement,i=Array.from(s.querySelectorAll(".selected-block")).reverse();i.length&&(n.update(()=>{const o=He(i[0]);i.forEach(l=>{let a=He(l);a&&(o==null||o.insertAfter(Au(a))),ea(l)})}),t())}},PJ=({editor:n,onChange:t,currentEditorNode:e,textBlock:r,t:s,isDisabledAddColumnButton:i,disabledMoveColumnButtons:o})=>{const{fetchUploadMedia:l,excludeNodes:a}=x.useContext(Pt),[u,d]=x.useState("inherit"),[h,g]=x.useState("inherit"),[m,A]=x.useState("inherit"),[y,b]=x.useState("");x.useEffect(()=>{const k=e==null?void 0:e.__type;n.read(()=>{var _;((_=e==null?void 0:e.getParent())==null?void 0:_.__type)==="layout-item"?b("layout"):b(k==="callout-wrapper"?k:"block")})},[e==null?void 0:e.__key]);const v=k=>{n.update(()=>{const _=Q();_&&vh(_,k)})},C=(k,_)=>{const T=_||y;T==="callout-wrapper"&&e instanceof Do?n.update(()=>{const N=MM(k);e.setType(N?k.meta.type:void 0),e.setBackgroundColor(k.value)}):T==="layout-color"?n.update(()=>{const N=e==null?void 0:e.getParent(),M=k.value===h?"inherit":k.value;N instanceof Rr&&N.setLayoutBackground(M)}):v({color:m,"background-color":u,[k.mode==="color"?"color":"background-color"]:k.value})},S=k=>{const _=RJ(n);_.length?_.forEach(T=>{n.update(()=>{let N=He(T);N&&Lk(n,t,N,k)})}):n.update(()=>{let T=He(_[0]);Lk(n,t,T,k)})};return x.useEffect(()=>{setTimeout(()=>{n.read(()=>{if(y==="callout-wrapper"&&e instanceof Do){d(e.__backgroundColor);return}const k=e==null?void 0:e.getParent();k instanceof Rr&&g(k.__backgroundColor);const _=Q();J(_)&&(A(Sh(_,"color","inherit")),d(Sh(_,"background-color","inherit")))})})},[]),p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Item,{onMouseDown:k=>{k.preventDefault(),Ik(n,"copy"),t("copy")},leftSection:p.jsx(ie.IconClipboard,{style:{width:L.rem(14),height:L.rem(14)}}),"data-test-id":"copy-draggable",children:s("editor.link.copy")}),p.jsx(L.Menu.Item,{onMouseDown:k=>{k.preventDefault(),Ik(n,"cut"),t("cut")},"data-test-id":"cut-draggable",leftSection:p.jsx(ie.IconCut,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.contextMenu.cut")}),p.jsx(L.Menu.Item,{"data-test-id":"delete-draggable",onClick:()=>S(""),leftSection:p.jsx(ie.IconTrash,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.contextMenu.delete")}),p.jsx(L.Menu.Item,{"data-test-id":"duplicate-draggable",disabled:y==="layout"&&i,onClick:()=>jJ(n,t,e,y),leftSection:p.jsx(ie.IconCopy,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.contextMenu.duplicate")}),r==="text"&&y!=="callout-wrapper"&&p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Divider,{}),p.jsx(JI,{disabled:!1,blockType:"paragraph",rootType:"root",editor:n,mode:"editor",fetchUploadMedia:l,excludeNodes:a,onChange:t,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:p.jsx("div",{children:p.jsx(MA,{label:s("editor.toolbar.turnInto"),dataNameAttribute:"turn-into",icon:p.jsx(ie.IconArrowsRightLeft,{style:{width:L.rem(14),height:L.rem(14)}})})})})]}),(r==="text"||y=="callout-wrapper")&&p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Divider,{}),p.jsx(Rt.NewColorPicker,{data:{callout:{label:s("editor.colors.theme"),filled:!0,palette:NM.map(k=>({label:s(`editor.colors.callout.${k.name}`),value:L.alpha(k.color,.19),icon:k.icon,meta:{type:k.name,emoji:k.emoji}}))}},modes:y==="callout-wrapper"?["callout","background"]:["color","background"],value:{color:m,background:u,callout:u},onChange:k=>{C(k),t()},hideInherit:!0,target:p.jsx("div",{children:p.jsx(MA,{dataNameAttribute:"color-picker",label:s(y==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:p.jsx(ie.IconPaint,{size:14})})}),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}}})]}),y==="layout"&&p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Divider,{}),p.jsx(Rt.NewColorPicker,{modes:["background"],value:{background:h},onChange:k=>{C(k,"layout-color"),t()},hideInherit:!0,target:p.jsx("div",{children:p.jsx(MA,{label:s("editor.column.changeColor"),icon:p.jsx(ie.IconPaint,{size:14})})}),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}}}),p.jsx(L.Menu.Item,{disabled:i,onClick:()=>{hy(n,e,"left")},leftSection:p.jsx(ie.IconColumnInsertLeft,{style:{width:L.rem(14),height:L.rem(14)}}),"data-test-id":"column-left",children:s("editor.column.addLeft")}),p.jsx(L.Menu.Item,{disabled:i,"data-test-id":"column-right",onClick:()=>{hy(n,e,"right")},leftSection:p.jsx(ie.IconColumnInsertRight,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.column.addRight")}),p.jsx(L.Menu.Item,{disabled:o.left,"data-test-id":"column-move-left",onClick:()=>{bk(n,e,"left"),Zh(n)},leftSection:p.jsx(ie.IconColumnInsertRight,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.column.moveLeft")}),p.jsx(L.Menu.Item,{disabled:o.right,"data-test-id":"column-move-right",onClick:()=>{bk(n,e,"right"),Zh(n)},leftSection:p.jsx(ie.IconColumnInsertRight,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.column.moveRight")}),p.jsx(L.Menu.Item,{"data-test-id":"column-delete",onClick:()=>S("layout"),leftSection:p.jsx(ie.IconTrash,{style:{width:L.rem(14),height:L.rem(14)}}),children:s("editor.column.deleteColumn")})]})]})};var ou={exports:{}};/**
|
|
73
|
-
* @license
|
|
74
|
-
* Lodash <https://lodash.com/>
|
|
75
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
76
|
-
* Released under MIT license <https://lodash.com/license>
|
|
77
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
78
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
79
|
-
*/var BJ=ou.exports,Dk;function FJ(){return Dk||(Dk=1,(function(n,t){(function(){var e,r="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,g=2,m=4,A=1,y=2,b=1,v=2,C=4,S=8,k=16,_=32,T=64,N=128,M=256,I=512,D=30,j="...",B=800,R=16,z=1,G=2,ce=3,oe=1/0,W=9007199254740991,Z=17976931348623157e292,ae=NaN,q=4294967295,K=q-1,Y=q>>>1,te=[["ary",N],["bind",b],["bindKey",v],["curry",S],["curryRight",k],["flip",I],["partial",_],["partialRight",T],["rearg",M]],ue="[object Arguments]",re="[object Array]",se="[object AsyncFunction]",he="[object Boolean]",xe="[object Date]",pe="[object DOMException]",$="[object Error]",le="[object Function]",Se="[object GeneratorFunction]",we="[object Map]",Oe="[object Number]",Ke="[object Null]",ke="[object Object]",_e="[object Promise]",et="[object Proxy]",mt="[object RegExp]",Ve="[object Set]",Ft="[object String]",Re="[object Symbol]",tt="[object Undefined]",nt="[object WeakMap]",ye="[object WeakSet]",ve="[object ArrayBuffer]",Be="[object DataView]",At="[object Float32Array]",ot="[object Float64Array]",Zt="[object Int8Array]",nn="[object Int16Array]",Pr="[object Int32Array]",Ko="[object Uint8Array]",Mc="[object Uint8ClampedArray]",ur="[object Uint16Array]",$i="[object Uint32Array]",TL=/\b__p \+= '';/g,_L=/\b(__p \+=) '' \+/g,NL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oC=/&(?:amp|lt|gt|quot|#39);/g,lC=/[&<>"']/g,ML=RegExp(oC.source),IL=RegExp(lC.source),LL=/<%-([\s\S]+?)%>/g,DL=/<%([\s\S]+?)%>/g,aC=/<%=([\s\S]+?)%>/g,OL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RL=/^\w*$/,jL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xp=/[\\^$.*+?()[\]{}|]/g,PL=RegExp(xp.source),vp=/^\s+/,BL=/\s/,FL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zL=/\{\n\/\* \[wrapped with (.+)\] \*/,UL=/,? & /,KL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,WL=/[()=,{}\[\]\/\s]/,HL=/\\(\\)?/g,YL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cC=/\w*$/,GL=/^[-+]0x[0-9a-f]+$/i,ZL=/^0b[01]+$/i,JL=/^\[object .+?Constructor\]$/,VL=/^0o[0-7]+$/i,QL=/^(?:0|[1-9]\d*)$/,XL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_d=/($^)/,qL=/['\n\r\u2028\u2029\\]/g,Nd="\\ud800-\\udfff",$L="\\u0300-\\u036f",eD="\\ufe20-\\ufe2f",tD="\\u20d0-\\u20ff",uC=$L+eD+tD,dC="\\u2700-\\u27bf",fC="a-z\\xdf-\\xf6\\xf8-\\xff",nD="\\xac\\xb1\\xd7\\xf7",rD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sD="\\u2000-\\u206f",iD=" \\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",hC="A-Z\\xc0-\\xd6\\xd8-\\xde",gC="\\ufe0e\\ufe0f",pC=nD+rD+sD+iD,Sp="['’]",oD="["+Nd+"]",mC="["+pC+"]",Md="["+uC+"]",AC="\\d+",lD="["+dC+"]",yC="["+fC+"]",bC="[^"+Nd+pC+AC+dC+fC+hC+"]",Ep="\\ud83c[\\udffb-\\udfff]",aD="(?:"+Md+"|"+Ep+")",wC="[^"+Nd+"]",kp="(?:\\ud83c[\\udde6-\\uddff]){2}",Tp="[\\ud800-\\udbff][\\udc00-\\udfff]",ia="["+hC+"]",CC="\\u200d",xC="(?:"+yC+"|"+bC+")",cD="(?:"+ia+"|"+bC+")",vC="(?:"+Sp+"(?:d|ll|m|re|s|t|ve))?",SC="(?:"+Sp+"(?:D|LL|M|RE|S|T|VE))?",EC=aD+"?",kC="["+gC+"]?",uD="(?:"+CC+"(?:"+[wC,kp,Tp].join("|")+")"+kC+EC+")*",dD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",TC=kC+EC+uD,hD="(?:"+[lD,kp,Tp].join("|")+")"+TC,gD="(?:"+[wC+Md+"?",Md,kp,Tp,oD].join("|")+")",pD=RegExp(Sp,"g"),mD=RegExp(Md,"g"),_p=RegExp(Ep+"(?="+Ep+")|"+gD+TC,"g"),AD=RegExp([ia+"?"+yC+"+"+vC+"(?="+[mC,ia,"$"].join("|")+")",cD+"+"+SC+"(?="+[mC,ia+xC,"$"].join("|")+")",ia+"?"+xC+"+"+vC,ia+"+"+SC,fD,dD,AC,hD].join("|"),"g"),yD=RegExp("["+CC+Nd+uC+gC+"]"),bD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wD=["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"],CD=-1,Jt={};Jt[At]=Jt[ot]=Jt[Zt]=Jt[nn]=Jt[Pr]=Jt[Ko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:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},vD={"&":"&","<":"<",">":">",'"':""","'":"'"},SD={"&":"&","<":"<",">":">",""":'"',"'":"'"},ED={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kD=parseFloat,TD=parseInt,_C=typeof il=="object"&&il&&il.Object===Object&&il,_D=typeof self=="object"&&self&&self.Object===Object&&self,Bn=_C||_D||Function("return this")(),Np=t&&!t.nodeType&&t,Wo=Np&&!0&&n&&!n.nodeType&&n,NC=Wo&&Wo.exports===Np,Mp=NC&&_C.process,Br=(function(){try{var ee=Wo&&Wo.require&&Wo.require("util").types;return ee||Mp&&Mp.binding&&Mp.binding("util")}catch{}})(),MC=Br&&Br.isArrayBuffer,IC=Br&&Br.isDate,LC=Br&&Br.isMap,DC=Br&&Br.isRegExp,OC=Br&&Br.isSet,RC=Br&&Br.isTypedArray;function Cr(ee,ge,de){switch(de.length){case 0:return ee.call(ge);case 1:return ee.call(ge,de[0]);case 2:return ee.call(ge,de[0],de[1]);case 3:return ee.call(ge,de[0],de[1],de[2])}return ee.apply(ge,de)}function ND(ee,ge,de,Fe){for(var st=-1,Et=ee==null?0:ee.length;++st<Et;){var Cn=ee[st];ge(Fe,Cn,de(Cn),ee)}return Fe}function Fr(ee,ge){for(var de=-1,Fe=ee==null?0:ee.length;++de<Fe&&ge(ee[de],de,ee)!==!1;);return ee}function MD(ee,ge){for(var de=ee==null?0:ee.length;de--&&ge(ee[de],de,ee)!==!1;);return ee}function jC(ee,ge){for(var de=-1,Fe=ee==null?0:ee.length;++de<Fe;)if(!ge(ee[de],de,ee))return!1;return!0}function eo(ee,ge){for(var de=-1,Fe=ee==null?0:ee.length,st=0,Et=[];++de<Fe;){var Cn=ee[de];ge(Cn,de,ee)&&(Et[st++]=Cn)}return Et}function Id(ee,ge){var de=ee==null?0:ee.length;return!!de&&oa(ee,ge,0)>-1}function Ip(ee,ge,de){for(var Fe=-1,st=ee==null?0:ee.length;++Fe<st;)if(de(ge,ee[Fe]))return!0;return!1}function Qt(ee,ge){for(var de=-1,Fe=ee==null?0:ee.length,st=Array(Fe);++de<Fe;)st[de]=ge(ee[de],de,ee);return st}function to(ee,ge){for(var de=-1,Fe=ge.length,st=ee.length;++de<Fe;)ee[st+de]=ge[de];return ee}function Lp(ee,ge,de,Fe){var st=-1,Et=ee==null?0:ee.length;for(Fe&&Et&&(de=ee[++st]);++st<Et;)de=ge(de,ee[st],st,ee);return de}function ID(ee,ge,de,Fe){var st=ee==null?0:ee.length;for(Fe&&st&&(de=ee[--st]);st--;)de=ge(de,ee[st],st,ee);return de}function Dp(ee,ge){for(var de=-1,Fe=ee==null?0:ee.length;++de<Fe;)if(ge(ee[de],de,ee))return!0;return!1}var LD=Op("length");function DD(ee){return ee.split("")}function OD(ee){return ee.match(KL)||[]}function PC(ee,ge,de){var Fe;return de(ee,function(st,Et,Cn){if(ge(st,Et,Cn))return Fe=Et,!1}),Fe}function Ld(ee,ge,de,Fe){for(var st=ee.length,Et=de+(Fe?1:-1);Fe?Et--:++Et<st;)if(ge(ee[Et],Et,ee))return Et;return-1}function oa(ee,ge,de){return ge===ge?GD(ee,ge,de):Ld(ee,BC,de)}function RD(ee,ge,de,Fe){for(var st=de-1,Et=ee.length;++st<Et;)if(Fe(ee[st],ge))return st;return-1}function BC(ee){return ee!==ee}function FC(ee,ge){var de=ee==null?0:ee.length;return de?jp(ee,ge)/de:ae}function Op(ee){return function(ge){return ge==null?e:ge[ee]}}function Rp(ee){return function(ge){return ee==null?e:ee[ge]}}function zC(ee,ge,de,Fe,st){return st(ee,function(Et,Cn,zt){de=Fe?(Fe=!1,Et):ge(de,Et,Cn,zt)}),de}function jD(ee,ge){var de=ee.length;for(ee.sort(ge);de--;)ee[de]=ee[de].value;return ee}function jp(ee,ge){for(var de,Fe=-1,st=ee.length;++Fe<st;){var Et=ge(ee[Fe]);Et!==e&&(de=de===e?Et:de+Et)}return de}function Pp(ee,ge){for(var de=-1,Fe=Array(ee);++de<ee;)Fe[de]=ge(de);return Fe}function PD(ee,ge){return Qt(ge,function(de){return[de,ee[de]]})}function UC(ee){return ee&&ee.slice(0,YC(ee)+1).replace(vp,"")}function xr(ee){return function(ge){return ee(ge)}}function Bp(ee,ge){return Qt(ge,function(de){return ee[de]})}function Ic(ee,ge){return ee.has(ge)}function KC(ee,ge){for(var de=-1,Fe=ee.length;++de<Fe&&oa(ge,ee[de],0)>-1;);return de}function WC(ee,ge){for(var de=ee.length;de--&&oa(ge,ee[de],0)>-1;);return de}function BD(ee,ge){for(var de=ee.length,Fe=0;de--;)ee[de]===ge&&++Fe;return Fe}var FD=Rp(xD),zD=Rp(vD);function UD(ee){return"\\"+ED[ee]}function KD(ee,ge){return ee==null?e:ee[ge]}function la(ee){return yD.test(ee)}function WD(ee){return bD.test(ee)}function HD(ee){for(var ge,de=[];!(ge=ee.next()).done;)de.push(ge.value);return de}function Fp(ee){var ge=-1,de=Array(ee.size);return ee.forEach(function(Fe,st){de[++ge]=[st,Fe]}),de}function HC(ee,ge){return function(de){return ee(ge(de))}}function no(ee,ge){for(var de=-1,Fe=ee.length,st=0,Et=[];++de<Fe;){var Cn=ee[de];(Cn===ge||Cn===d)&&(ee[de]=d,Et[st++]=de)}return Et}function Dd(ee){var ge=-1,de=Array(ee.size);return ee.forEach(function(Fe){de[++ge]=Fe}),de}function YD(ee){var ge=-1,de=Array(ee.size);return ee.forEach(function(Fe){de[++ge]=[Fe,Fe]}),de}function GD(ee,ge,de){for(var Fe=de-1,st=ee.length;++Fe<st;)if(ee[Fe]===ge)return Fe;return-1}function ZD(ee,ge,de){for(var Fe=de+1;Fe--;)if(ee[Fe]===ge)return Fe;return Fe}function aa(ee){return la(ee)?VD(ee):LD(ee)}function cs(ee){return la(ee)?QD(ee):DD(ee)}function YC(ee){for(var ge=ee.length;ge--&&BL.test(ee.charAt(ge)););return ge}var JD=Rp(SD);function VD(ee){for(var ge=_p.lastIndex=0;_p.test(ee);)++ge;return ge}function QD(ee){return ee.match(_p)||[]}function XD(ee){return ee.match(AD)||[]}var qD=(function ee(ge){ge=ge==null?Bn:ca.defaults(Bn.Object(),ge,ca.pick(Bn,wD));var de=ge.Array,Fe=ge.Date,st=ge.Error,Et=ge.Function,Cn=ge.Math,zt=ge.Object,zp=ge.RegExp,$D=ge.String,zr=ge.TypeError,Od=de.prototype,e3=Et.prototype,ua=zt.prototype,Rd=ge["__core-js_shared__"],jd=e3.toString,Mt=ua.hasOwnProperty,t3=0,GC=(function(){var c=/[^.]+$/.exec(Rd&&Rd.keys&&Rd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Pd=ua.toString,n3=jd.call(zt),r3=Bn._,s3=zp("^"+jd.call(Mt).replace(xp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bd=NC?ge.Buffer:e,ro=ge.Symbol,Fd=ge.Uint8Array,ZC=Bd?Bd.allocUnsafe:e,zd=HC(zt.getPrototypeOf,zt),JC=zt.create,VC=ua.propertyIsEnumerable,Ud=Od.splice,QC=ro?ro.isConcatSpreadable:e,Lc=ro?ro.iterator:e,Ho=ro?ro.toStringTag:e,Kd=(function(){try{var c=Vo(zt,"defineProperty");return c({},"",{}),c}catch{}})(),i3=ge.clearTimeout!==Bn.clearTimeout&&ge.clearTimeout,o3=Fe&&Fe.now!==Bn.Date.now&&Fe.now,l3=ge.setTimeout!==Bn.setTimeout&&ge.setTimeout,Wd=Cn.ceil,Hd=Cn.floor,Up=zt.getOwnPropertySymbols,a3=Bd?Bd.isBuffer:e,XC=ge.isFinite,c3=Od.join,u3=HC(zt.keys,zt),xn=Cn.max,Gn=Cn.min,d3=Fe.now,f3=ge.parseInt,qC=Cn.random,h3=Od.reverse,Kp=Vo(ge,"DataView"),Dc=Vo(ge,"Map"),Wp=Vo(ge,"Promise"),da=Vo(ge,"Set"),Oc=Vo(ge,"WeakMap"),Rc=Vo(zt,"create"),Yd=Oc&&new Oc,fa={},g3=Qo(Kp),p3=Qo(Dc),m3=Qo(Wp),A3=Qo(da),y3=Qo(Oc),Gd=ro?ro.prototype:e,jc=Gd?Gd.valueOf:e,$C=Gd?Gd.toString:e;function P(c){if(rn(c)&&!lt(c)&&!(c instanceof bt)){if(c instanceof Ur)return c;if(Mt.call(c,"__wrapped__"))return ev(c)}return new Ur(c)}var ha=(function(){function c(){}return function(f){if(!qt(f))return{};if(JC)return JC(f);c.prototype=f;var w=new c;return c.prototype=e,w}})();function Zd(){}function Ur(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}P.templateSettings={escape:LL,evaluate:DL,interpolate:aC,variable:"",imports:{_:P}},P.prototype=Zd.prototype,P.prototype.constructor=P,Ur.prototype=ha(Zd.prototype),Ur.prototype.constructor=Ur;function bt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function b3(){var c=new bt(this.__wrapped__);return c.__actions__=dr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=dr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=dr(this.__views__),c}function w3(){if(this.__filtered__){var c=new bt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function C3(){var c=this.__wrapped__.value(),f=this.__dir__,w=lt(c),E=f<0,O=w?c.length:0,F=DO(0,O,this.__views__),H=F.start,V=F.end,ne=V-H,me=E?V:H-1,Ae=this.__iteratees__,be=Ae.length,Ie=0,We=Gn(ne,this.__takeCount__);if(!w||!E&&O==ne&&We==ne)return vx(c,this.__actions__);var Xe=[];e:for(;ne--&&Ie<We;){me+=f;for(var dt=-1,qe=c[me];++dt<be;){var yt=Ae[dt],wt=yt.iteratee,Er=yt.type,sr=wt(qe);if(Er==G)qe=sr;else if(!sr){if(Er==z)continue e;break e}}Xe[Ie++]=qe}return Xe}bt.prototype=ha(Zd.prototype),bt.prototype.constructor=bt;function Yo(c){var f=-1,w=c==null?0:c.length;for(this.clear();++f<w;){var E=c[f];this.set(E[0],E[1])}}function x3(){this.__data__=Rc?Rc(null):{},this.size=0}function v3(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function S3(c){var f=this.__data__;if(Rc){var w=f[c];return w===a?e:w}return Mt.call(f,c)?f[c]:e}function E3(c){var f=this.__data__;return Rc?f[c]!==e:Mt.call(f,c)}function k3(c,f){var w=this.__data__;return this.size+=this.has(c)?0:1,w[c]=Rc&&f===e?a:f,this}Yo.prototype.clear=x3,Yo.prototype.delete=v3,Yo.prototype.get=S3,Yo.prototype.has=E3,Yo.prototype.set=k3;function ai(c){var f=-1,w=c==null?0:c.length;for(this.clear();++f<w;){var E=c[f];this.set(E[0],E[1])}}function T3(){this.__data__=[],this.size=0}function _3(c){var f=this.__data__,w=Jd(f,c);if(w<0)return!1;var E=f.length-1;return w==E?f.pop():Ud.call(f,w,1),--this.size,!0}function N3(c){var f=this.__data__,w=Jd(f,c);return w<0?e:f[w][1]}function M3(c){return Jd(this.__data__,c)>-1}function I3(c,f){var w=this.__data__,E=Jd(w,c);return E<0?(++this.size,w.push([c,f])):w[E][1]=f,this}ai.prototype.clear=T3,ai.prototype.delete=_3,ai.prototype.get=N3,ai.prototype.has=M3,ai.prototype.set=I3;function ci(c){var f=-1,w=c==null?0:c.length;for(this.clear();++f<w;){var E=c[f];this.set(E[0],E[1])}}function L3(){this.size=0,this.__data__={hash:new Yo,map:new(Dc||ai),string:new Yo}}function D3(c){var f=lf(this,c).delete(c);return this.size-=f?1:0,f}function O3(c){return lf(this,c).get(c)}function R3(c){return lf(this,c).has(c)}function j3(c,f){var w=lf(this,c),E=w.size;return w.set(c,f),this.size+=w.size==E?0:1,this}ci.prototype.clear=L3,ci.prototype.delete=D3,ci.prototype.get=O3,ci.prototype.has=R3,ci.prototype.set=j3;function Go(c){var f=-1,w=c==null?0:c.length;for(this.__data__=new ci;++f<w;)this.add(c[f])}function P3(c){return this.__data__.set(c,a),this}function B3(c){return this.__data__.has(c)}Go.prototype.add=Go.prototype.push=P3,Go.prototype.has=B3;function us(c){var f=this.__data__=new ai(c);this.size=f.size}function F3(){this.__data__=new ai,this.size=0}function z3(c){var f=this.__data__,w=f.delete(c);return this.size=f.size,w}function U3(c){return this.__data__.get(c)}function K3(c){return this.__data__.has(c)}function W3(c,f){var w=this.__data__;if(w instanceof ai){var E=w.__data__;if(!Dc||E.length<s-1)return E.push([c,f]),this.size=++w.size,this;w=this.__data__=new ci(E)}return w.set(c,f),this.size=w.size,this}us.prototype.clear=F3,us.prototype.delete=z3,us.prototype.get=U3,us.prototype.has=K3,us.prototype.set=W3;function ex(c,f){var w=lt(c),E=!w&&Xo(c),O=!w&&!E&&ao(c),F=!w&&!E&&!O&&Aa(c),H=w||E||O||F,V=H?Pp(c.length,$D):[],ne=V.length;for(var me in c)(f||Mt.call(c,me))&&!(H&&(me=="length"||O&&(me=="offset"||me=="parent")||F&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||hi(me,ne)))&&V.push(me);return V}function tx(c){var f=c.length;return f?c[em(0,f-1)]:e}function H3(c,f){return af(dr(c),Zo(f,0,c.length))}function Y3(c){return af(dr(c))}function Hp(c,f,w){(w!==e&&!ds(c[f],w)||w===e&&!(f in c))&&ui(c,f,w)}function Pc(c,f,w){var E=c[f];(!(Mt.call(c,f)&&ds(E,w))||w===e&&!(f in c))&&ui(c,f,w)}function Jd(c,f){for(var w=c.length;w--;)if(ds(c[w][0],f))return w;return-1}function G3(c,f,w,E){return so(c,function(O,F,H){f(E,O,w(O),H)}),E}function nx(c,f){return c&&Ms(f,_n(f),c)}function Z3(c,f){return c&&Ms(f,hr(f),c)}function ui(c,f,w){f=="__proto__"&&Kd?Kd(c,f,{configurable:!0,enumerable:!0,value:w,writable:!0}):c[f]=w}function Yp(c,f){for(var w=-1,E=f.length,O=de(E),F=c==null;++w<E;)O[w]=F?e:Em(c,f[w]);return O}function Zo(c,f,w){return c===c&&(w!==e&&(c=c<=w?c:w),f!==e&&(c=c>=f?c:f)),c}function Kr(c,f,w,E,O,F){var H,V=f&h,ne=f&g,me=f&m;if(w&&(H=O?w(c,E,O,F):w(c)),H!==e)return H;if(!qt(c))return c;var Ae=lt(c);if(Ae){if(H=RO(c),!V)return dr(c,H)}else{var be=Zn(c),Ie=be==le||be==Se;if(ao(c))return kx(c,V);if(be==ke||be==ue||Ie&&!O){if(H=ne||Ie?{}:Yx(c),!V)return ne?SO(c,Z3(H,c)):vO(c,nx(H,c))}else{if(!Yt[be])return O?c:{};H=jO(c,be,V)}}F||(F=new us);var We=F.get(c);if(We)return We;F.set(c,H),wv(c)?c.forEach(function(qe){H.add(Kr(qe,f,w,qe,c,F))}):yv(c)&&c.forEach(function(qe,yt){H.set(yt,Kr(qe,f,w,yt,c,F))});var Xe=me?ne?dm:um:ne?hr:_n,dt=Ae?e:Xe(c);return Fr(dt||c,function(qe,yt){dt&&(yt=qe,qe=c[yt]),Pc(H,yt,Kr(qe,f,w,yt,c,F))}),H}function J3(c){var f=_n(c);return function(w){return rx(w,c,f)}}function rx(c,f,w){var E=w.length;if(c==null)return!E;for(c=zt(c);E--;){var O=w[E],F=f[O],H=c[O];if(H===e&&!(O in c)||!F(H))return!1}return!0}function sx(c,f,w){if(typeof c!="function")throw new zr(o);return Hc(function(){c.apply(e,w)},f)}function Bc(c,f,w,E){var O=-1,F=Id,H=!0,V=c.length,ne=[],me=f.length;if(!V)return ne;w&&(f=Qt(f,xr(w))),E?(F=Ip,H=!1):f.length>=s&&(F=Ic,H=!1,f=new Go(f));e:for(;++O<V;){var Ae=c[O],be=w==null?Ae:w(Ae);if(Ae=E||Ae!==0?Ae:0,H&&be===be){for(var Ie=me;Ie--;)if(f[Ie]===be)continue e;ne.push(Ae)}else F(f,be,E)||ne.push(Ae)}return ne}var so=Ix(Ns),ix=Ix(Zp,!0);function V3(c,f){var w=!0;return so(c,function(E,O,F){return w=!!f(E,O,F),w}),w}function Vd(c,f,w){for(var E=-1,O=c.length;++E<O;){var F=c[E],H=f(F);if(H!=null&&(V===e?H===H&&!Sr(H):w(H,V)))var V=H,ne=F}return ne}function Q3(c,f,w,E){var O=c.length;for(w=ut(w),w<0&&(w=-w>O?0:O+w),E=E===e||E>O?O:ut(E),E<0&&(E+=O),E=w>E?0:xv(E);w<E;)c[w++]=f;return c}function ox(c,f){var w=[];return so(c,function(E,O,F){f(E,O,F)&&w.push(E)}),w}function Fn(c,f,w,E,O){var F=-1,H=c.length;for(w||(w=BO),O||(O=[]);++F<H;){var V=c[F];f>0&&w(V)?f>1?Fn(V,f-1,w,E,O):to(O,V):E||(O[O.length]=V)}return O}var Gp=Lx(),lx=Lx(!0);function Ns(c,f){return c&&Gp(c,f,_n)}function Zp(c,f){return c&&lx(c,f,_n)}function Qd(c,f){return eo(f,function(w){return gi(c[w])})}function Jo(c,f){f=oo(f,c);for(var w=0,E=f.length;c!=null&&w<E;)c=c[Is(f[w++])];return w&&w==E?c:e}function ax(c,f,w){var E=f(c);return lt(c)?E:to(E,w(c))}function nr(c){return c==null?c===e?tt:Ke:Ho&&Ho in zt(c)?LO(c):YO(c)}function Jp(c,f){return c>f}function X3(c,f){return c!=null&&Mt.call(c,f)}function q3(c,f){return c!=null&&f in zt(c)}function $3(c,f,w){return c>=Gn(f,w)&&c<xn(f,w)}function Vp(c,f,w){for(var E=w?Ip:Id,O=c[0].length,F=c.length,H=F,V=de(F),ne=1/0,me=[];H--;){var Ae=c[H];H&&f&&(Ae=Qt(Ae,xr(f))),ne=Gn(Ae.length,ne),V[H]=!w&&(f||O>=120&&Ae.length>=120)?new Go(H&&Ae):e}Ae=c[0];var be=-1,Ie=V[0];e:for(;++be<O&&me.length<ne;){var We=Ae[be],Xe=f?f(We):We;if(We=w||We!==0?We:0,!(Ie?Ic(Ie,Xe):E(me,Xe,w))){for(H=F;--H;){var dt=V[H];if(!(dt?Ic(dt,Xe):E(c[H],Xe,w)))continue e}Ie&&Ie.push(Xe),me.push(We)}}return me}function eO(c,f,w,E){return Ns(c,function(O,F,H){f(E,w(O),F,H)}),E}function Fc(c,f,w){f=oo(f,c),c=Vx(c,f);var E=c==null?c:c[Is(Hr(f))];return E==null?e:Cr(E,c,w)}function cx(c){return rn(c)&&nr(c)==ue}function tO(c){return rn(c)&&nr(c)==ve}function nO(c){return rn(c)&&nr(c)==xe}function zc(c,f,w,E,O){return c===f?!0:c==null||f==null||!rn(c)&&!rn(f)?c!==c&&f!==f:rO(c,f,w,E,zc,O)}function rO(c,f,w,E,O,F){var H=lt(c),V=lt(f),ne=H?re:Zn(c),me=V?re:Zn(f);ne=ne==ue?ke:ne,me=me==ue?ke:me;var Ae=ne==ke,be=me==ke,Ie=ne==me;if(Ie&&ao(c)){if(!ao(f))return!1;H=!0,Ae=!1}if(Ie&&!Ae)return F||(F=new us),H||Aa(c)?Kx(c,f,w,E,O,F):MO(c,f,ne,w,E,O,F);if(!(w&A)){var We=Ae&&Mt.call(c,"__wrapped__"),Xe=be&&Mt.call(f,"__wrapped__");if(We||Xe){var dt=We?c.value():c,qe=Xe?f.value():f;return F||(F=new us),O(dt,qe,w,E,F)}}return Ie?(F||(F=new us),IO(c,f,w,E,O,F)):!1}function sO(c){return rn(c)&&Zn(c)==we}function Qp(c,f,w,E){var O=w.length,F=O,H=!E;if(c==null)return!F;for(c=zt(c);O--;){var V=w[O];if(H&&V[2]?V[1]!==c[V[0]]:!(V[0]in c))return!1}for(;++O<F;){V=w[O];var ne=V[0],me=c[ne],Ae=V[1];if(H&&V[2]){if(me===e&&!(ne in c))return!1}else{var be=new us;if(E)var Ie=E(me,Ae,ne,c,f,be);if(!(Ie===e?zc(Ae,me,A|y,E,be):Ie))return!1}}return!0}function ux(c){if(!qt(c)||zO(c))return!1;var f=gi(c)?s3:JL;return f.test(Qo(c))}function iO(c){return rn(c)&&nr(c)==mt}function oO(c){return rn(c)&&Zn(c)==Ve}function lO(c){return rn(c)&&gf(c.length)&&!!Jt[nr(c)]}function dx(c){return typeof c=="function"?c:c==null?gr:typeof c=="object"?lt(c)?gx(c[0],c[1]):hx(c):Dv(c)}function Xp(c){if(!Wc(c))return u3(c);var f=[];for(var w in zt(c))Mt.call(c,w)&&w!="constructor"&&f.push(w);return f}function aO(c){if(!qt(c))return HO(c);var f=Wc(c),w=[];for(var E in c)E=="constructor"&&(f||!Mt.call(c,E))||w.push(E);return w}function qp(c,f){return c<f}function fx(c,f){var w=-1,E=fr(c)?de(c.length):[];return so(c,function(O,F,H){E[++w]=f(O,F,H)}),E}function hx(c){var f=hm(c);return f.length==1&&f[0][2]?Zx(f[0][0],f[0][1]):function(w){return w===c||Qp(w,c,f)}}function gx(c,f){return pm(c)&&Gx(f)?Zx(Is(c),f):function(w){var E=Em(w,c);return E===e&&E===f?km(w,c):zc(f,E,A|y)}}function Xd(c,f,w,E,O){c!==f&&Gp(f,function(F,H){if(O||(O=new us),qt(F))cO(c,f,H,w,Xd,E,O);else{var V=E?E(Am(c,H),F,H+"",c,f,O):e;V===e&&(V=F),Hp(c,H,V)}},hr)}function cO(c,f,w,E,O,F,H){var V=Am(c,w),ne=Am(f,w),me=H.get(ne);if(me){Hp(c,w,me);return}var Ae=F?F(V,ne,w+"",c,f,H):e,be=Ae===e;if(be){var Ie=lt(ne),We=!Ie&&ao(ne),Xe=!Ie&&!We&&Aa(ne);Ae=ne,Ie||We||Xe?lt(V)?Ae=V:on(V)?Ae=dr(V):We?(be=!1,Ae=kx(ne,!0)):Xe?(be=!1,Ae=Tx(ne,!0)):Ae=[]:Yc(ne)||Xo(ne)?(Ae=V,Xo(V)?Ae=vv(V):(!qt(V)||gi(V))&&(Ae=Yx(ne))):be=!1}be&&(H.set(ne,Ae),O(Ae,ne,E,F,H),H.delete(ne)),Hp(c,w,Ae)}function px(c,f){var w=c.length;if(w)return f+=f<0?w:0,hi(f,w)?c[f]:e}function mx(c,f,w){f.length?f=Qt(f,function(F){return lt(F)?function(H){return Jo(H,F.length===1?F[0]:F)}:F}):f=[gr];var E=-1;f=Qt(f,xr(Qe()));var O=fx(c,function(F,H,V){var ne=Qt(f,function(me){return me(F)});return{criteria:ne,index:++E,value:F}});return jD(O,function(F,H){return xO(F,H,w)})}function uO(c,f){return Ax(c,f,function(w,E){return km(c,E)})}function Ax(c,f,w){for(var E=-1,O=f.length,F={};++E<O;){var H=f[E],V=Jo(c,H);w(V,H)&&Uc(F,oo(H,c),V)}return F}function dO(c){return function(f){return Jo(f,c)}}function $p(c,f,w,E){var O=E?RD:oa,F=-1,H=f.length,V=c;for(c===f&&(f=dr(f)),w&&(V=Qt(c,xr(w)));++F<H;)for(var ne=0,me=f[F],Ae=w?w(me):me;(ne=O(V,Ae,ne,E))>-1;)V!==c&&Ud.call(V,ne,1),Ud.call(c,ne,1);return c}function yx(c,f){for(var w=c?f.length:0,E=w-1;w--;){var O=f[w];if(w==E||O!==F){var F=O;hi(O)?Ud.call(c,O,1):rm(c,O)}}return c}function em(c,f){return c+Hd(qC()*(f-c+1))}function fO(c,f,w,E){for(var O=-1,F=xn(Wd((f-c)/(w||1)),0),H=de(F);F--;)H[E?F:++O]=c,c+=w;return H}function tm(c,f){var w="";if(!c||f<1||f>W)return w;do f%2&&(w+=c),f=Hd(f/2),f&&(c+=c);while(f);return w}function gt(c,f){return ym(Jx(c,f,gr),c+"")}function hO(c){return tx(ya(c))}function gO(c,f){var w=ya(c);return af(w,Zo(f,0,w.length))}function Uc(c,f,w,E){if(!qt(c))return c;f=oo(f,c);for(var O=-1,F=f.length,H=F-1,V=c;V!=null&&++O<F;){var ne=Is(f[O]),me=w;if(ne==="__proto__"||ne==="constructor"||ne==="prototype")return c;if(O!=H){var Ae=V[ne];me=E?E(Ae,ne,V):e,me===e&&(me=qt(Ae)?Ae:hi(f[O+1])?[]:{})}Pc(V,ne,me),V=V[ne]}return c}var bx=Yd?function(c,f){return Yd.set(c,f),c}:gr,pO=Kd?function(c,f){return Kd(c,"toString",{configurable:!0,enumerable:!1,value:_m(f),writable:!0})}:gr;function mO(c){return af(ya(c))}function Wr(c,f,w){var E=-1,O=c.length;f<0&&(f=-f>O?0:O+f),w=w>O?O:w,w<0&&(w+=O),O=f>w?0:w-f>>>0,f>>>=0;for(var F=de(O);++E<O;)F[E]=c[E+f];return F}function AO(c,f){var w;return so(c,function(E,O,F){return w=f(E,O,F),!w}),!!w}function qd(c,f,w){var E=0,O=c==null?E:c.length;if(typeof f=="number"&&f===f&&O<=Y){for(;E<O;){var F=E+O>>>1,H=c[F];H!==null&&!Sr(H)&&(w?H<=f:H<f)?E=F+1:O=F}return O}return nm(c,f,gr,w)}function nm(c,f,w,E){var O=0,F=c==null?0:c.length;if(F===0)return 0;f=w(f);for(var H=f!==f,V=f===null,ne=Sr(f),me=f===e;O<F;){var Ae=Hd((O+F)/2),be=w(c[Ae]),Ie=be!==e,We=be===null,Xe=be===be,dt=Sr(be);if(H)var qe=E||Xe;else me?qe=Xe&&(E||Ie):V?qe=Xe&&Ie&&(E||!We):ne?qe=Xe&&Ie&&!We&&(E||!dt):We||dt?qe=!1:qe=E?be<=f:be<f;qe?O=Ae+1:F=Ae}return Gn(F,K)}function wx(c,f){for(var w=-1,E=c.length,O=0,F=[];++w<E;){var H=c[w],V=f?f(H):H;if(!w||!ds(V,ne)){var ne=V;F[O++]=H===0?0:H}}return F}function Cx(c){return typeof c=="number"?c:Sr(c)?ae:+c}function vr(c){if(typeof c=="string")return c;if(lt(c))return Qt(c,vr)+"";if(Sr(c))return $C?$C.call(c):"";var f=c+"";return f=="0"&&1/c==-oe?"-0":f}function io(c,f,w){var E=-1,O=Id,F=c.length,H=!0,V=[],ne=V;if(w)H=!1,O=Ip;else if(F>=s){var me=f?null:_O(c);if(me)return Dd(me);H=!1,O=Ic,ne=new Go}else ne=f?[]:V;e:for(;++E<F;){var Ae=c[E],be=f?f(Ae):Ae;if(Ae=w||Ae!==0?Ae:0,H&&be===be){for(var Ie=ne.length;Ie--;)if(ne[Ie]===be)continue e;f&&ne.push(be),V.push(Ae)}else O(ne,be,w)||(ne!==V&&ne.push(be),V.push(Ae))}return V}function rm(c,f){return f=oo(f,c),c=Vx(c,f),c==null||delete c[Is(Hr(f))]}function xx(c,f,w,E){return Uc(c,f,w(Jo(c,f)),E)}function $d(c,f,w,E){for(var O=c.length,F=E?O:-1;(E?F--:++F<O)&&f(c[F],F,c););return w?Wr(c,E?0:F,E?F+1:O):Wr(c,E?F+1:0,E?O:F)}function vx(c,f){var w=c;return w instanceof bt&&(w=w.value()),Lp(f,function(E,O){return O.func.apply(O.thisArg,to([E],O.args))},w)}function sm(c,f,w){var E=c.length;if(E<2)return E?io(c[0]):[];for(var O=-1,F=de(E);++O<E;)for(var H=c[O],V=-1;++V<E;)V!=O&&(F[O]=Bc(F[O]||H,c[V],f,w));return io(Fn(F,1),f,w)}function Sx(c,f,w){for(var E=-1,O=c.length,F=f.length,H={};++E<O;){var V=E<F?f[E]:e;w(H,c[E],V)}return H}function im(c){return on(c)?c:[]}function om(c){return typeof c=="function"?c:gr}function oo(c,f){return lt(c)?c:pm(c,f)?[c]:$x(Tt(c))}var yO=gt;function lo(c,f,w){var E=c.length;return w=w===e?E:w,!f&&w>=E?c:Wr(c,f,w)}var Ex=i3||function(c){return Bn.clearTimeout(c)};function kx(c,f){if(f)return c.slice();var w=c.length,E=ZC?ZC(w):new c.constructor(w);return c.copy(E),E}function lm(c){var f=new c.constructor(c.byteLength);return new Fd(f).set(new Fd(c)),f}function bO(c,f){var w=f?lm(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.byteLength)}function wO(c){var f=new c.constructor(c.source,cC.exec(c));return f.lastIndex=c.lastIndex,f}function CO(c){return jc?zt(jc.call(c)):{}}function Tx(c,f){var w=f?lm(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.length)}function _x(c,f){if(c!==f){var w=c!==e,E=c===null,O=c===c,F=Sr(c),H=f!==e,V=f===null,ne=f===f,me=Sr(f);if(!V&&!me&&!F&&c>f||F&&H&&ne&&!V&&!me||E&&H&&ne||!w&&ne||!O)return 1;if(!E&&!F&&!me&&c<f||me&&w&&O&&!E&&!F||V&&w&&O||!H&&O||!ne)return-1}return 0}function xO(c,f,w){for(var E=-1,O=c.criteria,F=f.criteria,H=O.length,V=w.length;++E<H;){var ne=_x(O[E],F[E]);if(ne){if(E>=V)return ne;var me=w[E];return ne*(me=="desc"?-1:1)}}return c.index-f.index}function Nx(c,f,w,E){for(var O=-1,F=c.length,H=w.length,V=-1,ne=f.length,me=xn(F-H,0),Ae=de(ne+me),be=!E;++V<ne;)Ae[V]=f[V];for(;++O<H;)(be||O<F)&&(Ae[w[O]]=c[O]);for(;me--;)Ae[V++]=c[O++];return Ae}function Mx(c,f,w,E){for(var O=-1,F=c.length,H=-1,V=w.length,ne=-1,me=f.length,Ae=xn(F-V,0),be=de(Ae+me),Ie=!E;++O<Ae;)be[O]=c[O];for(var We=O;++ne<me;)be[We+ne]=f[ne];for(;++H<V;)(Ie||O<F)&&(be[We+w[H]]=c[O++]);return be}function dr(c,f){var w=-1,E=c.length;for(f||(f=de(E));++w<E;)f[w]=c[w];return f}function Ms(c,f,w,E){var O=!w;w||(w={});for(var F=-1,H=f.length;++F<H;){var V=f[F],ne=E?E(w[V],c[V],V,w,c):e;ne===e&&(ne=c[V]),O?ui(w,V,ne):Pc(w,V,ne)}return w}function vO(c,f){return Ms(c,gm(c),f)}function SO(c,f){return Ms(c,Wx(c),f)}function ef(c,f){return function(w,E){var O=lt(w)?ND:G3,F=f?f():{};return O(w,c,Qe(E,2),F)}}function ga(c){return gt(function(f,w){var E=-1,O=w.length,F=O>1?w[O-1]:e,H=O>2?w[2]:e;for(F=c.length>3&&typeof F=="function"?(O--,F):e,H&&rr(w[0],w[1],H)&&(F=O<3?e:F,O=1),f=zt(f);++E<O;){var V=w[E];V&&c(f,V,E,F)}return f})}function Ix(c,f){return function(w,E){if(w==null)return w;if(!fr(w))return c(w,E);for(var O=w.length,F=f?O:-1,H=zt(w);(f?F--:++F<O)&&E(H[F],F,H)!==!1;);return w}}function Lx(c){return function(f,w,E){for(var O=-1,F=zt(f),H=E(f),V=H.length;V--;){var ne=H[c?V:++O];if(w(F[ne],ne,F)===!1)break}return f}}function EO(c,f,w){var E=f&b,O=Kc(c);function F(){var H=this&&this!==Bn&&this instanceof F?O:c;return H.apply(E?w:this,arguments)}return F}function Dx(c){return function(f){f=Tt(f);var w=la(f)?cs(f):e,E=w?w[0]:f.charAt(0),O=w?lo(w,1).join(""):f.slice(1);return E[c]()+O}}function pa(c){return function(f){return Lp(Iv(Mv(f).replace(pD,"")),c,"")}}function Kc(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var w=ha(c.prototype),E=c.apply(w,f);return qt(E)?E:w}}function kO(c,f,w){var E=Kc(c);function O(){for(var F=arguments.length,H=de(F),V=F,ne=ma(O);V--;)H[V]=arguments[V];var me=F<3&&H[0]!==ne&&H[F-1]!==ne?[]:no(H,ne);if(F-=me.length,F<w)return Bx(c,f,tf,O.placeholder,e,H,me,e,e,w-F);var Ae=this&&this!==Bn&&this instanceof O?E:c;return Cr(Ae,this,H)}return O}function Ox(c){return function(f,w,E){var O=zt(f);if(!fr(f)){var F=Qe(w,3);f=_n(f),w=function(V){return F(O[V],V,O)}}var H=c(f,w,E);return H>-1?O[F?f[H]:H]:e}}function Rx(c){return fi(function(f){var w=f.length,E=w,O=Ur.prototype.thru;for(c&&f.reverse();E--;){var F=f[E];if(typeof F!="function")throw new zr(o);if(O&&!H&&of(F)=="wrapper")var H=new Ur([],!0)}for(E=H?E:w;++E<w;){F=f[E];var V=of(F),ne=V=="wrapper"?fm(F):e;ne&&mm(ne[0])&&ne[1]==(N|S|_|M)&&!ne[4].length&&ne[9]==1?H=H[of(ne[0])].apply(H,ne[3]):H=F.length==1&&mm(F)?H[V]():H.thru(F)}return function(){var me=arguments,Ae=me[0];if(H&&me.length==1&<(Ae))return H.plant(Ae).value();for(var be=0,Ie=w?f[be].apply(this,me):Ae;++be<w;)Ie=f[be].call(this,Ie);return Ie}})}function tf(c,f,w,E,O,F,H,V,ne,me){var Ae=f&N,be=f&b,Ie=f&v,We=f&(S|k),Xe=f&I,dt=Ie?e:Kc(c);function qe(){for(var yt=arguments.length,wt=de(yt),Er=yt;Er--;)wt[Er]=arguments[Er];if(We)var sr=ma(qe),kr=BD(wt,sr);if(E&&(wt=Nx(wt,E,O,We)),F&&(wt=Mx(wt,F,H,We)),yt-=kr,We&&yt<me){var ln=no(wt,sr);return Bx(c,f,tf,qe.placeholder,w,wt,ln,V,ne,me-yt)}var fs=be?w:this,mi=Ie?fs[c]:c;return yt=wt.length,V?wt=GO(wt,V):Xe&&yt>1&&wt.reverse(),Ae&&ne<yt&&(wt.length=ne),this&&this!==Bn&&this instanceof qe&&(mi=dt||Kc(mi)),mi.apply(fs,wt)}return qe}function jx(c,f){return function(w,E){return eO(w,c,f(E),{})}}function nf(c,f){return function(w,E){var O;if(w===e&&E===e)return f;if(w!==e&&(O=w),E!==e){if(O===e)return E;typeof w=="string"||typeof E=="string"?(w=vr(w),E=vr(E)):(w=Cx(w),E=Cx(E)),O=c(w,E)}return O}}function am(c){return fi(function(f){return f=Qt(f,xr(Qe())),gt(function(w){var E=this;return c(f,function(O){return Cr(O,E,w)})})})}function rf(c,f){f=f===e?" ":vr(f);var w=f.length;if(w<2)return w?tm(f,c):f;var E=tm(f,Wd(c/aa(f)));return la(f)?lo(cs(E),0,c).join(""):E.slice(0,c)}function TO(c,f,w,E){var O=f&b,F=Kc(c);function H(){for(var V=-1,ne=arguments.length,me=-1,Ae=E.length,be=de(Ae+ne),Ie=this&&this!==Bn&&this instanceof H?F:c;++me<Ae;)be[me]=E[me];for(;ne--;)be[me++]=arguments[++V];return Cr(Ie,O?w:this,be)}return H}function Px(c){return function(f,w,E){return E&&typeof E!="number"&&rr(f,w,E)&&(w=E=e),f=pi(f),w===e?(w=f,f=0):w=pi(w),E=E===e?f<w?1:-1:pi(E),fO(f,w,E,c)}}function sf(c){return function(f,w){return typeof f=="string"&&typeof w=="string"||(f=Yr(f),w=Yr(w)),c(f,w)}}function Bx(c,f,w,E,O,F,H,V,ne,me){var Ae=f&S,be=Ae?H:e,Ie=Ae?e:H,We=Ae?F:e,Xe=Ae?e:F;f|=Ae?_:T,f&=~(Ae?T:_),f&C||(f&=-4);var dt=[c,f,O,We,be,Xe,Ie,V,ne,me],qe=w.apply(e,dt);return mm(c)&&Qx(qe,dt),qe.placeholder=E,Xx(qe,c,f)}function cm(c){var f=Cn[c];return function(w,E){if(w=Yr(w),E=E==null?0:Gn(ut(E),292),E&&XC(w)){var O=(Tt(w)+"e").split("e"),F=f(O[0]+"e"+(+O[1]+E));return O=(Tt(F)+"e").split("e"),+(O[0]+"e"+(+O[1]-E))}return f(w)}}var _O=da&&1/Dd(new da([,-0]))[1]==oe?function(c){return new da(c)}:Im;function Fx(c){return function(f){var w=Zn(f);return w==we?Fp(f):w==Ve?YD(f):PD(f,c(f))}}function di(c,f,w,E,O,F,H,V){var ne=f&v;if(!ne&&typeof c!="function")throw new zr(o);var me=E?E.length:0;if(me||(f&=-97,E=O=e),H=H===e?H:xn(ut(H),0),V=V===e?V:ut(V),me-=O?O.length:0,f&T){var Ae=E,be=O;E=O=e}var Ie=ne?e:fm(c),We=[c,f,w,E,O,Ae,be,F,H,V];if(Ie&&WO(We,Ie),c=We[0],f=We[1],w=We[2],E=We[3],O=We[4],V=We[9]=We[9]===e?ne?0:c.length:xn(We[9]-me,0),!V&&f&(S|k)&&(f&=-25),!f||f==b)var Xe=EO(c,f,w);else f==S||f==k?Xe=kO(c,f,V):(f==_||f==(b|_))&&!O.length?Xe=TO(c,f,w,E):Xe=tf.apply(e,We);var dt=Ie?bx:Qx;return Xx(dt(Xe,We),c,f)}function zx(c,f,w,E){return c===e||ds(c,ua[w])&&!Mt.call(E,w)?f:c}function Ux(c,f,w,E,O,F){return qt(c)&&qt(f)&&(F.set(f,c),Xd(c,f,e,Ux,F),F.delete(f)),c}function NO(c){return Yc(c)?e:c}function Kx(c,f,w,E,O,F){var H=w&A,V=c.length,ne=f.length;if(V!=ne&&!(H&&ne>V))return!1;var me=F.get(c),Ae=F.get(f);if(me&&Ae)return me==f&&Ae==c;var be=-1,Ie=!0,We=w&y?new Go:e;for(F.set(c,f),F.set(f,c);++be<V;){var Xe=c[be],dt=f[be];if(E)var qe=H?E(dt,Xe,be,f,c,F):E(Xe,dt,be,c,f,F);if(qe!==e){if(qe)continue;Ie=!1;break}if(We){if(!Dp(f,function(yt,wt){if(!Ic(We,wt)&&(Xe===yt||O(Xe,yt,w,E,F)))return We.push(wt)})){Ie=!1;break}}else if(!(Xe===dt||O(Xe,dt,w,E,F))){Ie=!1;break}}return F.delete(c),F.delete(f),Ie}function MO(c,f,w,E,O,F,H){switch(w){case Be:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case ve:return!(c.byteLength!=f.byteLength||!F(new Fd(c),new Fd(f)));case he:case xe:case Oe:return ds(+c,+f);case $:return c.name==f.name&&c.message==f.message;case mt:case Ft:return c==f+"";case we:var V=Fp;case Ve:var ne=E&A;if(V||(V=Dd),c.size!=f.size&&!ne)return!1;var me=H.get(c);if(me)return me==f;E|=y,H.set(c,f);var Ae=Kx(V(c),V(f),E,O,F,H);return H.delete(c),Ae;case Re:if(jc)return jc.call(c)==jc.call(f)}return!1}function IO(c,f,w,E,O,F){var H=w&A,V=um(c),ne=V.length,me=um(f),Ae=me.length;if(ne!=Ae&&!H)return!1;for(var be=ne;be--;){var Ie=V[be];if(!(H?Ie in f:Mt.call(f,Ie)))return!1}var We=F.get(c),Xe=F.get(f);if(We&&Xe)return We==f&&Xe==c;var dt=!0;F.set(c,f),F.set(f,c);for(var qe=H;++be<ne;){Ie=V[be];var yt=c[Ie],wt=f[Ie];if(E)var Er=H?E(wt,yt,Ie,f,c,F):E(yt,wt,Ie,c,f,F);if(!(Er===e?yt===wt||O(yt,wt,w,E,F):Er)){dt=!1;break}qe||(qe=Ie=="constructor")}if(dt&&!qe){var sr=c.constructor,kr=f.constructor;sr!=kr&&"constructor"in c&&"constructor"in f&&!(typeof sr=="function"&&sr instanceof sr&&typeof kr=="function"&&kr instanceof kr)&&(dt=!1)}return F.delete(c),F.delete(f),dt}function fi(c){return ym(Jx(c,e,rv),c+"")}function um(c){return ax(c,_n,gm)}function dm(c){return ax(c,hr,Wx)}var fm=Yd?function(c){return Yd.get(c)}:Im;function of(c){for(var f=c.name+"",w=fa[f],E=Mt.call(fa,f)?w.length:0;E--;){var O=w[E],F=O.func;if(F==null||F==c)return O.name}return f}function ma(c){var f=Mt.call(P,"placeholder")?P:c;return f.placeholder}function Qe(){var c=P.iteratee||Nm;return c=c===Nm?dx:c,arguments.length?c(arguments[0],arguments[1]):c}function lf(c,f){var w=c.__data__;return FO(f)?w[typeof f=="string"?"string":"hash"]:w.map}function hm(c){for(var f=_n(c),w=f.length;w--;){var E=f[w],O=c[E];f[w]=[E,O,Gx(O)]}return f}function Vo(c,f){var w=KD(c,f);return ux(w)?w:e}function LO(c){var f=Mt.call(c,Ho),w=c[Ho];try{c[Ho]=e;var E=!0}catch{}var O=Pd.call(c);return E&&(f?c[Ho]=w:delete c[Ho]),O}var gm=Up?function(c){return c==null?[]:(c=zt(c),eo(Up(c),function(f){return VC.call(c,f)}))}:Lm,Wx=Up?function(c){for(var f=[];c;)to(f,gm(c)),c=zd(c);return f}:Lm,Zn=nr;(Kp&&Zn(new Kp(new ArrayBuffer(1)))!=Be||Dc&&Zn(new Dc)!=we||Wp&&Zn(Wp.resolve())!=_e||da&&Zn(new da)!=Ve||Oc&&Zn(new Oc)!=nt)&&(Zn=function(c){var f=nr(c),w=f==ke?c.constructor:e,E=w?Qo(w):"";if(E)switch(E){case g3:return Be;case p3:return we;case m3:return _e;case A3:return Ve;case y3:return nt}return f});function DO(c,f,w){for(var E=-1,O=w.length;++E<O;){var F=w[E],H=F.size;switch(F.type){case"drop":c+=H;break;case"dropRight":f-=H;break;case"take":f=Gn(f,c+H);break;case"takeRight":c=xn(c,f-H);break}}return{start:c,end:f}}function OO(c){var f=c.match(zL);return f?f[1].split(UL):[]}function Hx(c,f,w){f=oo(f,c);for(var E=-1,O=f.length,F=!1;++E<O;){var H=Is(f[E]);if(!(F=c!=null&&w(c,H)))break;c=c[H]}return F||++E!=O?F:(O=c==null?0:c.length,!!O&&gf(O)&&hi(H,O)&&(lt(c)||Xo(c)))}function RO(c){var f=c.length,w=new c.constructor(f);return f&&typeof c[0]=="string"&&Mt.call(c,"index")&&(w.index=c.index,w.input=c.input),w}function Yx(c){return typeof c.constructor=="function"&&!Wc(c)?ha(zd(c)):{}}function jO(c,f,w){var E=c.constructor;switch(f){case ve:return lm(c);case he:case xe:return new E(+c);case Be:return bO(c,w);case At:case ot:case Zt:case nn:case Pr:case Ko:case Mc:case ur:case $i:return Tx(c,w);case we:return new E;case Oe:case Ft:return new E(c);case mt:return wO(c);case Ve:return new E;case Re:return CO(c)}}function PO(c,f){var w=f.length;if(!w)return c;var E=w-1;return f[E]=(w>1?"& ":"")+f[E],f=f.join(w>2?", ":" "),c.replace(FL,`{
|
|
80
|
-
/* [wrapped with `+f+`] */
|
|
81
|
-
`)}function BO(c){return lt(c)||Xo(c)||!!(QC&&c&&c[QC])}function hi(c,f){var w=typeof c;return f=f??W,!!f&&(w=="number"||w!="symbol"&&QL.test(c))&&c>-1&&c%1==0&&c<f}function rr(c,f,w){if(!qt(w))return!1;var E=typeof f;return(E=="number"?fr(w)&&hi(f,w.length):E=="string"&&f in w)?ds(w[f],c):!1}function pm(c,f){if(lt(c))return!1;var w=typeof c;return w=="number"||w=="symbol"||w=="boolean"||c==null||Sr(c)?!0:RL.test(c)||!OL.test(c)||f!=null&&c in zt(f)}function FO(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function mm(c){var f=of(c),w=P[f];if(typeof w!="function"||!(f in bt.prototype))return!1;if(c===w)return!0;var E=fm(w);return!!E&&c===E[0]}function zO(c){return!!GC&&GC in c}var UO=Rd?gi:Dm;function Wc(c){var f=c&&c.constructor,w=typeof f=="function"&&f.prototype||ua;return c===w}function Gx(c){return c===c&&!qt(c)}function Zx(c,f){return function(w){return w==null?!1:w[c]===f&&(f!==e||c in zt(w))}}function KO(c){var f=ff(c,function(E){return w.size===u&&w.clear(),E}),w=f.cache;return f}function WO(c,f){var w=c[1],E=f[1],O=w|E,F=O<(b|v|N),H=E==N&&w==S||E==N&&w==M&&c[7].length<=f[8]||E==(N|M)&&f[7].length<=f[8]&&w==S;if(!(F||H))return c;E&b&&(c[2]=f[2],O|=w&b?0:C);var V=f[3];if(V){var ne=c[3];c[3]=ne?Nx(ne,V,f[4]):V,c[4]=ne?no(c[3],d):f[4]}return V=f[5],V&&(ne=c[5],c[5]=ne?Mx(ne,V,f[6]):V,c[6]=ne?no(c[5],d):f[6]),V=f[7],V&&(c[7]=V),E&N&&(c[8]=c[8]==null?f[8]:Gn(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=O,c}function HO(c){var f=[];if(c!=null)for(var w in zt(c))f.push(w);return f}function YO(c){return Pd.call(c)}function Jx(c,f,w){return f=xn(f===e?c.length-1:f,0),function(){for(var E=arguments,O=-1,F=xn(E.length-f,0),H=de(F);++O<F;)H[O]=E[f+O];O=-1;for(var V=de(f+1);++O<f;)V[O]=E[O];return V[f]=w(H),Cr(c,this,V)}}function Vx(c,f){return f.length<2?c:Jo(c,Wr(f,0,-1))}function GO(c,f){for(var w=c.length,E=Gn(f.length,w),O=dr(c);E--;){var F=f[E];c[E]=hi(F,w)?O[F]:e}return c}function Am(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var Qx=qx(bx),Hc=l3||function(c,f){return Bn.setTimeout(c,f)},ym=qx(pO);function Xx(c,f,w){var E=f+"";return ym(c,PO(E,ZO(OO(E),w)))}function qx(c){var f=0,w=0;return function(){var E=d3(),O=R-(E-w);if(w=E,O>0){if(++f>=B)return arguments[0]}else f=0;return c.apply(e,arguments)}}function af(c,f){var w=-1,E=c.length,O=E-1;for(f=f===e?E:f;++w<f;){var F=em(w,O),H=c[F];c[F]=c[w],c[w]=H}return c.length=f,c}var $x=KO(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(jL,function(w,E,O,F){f.push(O?F.replace(HL,"$1"):E||w)}),f});function Is(c){if(typeof c=="string"||Sr(c))return c;var f=c+"";return f=="0"&&1/c==-oe?"-0":f}function Qo(c){if(c!=null){try{return jd.call(c)}catch{}try{return c+""}catch{}}return""}function ZO(c,f){return Fr(te,function(w){var E="_."+w[0];f&w[1]&&!Id(c,E)&&c.push(E)}),c.sort()}function ev(c){if(c instanceof bt)return c.clone();var f=new Ur(c.__wrapped__,c.__chain__);return f.__actions__=dr(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function JO(c,f,w){(w?rr(c,f,w):f===e)?f=1:f=xn(ut(f),0);var E=c==null?0:c.length;if(!E||f<1)return[];for(var O=0,F=0,H=de(Wd(E/f));O<E;)H[F++]=Wr(c,O,O+=f);return H}function VO(c){for(var f=-1,w=c==null?0:c.length,E=0,O=[];++f<w;){var F=c[f];F&&(O[E++]=F)}return O}function QO(){var c=arguments.length;if(!c)return[];for(var f=de(c-1),w=arguments[0],E=c;E--;)f[E-1]=arguments[E];return to(lt(w)?dr(w):[w],Fn(f,1))}var XO=gt(function(c,f){return on(c)?Bc(c,Fn(f,1,on,!0)):[]}),qO=gt(function(c,f){var w=Hr(f);return on(w)&&(w=e),on(c)?Bc(c,Fn(f,1,on,!0),Qe(w,2)):[]}),$O=gt(function(c,f){var w=Hr(f);return on(w)&&(w=e),on(c)?Bc(c,Fn(f,1,on,!0),e,w):[]});function eR(c,f,w){var E=c==null?0:c.length;return E?(f=w||f===e?1:ut(f),Wr(c,f<0?0:f,E)):[]}function tR(c,f,w){var E=c==null?0:c.length;return E?(f=w||f===e?1:ut(f),f=E-f,Wr(c,0,f<0?0:f)):[]}function nR(c,f){return c&&c.length?$d(c,Qe(f,3),!0,!0):[]}function rR(c,f){return c&&c.length?$d(c,Qe(f,3),!0):[]}function sR(c,f,w,E){var O=c==null?0:c.length;return O?(w&&typeof w!="number"&&rr(c,f,w)&&(w=0,E=O),Q3(c,f,w,E)):[]}function tv(c,f,w){var E=c==null?0:c.length;if(!E)return-1;var O=w==null?0:ut(w);return O<0&&(O=xn(E+O,0)),Ld(c,Qe(f,3),O)}function nv(c,f,w){var E=c==null?0:c.length;if(!E)return-1;var O=E-1;return w!==e&&(O=ut(w),O=w<0?xn(E+O,0):Gn(O,E-1)),Ld(c,Qe(f,3),O,!0)}function rv(c){var f=c==null?0:c.length;return f?Fn(c,1):[]}function iR(c){var f=c==null?0:c.length;return f?Fn(c,oe):[]}function oR(c,f){var w=c==null?0:c.length;return w?(f=f===e?1:ut(f),Fn(c,f)):[]}function lR(c){for(var f=-1,w=c==null?0:c.length,E={};++f<w;){var O=c[f];E[O[0]]=O[1]}return E}function sv(c){return c&&c.length?c[0]:e}function aR(c,f,w){var E=c==null?0:c.length;if(!E)return-1;var O=w==null?0:ut(w);return O<0&&(O=xn(E+O,0)),oa(c,f,O)}function cR(c){var f=c==null?0:c.length;return f?Wr(c,0,-1):[]}var uR=gt(function(c){var f=Qt(c,im);return f.length&&f[0]===c[0]?Vp(f):[]}),dR=gt(function(c){var f=Hr(c),w=Qt(c,im);return f===Hr(w)?f=e:w.pop(),w.length&&w[0]===c[0]?Vp(w,Qe(f,2)):[]}),fR=gt(function(c){var f=Hr(c),w=Qt(c,im);return f=typeof f=="function"?f:e,f&&w.pop(),w.length&&w[0]===c[0]?Vp(w,e,f):[]});function hR(c,f){return c==null?"":c3.call(c,f)}function Hr(c){var f=c==null?0:c.length;return f?c[f-1]:e}function gR(c,f,w){var E=c==null?0:c.length;if(!E)return-1;var O=E;return w!==e&&(O=ut(w),O=O<0?xn(E+O,0):Gn(O,E-1)),f===f?ZD(c,f,O):Ld(c,BC,O,!0)}function pR(c,f){return c&&c.length?px(c,ut(f)):e}var mR=gt(iv);function iv(c,f){return c&&c.length&&f&&f.length?$p(c,f):c}function AR(c,f,w){return c&&c.length&&f&&f.length?$p(c,f,Qe(w,2)):c}function yR(c,f,w){return c&&c.length&&f&&f.length?$p(c,f,e,w):c}var bR=fi(function(c,f){var w=c==null?0:c.length,E=Yp(c,f);return yx(c,Qt(f,function(O){return hi(O,w)?+O:O}).sort(_x)),E});function wR(c,f){var w=[];if(!(c&&c.length))return w;var E=-1,O=[],F=c.length;for(f=Qe(f,3);++E<F;){var H=c[E];f(H,E,c)&&(w.push(H),O.push(E))}return yx(c,O),w}function bm(c){return c==null?c:h3.call(c)}function CR(c,f,w){var E=c==null?0:c.length;return E?(w&&typeof w!="number"&&rr(c,f,w)?(f=0,w=E):(f=f==null?0:ut(f),w=w===e?E:ut(w)),Wr(c,f,w)):[]}function xR(c,f){return qd(c,f)}function vR(c,f,w){return nm(c,f,Qe(w,2))}function SR(c,f){var w=c==null?0:c.length;if(w){var E=qd(c,f);if(E<w&&ds(c[E],f))return E}return-1}function ER(c,f){return qd(c,f,!0)}function kR(c,f,w){return nm(c,f,Qe(w,2),!0)}function TR(c,f){var w=c==null?0:c.length;if(w){var E=qd(c,f,!0)-1;if(ds(c[E],f))return E}return-1}function _R(c){return c&&c.length?wx(c):[]}function NR(c,f){return c&&c.length?wx(c,Qe(f,2)):[]}function MR(c){var f=c==null?0:c.length;return f?Wr(c,1,f):[]}function IR(c,f,w){return c&&c.length?(f=w||f===e?1:ut(f),Wr(c,0,f<0?0:f)):[]}function LR(c,f,w){var E=c==null?0:c.length;return E?(f=w||f===e?1:ut(f),f=E-f,Wr(c,f<0?0:f,E)):[]}function DR(c,f){return c&&c.length?$d(c,Qe(f,3),!1,!0):[]}function OR(c,f){return c&&c.length?$d(c,Qe(f,3)):[]}var RR=gt(function(c){return io(Fn(c,1,on,!0))}),jR=gt(function(c){var f=Hr(c);return on(f)&&(f=e),io(Fn(c,1,on,!0),Qe(f,2))}),PR=gt(function(c){var f=Hr(c);return f=typeof f=="function"?f:e,io(Fn(c,1,on,!0),e,f)});function BR(c){return c&&c.length?io(c):[]}function FR(c,f){return c&&c.length?io(c,Qe(f,2)):[]}function zR(c,f){return f=typeof f=="function"?f:e,c&&c.length?io(c,e,f):[]}function wm(c){if(!(c&&c.length))return[];var f=0;return c=eo(c,function(w){if(on(w))return f=xn(w.length,f),!0}),Pp(f,function(w){return Qt(c,Op(w))})}function ov(c,f){if(!(c&&c.length))return[];var w=wm(c);return f==null?w:Qt(w,function(E){return Cr(f,e,E)})}var UR=gt(function(c,f){return on(c)?Bc(c,f):[]}),KR=gt(function(c){return sm(eo(c,on))}),WR=gt(function(c){var f=Hr(c);return on(f)&&(f=e),sm(eo(c,on),Qe(f,2))}),HR=gt(function(c){var f=Hr(c);return f=typeof f=="function"?f:e,sm(eo(c,on),e,f)}),YR=gt(wm);function GR(c,f){return Sx(c||[],f||[],Pc)}function ZR(c,f){return Sx(c||[],f||[],Uc)}var JR=gt(function(c){var f=c.length,w=f>1?c[f-1]:e;return w=typeof w=="function"?(c.pop(),w):e,ov(c,w)});function lv(c){var f=P(c);return f.__chain__=!0,f}function VR(c,f){return f(c),c}function cf(c,f){return f(c)}var QR=fi(function(c){var f=c.length,w=f?c[0]:0,E=this.__wrapped__,O=function(F){return Yp(F,c)};return f>1||this.__actions__.length||!(E instanceof bt)||!hi(w)?this.thru(O):(E=E.slice(w,+w+(f?1:0)),E.__actions__.push({func:cf,args:[O],thisArg:e}),new Ur(E,this.__chain__).thru(function(F){return f&&!F.length&&F.push(e),F}))});function XR(){return lv(this)}function qR(){return new Ur(this.value(),this.__chain__)}function $R(){this.__values__===e&&(this.__values__=Cv(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}function e4(){return this}function t4(c){for(var f,w=this;w instanceof Zd;){var E=ev(w);E.__index__=0,E.__values__=e,f?O.__wrapped__=E:f=E;var O=E;w=w.__wrapped__}return O.__wrapped__=c,f}function n4(){var c=this.__wrapped__;if(c instanceof bt){var f=c;return this.__actions__.length&&(f=new bt(this)),f=f.reverse(),f.__actions__.push({func:cf,args:[bm],thisArg:e}),new Ur(f,this.__chain__)}return this.thru(bm)}function r4(){return vx(this.__wrapped__,this.__actions__)}var s4=ef(function(c,f,w){Mt.call(c,w)?++c[w]:ui(c,w,1)});function i4(c,f,w){var E=lt(c)?jC:V3;return w&&rr(c,f,w)&&(f=e),E(c,Qe(f,3))}function o4(c,f){var w=lt(c)?eo:ox;return w(c,Qe(f,3))}var l4=Ox(tv),a4=Ox(nv);function c4(c,f){return Fn(uf(c,f),1)}function u4(c,f){return Fn(uf(c,f),oe)}function d4(c,f,w){return w=w===e?1:ut(w),Fn(uf(c,f),w)}function av(c,f){var w=lt(c)?Fr:so;return w(c,Qe(f,3))}function cv(c,f){var w=lt(c)?MD:ix;return w(c,Qe(f,3))}var f4=ef(function(c,f,w){Mt.call(c,w)?c[w].push(f):ui(c,w,[f])});function h4(c,f,w,E){c=fr(c)?c:ya(c),w=w&&!E?ut(w):0;var O=c.length;return w<0&&(w=xn(O+w,0)),pf(c)?w<=O&&c.indexOf(f,w)>-1:!!O&&oa(c,f,w)>-1}var g4=gt(function(c,f,w){var E=-1,O=typeof f=="function",F=fr(c)?de(c.length):[];return so(c,function(H){F[++E]=O?Cr(f,H,w):Fc(H,f,w)}),F}),p4=ef(function(c,f,w){ui(c,w,f)});function uf(c,f){var w=lt(c)?Qt:fx;return w(c,Qe(f,3))}function m4(c,f,w,E){return c==null?[]:(lt(f)||(f=f==null?[]:[f]),w=E?e:w,lt(w)||(w=w==null?[]:[w]),mx(c,f,w))}var A4=ef(function(c,f,w){c[w?0:1].push(f)},function(){return[[],[]]});function y4(c,f,w){var E=lt(c)?Lp:zC,O=arguments.length<3;return E(c,Qe(f,4),w,O,so)}function b4(c,f,w){var E=lt(c)?ID:zC,O=arguments.length<3;return E(c,Qe(f,4),w,O,ix)}function w4(c,f){var w=lt(c)?eo:ox;return w(c,hf(Qe(f,3)))}function C4(c){var f=lt(c)?tx:hO;return f(c)}function x4(c,f,w){(w?rr(c,f,w):f===e)?f=1:f=ut(f);var E=lt(c)?H3:gO;return E(c,f)}function v4(c){var f=lt(c)?Y3:mO;return f(c)}function S4(c){if(c==null)return 0;if(fr(c))return pf(c)?aa(c):c.length;var f=Zn(c);return f==we||f==Ve?c.size:Xp(c).length}function E4(c,f,w){var E=lt(c)?Dp:AO;return w&&rr(c,f,w)&&(f=e),E(c,Qe(f,3))}var k4=gt(function(c,f){if(c==null)return[];var w=f.length;return w>1&&rr(c,f[0],f[1])?f=[]:w>2&&rr(f[0],f[1],f[2])&&(f=[f[0]]),mx(c,Fn(f,1),[])}),df=o3||function(){return Bn.Date.now()};function T4(c,f){if(typeof f!="function")throw new zr(o);return c=ut(c),function(){if(--c<1)return f.apply(this,arguments)}}function uv(c,f,w){return f=w?e:f,f=c&&f==null?c.length:f,di(c,N,e,e,e,e,f)}function dv(c,f){var w;if(typeof f!="function")throw new zr(o);return c=ut(c),function(){return--c>0&&(w=f.apply(this,arguments)),c<=1&&(f=e),w}}var Cm=gt(function(c,f,w){var E=b;if(w.length){var O=no(w,ma(Cm));E|=_}return di(c,E,f,w,O)}),fv=gt(function(c,f,w){var E=b|v;if(w.length){var O=no(w,ma(fv));E|=_}return di(f,E,c,w,O)});function hv(c,f,w){f=w?e:f;var E=di(c,S,e,e,e,e,e,f);return E.placeholder=hv.placeholder,E}function gv(c,f,w){f=w?e:f;var E=di(c,k,e,e,e,e,e,f);return E.placeholder=gv.placeholder,E}function pv(c,f,w){var E,O,F,H,V,ne,me=0,Ae=!1,be=!1,Ie=!0;if(typeof c!="function")throw new zr(o);f=Yr(f)||0,qt(w)&&(Ae=!!w.leading,be="maxWait"in w,F=be?xn(Yr(w.maxWait)||0,f):F,Ie="trailing"in w?!!w.trailing:Ie);function We(ln){var fs=E,mi=O;return E=O=e,me=ln,H=c.apply(mi,fs),H}function Xe(ln){return me=ln,V=Hc(yt,f),Ae?We(ln):H}function dt(ln){var fs=ln-ne,mi=ln-me,Ov=f-fs;return be?Gn(Ov,F-mi):Ov}function qe(ln){var fs=ln-ne,mi=ln-me;return ne===e||fs>=f||fs<0||be&&mi>=F}function yt(){var ln=df();if(qe(ln))return wt(ln);V=Hc(yt,dt(ln))}function wt(ln){return V=e,Ie&&E?We(ln):(E=O=e,H)}function Er(){V!==e&&Ex(V),me=0,E=ne=O=V=e}function sr(){return V===e?H:wt(df())}function kr(){var ln=df(),fs=qe(ln);if(E=arguments,O=this,ne=ln,fs){if(V===e)return Xe(ne);if(be)return Ex(V),V=Hc(yt,f),We(ne)}return V===e&&(V=Hc(yt,f)),H}return kr.cancel=Er,kr.flush=sr,kr}var _4=gt(function(c,f){return sx(c,1,f)}),N4=gt(function(c,f,w){return sx(c,Yr(f)||0,w)});function M4(c){return di(c,I)}function ff(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new zr(o);var w=function(){var E=arguments,O=f?f.apply(this,E):E[0],F=w.cache;if(F.has(O))return F.get(O);var H=c.apply(this,E);return w.cache=F.set(O,H)||F,H};return w.cache=new(ff.Cache||ci),w}ff.Cache=ci;function hf(c){if(typeof c!="function")throw new zr(o);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function I4(c){return dv(2,c)}var L4=yO(function(c,f){f=f.length==1&<(f[0])?Qt(f[0],xr(Qe())):Qt(Fn(f,1),xr(Qe()));var w=f.length;return gt(function(E){for(var O=-1,F=Gn(E.length,w);++O<F;)E[O]=f[O].call(this,E[O]);return Cr(c,this,E)})}),xm=gt(function(c,f){var w=no(f,ma(xm));return di(c,_,e,f,w)}),mv=gt(function(c,f){var w=no(f,ma(mv));return di(c,T,e,f,w)}),D4=fi(function(c,f){return di(c,M,e,e,e,f)});function O4(c,f){if(typeof c!="function")throw new zr(o);return f=f===e?f:ut(f),gt(c,f)}function R4(c,f){if(typeof c!="function")throw new zr(o);return f=f==null?0:xn(ut(f),0),gt(function(w){var E=w[f],O=lo(w,0,f);return E&&to(O,E),Cr(c,this,O)})}function j4(c,f,w){var E=!0,O=!0;if(typeof c!="function")throw new zr(o);return qt(w)&&(E="leading"in w?!!w.leading:E,O="trailing"in w?!!w.trailing:O),pv(c,f,{leading:E,maxWait:f,trailing:O})}function P4(c){return uv(c,1)}function B4(c,f){return xm(om(f),c)}function F4(){if(!arguments.length)return[];var c=arguments[0];return lt(c)?c:[c]}function z4(c){return Kr(c,m)}function U4(c,f){return f=typeof f=="function"?f:e,Kr(c,m,f)}function K4(c){return Kr(c,h|m)}function W4(c,f){return f=typeof f=="function"?f:e,Kr(c,h|m,f)}function H4(c,f){return f==null||rx(c,f,_n(f))}function ds(c,f){return c===f||c!==c&&f!==f}var Y4=sf(Jp),G4=sf(function(c,f){return c>=f}),Xo=cx((function(){return arguments})())?cx:function(c){return rn(c)&&Mt.call(c,"callee")&&!VC.call(c,"callee")},lt=de.isArray,Z4=MC?xr(MC):tO;function fr(c){return c!=null&&gf(c.length)&&!gi(c)}function on(c){return rn(c)&&fr(c)}function J4(c){return c===!0||c===!1||rn(c)&&nr(c)==he}var ao=a3||Dm,V4=IC?xr(IC):nO;function Q4(c){return rn(c)&&c.nodeType===1&&!Yc(c)}function X4(c){if(c==null)return!0;if(fr(c)&&(lt(c)||typeof c=="string"||typeof c.splice=="function"||ao(c)||Aa(c)||Xo(c)))return!c.length;var f=Zn(c);if(f==we||f==Ve)return!c.size;if(Wc(c))return!Xp(c).length;for(var w in c)if(Mt.call(c,w))return!1;return!0}function q4(c,f){return zc(c,f)}function $4(c,f,w){w=typeof w=="function"?w:e;var E=w?w(c,f):e;return E===e?zc(c,f,e,w):!!E}function vm(c){if(!rn(c))return!1;var f=nr(c);return f==$||f==pe||typeof c.message=="string"&&typeof c.name=="string"&&!Yc(c)}function ej(c){return typeof c=="number"&&XC(c)}function gi(c){if(!qt(c))return!1;var f=nr(c);return f==le||f==Se||f==se||f==et}function Av(c){return typeof c=="number"&&c==ut(c)}function gf(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=W}function qt(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function rn(c){return c!=null&&typeof c=="object"}var yv=LC?xr(LC):sO;function tj(c,f){return c===f||Qp(c,f,hm(f))}function nj(c,f,w){return w=typeof w=="function"?w:e,Qp(c,f,hm(f),w)}function rj(c){return bv(c)&&c!=+c}function sj(c){if(UO(c))throw new st(i);return ux(c)}function ij(c){return c===null}function oj(c){return c==null}function bv(c){return typeof c=="number"||rn(c)&&nr(c)==Oe}function Yc(c){if(!rn(c)||nr(c)!=ke)return!1;var f=zd(c);if(f===null)return!0;var w=Mt.call(f,"constructor")&&f.constructor;return typeof w=="function"&&w instanceof w&&jd.call(w)==n3}var Sm=DC?xr(DC):iO;function lj(c){return Av(c)&&c>=-W&&c<=W}var wv=OC?xr(OC):oO;function pf(c){return typeof c=="string"||!lt(c)&&rn(c)&&nr(c)==Ft}function Sr(c){return typeof c=="symbol"||rn(c)&&nr(c)==Re}var Aa=RC?xr(RC):lO;function aj(c){return c===e}function cj(c){return rn(c)&&Zn(c)==nt}function uj(c){return rn(c)&&nr(c)==ye}var dj=sf(qp),fj=sf(function(c,f){return c<=f});function Cv(c){if(!c)return[];if(fr(c))return pf(c)?cs(c):dr(c);if(Lc&&c[Lc])return HD(c[Lc]());var f=Zn(c),w=f==we?Fp:f==Ve?Dd:ya;return w(c)}function pi(c){if(!c)return c===0?c:0;if(c=Yr(c),c===oe||c===-oe){var f=c<0?-1:1;return f*Z}return c===c?c:0}function ut(c){var f=pi(c),w=f%1;return f===f?w?f-w:f:0}function xv(c){return c?Zo(ut(c),0,q):0}function Yr(c){if(typeof c=="number")return c;if(Sr(c))return ae;if(qt(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=qt(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=UC(c);var w=ZL.test(c);return w||VL.test(c)?TD(c.slice(2),w?2:8):GL.test(c)?ae:+c}function vv(c){return Ms(c,hr(c))}function hj(c){return c?Zo(ut(c),-W,W):c===0?c:0}function Tt(c){return c==null?"":vr(c)}var gj=ga(function(c,f){if(Wc(f)||fr(f)){Ms(f,_n(f),c);return}for(var w in f)Mt.call(f,w)&&Pc(c,w,f[w])}),Sv=ga(function(c,f){Ms(f,hr(f),c)}),mf=ga(function(c,f,w,E){Ms(f,hr(f),c,E)}),pj=ga(function(c,f,w,E){Ms(f,_n(f),c,E)}),mj=fi(Yp);function Aj(c,f){var w=ha(c);return f==null?w:nx(w,f)}var yj=gt(function(c,f){c=zt(c);var w=-1,E=f.length,O=E>2?f[2]:e;for(O&&rr(f[0],f[1],O)&&(E=1);++w<E;)for(var F=f[w],H=hr(F),V=-1,ne=H.length;++V<ne;){var me=H[V],Ae=c[me];(Ae===e||ds(Ae,ua[me])&&!Mt.call(c,me))&&(c[me]=F[me])}return c}),bj=gt(function(c){return c.push(e,Ux),Cr(Ev,e,c)});function wj(c,f){return PC(c,Qe(f,3),Ns)}function Cj(c,f){return PC(c,Qe(f,3),Zp)}function xj(c,f){return c==null?c:Gp(c,Qe(f,3),hr)}function vj(c,f){return c==null?c:lx(c,Qe(f,3),hr)}function Sj(c,f){return c&&Ns(c,Qe(f,3))}function Ej(c,f){return c&&Zp(c,Qe(f,3))}function kj(c){return c==null?[]:Qd(c,_n(c))}function Tj(c){return c==null?[]:Qd(c,hr(c))}function Em(c,f,w){var E=c==null?e:Jo(c,f);return E===e?w:E}function _j(c,f){return c!=null&&Hx(c,f,X3)}function km(c,f){return c!=null&&Hx(c,f,q3)}var Nj=jx(function(c,f,w){f!=null&&typeof f.toString!="function"&&(f=Pd.call(f)),c[f]=w},_m(gr)),Mj=jx(function(c,f,w){f!=null&&typeof f.toString!="function"&&(f=Pd.call(f)),Mt.call(c,f)?c[f].push(w):c[f]=[w]},Qe),Ij=gt(Fc);function _n(c){return fr(c)?ex(c):Xp(c)}function hr(c){return fr(c)?ex(c,!0):aO(c)}function Lj(c,f){var w={};return f=Qe(f,3),Ns(c,function(E,O,F){ui(w,f(E,O,F),E)}),w}function Dj(c,f){var w={};return f=Qe(f,3),Ns(c,function(E,O,F){ui(w,O,f(E,O,F))}),w}var Oj=ga(function(c,f,w){Xd(c,f,w)}),Ev=ga(function(c,f,w,E){Xd(c,f,w,E)}),Rj=fi(function(c,f){var w={};if(c==null)return w;var E=!1;f=Qt(f,function(F){return F=oo(F,c),E||(E=F.length>1),F}),Ms(c,dm(c),w),E&&(w=Kr(w,h|g|m,NO));for(var O=f.length;O--;)rm(w,f[O]);return w});function jj(c,f){return kv(c,hf(Qe(f)))}var Pj=fi(function(c,f){return c==null?{}:uO(c,f)});function kv(c,f){if(c==null)return{};var w=Qt(dm(c),function(E){return[E]});return f=Qe(f),Ax(c,w,function(E,O){return f(E,O[0])})}function Bj(c,f,w){f=oo(f,c);var E=-1,O=f.length;for(O||(O=1,c=e);++E<O;){var F=c==null?e:c[Is(f[E])];F===e&&(E=O,F=w),c=gi(F)?F.call(c):F}return c}function Fj(c,f,w){return c==null?c:Uc(c,f,w)}function zj(c,f,w,E){return E=typeof E=="function"?E:e,c==null?c:Uc(c,f,w,E)}var Tv=Fx(_n),_v=Fx(hr);function Uj(c,f,w){var E=lt(c),O=E||ao(c)||Aa(c);if(f=Qe(f,4),w==null){var F=c&&c.constructor;O?w=E?new F:[]:qt(c)?w=gi(F)?ha(zd(c)):{}:w={}}return(O?Fr:Ns)(c,function(H,V,ne){return f(w,H,V,ne)}),w}function Kj(c,f){return c==null?!0:rm(c,f)}function Wj(c,f,w){return c==null?c:xx(c,f,om(w))}function Hj(c,f,w,E){return E=typeof E=="function"?E:e,c==null?c:xx(c,f,om(w),E)}function ya(c){return c==null?[]:Bp(c,_n(c))}function Yj(c){return c==null?[]:Bp(c,hr(c))}function Gj(c,f,w){return w===e&&(w=f,f=e),w!==e&&(w=Yr(w),w=w===w?w:0),f!==e&&(f=Yr(f),f=f===f?f:0),Zo(Yr(c),f,w)}function Zj(c,f,w){return f=pi(f),w===e?(w=f,f=0):w=pi(w),c=Yr(c),$3(c,f,w)}function Jj(c,f,w){if(w&&typeof w!="boolean"&&rr(c,f,w)&&(f=w=e),w===e&&(typeof f=="boolean"?(w=f,f=e):typeof c=="boolean"&&(w=c,c=e)),c===e&&f===e?(c=0,f=1):(c=pi(c),f===e?(f=c,c=0):f=pi(f)),c>f){var E=c;c=f,f=E}if(w||c%1||f%1){var O=qC();return Gn(c+O*(f-c+kD("1e-"+((O+"").length-1))),f)}return em(c,f)}var Vj=pa(function(c,f,w){return f=f.toLowerCase(),c+(w?Nv(f):f)});function Nv(c){return Tm(Tt(c).toLowerCase())}function Mv(c){return c=Tt(c),c&&c.replace(XL,FD).replace(mD,"")}function Qj(c,f,w){c=Tt(c),f=vr(f);var E=c.length;w=w===e?E:Zo(ut(w),0,E);var O=w;return w-=f.length,w>=0&&c.slice(w,O)==f}function Xj(c){return c=Tt(c),c&&IL.test(c)?c.replace(lC,zD):c}function qj(c){return c=Tt(c),c&&PL.test(c)?c.replace(xp,"\\$&"):c}var $j=pa(function(c,f,w){return c+(w?"-":"")+f.toLowerCase()}),e6=pa(function(c,f,w){return c+(w?" ":"")+f.toLowerCase()}),t6=Dx("toLowerCase");function n6(c,f,w){c=Tt(c),f=ut(f);var E=f?aa(c):0;if(!f||E>=f)return c;var O=(f-E)/2;return rf(Hd(O),w)+c+rf(Wd(O),w)}function r6(c,f,w){c=Tt(c),f=ut(f);var E=f?aa(c):0;return f&&E<f?c+rf(f-E,w):c}function s6(c,f,w){c=Tt(c),f=ut(f);var E=f?aa(c):0;return f&&E<f?rf(f-E,w)+c:c}function i6(c,f,w){return w||f==null?f=0:f&&(f=+f),f3(Tt(c).replace(vp,""),f||0)}function o6(c,f,w){return(w?rr(c,f,w):f===e)?f=1:f=ut(f),tm(Tt(c),f)}function l6(){var c=arguments,f=Tt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var a6=pa(function(c,f,w){return c+(w?"_":"")+f.toLowerCase()});function c6(c,f,w){return w&&typeof w!="number"&&rr(c,f,w)&&(f=w=e),w=w===e?q:w>>>0,w?(c=Tt(c),c&&(typeof f=="string"||f!=null&&!Sm(f))&&(f=vr(f),!f&&la(c))?lo(cs(c),0,w):c.split(f,w)):[]}var u6=pa(function(c,f,w){return c+(w?" ":"")+Tm(f)});function d6(c,f,w){return c=Tt(c),w=w==null?0:Zo(ut(w),0,c.length),f=vr(f),c.slice(w,w+f.length)==f}function f6(c,f,w){var E=P.templateSettings;w&&rr(c,f,w)&&(f=e),c=Tt(c),f=mf({},f,E,zx);var O=mf({},f.imports,E.imports,zx),F=_n(O),H=Bp(O,F),V,ne,me=0,Ae=f.interpolate||_d,be="__p += '",Ie=zp((f.escape||_d).source+"|"+Ae.source+"|"+(Ae===aC?YL:_d).source+"|"+(f.evaluate||_d).source+"|$","g"),We="//# sourceURL="+(Mt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++CD+"]")+`
|
|
82
|
-
`;c.replace(Ie,function(qe,yt,wt,Er,sr,kr){return wt||(wt=Er),be+=c.slice(me,kr).replace(qL,UD),yt&&(V=!0,be+=`' +
|
|
83
|
-
__e(`+yt+`) +
|
|
84
|
-
'`),sr&&(ne=!0,be+=`';
|
|
85
|
-
`+sr+`;
|
|
86
|
-
__p += '`),wt&&(be+=`' +
|
|
87
|
-
((__t = (`+wt+`)) == null ? '' : __t) +
|
|
88
|
-
'`),me=kr+qe.length,qe}),be+=`';
|
|
89
|
-
`;var Xe=Mt.call(f,"variable")&&f.variable;if(!Xe)be=`with (obj) {
|
|
90
|
-
`+be+`
|
|
91
|
-
}
|
|
92
|
-
`;else if(WL.test(Xe))throw new st(l);be=(ne?be.replace(TL,""):be).replace(_L,"$1").replace(NL,"$1;"),be="function("+(Xe||"obj")+`) {
|
|
93
|
-
`+(Xe?"":`obj || (obj = {});
|
|
94
|
-
`)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(ne?`, __j = Array.prototype.join;
|
|
95
|
-
function print() { __p += __j.call(arguments, '') }
|
|
96
|
-
`:`;
|
|
97
|
-
`)+be+`return __p
|
|
98
|
-
}`;var dt=Lv(function(){return Et(F,We+"return "+be).apply(e,H)});if(dt.source=be,vm(dt))throw dt;return dt}function h6(c){return Tt(c).toLowerCase()}function g6(c){return Tt(c).toUpperCase()}function p6(c,f,w){if(c=Tt(c),c&&(w||f===e))return UC(c);if(!c||!(f=vr(f)))return c;var E=cs(c),O=cs(f),F=KC(E,O),H=WC(E,O)+1;return lo(E,F,H).join("")}function m6(c,f,w){if(c=Tt(c),c&&(w||f===e))return c.slice(0,YC(c)+1);if(!c||!(f=vr(f)))return c;var E=cs(c),O=WC(E,cs(f))+1;return lo(E,0,O).join("")}function A6(c,f,w){if(c=Tt(c),c&&(w||f===e))return c.replace(vp,"");if(!c||!(f=vr(f)))return c;var E=cs(c),O=KC(E,cs(f));return lo(E,O).join("")}function y6(c,f){var w=D,E=j;if(qt(f)){var O="separator"in f?f.separator:O;w="length"in f?ut(f.length):w,E="omission"in f?vr(f.omission):E}c=Tt(c);var F=c.length;if(la(c)){var H=cs(c);F=H.length}if(w>=F)return c;var V=w-aa(E);if(V<1)return E;var ne=H?lo(H,0,V).join(""):c.slice(0,V);if(O===e)return ne+E;if(H&&(V+=ne.length-V),Sm(O)){if(c.slice(V).search(O)){var me,Ae=ne;for(O.global||(O=zp(O.source,Tt(cC.exec(O))+"g")),O.lastIndex=0;me=O.exec(Ae);)var be=me.index;ne=ne.slice(0,be===e?V:be)}}else if(c.indexOf(vr(O),V)!=V){var Ie=ne.lastIndexOf(O);Ie>-1&&(ne=ne.slice(0,Ie))}return ne+E}function b6(c){return c=Tt(c),c&&ML.test(c)?c.replace(oC,JD):c}var w6=pa(function(c,f,w){return c+(w?" ":"")+f.toUpperCase()}),Tm=Dx("toUpperCase");function Iv(c,f,w){return c=Tt(c),f=w?e:f,f===e?WD(c)?XD(c):OD(c):c.match(f)||[]}var Lv=gt(function(c,f){try{return Cr(c,e,f)}catch(w){return vm(w)?w:new st(w)}}),C6=fi(function(c,f){return Fr(f,function(w){w=Is(w),ui(c,w,Cm(c[w],c))}),c});function x6(c){var f=c==null?0:c.length,w=Qe();return c=f?Qt(c,function(E){if(typeof E[1]!="function")throw new zr(o);return[w(E[0]),E[1]]}):[],gt(function(E){for(var O=-1;++O<f;){var F=c[O];if(Cr(F[0],this,E))return Cr(F[1],this,E)}})}function v6(c){return J3(Kr(c,h))}function _m(c){return function(){return c}}function S6(c,f){return c==null||c!==c?f:c}var E6=Rx(),k6=Rx(!0);function gr(c){return c}function Nm(c){return dx(typeof c=="function"?c:Kr(c,h))}function T6(c){return hx(Kr(c,h))}function _6(c,f){return gx(c,Kr(f,h))}var N6=gt(function(c,f){return function(w){return Fc(w,c,f)}}),M6=gt(function(c,f){return function(w){return Fc(c,w,f)}});function Mm(c,f,w){var E=_n(f),O=Qd(f,E);w==null&&!(qt(f)&&(O.length||!E.length))&&(w=f,f=c,c=this,O=Qd(f,_n(f)));var F=!(qt(w)&&"chain"in w)||!!w.chain,H=gi(c);return Fr(O,function(V){var ne=f[V];c[V]=ne,H&&(c.prototype[V]=function(){var me=this.__chain__;if(F||me){var Ae=c(this.__wrapped__),be=Ae.__actions__=dr(this.__actions__);return be.push({func:ne,args:arguments,thisArg:c}),Ae.__chain__=me,Ae}return ne.apply(c,to([this.value()],arguments))})}),c}function I6(){return Bn._===this&&(Bn._=r3),this}function Im(){}function L6(c){return c=ut(c),gt(function(f){return px(f,c)})}var D6=am(Qt),O6=am(jC),R6=am(Dp);function Dv(c){return pm(c)?Op(Is(c)):dO(c)}function j6(c){return function(f){return c==null?e:Jo(c,f)}}var P6=Px(),B6=Px(!0);function Lm(){return[]}function Dm(){return!1}function F6(){return{}}function z6(){return""}function U6(){return!0}function K6(c,f){if(c=ut(c),c<1||c>W)return[];var w=q,E=Gn(c,q);f=Qe(f),c-=q;for(var O=Pp(E,f);++w<c;)f(w);return O}function W6(c){return lt(c)?Qt(c,Is):Sr(c)?[c]:dr($x(Tt(c)))}function H6(c){var f=++t3;return Tt(c)+f}var Y6=nf(function(c,f){return c+f},0),G6=cm("ceil"),Z6=nf(function(c,f){return c/f},1),J6=cm("floor");function V6(c){return c&&c.length?Vd(c,gr,Jp):e}function Q6(c,f){return c&&c.length?Vd(c,Qe(f,2),Jp):e}function X6(c){return FC(c,gr)}function q6(c,f){return FC(c,Qe(f,2))}function $6(c){return c&&c.length?Vd(c,gr,qp):e}function eP(c,f){return c&&c.length?Vd(c,Qe(f,2),qp):e}var tP=nf(function(c,f){return c*f},1),nP=cm("round"),rP=nf(function(c,f){return c-f},0);function sP(c){return c&&c.length?jp(c,gr):0}function iP(c,f){return c&&c.length?jp(c,Qe(f,2)):0}return P.after=T4,P.ary=uv,P.assign=gj,P.assignIn=Sv,P.assignInWith=mf,P.assignWith=pj,P.at=mj,P.before=dv,P.bind=Cm,P.bindAll=C6,P.bindKey=fv,P.castArray=F4,P.chain=lv,P.chunk=JO,P.compact=VO,P.concat=QO,P.cond=x6,P.conforms=v6,P.constant=_m,P.countBy=s4,P.create=Aj,P.curry=hv,P.curryRight=gv,P.debounce=pv,P.defaults=yj,P.defaultsDeep=bj,P.defer=_4,P.delay=N4,P.difference=XO,P.differenceBy=qO,P.differenceWith=$O,P.drop=eR,P.dropRight=tR,P.dropRightWhile=nR,P.dropWhile=rR,P.fill=sR,P.filter=o4,P.flatMap=c4,P.flatMapDeep=u4,P.flatMapDepth=d4,P.flatten=rv,P.flattenDeep=iR,P.flattenDepth=oR,P.flip=M4,P.flow=E6,P.flowRight=k6,P.fromPairs=lR,P.functions=kj,P.functionsIn=Tj,P.groupBy=f4,P.initial=cR,P.intersection=uR,P.intersectionBy=dR,P.intersectionWith=fR,P.invert=Nj,P.invertBy=Mj,P.invokeMap=g4,P.iteratee=Nm,P.keyBy=p4,P.keys=_n,P.keysIn=hr,P.map=uf,P.mapKeys=Lj,P.mapValues=Dj,P.matches=T6,P.matchesProperty=_6,P.memoize=ff,P.merge=Oj,P.mergeWith=Ev,P.method=N6,P.methodOf=M6,P.mixin=Mm,P.negate=hf,P.nthArg=L6,P.omit=Rj,P.omitBy=jj,P.once=I4,P.orderBy=m4,P.over=D6,P.overArgs=L4,P.overEvery=O6,P.overSome=R6,P.partial=xm,P.partialRight=mv,P.partition=A4,P.pick=Pj,P.pickBy=kv,P.property=Dv,P.propertyOf=j6,P.pull=mR,P.pullAll=iv,P.pullAllBy=AR,P.pullAllWith=yR,P.pullAt=bR,P.range=P6,P.rangeRight=B6,P.rearg=D4,P.reject=w4,P.remove=wR,P.rest=O4,P.reverse=bm,P.sampleSize=x4,P.set=Fj,P.setWith=zj,P.shuffle=v4,P.slice=CR,P.sortBy=k4,P.sortedUniq=_R,P.sortedUniqBy=NR,P.split=c6,P.spread=R4,P.tail=MR,P.take=IR,P.takeRight=LR,P.takeRightWhile=DR,P.takeWhile=OR,P.tap=VR,P.throttle=j4,P.thru=cf,P.toArray=Cv,P.toPairs=Tv,P.toPairsIn=_v,P.toPath=W6,P.toPlainObject=vv,P.transform=Uj,P.unary=P4,P.union=RR,P.unionBy=jR,P.unionWith=PR,P.uniq=BR,P.uniqBy=FR,P.uniqWith=zR,P.unset=Kj,P.unzip=wm,P.unzipWith=ov,P.update=Wj,P.updateWith=Hj,P.values=ya,P.valuesIn=Yj,P.without=UR,P.words=Iv,P.wrap=B4,P.xor=KR,P.xorBy=WR,P.xorWith=HR,P.zip=YR,P.zipObject=GR,P.zipObjectDeep=ZR,P.zipWith=JR,P.entries=Tv,P.entriesIn=_v,P.extend=Sv,P.extendWith=mf,Mm(P,P),P.add=Y6,P.attempt=Lv,P.camelCase=Vj,P.capitalize=Nv,P.ceil=G6,P.clamp=Gj,P.clone=z4,P.cloneDeep=K4,P.cloneDeepWith=W4,P.cloneWith=U4,P.conformsTo=H4,P.deburr=Mv,P.defaultTo=S6,P.divide=Z6,P.endsWith=Qj,P.eq=ds,P.escape=Xj,P.escapeRegExp=qj,P.every=i4,P.find=l4,P.findIndex=tv,P.findKey=wj,P.findLast=a4,P.findLastIndex=nv,P.findLastKey=Cj,P.floor=J6,P.forEach=av,P.forEachRight=cv,P.forIn=xj,P.forInRight=vj,P.forOwn=Sj,P.forOwnRight=Ej,P.get=Em,P.gt=Y4,P.gte=G4,P.has=_j,P.hasIn=km,P.head=sv,P.identity=gr,P.includes=h4,P.indexOf=aR,P.inRange=Zj,P.invoke=Ij,P.isArguments=Xo,P.isArray=lt,P.isArrayBuffer=Z4,P.isArrayLike=fr,P.isArrayLikeObject=on,P.isBoolean=J4,P.isBuffer=ao,P.isDate=V4,P.isElement=Q4,P.isEmpty=X4,P.isEqual=q4,P.isEqualWith=$4,P.isError=vm,P.isFinite=ej,P.isFunction=gi,P.isInteger=Av,P.isLength=gf,P.isMap=yv,P.isMatch=tj,P.isMatchWith=nj,P.isNaN=rj,P.isNative=sj,P.isNil=oj,P.isNull=ij,P.isNumber=bv,P.isObject=qt,P.isObjectLike=rn,P.isPlainObject=Yc,P.isRegExp=Sm,P.isSafeInteger=lj,P.isSet=wv,P.isString=pf,P.isSymbol=Sr,P.isTypedArray=Aa,P.isUndefined=aj,P.isWeakMap=cj,P.isWeakSet=uj,P.join=hR,P.kebabCase=$j,P.last=Hr,P.lastIndexOf=gR,P.lowerCase=e6,P.lowerFirst=t6,P.lt=dj,P.lte=fj,P.max=V6,P.maxBy=Q6,P.mean=X6,P.meanBy=q6,P.min=$6,P.minBy=eP,P.stubArray=Lm,P.stubFalse=Dm,P.stubObject=F6,P.stubString=z6,P.stubTrue=U6,P.multiply=tP,P.nth=pR,P.noConflict=I6,P.noop=Im,P.now=df,P.pad=n6,P.padEnd=r6,P.padStart=s6,P.parseInt=i6,P.random=Jj,P.reduce=y4,P.reduceRight=b4,P.repeat=o6,P.replace=l6,P.result=Bj,P.round=nP,P.runInContext=ee,P.sample=C4,P.size=S4,P.snakeCase=a6,P.some=E4,P.sortedIndex=xR,P.sortedIndexBy=vR,P.sortedIndexOf=SR,P.sortedLastIndex=ER,P.sortedLastIndexBy=kR,P.sortedLastIndexOf=TR,P.startCase=u6,P.startsWith=d6,P.subtract=rP,P.sum=sP,P.sumBy=iP,P.template=f6,P.times=K6,P.toFinite=pi,P.toInteger=ut,P.toLength=xv,P.toLower=h6,P.toNumber=Yr,P.toSafeInteger=hj,P.toString=Tt,P.toUpper=g6,P.trim=p6,P.trimEnd=m6,P.trimStart=A6,P.truncate=y6,P.unescape=b6,P.uniqueId=H6,P.upperCase=w6,P.upperFirst=Tm,P.each=av,P.eachRight=cv,P.first=sv,Mm(P,(function(){var c={};return Ns(P,function(f,w){Mt.call(P.prototype,w)||(c[w]=f)}),c})(),{chain:!1}),P.VERSION=r,Fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Fr(["drop","take"],function(c,f){bt.prototype[c]=function(w){w=w===e?1:xn(ut(w),0);var E=this.__filtered__&&!f?new bt(this):this.clone();return E.__filtered__?E.__takeCount__=Gn(w,E.__takeCount__):E.__views__.push({size:Gn(w,q),type:c+(E.__dir__<0?"Right":"")}),E},bt.prototype[c+"Right"]=function(w){return this.reverse()[c](w).reverse()}}),Fr(["filter","map","takeWhile"],function(c,f){var w=f+1,E=w==z||w==ce;bt.prototype[c]=function(O){var F=this.clone();return F.__iteratees__.push({iteratee:Qe(O,3),type:w}),F.__filtered__=F.__filtered__||E,F}}),Fr(["head","last"],function(c,f){var w="take"+(f?"Right":"");bt.prototype[c]=function(){return this[w](1).value()[0]}}),Fr(["initial","tail"],function(c,f){var w="drop"+(f?"":"Right");bt.prototype[c]=function(){return this.__filtered__?new bt(this):this[w](1)}}),bt.prototype.compact=function(){return this.filter(gr)},bt.prototype.find=function(c){return this.filter(c).head()},bt.prototype.findLast=function(c){return this.reverse().find(c)},bt.prototype.invokeMap=gt(function(c,f){return typeof c=="function"?new bt(this):this.map(function(w){return Fc(w,c,f)})}),bt.prototype.reject=function(c){return this.filter(hf(Qe(c)))},bt.prototype.slice=function(c,f){c=ut(c);var w=this;return w.__filtered__&&(c>0||f<0)?new bt(w):(c<0?w=w.takeRight(-c):c&&(w=w.drop(c)),f!==e&&(f=ut(f),w=f<0?w.dropRight(-f):w.take(f-c)),w)},bt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},bt.prototype.toArray=function(){return this.take(q)},Ns(bt.prototype,function(c,f){var w=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),O=P[E?"take"+(f=="last"?"Right":""):f],F=E||/^find/.test(f);O&&(P.prototype[f]=function(){var H=this.__wrapped__,V=E?[1]:arguments,ne=H instanceof bt,me=V[0],Ae=ne||lt(H),be=function(yt){var wt=O.apply(P,to([yt],V));return E&&Ie?wt[0]:wt};Ae&&w&&typeof me=="function"&&me.length!=1&&(ne=Ae=!1);var Ie=this.__chain__,We=!!this.__actions__.length,Xe=F&&!Ie,dt=ne&&!We;if(!F&&Ae){H=dt?H:new bt(this);var qe=c.apply(H,V);return qe.__actions__.push({func:cf,args:[be],thisArg:e}),new Ur(qe,Ie)}return Xe&&dt?c.apply(this,V):(qe=this.thru(be),Xe?E?qe.value()[0]:qe.value():qe)})}),Fr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Od[c],w=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",E=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var O=arguments;if(E&&!this.__chain__){var F=this.value();return f.apply(lt(F)?F:[],O)}return this[w](function(H){return f.apply(lt(H)?H:[],O)})}}),Ns(bt.prototype,function(c,f){var w=P[f];if(w){var E=w.name+"";Mt.call(fa,E)||(fa[E]=[]),fa[E].push({name:f,func:w})}}),fa[tf(e,v).name]=[{name:"wrapper",func:e}],bt.prototype.clone=b3,bt.prototype.reverse=w3,bt.prototype.value=C3,P.prototype.at=QR,P.prototype.chain=XR,P.prototype.commit=qR,P.prototype.next=$R,P.prototype.plant=t4,P.prototype.reverse=n4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=r4,P.prototype.first=P.prototype.head,Lc&&(P.prototype[Lc]=e4),P}),ca=qD();Wo?((Wo.exports=ca)._=ca,Np._=ca):Bn._=ca}).call(BJ)})(ou,ou.exports)),ou.exports}var zJ=FJ();function UJ(n){if(!n)return window;let t=n;for(;t;){if(t===document.body||t===document.documentElement)return window;const r=getComputedStyle(t).overflowY;if((r==="auto"||r==="scroll"||r==="overlay")&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}function KJ(n,t){let e=150;const{clientY:r}=n;if(t===window){const s=window.innerHeight;r<e?window.scrollBy(0,Math.max(-15,(r-e)/15)):r>s-e&&window.scrollBy(0,Math.min(15,(r-(s-e))/15))}else{e=100;const s=t.getBoundingClientRect();r<s.top+e?t.scrollTop-=5:r>s.bottom-e&&(t.scrollTop+=5)}}const WJ=zJ.throttle((n,t)=>{n.preventDefault(),KJ(n,t)},16);let Uf=null;function HJ(n){return n?n.classList.contains("dsd__theme__table-scrollable-wrapper")?n.firstElementChild:n:null}function YJ(n,t,e){const r=x.useRef(null),s=x.useRef(null),i=x.useRef(!1),o=x.useRef(!1),l=x.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),a=x.useRef(null),[u,d]=x.useState(null),{disable:h}=x.useContext(Pt),[g,m]=x.useState(!1),[A,y]=x.useState({opened:!1}),[b,v]=x.useState(""),[C,S]=x.useState(null),[k,_]=x.useState(!1),[T,N]=x.useState({left:!1,right:!1}),[M,I]=x.useState(null),{t:D}=Je.useTranslation(),j=ep(K=>{const Y=K.target;o.current||zf(Y)&&(IZ(Y)||n.read(()=>{var he;const te=Y.className.includes("content-editable-wrapper"),ue=te?Ue():He(Y),{htmlElement:re,lexicalNode:se}=IE(ue,n,{root:!0,"layout-container":!0,"layout-item":!0,callout:!0,"collapsible-content":!0},K);if((se==null?void 0:se.__type)==="callout"||(se==null?void 0:se.__type)==="callout-image"||((he=se==null?void 0:se.getParent())==null?void 0:he.__type)==="callout"&&(se==null?void 0:se.getPreviousSibling())===null){d(null);return}if(!(te&&se instanceof ks||te&&!se)&&se!=null&&se.__key){if(se.__type==="layout-container"||se.__type==="layout-item"||se.__type==="collapsible-content"){d(null);return}re&&(l.current.htmlElement=re,l.current.lexicalNode=se),(se==null?void 0:se.__type)==="collapsible-title"&&(l.current.htmlElement=(re==null?void 0:re.parentElement)||re,l.current.lexicalNode=se.getParent()),S(null),d(l.current.htmlElement)}}))},20,50);x.useEffect(()=>()=>{Uf=null},[]),x.useEffect(()=>{function K(){o.current||d(null)}function Y(ue){if(!i.current)return!1;const[re]=Ra(ue);if(re)return!1;const{target:se,dataTransfer:he}=ue,xe=(he==null?void 0:he.getData(yk))||"";n.update(()=>{var _e;let pe=Te(xe);if(!pe||!(zf(se)||se.closest(".resizable-container")))return!1;const{htmlElement:$,lexicalNode:le,isBottom:Se}=l.current;let we=le,Oe=null;if(we!=null&&we.__key&&(Oe=$),!Oe||!we)return!1;if(we===pe)return!0;if(s.current&&kZ(s.current,n,we,pe))return!1;if(pe.__type==="layout-divider"){if(pe=pe.getParent(),le&&(pe!=null&&pe.isParentOf(le)))return!1;RI(n,pe)}if(pe.getParent()instanceof Rr&&((_e=pe.getParent())==null?void 0:_e.getChildren().length)===2){const et=pe.getParent(),mt=et.getParent();uc(n,et,mt)}if($!=null&&$.classList.contains("selected-block"))return;let Ke;const ke=n._rootElement;Se?Ke=Array.from(ke.querySelectorAll(".selected-block")).reverse():Ke=Array.from(ke.querySelectorAll(".selected-block")),Ke.length?Ke.forEach(et=>{let mt=He(et);Se?we==null||we.insertAfter(mt):we==null||we.insertBefore(mt)}):Se?we.insertAfter(pe):we.insertBefore(pe),d(null)})}function te(ue){const{target:re}=ue;zf(re)&&re.className==="ContentEditable__root"&&vk(s.current)}return t==null||t.addEventListener("mousemove",j),t==null||t.addEventListener("drop",Y),t==null||t.addEventListener("mouseleave",K),t==null||t.addEventListener("dragleave",te),()=>{t==null||t.removeEventListener("mousemove",j),t==null||t.addEventListener("drop",Y),t==null||t.removeEventListener("mouseleave",K),t==null||t.removeEventListener("dragleave",te)}},[t,n]),x.useEffect(()=>{if(r.current){if(o.current||A.opened)return;Ck(u,r.current,t,A.opened)}},[t,u,o.current,A.opened]),x.useEffect(()=>{function K(Y){var Se,we;const{clientY:te,target:ue,pageX:re}=Y;if(!i.current)return!1;const[se]=Ra(Y);if(se||!zf(ue))return!1;const he=He(ue)||Ue(),{htmlElement:xe,lexicalNode:pe}=IE(he,n,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},Y);if(Y.preventDefault(),(pe==null?void 0:pe.__type)==="callout"||(pe==null?void 0:pe.__type)==="collapsible-content"||jI(a.current,pe==null?void 0:pe.getParent())||(pe==null?void 0:pe.__type)==="layout-item"&&he.__type!=="root")return!1;xe&&(l.current.htmlElement=xe,l.current.lexicalNode=pe);let $=null;$=l.current.htmlElement||xe,$!=null&&$.closest(".dsd__theme__layoutContainer")&&he.__type==="root"&&pe&&((pe==null?void 0:pe.__type)==="layout-item"&&he.__type==="root"?($=$==null?void 0:$.parentElement,l.current.htmlElement=$,l.current.lexicalNode=pe==null?void 0:pe.getParent()):($=(Se=$.parentElement)==null?void 0:Se.parentElement,l.current.htmlElement=$,l.current.lexicalNode=(we=pe.getParent())==null?void 0:we.getParent()));const le=s.current;return!$&&le?(le.style.background="transparent",!1):$===null||le===null||$!=null&&$.classList.contains("selected-block")?!1:(DZ(le,$,te,re,t,Y,l),!0)}return ct(n.registerCommand(ji,Y=>Y==="hide_menu"?(NZ(r.current),setTimeout(()=>{o.current=!0},0),!1):Y==="show_menu"?(o.current=!1,!1):(Y===!0&&!o.current&&d(null),o.current=!1,!1),De),n.registerCommand(BM,Y=>((Y==null?void 0:Y.target)instanceof HTMLElement&&r.current instanceof HTMLElement&&(G(Y,!0),Ck(Y.target,r.current,t,A.opened)),!1),De),n.registerCommand(jy,Y=>(Uf||(Uf=UJ(Y.target)),WJ(Y,Uf),K(Y)),De),n.registerCommand(Eo,()=>(n.dispatchCommand(ji,!0),!1),De),n.registerCommand(Xs,()=>(n.dispatchCommand(ji,!0),!1),De))},[t,n]);function B(K){var se;const Y=K.dataTransfer;(se=s.current)==null||se.setAttribute("data-index-start","");const te=u||l.current.htmlElement;if(!Y||!te)return;const ue=n._rootElement;if(te!=null&&te.classList.contains("selected-block")){const he=n._rootElement,xe=Array.from(he.querySelectorAll(".selected-block"));LZ(K.dataTransfer,xe)}else wA(ue),te.className.includes("_layoutDivider")&&te.parentElement?xk(Y,te.parentElement):xk(Y,te);let re="";n.read(()=>{var xe,pe;const he=He(te);if(he&&(re=he.getKey()),he instanceof ks){const $=Vu((xe=te.parentElement)==null?void 0:xe.parentElement,te.parentElement);(pe=s.current)==null||pe.setAttribute("data-index-start",$.toString())}}),r.current&&(m(!0),r.current.style.opacity="0"),i.current=!0,a.current=re,Y.setData(yk,re)}function R(){i.current=!1,vk(s.current),m(!1)}if(h)return p.jsx("div",{});function z(){var te;const K=l.current.htmlElement,Y=(te=K==null?void 0:K.parentElement)==null?void 0:te.parentElement;if(Y!=null&&Y.classList.contains("dsd__theme__layoutContainer")&&(Y.children.length===4?_(!0):_(!1),K!=null&&K.parentElement)){const ue=Vu(Y,K==null?void 0:K.parentElement);ue?ue===Y.children.length-1?N({left:!1,right:!0}):N({left:!1,right:!1}):N({left:!0,right:!1})}}function G(K,Y=!1){o.current=!0;const te=HJ((K==null?void 0:K.target)??l.current.htmlElement);if(!te)return;const ue=n._rootElement;z(),te.classList.contains("selected-block")||wA(ue),n.update(()=>{const se=Q(),xe=((se==null?void 0:se.getNodes())??[]).filter(ke=>!fe(ke)&&ke.__parent==="root"),pe=xe.map(ke=>{const _e=n.getElementByKey(ke.getKey());return ke.getType()==="table"?_e==null?void 0:_e.firstElementChild:_e}).filter(ke=>ke!==null),$=xe.length&&pe.includes(te)?pe:[te];if($.length===1){const ke=He(te);if(!ke)return;Y||(X(ke)?ke.select(0):ke.selectStart()),I(ke)}else I(null);const le=document.querySelector(".selected-all-document"),Se=!!le;Se||$.forEach(ke=>{tw(n,{block:ke,isCreateEventListener:!1})});const Oe=Array.from(Se?le.children:document.querySelectorAll(".selected-block")).reduce((ke,_e)=>{const et=He(_e);return et&&ke.push(et),ke},[]),Ke=Oe.length>0&&Oe.every(ke=>Hi(ke)||St(ke)||Ir(ke)?!1:X(ke)||fe(ke));v(Ke?"text":"block")}),GI();const re=Number(K==null?void 0:K.y)+240>window.innerHeight?Number(K==null?void 0:K.y)-200:K==null?void 0:K.y;y({opened:!0,x:(K==null?void 0:K.x)??0,y:re??0}),n.dispatchCommand(J0,!0)}const ce=()=>{n.update(()=>{const K=Gt();if(o.current=!1,y(Y=>({opened:!1,x:Y.x,y:Y.y})),(K==null?void 0:K.__key)==="root"){const Y=Me();K.append(Y)}rt(null)})},oe=e?"hide-add-button":"",W=A.x!==0?{position:"fixed",top:0,left:0,transform:`translate(${A.x}px, ${A.y}px)`}:{},Z=()=>{var K;ce(),ZI(),wA(n._rootElement),(K=n._rootElement)==null||K.classList.remove("selected-all-document")},ae=(K=!1)=>{K?n.update(()=>{const Y=Q();let te=null,ue=null;J(Y)&&(ue=Y.anchor.getNode(),te=ue.getParent()),Z(),setTimeout(()=>{n.update(()=>{(te==null?void 0:te.__type)==="root"?ue==null||ue.selectEnd():te==null||te.selectEnd()})},100)}):setTimeout(()=>{Z()},100)},q=x.useCallback(K=>{const Y=document.querySelector(".draggable-menu");if(!A&&K.button!==2)return;const te=K.target;if(te.closest(".mantine-Menu-dropdown"))return;!((Y==null?void 0:Y.contains(te))&&te.closest("div.custom-menu-item"))&&K.button!==2&&A.opened&&(K.stopPropagation(),K.preventDefault())},[n,A]);return x.useEffect(()=>(A.opened?document.addEventListener("mousedown",q):document.removeEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}),[A.opened,q]),Dr.createPortal(p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:`draggable-block-container ${oe} ${u?"visible":""}`,ref:r,onMouseEnter:()=>{var K;A||S("both"),(K=r.current)!=null&&K.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{S(null)},children:[p.jsx(LJ,{hoveredButton:C,insertNewParagraph:wk,currentDraggableBlockRef:l,setHoveredButton:S,isClickedBlockRef:o,setDraggableBlockElem:d,editor:n,t:D}),p.jsxs(L.Menu,{onOpen:G,opened:A.opened,styles:{dropdown:W},position:"left-start",width:320,shadow:"md",withinPortal:!0,onClose:()=>{ae()},transitionProps:oi,children:[p.jsx(L.Menu.Target,{children:p.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:B,onDragEnd:R,children:p.jsx(L.Tooltip,{openDelay:300,multiline:!0,disabled:g||o.current,label:p.jsxs(p.Fragment,{children:[p.jsxs("span",{children:[p.jsx("strong",{children:D("editor.hoverOptions.drag")}),","," ",D("editor.hoverOptions.dragAction")]}),p.jsx("br",{}),p.jsxs("span",{children:[p.jsx("strong",{children:D("editor.hoverOptions.click")}),","," ",D("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:p.jsx(L.ActionIcon,{radius:"sm",color:"gray",size:"sm",variant:"subtle","aria-label":"Settings",children:p.jsx(ie.IconGripVertical,{size:20})})})})}),p.jsx(IJ,{hoveredButton:C,insertNewParagraph:wk,currentDraggableBlockRef:l,setHoveredButton:S,isClickedBlockRef:o,setDraggableBlockElem:d,editor:n,t:D}),p.jsx(L.Menu.Dropdown,{className:"draggable-menu",children:p.jsx(PJ,{onChange:()=>{ae(!0),Zh(n)},t:D,textBlock:b,currentEditorNode:M,editor:n,isDisabledAddColumnButton:k,disabledMoveColumnButtons:T})})]})]}),p.jsx("div",{className:"draggable-block-target-line",ref:s})]}),t)}function GJ({anchorElem:n=document.body,isShowAddButton:t=!1}){const[e]=je();return YJ(e,n,t)}const QI=/(^|\s):([a-z0-9_+-]+)$/i,ZJ=/(^|\s)(:\)|:-\)|:d|:-d|;\)|;-\)|:\(|:-\(|:\*|<3)$/i,JJ=/(^|\s):$/,VJ=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Escape","Enter","Tab"]);function QJ(n,t){return{leadOffset:t.index+t[1].length,matchingString:"",replaceableString:":"}}const XJ=n=>VJ.has(n),qJ=n=>n.key.length===1&&!n.ctrlKey&&!n.metaKey&&!n.altKey&&!n.isComposing;function $J(n,t){if(t<=0)return{activate:!1,colonAt:-1,expectAt:-1};const e=n[t-1]??"",r=n[t-2]??"",s=t-2<0;return e===":"&&(s||/\s/.test(r))?{activate:!0,colonAt:t-1,expectAt:t}:{activate:!1,colonAt:-1,expectAt:-1}}function Ok(n,t){const e=t.index+t[1].length,r=t[0].slice(t[1].length),s=t===n.match(QI)?t[2]??"":r;return{leadOffset:e,matchingString:s,replaceableString:r}}function eV(){const[n]=je(),{t}=Je.useTranslation(),[e,r]=x.useState(!1),[s,i]=x.useState({top:0,left:0}),o=x.useRef(""),l=x.useRef({key:null,offset:null}),a=x.useRef({nodeKey:null,colonOffset:null,expectNextAt:null,active:!1,ts:0}),u=h=>{if(!a.current.active||h.length<1)return null;const g=h.match(JJ);if(g)return QJ(h,g);const m=h.match(QI);if(m)return Ok(h,m);const A=h.match(ZJ);return A?Ok(h,A):null};x.useEffect(()=>n.registerCommand(FM,()=>(n.update(()=>{let h=Q();if(!J(h)&&(Ue().selectEnd(),h=Q(),!J(h)))return!1;let g=h.anchor.getNode();if(X(g)){const _=Ct("");g.append(_),_.select(),g=_}const m=h.anchor.getNode();if(!Yn(m))return;const A=m.getTextContent(),y=h.anchor.offset,b=y>0?A[y-1]:"",C=(y>0&&!/\s/.test(b)?" ":"")+":",S=A.slice(0,y)+C+A.slice(y);m.setTextContent(S);const k=y+C.length;h.anchor.set(m.getKey(),k,"text"),h.focus.set(m.getKey(),k,"text"),a.current={nodeKey:m.getKey(),colonOffset:k-1,expectNextAt:k,active:!0,ts:Date.now()},o.current=":",e&&r(!1)}),!1),De),[n,e]),x.useEffect(()=>n.registerUpdateListener(({editorState:h})=>{h.read(()=>{const g=Q();if(J(g)&&g.isCollapsed()?l.current={key:g.anchor.getNode().getKey(),offset:g.anchor.offset}:l.current={key:null,offset:null},!e&&!a.current.active)return;if(!J(g)||!g.isCollapsed()){e&&r(!1),a.current.active=!1;return}const m=g.anchor.getNode().getKey(),A=g.anchor.offset,y=l.current;y.key!==null&&(m!==y.key||y.offset!==null&&Math.abs(A-y.offset)>1)&&(e&&r(!1),a.current.active=!1)})}),[n,e]),x.useEffect(()=>n.registerCommand(Gi,()=>(e&&r(!1),a.current.active=!1,!1),De),[n,e]),x.useEffect(()=>n.registerCommand(Ul,h=>XJ(h.key)?(h.key==="Escape"&&e&&r(!1),a.current.active=!1,!1):(qJ(h)&&n.getEditorState().read(()=>{const g=Q();if(!J(g)||!g.isCollapsed()){a.current.active=!1;return}const m=g.anchor.getNode(),A=m.getKey(),y=g.anchor.offset;if(h.key===":"){a.current={nodeKey:A,colonOffset:y,expectNextAt:y+1,active:!1,ts:Date.now()};return}const b=typeof(m==null?void 0:m.getTextContent)=="function"?m.getTextContent():"",{activate:v,colonAt:C,expectAt:S}=$J(b,y);if(v){a.current={nodeKey:A,colonOffset:C,expectNextAt:S,active:!0,ts:Date.now()};return}a.current.active&&a.current.nodeKey===A||(a.current.active=!1)}),!1),De),[n,e]);const d=x.useCallback(h=>{n.update(()=>{const g=Q();if(!J(g)||!g.isCollapsed())return;const m=g.anchor.getNode(),A=g.anchor.offset,b=(B=>typeof(B==null?void 0:B.getTextContent)=="function"?B.getTextContent():"")(m),v=Math.max(0,A-1);let C=a.current.active&&a.current.colonOffset!=null?a.current.colonOffset:-1;if(C===-1){const B=b.lastIndexOf(":",v),R=b.lastIndexOf(";",v),z=b.lastIndexOf("<",v);C=Math.max(B,R,z)}if(C===-1)return;const S=b[C],k=C>0?b[C-1]:null;if(k&&!/\s/.test(k))return;const _=b.slice(C),T=/^(?:\:\)|\:\-\)|\:d|\:\-d|\;\)|\;\-\)|\:\(|\:\-\(|\:\*|<3)/i;let N=C,M=null;const I=_.match(T);if(I)M=C+I[0].length;else if(S===":"){const B=z=>/[a-z0-9_+\-]/i.test(z);let R=C+1;for(;R<b.length&&B(b[R]);)R++;R===C+1?M=C+1:M=R}else if(S===";"){const B=_.match(/^(?:\;\)|\;\-\))/);if(B)M=C+B[0].length;else return}else if(S==="<"){const B=_.match(/^(?:<3)/);if(B)M=C+B[0].length;else return}if(M==null)return;const D=b.slice(0,N)+h+b.slice(M);m.setTextContent(D);const j=N+h.length;g.anchor.set(m.getKey(),j,"text"),g.focus.set(m.getKey(),j,"text"),e&&r(!1),a.current.active=!1})},[n,e]);return p.jsx(FI,{onSelectOption:()=>{},triggerFn:u,onQueryChange:h=>{o.current=h},options:[],onClose:()=>{e&&r(!1),a.current.active=!1},onOpen:()=>{a.current.active&&n.update(()=>{const h=Gt();if(!h)return;const g=n.getElementByKey(h.getKey());g&&requestAnimationFrame(()=>{const m=g.getBoundingClientRect();i({top:m.bottom,left:m.left}),r(!0)})})},menuRenderFn:()=>p.jsx(L.Portal,{target:document.body,children:e&&p.jsx("div",{style:{position:"fixed",top:`${s.top}px`,left:`${s.left}px`,zIndex:1e4},children:p.jsx(Rt.EmojiPicker,{onChange:h=>{var g;d(((g=Rt.IconEntity.parse(h))==null?void 0:g.emoji)+" ")},querySearch:String(o.current)||"",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")}},popoverProps:{opened:e,transitionProps:oi,withinPortal:!0,onClose:()=>{e&&r(!1),a.current.active=!1}},children:p.jsx(p.Fragment,{})})})})})}const XI=Ee("INSERT_CODE_COMMAND"),tV=()=>{var l;const n=Q(),t=n.anchor,e=n.focus,r=t.getNode(),s=e.getNode(),i=(l=r.getParent())==null?void 0:l.getIndexWithinParent();return(s instanceof Lr||s.getParent()instanceof Lr)&&(i===0||i||-1)&&t.key!==e.key?(n.removeText(),!0):!1};function nV(){const[n]=je();return x.useEffect(()=>ct(n.registerCommand(XI,()=>(n.update(()=>{const t=Gt(),e=Ue();if(t){const r=OM().append(Io(t.getTextContent()||""));t.replace(r),e.getChildrenSize()===1&&r.insertAfter(Me())}}),!0),De),n.registerCommand(Ul,t=>{const e=Q();let r=null;if(t.shiftKey&&t.code==="Enter"&&J(e)&&(Ii(e.anchor.getNode())?r=e.anchor.getNode():Xt(e.anchor.getNode())&&(r=e.anchor.getNode().getParent()),r)){const s=n.registerCommand(fl,()=>(s(),!0),Ss);return n.update(()=>{const i=r==null?void 0:r.getNextSibling();i instanceof Vi&&!i.getTextContent()?i==null||i.selectStart():r.insertAfter(Me()).selectStart()}),!0}return!1},0),n.registerCommand(Wl,t=>{var a;if(!(t!=null&&t.target)||!(t!=null&&t.clipboardData))return!1;t.preventDefault();const e=Q(),s=Gg(e)["text/plain"],i=Object.values(t.target)[0],o=(a=Te(i))==null?void 0:a.getParent(),l=(o==null?void 0:o.getTextContent())===s;if(Ii(o)&&l){const u=`<pre data-highlight-language="${o.__language}" data-language="${o.__language}" data-collapsed="${o.__isCollapsed}"><code>${o.getTextContent()}</code></pre>`;return t.clipboardData.setData("text/html",u),!0}return!1},De)),[n]),null}const $w=()=>!!document.querySelector(".selected-all-document");function rV(n,t){const e=n.getRangeAt(0);let r;if(n.anchorNode===t){let s=t;for(;s.firstElementChild!=null;)s=s.firstElementChild;r=s.getBoundingClientRect()}else r=e.getBoundingClientRect();return r}const Rk=()=>{var e;const n=(e=window.getSelection())==null?void 0:e.toString().trim();return n==null?void 0:n.replace(/\s+/g,"")};function Za(n){const t=n.anchor,e=n.focus,r=n.anchor.getNode(),s=n.focus.getNode();return r===s?r:n.isBackward()?L1(e)?r:s:L1(t)?r:s}const sV=10,iV=5;function $c(n,t,e,r=!1,s=sV,i=iV){const o=e.parentElement,l=document.querySelector(".ai-editor-menu");if(n===null||!o||l){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)",ZI();return}const a=t.getBoundingClientRect(),u=o.getBoundingClientRect();let d=n.top-a.height-s;d<0&&(d=10);let h=n.left-i;if(d<u.top&&(d+=a.height+n.height+s*2),h+a.width>u.right&&(h=u.right-a.width-i),n.bottom-n.height>u.bottom){t.style.transform="translate(-1000px, -1000px)";return}if(n.bottom+n.height<u.top){t.style.transform="translate(-1000px, -1000px)";return}let g=d;a.top>=u.bottom&&(g=u.bottom),t.style.transform=`translate(${h}px, ${g}px)`,t.style.opacity="1",GI()}function oV({editor:n,anchorElem:t,isLink:e,isBold:r,isItalic:s,isUnderline:i,isCode:o,isStrikethrough:l,isSubscript:a,isSuperscript:u,component:d,isText:h}){const g=x.useRef(null),m=x.useRef(!1),A=x.useRef(null),y=x.useCallback(()=>{n.dispatchCommand(pw,"create")},[n,e]);function b(){var C,S;g.current&&(m.current=!0,$c(((C=A.current)==null?void 0:C.rect)||null,g==null?void 0:g.current,t,(S=A.current)==null?void 0:S.isLink))}x.useEffect(()=>{const C=Rk();if(!h&&!(C!=null&&C.length)){let S=function(N){return N instanceof HTMLElement};const k=g.current,_=window.getSelection();let T=!1;_!=null&&_.anchorNode&&S(_.anchorNode)&&_.anchorNode.className==="toolbar"&&(T=!0),k&&!T&&(A.current={rect:null,floatingElem:k,anchorElem:t,isLink:e},$c(null,k,t,e),m.current=!1)}},[h,n]),x.useEffect(()=>{if(g!=null&&g.current)return document.addEventListener("mouseup",b),()=>{document.removeEventListener("mouseup",b)}},[g]),x.useEffect(()=>{n.registerCommand(Ul,C=>{var S;return(C.metaKey||C.ctrlKey)&&C.code==="KeyA"?(C.preventDefault(),QU(n),Gt(!0)&&(qU()&&(g!=null&&g.current)?($c(null,g==null?void 0:g.current,t,(S=A.current)==null?void 0:S.isLink),v2(),tw(n)):setTimeout(()=>{b()})),!0):!1},De),n.registerCommand(J0,()=>(setTimeout(()=>{var C;g!=null&&g.current&&$c(null,g==null?void 0:g.current,t,(C=A.current)==null?void 0:C.isLink)},100),!1),De)},[n]);const v=x.useCallback(()=>{const C=Q(),S=g.current,k=window.getSelection();if(S===null)return;const _=n.getRootElement();let T=!1;const N=Rk();if(N&&N.length>0&&(T=!0),C!==null&&k!==null&&!k.isCollapsed&&_!==null&&_.contains(k.anchorNode)&&T){const M=rV(k,_);if(A.current={rect:M,floatingElem:S,anchorElem:t,isLink:e},J(C)){const D=Za(C).getParent(),j=D==null?void 0:D.getFormatType();m.current&&j&&g&&n.registerCommand(J0,B=>(B||setTimeout(()=>{var R,z;$c(((R=A.current)==null?void 0:R.rect)||null,S,t,(z=A.current)==null?void 0:z.isLink)},100),!1),De)}}else A.current={rect:null,floatingElem:S,anchorElem:t,isLink:e}},[n,t,e]);return x.useEffect(()=>{const C=t.parentElement,S=()=>{n.getEditorState().read(()=>{v()})};return window.addEventListener("resize",S),C&&C.addEventListener("scroll",S),()=>{window.removeEventListener("resize",S),C&&C.removeEventListener("scroll",S)}},[n,v,t]),x.useEffect(()=>(n.getEditorState().read(()=>{v()}),ct(n.registerUpdateListener(({editorState:C})=>{C.read(()=>{v()})}),n.registerCommand(Xr,()=>(v(),!1),De))),[n,v]),p.jsx("div",{ref:g,className:`floating-text-format-popup doc-space-editor-wrapper ${h?"":"floating-text-format-popup-hidden"}`,onMouseDown:C=>C.preventDefault(),children:p.jsx("div",{children:n.isEditable()&&(d||p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"bold")},className:"popup-item spaced "+(r?"active":""),"data-test-id":"toolbar-bold",children:p.jsx(Ne,{name:"bold",stroke:r?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"italic")},className:"popup-item spaced "+(s?"active":""),"data-test-id":"toolbar-italic",children:p.jsx(Ne,{name:"italic",stroke:s?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"underline")},className:"popup-item spaced "+(i?"active":""),"data-test-id":"toolbar-underline",children:p.jsx(Ne,{name:"underline",stroke:i?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"strikethrough")},className:"popup-item spaced "+(l?"active":""),"data-test-id":"toolbar-strikethrough",children:p.jsx(Ne,{name:"strikethrough",stroke:l?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"subscript")},className:"popup-item spaced "+(a?"active":""),"data-test-id":"toolbar-subscript",children:p.jsx(Ne,{name:"subscript",stroke:a?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"superscript")},className:"popup-item spaced "+(u?"active":""),"data-test-id":"toolbar-superscript",children:p.jsx(Ne,{name:"superscript",stroke:u?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ot,"code")},className:"popup-item spaced "+(o?"active":""),"data-test-id":"toolbar-code",children:p.jsx(Ne,{name:"code"})}),p.jsx("button",{type:"button",onClick:y,className:"popup-item spaced "+(e?"active":""),"data-test-id":"toolbar-link",children:p.jsx(Ne,{name:"link"})})]}))})})}function lV(n,t,e){const[r,s]=x.useState(!1),[i,o]=x.useState(!1),[l,a]=x.useState(!1),[u,d]=x.useState(!1),[h,g]=x.useState(!1),[m,A]=x.useState(!1),[y,b]=x.useState(!1),[v,C]=x.useState(!1),[S,k]=x.useState(!1),_=$w(),{disable:T}=x.useContext(Pt),N=x.useCallback(()=>{n.getEditorState().read(()=>{var ce,oe,W;if(n.isComposing())return;const M=Q(),I=window.getSelection(),D=n.getRootElement();if(I!==null&&(!J(M)||D===null||!D.contains(I.anchorNode))){s(!1);return}if(!J(M))return;const j=Za(M);a(M.hasFormat("bold")),d(M.hasFormat("italic")),g(M.hasFormat("underline")),A(M.hasFormat("strikethrough")),b(M.hasFormat("subscript")),C(M.hasFormat("superscript")),k(M.hasFormat("code"));const B=j.getParent();Mn(B)||Mn(j)?o(!0):o(!1);const R=Xt(M.anchor.getNode()),z=(W=(oe=(ce=n.getElementByKey(j.__key))==null?void 0:ce.parentElement)==null?void 0:oe.parentElement)==null?void 0:W.classList.contains("Collapsible__title");!R&&M.getTextContent()!==""&&!z?s(Yn(j)||fn(j)||Js(j)||oc(j)||kt(j)):s(!1);const G=M.getTextContent().replace(/\n/g,"");if(!M.isCollapsed()&&G===""){s(!1);return}})},[n]);return x.useEffect(()=>(document.addEventListener("selectionchange",N),()=>{document.removeEventListener("selectionchange",N)}),[N]),x.useEffect(()=>ct(n.registerUpdateListener(()=>{N()}),n.registerRootListener(()=>{n.getRootElement()===null&&s(!1)})),[n,N]),T?null:Dr.createPortal(p.jsx(oV,{editor:n,anchorElem:t,isLink:i,isBold:l,isItalic:u,isStrikethrough:m,isSubscript:y,isSuperscript:v,isUnderline:h,isCode:S,component:e,isText:r&&!_}),document.body)}function gy({anchorElem:n=document.body,component:t}){const[e]=je();return lV(e,n,t)}const aV=({onFocus:n})=>{const[t]=je();return x.useEffect(()=>{t.registerCommand(Bo,e=>{var r;return(r=t._rootElement)==null||r.classList.add("focused"),!e.relatedTarget&&n&&n(),!1},De)},[]),null},cV=Ee("INSERT_FORM_COMMAND");function uV(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([wd]))throw new Error("FormPlugin: FormNode not registered on editor");return n.registerCommand(cV,t=>{const e=Iw(t);return G2(e),!0},Ze)},[n]),null}function dV({validateUrl:n,attributes:t}){const[e]=je();return x.useEffect(()=>{if(!e.hasNodes([ql]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),x.useEffect(()=>xz(e,Hb({attributes:t,validateUrl:n})),[e,n,t]),null}function qI(){return p.jsx(dV,{attributes:{target:null,rel:"noreferrer"}})}const fV=" ";function hV(n){const t=n.getNodes();return t.length===0?new Set([n.anchor.getNode().getParentOrThrow(),n.focus.getNode().getParentOrThrow()]):new Set(t.map(e=>X(e)?e:e.getParentOrThrow()))}function gV(n){const t=Q();if(!J(t))return!1;const e=t.focus.getNode();if(!(at(e)||kt(e)||kt(e.getParent())))return t.insertText(fV),!1;const s=hV(t);let i=0;for(const o of s)if(at(o))i=Math.max(F0(o)+1,i);else if(kt(o)){const l=o.getParent();if(!at(l))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");i=Math.max(F0(l)+1,i)}return i<=n}function pV({maxDepth:n}){const[t]=je();return x.useEffect(()=>ct(t.registerCommand(Ys,()=>!gV(n??7),vn)),[t,n]),null}function mV(n){x.useEffect(()=>tU(n),[n])}function AV(){const[n]=je();return x.useEffect(()=>{if(!n.hasNodes([jr,kn]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),mV(n),null}const yV=[{dependencies:[Yg],export:n=>UN(n)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(n,t,e,r)=>{const s=vc();r||n.getNextSibling()!=null?n.replace(s):n.insertBefore(s),s.selectNext()},type:"element"},...mp];function bV({transformers:n=yV}){const[t]=je();return x.useEffect(()=>LG(t,n),[t,n]),null}function wV(){return p.jsx(bV,{transformers:Ju})}function CV({maxLength:n}){const[t]=je();return x.useEffect(()=>{let e=null;return t.registerNodeTransform(Gl,r=>{const s=Q();if(!J(s)||!s.isCollapsed())return;const i=t.getEditorState(),o=i.read(()=>r.getTextContentSize()),l=r.getTextContentSize();if(o!==l){const a=l-n,u=s.anchor;a>0&&(o===n&&e!==i?(e=i,ZB(t,i)):FB(t,u,a))}})},[t,n]),null}function xV(){const[n]=je(),{maxHeight:t}=x.useContext(Pt),e=()=>{RM(n)};return t?null:p.jsx("div",{className:"new-paragraph",onClick:e})}var vV="function",SV="object",EV="string",kV="undefined",TV=typeof document!==kV&&document,_V=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],ms=1e-7,Kf={cm:function(n){return n*96/2.54},mm:function(n){return n*96/254},in:function(n){return n*96},pt:function(n){return n*96/72},pc:function(n){return n*96/6},"%":function(n,t){return n*t/100},vw:function(n,t){return t===void 0&&(t=window.innerWidth),n/100*t},vh:function(n,t){return t===void 0&&(t=window.innerHeight),n/100*t},vmax:function(n,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),n/100*t},vmin:function(n,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),n/100*t}};/*! *****************************************************************************
|
|
99
|
-
Copyright (c) Microsoft Corporation.
|
|
100
|
-
|
|
101
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
102
|
-
purpose with or without fee is hereby granted.
|
|
103
|
-
|
|
104
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
105
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
106
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
107
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
108
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
109
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
110
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
111
|
-
***************************************************************************** */function NV(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),s=0,t=0;t<e;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,s++)r[s]=i[o];return r}function Po(n){return n&&typeof n===SV}function ng(n){return Array.isArray(n)}function Qu(n){return typeof n===EV}function eC(n){return typeof n===vV}function MV(n,t){var e=n===""||n==" ",r=t===""||t==" ";return r&&e||n===t}function $I(n,t,e,r,s){var i=tC(n,t,e);return i?e:IV(n,t,e+1,r,s)}function tC(n,t,e){if(!n.ignore)return null;var r=t.slice(Math.max(e-3,0),e+3).join("");return new RegExp(n.ignore).exec(r)}function IV(n,t,e,r,s){for(var i=function(u){var d=t[u].trim();if(d===n.close&&!tC(n,t,u))return{value:u};var h=u,g=Xu(s,function(m){var A=m.open;return A===d});if(g&&(h=$I(g,t,u,r,s)),h===-1)return o=u,"break";u=h,o=u},o,l=e;l<r;++l){var a=i(l);if(l=o,typeof a=="object")return a.value;if(a==="break")break}return-1}function nC(n,t){var e=Qu(t)?{separator:t}:t,r=e.separator,s=r===void 0?",":r,i=e.isSeparateFirst,o=e.isSeparateOnlyOpenClose,l=e.isSeparateOpenClose,a=l===void 0?o:l,u=e.openCloseCharacters,d=u===void 0?_V:u,h=d.map(function(N){var M=N.open,I=N.close;return M===I?M:M+"|"+I}).join("|"),g="(\\s*"+s+"\\s*|"+h+"|\\s+)",m=new RegExp(g,"g"),A=n.split(m).filter(function(N){return N&&N!=="undefined"}),y=A.length,b=[],v=[];function C(){return v.length?(b.push(v.join("")),v=[],!0):!1}for(var S=function(N){var M=A[N].trim(),I=N,D=Xu(d,function(R){var z=R.open;return z===M}),j=Xu(d,function(R){var z=R.close;return z===M});if(D){if(I=$I(D,A,N,y,d),I!==-1&&a)return C()&&i||(b.push(A.slice(N,I+1).join("")),N=I,i)?(k=N,"break"):(k=N,"continue")}else if(j&&!tC(j,A,N)){var B=NV(d);return B.splice(d.indexOf(j),1),{value:nC(n,{separator:s,isSeparateFirst:i,isSeparateOnlyOpenClose:o,isSeparateOpenClose:a,openCloseCharacters:B})}}else if(MV(M,s)&&!o)return C(),i?(k=N,"break"):(k=N,"continue");I===-1&&(I=y-1),v.push(A.slice(N,I+1).join("")),N=I,k=N},k,_=0;_<y;++_){var T=S(_);if(_=k,typeof T=="object")return T.value;if(T==="break")break}return v.length&&b.push(v.join("")),b}function LV(n){return nC(n,"")}function lu(n){return nC(n,",")}function DV(n){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function rg(n){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(n);if(!t)return{prefix:"",unit:"",value:NaN};var e=t[1],r=t[2],s=t[3];return{prefix:e,unit:s,value:parseFloat(r)}}function py(n){return n.replace(/[\s-_]+([^\s-_])/g,function(t,e){return e.toUpperCase()})}function my(){return Date.now?Date.now():new Date().getTime()}function sg(n,t,e){e===void 0&&(e=-1);for(var r=n.length,s=0;s<r;++s)if(t(n[s],s,n))return s;return e}function Xu(n,t,e){var r=sg(n,t);return r>-1?n[r]:e}function jk(n,t){var e=rg(n),r=e.value,s=e.unit;if(Po(t)){var i=t[s];if(i){if(eC(i))return i(r);if(Kf[s])return Kf[s](r,i)}}else if(s==="%")return r*t/100;return Kf[s]?Kf[s](r):r}function eL(n,t,e){return Math.max(t,Math.min(n,e))}function Pk(n,t,e,r){return r===void 0&&(r=n[0]/n[1]),[[_i(t[0],ms),_i(t[0]/r,ms)],[_i(t[1]*r,ms),_i(t[1],ms)]].filter(function(s){return s.every(function(i,o){var l=t[o],a=_i(l,ms);return e?i<=l||i<=a:i>=l||i>=a})})[0]||n}function OV(n,t,e,r){if(!r)return n.map(function(m,A){return eL(m,t[A],e[A])});var s=n[0],i=n[1],o=r===!0?s/i:r,l=Pk(n,t,!1,o),a=l[0],u=l[1],d=Pk(n,e,!0,o),h=d[0],g=d[1];return s<a||i<u?(s=a,i=u):(s>h||i>g)&&(s=h,i=g),[s,i]}function RV(n){for(var t=n.length,e=0,r=t-1;r>=0;--r)e+=n[r];return e}function jV(n){for(var t=n.length,e=0,r=t-1;r>=0;--r)e+=n[r];return t?e/t:0}function Bk(n,t){var e=t[0]-n[0],r=t[1]-n[1],s=Math.atan2(r,e);return s>=0?s:s+Math.PI*2}function PV(n){return[0,1].map(function(t){return jV(n.map(function(e){return e[t]}))})}function Fk(n){var t=PV(n),e=Bk(t,n[0]),r=Bk(t,n[1]);return e<r&&r-e<Math.PI||e>r&&r-e<-Math.PI?1:-1}function Ay(n,t){return Math.sqrt(Math.pow((t?t[0]:0)-n[0],2)+Math.pow((t?t[1]:0)-n[1],2))}function _i(n,t){var e=1/t;return Math.round(n/t)/e}function BV(n,t){return n.classList?n.classList.contains(t):!!n.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function FV(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function An(n,t,e,r){n.addEventListener(t,e,r)}function an(n,t,e,r){n.removeEventListener(t,e,r)}function Si(n){return(n==null?void 0:n.ownerDocument)||TV}function cl(n){var t;return((t=n==null?void 0:n.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function zV(n){return n&&"postMessage"in n&&"blur"in n&&"self"in n}function zk(n){return Po(n)&&n.nodeName&&n.nodeType&&"ownerDocument"in n}/*! *****************************************************************************
|
|
112
|
-
Copyright (c) Microsoft Corporation.
|
|
113
|
-
|
|
114
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
115
|
-
purpose with or without fee is hereby granted.
|
|
116
|
-
|
|
117
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
118
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
119
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
120
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
121
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
122
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
123
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
124
|
-
***************************************************************************** */var yy=function(){return yy=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yy.apply(this,arguments)};function UV(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),s=0,t=0;t<e;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,s++)r[s]=i[o];return r}var wp=(function(){function n(){this._events={}}var t=n.prototype;return t.on=function(e,r){if(Po(e))for(var s in e)this.on(s,e[s]);else this._addEvent(e,r,{});return this},t.off=function(e,r){if(!e)this._events={};else if(Po(e))for(var s in e)this.off(s);else if(!r)this._events[e]=[];else{var i=this._events[e];if(i){var o=sg(i,function(l){return l.listener===r});o>-1&&i.splice(o,1)}}return this},t.once=function(e,r){var s=this;return r&&this._addEvent(e,r,{once:!0}),new Promise(function(i){s._addEvent(e,i,{once:!0})})},t.emit=function(e,r){var s=this;r===void 0&&(r={});var i=this._events[e];if(!e||!i)return!0;var o=!1;return r.eventType=e,r.stop=function(){o=!0},r.currentTarget=this,UV(i).forEach(function(l){l.listener(r),l.once&&s.off(e,l.listener)}),!o},t.trigger=function(e,r){return r===void 0&&(r={}),this.emit(e,r)},t._addEvent=function(e,r,s){var i=this._events;i[e]=i[e]||[];var o=i[e];o.push(yy({listener:r},s))},n})();/*! *****************************************************************************
|
|
125
|
-
Copyright (c) Microsoft Corporation.
|
|
126
|
-
|
|
127
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
128
|
-
purpose with or without fee is hereby granted.
|
|
129
|
-
|
|
130
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
131
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
132
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
133
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
134
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
135
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
136
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
137
|
-
***************************************************************************** */var by=function(n,t){return by=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])},by(n,t)};function KV(n,t){by(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var pn=function(){return pn=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},pn.apply(this,arguments)};function WV(n,t){var e=t[0]-n[0],r=t[1]-n[1],s=Math.atan2(r,e);return s>=0?s:s+Math.PI*2}function IA(n){return WV([n[0].clientX,n[0].clientY],[n[1].clientX,n[1].clientY])/Math.PI*180}function HV(n){return n.touches&&n.touches.length>=2}function Wf(n){return n?n.touches?GV(n.touches):[tL(n)]:[]}function YV(n){return n&&(n.type.indexOf("mouse")>-1||"button"in n)}function Uk(n,t,e){var r=e.length,s=wu(n,r),i=s.clientX,o=s.clientY,l=s.originalClientX,a=s.originalClientY,u=wu(t,r),d=u.clientX,h=u.clientY,g=wu(e,r),m=g.clientX,A=g.clientY,y=i-d,b=o-h,v=i-m,C=o-A;return{clientX:l,clientY:a,deltaX:y,deltaY:b,distX:v,distY:C}}function LA(n){return Math.sqrt(Math.pow(n[0].clientX-n[1].clientX,2)+Math.pow(n[0].clientY-n[1].clientY,2))}function GV(n){for(var t=Math.min(n.length,2),e=[],r=0;r<t;++r)e.push(tL(n[r]));return e}function tL(n){return{clientX:n.clientX,clientY:n.clientY}}function wu(n,t){t===void 0&&(t=n.length);for(var e={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(n.length,t),s=0;s<r;++s){var i=n[s];e.originalClientX+="originalClientX"in i?i.originalClientX:i.clientX,e.originalClientY+="originalClientY"in i?i.originalClientY:i.clientY,e.clientX+=i.clientX,e.clientY+=i.clientY}return t?{clientX:e.clientX/t,clientY:e.clientY/t,originalClientX:e.originalClientX/t,originalClientY:e.originalClientY/t}:e}var DA=(function(){function n(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return n.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),IA(t)},n.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),IA(t)-IA(this.startClients)},n.prototype.getPosition=function(t,e){t===void 0&&(t=this.prevClients);var r=Uk(t||this.prevClients,this.prevClients,this.startClients),s=r.deltaX,i=r.deltaY;return this.movement+=Math.sqrt(s*s+i*i),this.prevClients=t,r},n.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var e=this.prevClients,r=this.startClients,s=Math.min(this.length,e.length),i=[],o=0;o<s;++o)i[o]=Uk([t[o]],[e[o]],[r[o]]);return i},n.prototype.getMovement=function(t){var e=this.movement;if(!t)return e;var r=wu(t,this.length),s=wu(this.prevClients,this.length),i=r.clientX-s.clientX,o=r.clientY-s.clientY;return Math.sqrt(i*i+o*o)+e},n.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),LA(t)},n.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),LA(t)/LA(this.startClients)},n.prototype.move=function(t,e){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=e}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=e})},n})(),Kk=["textarea","input"],ZV=(function(n){KV(t,n);function t(e,r){r===void 0&&(r={});var s=n.call(this)||this;s.options={},s.flag=!1,s.pinchFlag=!1,s.data={},s.isDrag=!1,s.isPinch=!1,s.clientStores=[],s.targets=[],s.prevTime=0,s.doubleFlag=!1,s._useMouse=!1,s._useTouch=!1,s._useDrag=!1,s._dragFlag=!1,s._isTrusted=!1,s._isMouseEvent=!1,s._isSecondaryButton=!1,s._preventMouseEvent=!1,s._prevInputEvent=null,s._isDragAPI=!1,s._isIdle=!0,s._preventMouseEventId=0,s._window=window,s.onDragStart=function(g,m){if(m===void 0&&(m=!0),!(!s.flag&&g.cancelable===!1)){var A=g.type.indexOf("drag")>=-1;if(!(s.flag&&A)){s._isDragAPI=!0;var y=s.options,b=y.container,v=y.pinchOutside,C=y.preventWheelClick,S=y.preventRightClick,k=y.preventDefault,_=y.checkInput,T=y.dragFocusedInput,N=y.preventClickEventOnDragStart,M=y.preventClickEventOnDrag,I=y.preventClickEventByCondition,D=s._useTouch,j=!s.flag;if(s._isSecondaryButton=g.which===3||g.button===2,C&&(g.which===2||g.button===1)||S&&(g.which===3||g.button===2))return s.stop(),!1;if(j){var B=s._window.document.activeElement,R=g.target;if(R){var z=R.tagName.toLowerCase(),G=Kk.indexOf(z)>-1,ce=R.isContentEditable;if(G||ce){if(_||!T&&B===R)return!1;if(B&&(B===R||ce&&B.isContentEditable&&B.contains(R)))if(T)R.blur();else return!1}else if((k||g.type==="touchstart")&&B){var oe=B.tagName.toLowerCase();(B.isContentEditable||Kk.indexOf(oe)>-1)&&B.blur()}(N||M||I)&&An(s._window,"click",s._onClick,!0)}s.clientStores=[new DA(Wf(g))],s._isIdle=!1,s.flag=!0,s.isDrag=!1,s._isTrusted=m,s._dragFlag=!0,s._prevInputEvent=g,s.data={},s.doubleFlag=my()-s.prevTime<200,s._isMouseEvent=YV(g),!s._isMouseEvent&&s._preventMouseEvent&&s._allowMouseEvent();var W=s._preventMouseEvent||s.emit("dragStart",pn(pn({data:s.data,datas:s.data,inputEvent:g,isMouseEvent:s._isMouseEvent,isSecondaryButton:s._isSecondaryButton,isTrusted:m,isDouble:s.doubleFlag},s.getCurrentStore().getPosition()),{preventDefault:function(){g.preventDefault()},preventDrag:function(){s._dragFlag=!1}}));W===!1&&s.stop(),s._isMouseEvent&&s.flag&&k&&g.preventDefault()}if(!s.flag)return!1;var Z=0;if(j?(s._attchDragEvent(),D&&v&&(Z=setTimeout(function(){An(b,"touchstart",s.onDragStart,{passive:!1})}))):D&&v&&an(b,"touchstart",s.onDragStart),s.flag&&HV(g)){if(clearTimeout(Z),j&&g.touches.length!==g.changedTouches.length)return;s.pinchFlag||s.onPinchStart(g)}}}},s.onDrag=function(g,m){if(s.flag){var A=s.options.preventDefault;!s._isMouseEvent&&A&&g.preventDefault(),s._prevInputEvent=g;var y=Wf(g),b=s.moveClients(y,g,!1);if(s._dragFlag){if(s.pinchFlag||b.deltaX||b.deltaY){var v=s._preventMouseEvent||s.emit("drag",pn(pn({},b),{isScroll:!!m,inputEvent:g}));if(v===!1){s.stop();return}}s.pinchFlag&&s.onPinch(g,y)}s.getCurrentStore().getPosition(y,!0)}},s.onDragEnd=function(g){if(s.flag){var m=s.options,A=m.pinchOutside,y=m.container,b=m.preventClickEventOnDrag,v=m.preventClickEventOnDragStart,C=m.preventClickEventByCondition,S=s.isDrag;(b||v||C)&&requestAnimationFrame(function(){s._allowClickEvent()}),!C&&!v&&b&&!S&&s._allowClickEvent(),s._useTouch&&A&&an(y,"touchstart",s.onDragStart),s.pinchFlag&&s.onPinchEnd(g);var k=g!=null&&g.touches?Wf(g):[],_=k.length;_===0||!s.options.keepDragging?s.flag=!1:s._addStore(new DA(k));var T=s._getPosition(),N=my(),M=!S&&s.doubleFlag;s._prevInputEvent=null,s.prevTime=S||M?0:N,s.flag||(s._dettachDragEvent(),s._preventMouseEvent||s.emit("dragEnd",pn({data:s.data,datas:s.data,isDouble:M,isDrag:S,isClick:!S,isMouseEvent:s._isMouseEvent,isSecondaryButton:s._isSecondaryButton,inputEvent:g,isTrusted:s._isTrusted},T)),s.clientStores=[],s._isMouseEvent||(s._preventMouseEvent=!0,clearTimeout(s._preventMouseEventId),s._preventMouseEventId=setTimeout(function(){s._preventMouseEvent=!1},200)),s._isIdle=!0)}},s.onBlur=function(){s.onDragEnd()},s._allowClickEvent=function(){an(s._window,"click",s._onClick,!0)},s._onClick=function(g){s._allowClickEvent(),s._allowMouseEvent();var m=s.options.preventClickEventByCondition;m!=null&&m(g)||(g.stopPropagation(),g.preventDefault())},s._onContextMenu=function(g){var m=s.options;m.preventRightClick?s.onDragEnd(g):g.preventDefault()},s._passCallback=function(){};var i=[].concat(e),o=i[0];s._window=zV(o)?o:cl(o),s.options=pn({checkInput:!1,container:o&&!("document"in o)?cl(o):o,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var l=s.options,a=l.container,u=l.events,d=l.checkWindowBlur;if(s._useDrag=u.indexOf("drag")>-1,s._useTouch=u.indexOf("touch")>-1,s._useMouse=u.indexOf("mouse")>-1,s.targets=i,s._useDrag&&i.forEach(function(g){An(g,"dragstart",s.onDragStart)}),s._useMouse&&(i.forEach(function(g){An(g,"mousedown",s.onDragStart),An(g,"mousemove",s._passCallback)}),An(a,"contextmenu",s._onContextMenu)),d&&An(cl(),"blur",s.onBlur),s._useTouch){var h={passive:!1};i.forEach(function(g){An(g,"touchstart",s.onDragStart,h),An(g,"touchmove",s._passCallback,h)})}return s}return t.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},t.prototype.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce(function(r,s){return r+s.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(e,r,s,i){i===void 0&&(i=!0),this.flag&&(this.clientStores[0].move(e,r),i&&this.onDrag(s,!0))},t.prototype.move=function(e,r){var s=e[0],i=e[1],o=this.getCurrentStore(),l=o.prevClients;return this.moveClients(l.map(function(a){var u=a.clientX,d=a.clientY;return{clientX:u+s,clientY:d+i,originalClientX:u,originalClientY:d}}),r,!0)},t.prototype.triggerDragStart=function(e){this.onDragStart(e,!1)},t.prototype.setEventData=function(e){var r=this.data;for(var s in e)r[s]=e[s];return this},t.prototype.setEventDatas=function(e){return this.setEventData(e)},t.prototype.getCurrentEvent=function(e){return e===void 0&&(e=this._prevInputEvent),pn(pn({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var e=this,r=this.targets,s=this.options.container;this.off(),an(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(i){an(i,"dragstart",e.onDragStart)}),this._useMouse&&(r.forEach(function(i){an(i,"mousedown",e.onDragStart)}),an(s,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(i){an(i,"touchstart",e.onDragStart)}),an(s,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(e){var r=this,s=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>s)){var i=new DA(Wf(e));this.pinchFlag=!0,this._addStore(i);var o=this.emit("pinchStart",pn(pn({data:this.data,datas:this.data,angle:i.getAngle(),touches:this.getCurrentStore().getPositions()},i.getPosition()),{inputEvent:e,isTrusted:this._isTrusted,preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));o===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(e,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var s=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",pn(pn({data:this.data,datas:this.data,movement:this.getMovement(r),angle:s.getAngle(r),rotation:s.getRotation(r),touches:s.getPositions(r),scale:s.getScale(r),distance:s.getDistance(r)},s.getPosition(r)),{inputEvent:e,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(e){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var s=this.getCurrentStore();this.emit("pinchEnd",pn(pn({data:this.data,datas:this.data,isPinch:r,touches:s.getPositions()},s.getPosition()),{inputEvent:e}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(e,r,s){var i=this._getPosition(e,s),o=this.isDrag;(i.deltaX||i.deltaY)&&(this.isDrag=!0);var l=!1;return!o&&this.isDrag&&(l=!0),pn(pn({data:this.data,datas:this.data},i),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:l})},t.prototype._addStore=function(e){this.clientStores.splice(0,0,e)},t.prototype._getPosition=function(e,r){var s=this.getCurrentStore(),i=s.getPosition(e,r),o=this.clientStores.slice(1).reduce(function(u,d){var h=d.getPosition();return u.distX+=h.distX,u.distY+=h.distY,u},i),l=o.distX,a=o.distY;return pn(pn({},i),{distX:l,distY:a})},t.prototype._attchDragEvent=function(){var e=this._window,r=this.options.container,s={passive:!1};this._isDragAPI&&(An(r,"dragover",this.onDrag,s),An(e,"dragend",this.onDragEnd)),this._useMouse&&(An(r,"mousemove",this.onDrag),An(e,"mouseup",this.onDragEnd)),this._useTouch&&(An(r,"touchmove",this.onDrag,s),An(e,"touchend",this.onDragEnd,s),An(e,"touchcancel",this.onDragEnd,s))},t.prototype._dettachDragEvent=function(){var e=this._window,r=this.options.container;this._isDragAPI&&(an(r,"dragover",this.onDrag),an(e,"dragend",this.onDragEnd)),this._useMouse&&(an(r,"mousemove",this.onDrag),an(e,"mouseup",this.onDragEnd)),this._useTouch&&(an(r,"touchstart",this.onDragStart),an(r,"touchmove",this.onDrag),an(e,"touchend",this.onDragEnd),an(e,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t})(wp);function JV(n,t){return function(e){e&&(n[t]=e)}}function VV(n,t){return function(e){var r=e.prototype;n.forEach(function(s){t(r,s)})}}function QV(n,t){return t===void 0&&(t={}),function(e,r){n.forEach(function(s){var i=t[s]||s;i in e||(e[i]=function(){for(var o,l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];var u=(o=this[r])[s].apply(o,l);return u===this[r]?this:u})})}}var XV=(function(){function n(){this.keys=[],this.values=[]}var t=n.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,r){var s=this.keys,i=this.values,o=s.indexOf(e),l=o===-1?s.length:o;s[l]=e,i[l]=r},n})(),qV=(function(){function n(){this.object={}}var t=n.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,r){this.object[e]=r},n})(),$V=typeof Map=="function",eQ=(function(){function n(){}var t=n.prototype;return t.connect=function(e,r){this.prev=e,this.next=r,e&&(e.next=this),r&&(r.prev=this)},t.disconnect=function(){var e=this.prev,r=this.next;e&&(e.next=r),r&&(r.prev=e)},t.getIndex=function(){for(var e=this,r=-1;e;)e=e.prev,++r;return r},n})();function tQ(n,t){var e=[],r=[];return n.forEach(function(s){var i=s[0],o=s[1],l=new eQ;e[i]=l,r[o]=l}),e.forEach(function(s,i){s.connect(e[i-1])}),n.filter(function(s,i){return!t[i]}).map(function(s,i){var o=s[0],l=s[1];if(o===l)return[0,0];var a=e[o],u=r[l-1],d=a.getIndex();a.disconnect(),u?a.connect(u,u.next):a.connect(void 0,e[0]);var h=a.getIndex();return[d,h]})}var nQ=(function(){function n(e,r,s,i,o,l,a,u){this.prevList=e,this.list=r,this.added=s,this.removed=i,this.changed=o,this.maintained=l,this.changedBeforeAdded=a,this.fixed=u}var t=n.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e=tQ(this.changedBeforeAdded,this.fixed),r=this.changed,s=[];this.cacheOrdered=e.filter(function(i,o){var l=i[0],a=i[1],u=r[o],d=u[0],h=u[1];if(l!==a)return s.push([d,h]),!0}),this.cachePureChanged=s},n})();function rQ(n,t,e){var r=$V?Map:e?qV:XV,s=e||function(C){return C},i=[],o=[],l=[],a=n.map(s),u=t.map(s),d=new r,h=new r,g=[],m=[],A={},y=[],b=0,v=0;return a.forEach(function(C,S){d.set(C,S)}),u.forEach(function(C,S){h.set(C,S)}),a.forEach(function(C,S){var k=h.get(C);typeof k>"u"?(++v,o.push(S)):A[k]=v}),u.forEach(function(C,S){var k=d.get(C);typeof k>"u"?(i.push(S),++b):(l.push([k,S]),v=A[S]||0,g.push([k-v,S-b]),m.push(S===k),k!==S&&y.push([k,S]))}),o.reverse(),new nQ(n,t,i,o,y,l,g,m)}var sQ=typeof Map=="function"?void 0:(function(){var n=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++n)}})();function au(n,t){return rQ(n,t,sQ)}/*! *****************************************************************************
|
|
138
|
-
Copyright (c) Microsoft Corporation.
|
|
139
|
-
|
|
140
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
141
|
-
purpose with or without fee is hereby granted.
|
|
142
|
-
|
|
143
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
144
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
145
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
146
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
147
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
148
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
149
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
150
|
-
***************************************************************************** */var wy=function(n,t){return wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])},wy(n,t)};function iQ(n,t){wy(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Pa=function(){return Pa=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Pa.apply(this,arguments)};function oQ(n){var t=n.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}function Wk(n,t){return n.addEventListener("scroll",t),function(){n.removeEventListener("scroll",t)}}function Hf(n){if(n){if(Qu(n))return document.querySelector(n)}else return null;if(eC(n))return n();if(n instanceof Element)return n;if("current"in n)return n.current;if("value"in n)return n.value}var lQ=(function(n){iQ(t,n);function t(){var r=n!==null&&n.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 s=r._currentOptions;r._lock||!s||r.emit("scrollDrag",{next:function(i){r.checkScroll({container:s.container,inputEvent:i})}})},r}var e=t.prototype;return e.dragStart=function(r,s){var i=Hf(s.container);if(!i){this._flag=!1;return}var o=0,l=0,a=0,u=0;if(i===document.body)a=window.innerWidth,u=window.innerHeight;else{var d=i.getBoundingClientRect();o=d.top,l=d.left,a=d.width,u=d.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:o,left:l,width:a,height:u},this._prevScrollPos=this._getScrollPosition([0,0],s),this._currentOptions=s,this._registerScrollEvent(s)},e.drag=function(r,s){if(clearTimeout(this._timer),!!this._flag){var i=r.clientX,o=r.clientY,l=s.threshold,a=l===void 0?0:l,u=this,d=u._startRect,h=u._startPos;this._currentOptions=s;var g=[0,0];return d.top>o-a?(h[1]>d.top||o<h[1])&&(g[1]=-1):d.top+d.height<o+a&&(h[1]<d.top+d.height||o>h[1])&&(g[1]=1),d.left>i-a?(h[0]>d.left||i<h[0])&&(g[0]=-1):d.left+d.width<i+a&&(h[0]<d.left+d.width||i>h[0])&&(g[0]=1),!g[0]&&!g[1]?!1:this._continueDrag(Pa(Pa({},s),{direction:g,inputEvent:r,isDrag:!0}))}},e.checkScroll=function(r){var s=this;if(this._isWait)return!1;var i=r.prevScrollPos,o=i===void 0?this._prevScrollPos:i,l=r.direction,a=r.throttleTime,u=a===void 0?0:a,d=r.inputEvent,h=r.isDrag,g=this._getScrollPosition(l||[0,0],r),m=g[0]-o[0],A=g[1]-o[1],y=l||[m?Math.abs(m)/m:0,A?Math.abs(A)/A:0];return this._prevScrollPos=g,this._lock=!1,!m&&!A?!1:(this.emit("move",{offsetX:y[0]?m:0,offsetY:y[1]?A:0,inputEvent:d}),u&&h&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){s._continueDrag(r)},u)),!0)},e.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},e._getScrollPosition=function(r,s){var i=s.container,o=s.getScrollPosition,l=o===void 0?oQ:o;return l({container:Hf(i),direction:r})},e._continueDrag=function(r){var s=this,i,o=r.container,l=r.direction,a=r.throttleTime,u=r.useScroll,d=r.isDrag,h=r.inputEvent;if(!(!this._flag||d&&this._isWait)){var g=my(),m=Math.max(a+this._prevTime-g,0);if(m>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){s._continueDrag(r)},m),!1;this._prevTime=g;var A=this._getScrollPosition(l,r);this._prevScrollPos=A,d&&(this._isWait=!0),u||(this._lock=!0);var y={container:Hf(o),direction:l,inputEvent:h};return(i=r.requestScroll)===null||i===void 0||i.call(r,y),this.emit("scroll",y),this._isWait=!1,u||this.checkScroll(Pa(Pa({},r),{prevScrollPos:A,direction:l,inputEvent:h}))}},e._registerScrollEvent=function(r){this._unregisterScrollEvent();var s=r.checkScrollEvent;if(s){var i=s===!0?Wk:s,o=Hf(r.container);s===!0&&(o===document.body||o===document.documentElement)?this._unregister=Wk(window,this._onScroll):this._unregister=i(o,this._onScroll)}},e._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},t})(wp),Cy=function(n,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},Cy(n,t)};function aQ(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cy(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function cQ(n,t){return t={exports:{}},n(t,t.exports),t.exports}var Td=cQ(function(n,t){function e(a){if(a&&typeof a=="object"){var u=a.which||a.keyCode||a.charCode;u&&(a=u)}if(typeof a=="number")return o[a];var d=String(a),h=r[d.toLowerCase()];if(h)return h;var h=s[d.toLowerCase()];if(h)return h;if(d.length===1)return d.charCodeAt(0)}e.isEventKey=function(u,d){if(u&&typeof u=="object"){var h=u.which||u.keyCode||u.charCode;if(h==null)return!1;if(typeof d=="string"){var g=r[d.toLowerCase()];if(g)return g===h;var g=s[d.toLowerCase()];if(g)return g===h}else if(typeof d=="number")return d===h;return!1}},t=n.exports=e;var r=t.code=t.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},s=t.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};/*!
|
|
151
|
-
* Programatically add the following
|
|
152
|
-
*/for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var o=t.names=t.title={};for(i in r)o[r[i]]=i;for(var l in s)r[l]=s[l]});Td.code;Td.codes;Td.aliases;var uQ=Td.names;Td.title;var Hk={"+":"plus","left command":"meta","right command":"meta"},Yk={shift:1,ctrl:2,alt:3,meta:4};function nL(n,t){var e=(uQ[n]||t||"").toLowerCase();for(var r in Hk)e=e.replace(r,Hk[r]);return e.replace(/\s/g,"")}function rL(n,t){t===void 0&&(t=nL(n.keyCode,n.key));var e=dQ(n);return e.indexOf(t)===-1&&e.push(t),e.filter(Boolean)}function dQ(n){var t=[n.shiftKey&&"shift",n.ctrlKey&&"ctrl",n.altKey&&"alt",n.metaKey&&"meta"];return t.filter(Boolean)}function Gk(n){var t=n.slice();return t.sort(function(e,r){var s=Yk[e]||5,i=Yk[r]||5;return s-i}),t}var Zk,fQ=(function(n){aQ(t,n);function t(r){r===void 0&&(r=window);var s=n.call(this)||this;return s.container=r,s.ctrlKey=!1,s.altKey=!1,s.shiftKey=!1,s.metaKey=!1,s.clear=function(){return s.ctrlKey=!1,s.altKey=!1,s.shiftKey=!1,s.metaKey=!1,s},s.keydownEvent=function(i){s.triggerEvent("keydown",i)},s.keyupEvent=function(i){s.triggerEvent("keyup",i)},s.blur=function(){s.clear(),s.trigger("blur")},An(r,"blur",s.blur),An(r,"keydown",s.keydownEvent),An(r,"keyup",s.keyupEvent),s}var e=t.prototype;return Object.defineProperty(t,"global",{get:function(){return Zk||(Zk=new t)},enumerable:!1,configurable:!0}),t.setGlobal=function(){return this.global},e.destroy=function(){var r=this.container;this.clear(),this.off(),an(r,"blur",this.blur),an(r,"keydown",this.keydownEvent),an(r,"keyup",this.keyupEvent)},e.keydown=function(r,s){return this.addEvent("keydown",r,s)},e.offKeydown=function(r,s){return this.removeEvent("keydown",r,s)},e.offKeyup=function(r,s){return this.removeEvent("keyup",r,s)},e.keyup=function(r,s){return this.addEvent("keyup",r,s)},e.addEvent=function(r,s,i){return ng(s)?this.on("".concat(r,".").concat(Gk(s).join(".")),i):Qu(s)?this.on("".concat(r,".").concat(s),i):this.on(r,s),this},e.removeEvent=function(r,s,i){return ng(s)?this.off("".concat(r,".").concat(Gk(s).join(".")),i):Qu(s)?this.off("".concat(r,".").concat(s),i):this.off(r,s),this},e.triggerEvent=function(r,s){this.ctrlKey=s.ctrlKey,this.shiftKey=s.shiftKey,this.altKey=s.altKey,this.metaKey=s.metaKey;var i=nL(s.keyCode,s.key),o=i==="ctrl"||i==="shift"||i==="meta"||i==="alt",l={key:i,isToggle:o,inputEvent:s,keyCode:s.keyCode,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey,metaKey:s.metaKey};this.trigger(r,l),this.trigger("".concat(r,".").concat(i),l);var a=rL(s,i);a.length>1&&this.trigger("".concat(r,".").concat(a.join(".")),l)},t})(wp);/*! *****************************************************************************
|
|
153
|
-
Copyright (c) Microsoft Corporation.
|
|
154
|
-
|
|
155
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
156
|
-
purpose with or without fee is hereby granted.
|
|
157
|
-
|
|
158
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
159
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
160
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
161
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
162
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
163
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
164
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
165
|
-
***************************************************************************** */function hQ(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),s=0,t=0;t<e;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,s++)r[s]=i[o];return r}function mr(n){return _i(n,ms)}function gQ(n,t){return n.every(function(e,r){return mr(e-t[r])===0})}function pQ(n,t){return!mr(n[0]-t[0])&&!mr(n[1]-t[1])}function OA(n){return n.length<3?0:Math.abs(RV(n.map(function(t,e){var r=n[e+1]||n[0];return t[0]*r[1]-r[0]*t[1]})))/2}function mQ(n,t){var e=t.width,r=t.height,s=t.left,i=t.top,o=sL(n),l=o.minX,a=o.minY,u=o.maxX,d=o.maxY,h=e/(u-l),g=r/(d-a);return n.map(function(m){return[s+(m[0]-l)*h,i+(m[1]-a)*g]})}function sL(n){var t=n.map(function(r){return r[0]}),e=n.map(function(r){return r[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,e),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,e)}}function xy(n,t,e){var r=n[0],s=n[1],i=sL(t),o=i.minX,l=i.maxX,a=[[o,s],[l,s]],u=ig(a[0],a[1]),d=vy(t),h=[];if(d.forEach(function(A){var y=ig(A[0],A[1]),b=A[0];if(gQ(u,y))h.push({pos:n,line:A,type:"line"});else{var v=oL(iL(u,y),[a,A]);v.forEach(function(C){A.some(function(S){return pQ(S,C)})?h.push({pos:C,line:A,type:"point"}):mr(b[1]-s)!==0&&h.push({pos:C,line:A,type:"intersection"})})}}),Xu(h,function(A){return A[0]===r}))return!0;var g=0,m={};return h.forEach(function(A){var y=A.pos,b=A.type,v=A.line;if(!(y[0]>r))if(b==="intersection")++g;else{if(b==="line")return;if(b==="point"){var C=Xu(v,function(_){return _[1]!==s}),S=m[y[0]],k=C[1]>s?1:-1;S?S!==k&&++g:m[y[0]]=k}}}),g%2===1}function ig(n,t){var e=n[0],r=n[1],s=t[0],i=t[1],o=s-e,l=i-r;Math.abs(o)<ms&&(o=0),Math.abs(l)<ms&&(l=0);var a=0,u=0,d=0;return o?l?(a=-l/o,u=1,d=-a*e-r):(u=1,d=-r):l&&(a=-1,d=e),[a,u,d]}function iL(n,t){var e=n[0],r=n[1],s=n[2],i=t[0],o=t[1],l=t[2],a=e===0&&i===0,u=r===0&&o===0,d=[];if(a&&u)return[];if(a){var h=-s/r,g=-l/o;return h!==g?[]:[[-1/0,h],[1/0,h]]}else if(u){var m=-s/e,A=-l/i;return m!==A?[]:[[m,-1/0],[m,1/0]]}else if(e===0){var y=-s/r,b=-(o*y+l)/i;d=[[b,y]]}else if(i===0){var y=-l/o,b=-(r*y+s)/e;d=[[b,y]]}else if(r===0){var b=-s/e,y=-(i*b+l)/o;d=[[b,y]]}else if(o===0){var b=-l/i,y=-(e*b+s)/r;d=[[b,y]]}else{var b=(r*l-o*s)/(o*e-r*i),y=-(e*b+s)/r;d=[[b,y]]}return d.map(function(v){return[v[0],v[1]]})}function oL(n,t){var e=t.map(function(h){return[0,1].map(function(g){return[Math.min(h[0][g],h[1][g]),Math.max(h[0][g],h[1][g])]})}),r=[];if(n.length===2){var s=n[0],i=s[0],o=s[1];if(mr(i-n[1][0])){if(!mr(o-n[1][1])){var u=Math.max.apply(Math,e.map(function(h){return h[0][0]})),d=Math.min.apply(Math,e.map(function(h){return h[0][1]}));if(mr(u-d)>0)return[];r=[[u,o],[d,o]]}}else{var l=Math.max.apply(Math,e.map(function(h){return h[1][0]})),a=Math.min.apply(Math,e.map(function(h){return h[1][1]}));if(mr(l-a)>0)return[];r=[[i,l],[i,a]]}}return r.length||(r=n.filter(function(h){var g=h[0],m=h[1];return e.every(function(A){return 0<=mr(g-A[0][0])&&0<=mr(A[0][1]-g)&&0<=mr(m-A[1][0])&&0<=mr(A[1][1]-m)})})),r.map(function(h){return[mr(h[0]),mr(h[1])]})}function vy(n){return hQ(n.slice(1),[n[0]]).map(function(t,e){return[n[e],t]})}function AQ(n,t){var e=n.slice(),r=t.slice();Fk(e)===-1&&e.reverse(),Fk(r)===-1&&r.reverse();var s=vy(e),i=vy(r),o=s.map(function(d){return ig(d[0],d[1])}),l=i.map(function(d){return ig(d[0],d[1])}),a=[];o.forEach(function(d,h){var g=s[h],m=[];l.forEach(function(A,y){var b=iL(d,A),v=oL(b,[g,i[y]]);m.push.apply(m,v.map(function(C){return{index1:h,index2:y,pos:C,type:"intersection"}}))}),m.sort(function(A,y){return Ay(g[0],A.pos)-Ay(g[0],y.pos)}),a.push.apply(a,m),xy(g[1],r)&&a.push({index1:h,index2:-1,pos:g[1],type:"inside"})}),i.forEach(function(d,h){if(xy(d[1],e)){var g=!1,m=sg(a,function(A){var y=A.index2;return y===h?(g=!0,!1):!!g});m===-1&&(g=!1,m=sg(a,function(A){var y=A.index1,b=A.index2;return y===-1&&b+1===h?(g=!0,!1):!!g})),m===-1?a.push({index1:-1,index2:h,pos:d[1],type:"inside"}):a.splice(m,0,{index1:-1,index2:h,pos:d[1],type:"inside"})}});var u={};return a.filter(function(d){var h=d.pos,g=h[0]+"x"+h[1];return u[g]?!1:(u[g]=!0,!0)})}function Jk(n,t){var e=AQ(n,t);return e.map(function(r){var s=r.pos;return s})}function yQ(n,t,e,r,s,i){for(var o=0;o<s;++o){var l=e+o*s,a=r+o*s;n[l]+=n[a]*i,t[l]+=t[a]*i}}function bQ(n,t,e,r,s){for(var i=0;i<s;++i){var o=e+i*s,l=r+i*s,a=n[o],u=t[o];n[o]=n[l],n[l]=a,t[o]=t[l],t[l]=u}}function wQ(n,t,e,r,s){for(var i=0;i<r;++i){var o=e+i*r;n[o]/=s,t[o]/=s}}function CQ(n,t){for(var e=n.slice(),r=lL(t),s=0;s<t;++s){var i=t*s+s;if(!_i(e[i],ms)){for(var o=s+1;o<t;++o)if(e[t*s+o]){bQ(e,r,s,o,t);break}}if(!_i(e[i],ms))return[];wQ(e,r,s,t,e[i]);for(var o=0;o<t;++o){var l=o,a=o+s*t,u=e[a];!_i(u,ms)||s===o||yQ(e,r,l,s,t,-u)}}return r}function sa(n,t,e){e===void 0&&(e=Math.sqrt(n.length));var r=[],s=n.length/e,i=t.length/s;if(s){if(!i)return n}else return t;for(var o=0;o<e;++o)for(var l=0;l<i;++l){r[l*e+o]=0;for(var a=0;a<s;++a)r[l*e+o]+=n[a*e+o]*t[l*s+a]}return r}function xQ(n,t,e){var r=sa(n,t,e),s=r[e-1];return r.map(function(i){return i/s})}function vQ(n,t){return sa(n,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function SQ(n,t){return sa(n,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function EQ(n,t){return sa(n,kQ(t,4))}function Yf(n,t){var e=t[0],r=e===void 0?1:e,s=t[1],i=s===void 0?1:s,o=t[2],l=o===void 0?1:o;return sa(n,[r,0,0,0,0,i,0,0,0,0,l,0,0,0,0,1],4)}function RA(n,t){var e=t[0],r=e===void 0?0:e,s=t[1],i=s===void 0?0:s,o=t[2],l=o===void 0?0:o;return sa(n,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,l,1],4)}function Sy(n,t){return sa(n,t,4)}function kQ(n,t){var e=Math.cos(n),r=Math.sin(n),s=lL(t);return s[0]=e,s[1]=r,s[t]=-r,s[t+1]=e,s}function lL(n){for(var t=n*n,e=[],r=0;r<t;++r)e[r]=r%(n+1)?0:1;return e}var Cu=function(){return Cu=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Cu.apply(this,arguments)};function rC(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function TQ(n,t){return t===void 0&&(t=0),NQ(MQ(n,t))}function jA(n,t){var e=xQ(n,[t[0],t[1]||0,t[2]||0,1],4),r=e[3]||1;return[e[0]/r,e[1]/r,e[2]/r]}function _Q(n,t){t===void 0&&(t=document.body);for(var e=n,r=rC();e;){var s=getComputedStyle(e).transform;if(r=Sy(TQ(s),r),e===t)break;e=e.parentElement}return r=CQ(r,4),r[12]=0,r[13]=0,r[14]=0,r}function NQ(n){var t=rC();return n.forEach(function(e){var r=e.matrixFunction,s=e.functionValue;r&&(t=r(t,s))}),t}function MQ(n,t){t===void 0&&(t=0);var e=ng(n)?n:LV(n);return e.map(function(r){var s=DV(r),i=s.prefix,o=s.value,l=null,a=i,u="";if(i==="translate"||i==="translateX"||i==="translate3d"){var d=Po(t)?Cu(Cu({},t),{"o%":t["%"]}):{"%":t,"o%":t},h=lu(o).map(function(R,z){return z===0&&"x%"in d?d["%"]=t["x%"]:z===1&&"y%"in d?d["%"]=t["y%"]:d["%"]=t["o%"],jk(R,d)}),g=h[0],m=h[1],A=m===void 0?0:m,y=h[2],b=y===void 0?0:y;l=RA,u=[g,A,b]}else if(i==="translateY"){var v=Po(t)?Cu({"%":t["y%"]},t):{"%":t},A=jk(o,v);l=RA,u=[0,A,0]}else if(i==="translateZ"){var b=parseFloat(o);l=RA,u=[0,0,b]}else if(i==="scale"||i==="scale3d"){var C=lu(o).map(function(R){return parseFloat(R)}),S=C[0],k=C[1],_=k===void 0?S:k,T=C[2],N=T===void 0?1:T;l=Yf,u=[S,_,N]}else if(i==="scaleX"){var S=parseFloat(o);l=Yf,u=[S,1,1]}else if(i==="scaleY"){var _=parseFloat(o);l=Yf,u=[1,_,1]}else if(i==="scaleZ"){var N=parseFloat(o);l=Yf,u=[1,1,N]}else if(i==="rotate"||i==="rotateZ"||i==="rotateX"||i==="rotateY"){var M=rg(o),I=M.unit,D=M.value,j=I==="rad"?D:D*Math.PI/180;i==="rotate"||i==="rotateZ"?(a="rotateZ",l=EQ):i==="rotateX"?l=vQ:i==="rotateY"&&(l=SQ),u=j}else if(i==="matrix3d")l=Sy,u=lu(o).map(function(R){return parseFloat(R)});else if(i==="matrix"){var B=lu(o).map(function(R){return parseFloat(R)});l=Sy,u=[B[0],B[1],0,0,B[2],B[3],0,0,0,0,1,0,B[4],B[5],0,1]}else a="";return{name:i,functionName:a,value:o,matrixFunction:l,functionValue:u}})}function IQ(n){for(var t=5381,e=n.length;e;)t=t*33^n.charCodeAt(--e);return t>>>0}var LQ=IQ;function DQ(n){return LQ(n).toString(36)}function OQ(n){if(n&&n.getRootNode){var t=n.getRootNode();if(t.nodeType===11)return t}}function RQ(n,t,e){return e.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,s){var i=s.trim();return(i?lu(i):[""]).map(function(o){var l=o.trim();return l.indexOf("@")===0?l:l.indexOf(":global")>-1?l.replace(/\:global/g,""):l.indexOf(":host")>-1?"".concat(l.replace(/\:host/g,".".concat(n))):l?".".concat(n," ").concat(l):".".concat(n)}).join(", ")+" {"})}function jQ(n,t,e,r,s){var i=Si(r),o=i.createElement("style");return o.setAttribute("type","text/css"),o.setAttribute("data-styled-id",n),o.setAttribute("data-styled-count","1"),e.nonce&&o.setAttribute("nonce",e.nonce),o.innerHTML=RQ(n,t,e),(s||i.head||i.body).appendChild(o),o}function PQ(n){var t="rCS"+DQ(n);return{className:t,inject:function(e,r){r===void 0&&(r={});var s=OQ(e),i=(s||e.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(!i)i=jQ(t,n,r,e,s);else{var o=parseFloat(i.getAttribute("data-styled-count"))||0;i.setAttribute("data-styled-count","".concat(o+1))}return{destroy:function(){var l,a=parseFloat(i.getAttribute("data-styled-count"))||0;a<=1?(i.remove?i.remove():(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null):i.setAttribute("data-styled-count","".concat(a-1))}}}}}var Ey=function(n,t){return Ey=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},Ey(n,t)};function aL(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ey(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var mn=function(){return mn=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},mn.apply(this,arguments)};function BQ(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(e[r[s]]=n[r[s]]);return e}function FQ(n,t,e,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var l=n.length-1;l>=0;l--)(o=n[l])&&(i=(s<3?o(i):s>3?o(t,e,i):o(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}function xu(n,t,e){for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return n.concat(i||Array.prototype.slice.call(t))}function zQ(n){if("touches"in n){var t=n.touches[0]||n.changedTouches[0];return{clientX:t.clientX,clientY:t.clientY}}else return{clientX:n.clientX,clientY:n.clientY}}function UQ(n){if(typeof Map>"u")return n.filter(function(e,r){return n.indexOf(e)===r});var t=new Map;return n.filter(function(e){return t.has(e)?!1:(t.set(e,!0),!0)})}function KQ(n,t,e){var r=Si(n);return r.elementFromPoint&&r.elementFromPoint(t,e)||null}function cL(n,t,e){var r=n.tag,s=n.children,i=n.attributes,o=n.className,l=n.style,a=t||Si(e).createElement(r);for(var u in i)a.setAttribute(u,i[u]);var d=a.children;if(s.forEach(function(g,m){cL(g,d[m],a)}),o&&o.split(/\s+/g).forEach(function(g){g&&!BV(a,g)&&FV(a,g)}),l){var h=a.style;for(var u in l)h[u]=l[u]}return!t&&e&&e.appendChild(a),a}function WQ(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];var s=t||{},i=s.className,o=i===void 0?"":i,l=s.style,a=l===void 0?{}:l,u=BQ(s,["className","style"]);return{tag:n,className:o,style:a,attributes:u,children:e}}function PA(n,t,e){n!==t&&e(n,t)}function Vk(n,t,e){var r;e===void 0&&(e=n.data.boundArea);var s=n.distX,i=s===void 0?0:s,o=n.distY,l=o===void 0?0:o,a=n.data,u=a.startX,d=a.startY;if(t>0){var h=Math.sqrt((i*i+l*l)/(1+t*t)),g=t*h;i=(i>=0?1:-1)*g,l=(l>=0?1:-1)*h}var m=Math.abs(i),A=Math.abs(l),y=i<0?u-e.left:e.right-u,b=l<0?d-e.top:e.bottom-d;r=OV([m,A],[0,0],[y,b],!!t),m=r[0],A=r[1],i=(i>=0?1:-1)*m,l=(l>=0?1:-1)*A;var v=Math.min(0,i),C=Math.min(0,l),S=u+v,k=d+C;return{left:S,top:k,right:S+m,bottom:k+A,width:m,height:A}}function Gf(n){var t=n.getBoundingClientRect(),e=t.left,r=t.top,s=t.width,i=t.height;return{pos1:[e,r],pos2:[e+s,r],pos3:[e,r+i],pos4:[e+s,r+i]}}function Qk(n,t,e){var r=au(n,t),s=r.list,i=r.prevList,o=r.added,l=r.removed,a=r.maintained;return xu(xu(xu([],o.map(function(u){return s[u]}),!0),l.map(function(u){return i[u]}),!0),e?a.map(function(u){var d=u[1];return s[d]}):[])}function Xk(n){for(var t=0,e=n.length,r=1;r<e;++r)t=Math.max(Ay(n[r],n[r-1]),t);return t}var uL=PQ(`
|
|
166
|
-
:host {
|
|
167
|
-
position: fixed;
|
|
168
|
-
display: none;
|
|
169
|
-
border: 1px solid #4af;
|
|
170
|
-
background: rgba(68, 170, 255, 0.5);
|
|
171
|
-
pointer-events: none;
|
|
172
|
-
will-change: transform;
|
|
173
|
-
z-index: 100;
|
|
174
|
-
}
|
|
175
|
-
`),ky="selecto-selection ".concat(uL.className),sC=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],HQ=xu(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],sC),dL=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],YQ=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],GQ=(function(n){aL(t,n);function t(r){r===void 0&&(r={});var s=n.call(this)||this;s.selectedTargets=[],s.dragScroll=new lQ,s._onDragStart=function(l,a){var u=l.data,d=l.clientX,h=l.clientY,g=l.inputEvent,m=s.options,A=m.selectFromInside,y=m.selectByClick,b=m.rootContainer,v=m.boundContainer,C=m.preventDragFromInside,S=C===void 0?!0:C,k=m.clickBySelectEnd,_=m.dragCondition;if(_&&!_(l)){l.stop();return}u.data={};var T=cl(s.container);u.innerWidth=T.innerWidth,u.innerHeight=T.innerHeight,s.findSelectableTargets(u),u.startSelectedTargets=s.selectedTargets,u.scaleMatrix=rC(),u.containerX=0,u.containerY=0;var N=s.container,M={left:-1/0,top:-1/0,right:1/0,bottom:1/0};if(b){var I=s.container.getBoundingClientRect();u.containerX=I.left,u.containerY=I.top,u.scaleMatrix=_Q(s.container,b)}if(v){var D=Po(v)&&"element"in v?mn({left:!0,top:!0,bottom:!0,right:!0},v):{element:v,left:!0,top:!0,bottom:!0,right:!0},j=D.element,B=void 0;if(j){Qu(j)?B=Si(N).querySelector(j):j===!0?B=s.container:B=j;var R=B.getBoundingClientRect();D.left&&(M.left=R.left),D.top&&(M.top=R.top),D.right&&(M.right=R.right),D.bottom&&(M.bottom=R.bottom)}}u.boundArea=M;var z={left:d,top:h,right:d,bottom:h,width:0,height:0},G=[],ce=y&&!k,oe=!1;if(!A||ce){var W=s._findElement(a||g.target,u.selectableTargets);oe=!!W,ce&&(G=W?[W]:[])}var Z=!A&&oe;if(Z&&!y)return l.stop(),!1;var ae=g.type,q=ae==="mousedown"||ae==="touchstart",K=!l.isClick&&q?s.emit("dragStart",mn(mn({},l),{data:u.data})):!0;if(!K)return l.stop(),!1;if(s.continueSelect?(G=Qk(s.selectedTargets,G,s.continueSelectWithoutDeselect),u.startPassedTargets=s.selectedTargets):u.startPassedTargets=[],s._select(G,z,l,!0,Z&&y&&!k&&S),u.startX=d,u.startY=h,u.selectFlag=!1,u.preventDragFromInside=!1,g.target){var Y=jA(u.scaleMatrix,[d-u.containerX,h-u.containerY]);s.target.style.cssText+="position: ".concat(b?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(Y[0],"px, ").concat(Y[1],"px)")}if(Z&&y&&!k)g.preventDefault(),S&&(s._selectEnd(u.startSelectedTargets,u.startPassedTargets,z,l,!0),u.preventDragFromInside=!0);else{u.selectFlag=!0;var te=s.options,ue=te.scrollOptions,re=te.innerScrollOptions,se=!1;if(re){for(var he=l.inputEvent,xe=he.target,pe=null,$=xe;$&&$!==Si(N).body;){var le=getComputedStyle($).overflow!=="visible";if(le){pe=$;break}$=$.parentElement}pe&&(u.innerScrollOptions=mn({container:pe,checkScrollEvent:!0},re===!0?{}:re),s.dragScroll.dragStart(l,u.innerScrollOptions),se=!0)}!se&&ue&&ue.container&&s.dragScroll.dragStart(l,ue),Z&&y&&k&&(u.selectFlag=!1,l.preventDrag())}return!0},s._onDrag=function(l){if(l.data.selectFlag){var a=s.scrollOptions,u=l.data.innerScrollOptions,d=u||(a==null?void 0:a.container);if(d&&!l.isScroll&&s.dragScroll.drag(l,u||a))return}s._checkSelected(l)},s._onDragEnd=function(l){var a=l.data,u=l.inputEvent,d=Vk(l,s.options.ratio),h=a.selectFlag,g=s.container;if(u&&s.emit("dragEnd",mn(mn({isDouble:!!l.isDouble,isClick:!!l.isClick,isDrag:!1,isSelect:h},l),{data:a.data,rect:d})),s.target.style.cssText+="display: none;",h)a.selectFlag=!1,s.dragScroll.dragEnd();else if(s.selectByClick&&s.clickBySelectEnd){var m=s._findElement((u==null?void 0:u.target)||KQ(g,l.clientX,l.clientY),a.selectableTargets);s._select(m?[m]:[],d,l)}a.preventDragFromInside||s._selectEnd(a.startSelectedTargets,a.startPassedTargets,d,l)},s._onKeyDown=function(l){var a=s.options,u=!1;if(!s._keydownContinueSelect){var d=s._sameCombiKey(l,a.toggleContinueSelect);s._keydownContinueSelect=d,u||(u=d)}if(!s._keydownContinueSelectWithoutDeselection){var d=s._sameCombiKey(l,a.toggleContinueSelectWithoutDeselect);s._keydownContinueSelectWithoutDeselection=d,u||(u=d)}u&&s.emit("keydown",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection})},s._onKeyUp=function(l){var a=s.options,u=!1;if(s._keydownContinueSelect){var d=s._sameCombiKey(l,a.toggleContinueSelect,!0);s._keydownContinueSelect=!d,u||(u=d)}if(s._keydownContinueSelectWithoutDeselection){var d=s._sameCombiKey(l,a.toggleContinueSelectWithoutDeselect,!0);s._keydownContinueSelectWithoutDeselection=!d,u||(u=d)}u&&s.emit("keyup",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection})},s._onBlur=function(){(s._keydownContinueSelect||s._keydownContinueSelectWithoutDeselection)&&(s._keydownContinueSelect=!1,s._keydownContinueSelectWithoutDeselection=!1,s.emit("keyup",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection}))},s._onDocumentSelectStart=function(l){var a=Si(s.container);if(s.gesto.isFlag()){var u=s.dragContainer;u===cl(s.container)&&(u=a.documentElement);var d=zk(u)?[u]:[].slice.call(u),h=l.target;d.some(function(g){if(g===h||g.contains(h))return l.preventDefault(),!0})}},s.target=r.portalContainer;var i=r.container;s.options=mn({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:Gf,cspNonce:"",ratio:0},r);var o=s.options.portalContainer;return o&&(i=o.parentElement),s.container=i||document.body,s.initElement(),s.initDragScroll(),s.setKeyController(),s}var e=t.prototype;return e.setSelectedTargets=function(r){var s=this.selectedTargets,i=au(s,r),o=i.added,l=i.removed,a=i.prevList,u=i.list;return this.selectedTargets=r,{added:o.map(function(d){return u[d]}),removed:l.map(function(d){return a[d]}),beforeSelected:s,selected:r}},e.setSelectedTargetsByPoints=function(r,s){var i=Math.min(r[0],s[0]),o=Math.min(r[1],s[1]),l=Math.max(r[0],s[0]),a=Math.max(r[1],s[1]),u={left:i,top:o,right:l,bottom:a,width:l-i,height:a-o},d={ignoreClick:!0};this.findSelectableTargets(d);var h=this.hitTest(u,d,!0,null),g=this.setSelectedTargets(h);return mn(mn({},g),{rect:u})},e.selectTargetsByPoints=function(r,s){var i=new MouseEvent("mousedown",{clientX:r[0],clientY:r[1],cancelable:!0,bubbles:!0}),o=new MouseEvent("mousemove",{clientX:s[0],clientY:s[1],cancelable:!0,bubbles:!0}),l=new MouseEvent("mousemove",{clientX:s[0],clientY:s[1],cancelable:!0,bubbles:!0}),a=this.gesto,u=a.onDragStart(i);u!==!1&&(a.onDrag(o),a.onDragEnd(l))},e.getSelectedTargets=function(){return this.selectedTargets},e.triggerDragStart=function(r){return this.gesto.triggerDragStart(r),this},e.destroy=function(){var r;this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),this.dragScroll.dragEnd(),an(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},e.getElementPoints=function(r){var s=this.getElementRect||Gf,i=s(r),o=[i.pos1,i.pos2,i.pos4,i.pos3];if(s!==Gf){var l=r.getBoundingClientRect();return mQ(o,l)}return o},e.getSelectableElements=function(){var r=this.container,s=[];return this.options.selectableTargets.forEach(function(i){if(eC(i)){var o=i();o&&s.push.apply(s,[].slice.call(o))}else if(zk(i))s.push(i);else if(Po(i))s.push(i.value||i.current);else{var l=[].slice.call(Si(r).querySelectorAll(i));s.push.apply(s,l)}}),s},e.checkScroll=function(){if(this.gesto.isFlag()){var r=this.scrollOptions,s=this.gesto.getEventData().innerScrollOptions,i=s||(r==null?void 0:r.container);i&&this.dragScroll.checkScroll(mn({inputEvent:this.gesto.getCurrentEvent()},s||r))}},e.findSelectableTargets=function(r){var s=this;r===void 0&&(r=this.gesto.getEventData());var i=this.getSelectableElements(),o=i.map(function(h){return s.getElementPoints(h)});r.selectableTargets=i,r.selectablePoints=o,r.selectableParentMap=null;var l=this.options,a=l.checkOverflow||l.innerScrollOptions,u=Si(this.container);if(a){var d=new Map;r.selectableInnerScrollParentMap=d,r.selectableInnerScrollPathsList=i.map(function(h,g){for(var m=h.parentElement,A=[],y=[],b=function(){var v=d.get(m);if(!v){var C=getComputedStyle(m).overflow!=="visible";if(C){var S=Gf(m);v={parentElement:m,indexes:[],points:[S.pos1,S.pos2,S.pos4,S.pos3],paths:xu([],y)},A.push(m),A.forEach(function(k){d.set(k,v)}),A=[]}}v?(m=v.parentElement,d.get(m).indexes.push(g),y.push(m)):A.push(m),m=m.parentElement};m&&m!==u.body;)b();return y})}return l.checkOverflow||(r.selectableInners=i.map(function(){return!0})),this._refreshGroups(r),i},e.clickTarget=function(r,s){var i=zQ(r),o=i.clientX,l=i.clientY,a={data:{selectFlag:!1},clientX:o,clientY:l,inputEvent:r,isClick:!0,isTrusted:!1,stop:function(){return!1}};return this._onDragStart(a,s)&&this._onDragEnd(a),this},e.setKeyController=function(){var r=this.options,s=r.keyContainer,i=r.toggleContinueSelect,o=r.toggleContinueSelectWithoutDeselect;this.keycon&&(this.keycon.destroy(),this.keycon=null),(i||o)&&(this.keycon=new fQ(s||cl(this.container)),this.keycon.keydown(this._onKeyDown).keyup(this._onKeyUp).on("blur",this._onBlur))},e.setClassName=function(r){this.options.className=r,this.target.setAttribute("class","".concat(ky," ").concat(r||""))},e.setKeyEvent=function(){var r=this.options,s=r.toggleContinueSelect,i=r.toggleContinueSelectWithoutDeselect;!s&&!i||this.keycon||this.setKeyController()},e.setKeyContainer=function(r){var s=this,i=this.options;PA(i.keyContainer,r,function(){i.keyContainer=r,s.setKeyController()})},e.getContinueSelect=function(){var r=this.options,s=r.continueSelect,i=r.toggleContinueSelect;return!i||!this._keydownContinueSelect?s:!s},e.getContinueSelectWithoutDeselect=function(){var r=this.options,s=r.continueSelectWithoutDeselect,i=r.toggleContinueSelectWithoutDeselect;return!i||!this._keydownContinueSelectWithoutDeselection?s:!s},e.setToggleContinueSelect=function(r){var s=this,i=this.options;PA(i.toggleContinueSelect,r,function(){i.toggleContinueSelect=r,s.setKeyEvent()})},e.setToggleContinueSelectWithoutDeselect=function(r){var s=this,i=this.options;PA(i.toggleContinueSelectWithoutDeselect,r,function(){i.toggleContinueSelectWithoutDeselect=r,s.setKeyEvent()})},e.setPreventDefault=function(r){this.gesto.options.preventDefault=r},e.setCheckInput=function(r){this.gesto.options.checkInput=r},e.initElement=function(){var r=this.options,s=r.dragContainer,i=r.checkInput,o=r.preventDefault,l=r.preventClickEventOnDragStart,a=r.preventClickEventOnDrag,u=r.preventClickEventByCondition,d=r.preventRightClick,h=d===void 0?!0:d,g=r.className,m=this.container;this.target=cL(WQ("div",{className:"".concat(ky," ").concat(g||"")}),this.target,m);var A=this.target;this.dragContainer=typeof s=="string"?[].slice.call(Si(m).querySelectorAll(s)):s||this.target.parentNode,this.gesto=new ZV(this.dragContainer,{checkWindowBlur:!0,container:cl(m),checkInput:i,preventDefault:o,preventClickEventOnDragStart:l,preventClickEventOnDrag:a,preventClickEventByCondition:u,preventRightClick:h}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),An(document,"selectstart",this._onDocumentSelectStart),this.injectResult=uL.inject(A,{nonce:this.options.cspNonce})},e.hitTest=function(r,s,i,o){var l=this.options,a=l.hitRate,u=l.selectByClick,d=r.left,h=r.top,g=r.right,m=r.bottom,A=s.innerGroups,y=s.innerWidth,b=s.innerHeight,v=o==null?void 0:o.clientX,C=o==null?void 0:o.clientY,S=s.ignoreClick,k=[[d,h],[g,h],[g,m],[d,m]],_=function(W,Z){var ae=rg(typeof a=="function"?"".concat(a(Z)):"".concat(a)),q=S?!1:xy([v,C],W);if(!i&&u&&q)return!0;var K=Jk(k,W);if(!K.length)return!1;var Y=OA(K),te=0;if(Y===0&&OA(W)===0?(te=Xk(W),Y=Xk(K)):te=OA(W),ae.unit==="px")return Y>=ae.value;var ue=eL(Math.round(Y/te*100),0,100);return ue>=Math.min(100,ae.value)},T=s.selectableTargets,N=s.selectablePoints,M=s.selectableInners;if(!A)return T.filter(function(W,Z){return M[Z]?_(N[Z],T[Z]):!1});for(var I=[],D=Math.floor(d/y),j=Math.floor(g/y),B=Math.floor(h/b),R=Math.floor(m/b),z=D;z<=j;++z){var G=A[z];if(G)for(var ce=B;ce<=R;++ce){var oe=G[ce];oe&&oe.forEach(function(W){var Z=N[W],ae=M[W],q=T[W];ae&&_(Z,q)&&I.push(q)})}}return UQ(I)},e.initDragScroll=function(){var r=this;this.dragScroll.on("scrollDrag",function(s){var i=s.next;i(r.gesto.getCurrentEvent())}).on("scroll",function(s){var i=s.container,o=s.direction,l=r.gesto.getEventData().innerScrollOptions;l?r.emit("innerScroll",{container:i,direction:o}):r.emit("scroll",{container:i,direction:o})}).on("move",function(s){var i=s.offsetX,o=s.offsetY,l=s.inputEvent,a=r.gesto;if(!(!a||!a.isFlag())){var u=r.gesto.getEventData(),d=u.boundArea;u.startX-=i,u.startY-=o;var h=r.gesto.getEventData().innerScrollOptions,g=h==null?void 0:h.container,m=!1;if(g){var A=u.selectableInnerScrollParentMap,y=A.get(g);y&&(y.paths.forEach(function(b){var v=A.get(b);v.points.forEach(function(C){C[0]-=i,C[1]-=o})}),y.indexes.forEach(function(b){u.selectablePoints[b].forEach(function(v){v[0]-=i,v[1]-=o})}),m=!0)}m||u.selectablePoints.forEach(function(b){b.forEach(function(v){v[0]-=i,v[1]-=o})}),r._refreshGroups(u),d.left-=i,d.right-=i,d.top-=o,d.bottom-=o,r.gesto.scrollBy(i,o,l.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},e._select=function(r,s,i,o,l){l===void 0&&(l=!1);var a=i.inputEvent,u=i.data,d=this.setSelectedTargets(r),h=au(u.startSelectedTargets,r),g=h.added,m=h.removed,A=h.prevList,y=h.list,b={startSelected:A,startAdded:g.map(function(v){return y[v]}),startRemoved:m.map(function(v){return A[v]})};o&&this.emit("selectStart",mn(mn(mn({},d),b),{rect:s,inputEvent:a,data:u.data,isTrusted:i.isTrusted,isDragStartEnd:l})),(d.added.length||d.removed.length)&&this.emit("select",mn(mn(mn({},d),b),{rect:s,inputEvent:a,data:u.data,isTrusted:i.isTrusted,isDragStartEnd:l}))},e._selectEnd=function(r,s,i,o,l){l===void 0&&(l=!1);var a=o.inputEvent,u=o.isDouble,d=o.data,h=a&&a.type,g=h==="mousedown"||h==="touchstart",m=au(r,this.selectedTargets),A=m.added,y=m.removed,b=m.prevList,v=m.list,C=au(s,this.selectedTargets),S=C.added,k=C.removed,_=C.prevList,T=C.list;this.emit("selectEnd",{startSelected:r,beforeSelected:s,selected:this.selectedTargets,added:A.map(function(N){return v[N]}),removed:y.map(function(N){return b[N]}),afterAdded:S.map(function(N){return T[N]}),afterRemoved:k.map(function(N){return _[N]}),isDragStart:g&&l,isDragStartEnd:g&&l,isClick:!!o.isClick,isDouble:!!u,rect:i,inputEvent:a,data:d.data,isTrusted:o.isTrusted})},e._checkSelected=function(r,s){s===void 0&&(s=Vk(r,this.options.ratio));var i=r.data,o=s.top,l=s.left,a=s.width,u=s.height,d=i.selectFlag,h=i.containerX,g=i.containerY,m=i.scaleMatrix,A=jA(m,[l-h,o-g]),y=jA(m,[a,u]),b=[];if(d){this.target.style.cssText+="display: block;left:0px;top:0px;"+"transform: translate(".concat(A[0],"px, ").concat(A[1],"px);")+"width:".concat(y[0],"px;height:").concat(y[1],"px;");var v=this.hitTest(s,i,!0,r);b=Qk(i.startPassedTargets,v,this.continueSelect&&this.continueSelectWithoutDeselect)}var C=this.emit("drag",mn(mn({},r),{data:i.data,isSelect:d,rect:s}));if(C===!1){this.target.style.cssText+="display: none;",r.stop();return}d&&this._select(b,s,r)},e._sameCombiKey=function(r,s,i){if(!s)return!1;var o=rL(r.inputEvent,r.key),l=[].concat(s),a=ng(l[0])?l:[l];if(i){var u=r.key;return a.some(function(d){return d.some(function(h){return h===u})})}return a.some(function(d){return d.every(function(h){return o.indexOf(h)>-1})})},e._findElement=function(r,s){for(var i=r;i&&!(s.indexOf(i)>-1);)i=i.parentElement;return i},e._refreshGroups=function(r){var s,i=r.innerWidth,o=r.innerHeight,l=r.selectablePoints;if(this.options.checkOverflow){var a=(s=this.gesto.getEventData().innerScrollOptions)===null||s===void 0?void 0:s.container,u=r.selectableInnerScrollParentMap,d=r.selectableInnerScrollPathsList;r.selectableInners=d.map(function(m,A){var y=!1;return m.every(function(b){if(y)return!0;if(b===a)return y=!0,!0;var v=u.get(b);if(v){var C=l[A],S=v.points,k=Jk(C,S);if(!k.length)return!1}return!0})})}if(!i||!o)r.innerGroups=null;else{var h=r.selectablePoints,g={};h.forEach(function(m,A){var y=1/0,b=-1/0,v=1/0,C=-1/0;m.forEach(function(_){var T=Math.floor(_[0]/i),N=Math.floor(_[1]/o);y=Math.min(T,y),b=Math.max(T,b),v=Math.min(N,v),C=Math.max(N,C)});for(var S=y;S<=b;++S)for(var k=v;k<=C;++k)g[S]=g[S]||{},g[S][k]=g[S][k]||[],g[S][k].push(A)}),r.innerGroups=g}},t=FQ([VV(sC,function(r,s){var i={enumerable:!0,configurable:!0,get:function(){return this.options[s]}},o=py("get ".concat(s));r[o]?i.get=function(){return this[o]()}:i.get=function(){return this.options[s]};var l=py("set ".concat(s));r[l]?i.set=function(a){this[l](a)}:i.set=function(a){this.options[s]=a},Object.defineProperty(r,s,i)})],t),t})(wp),ZQ=(function(n){aL(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t})(GQ),Ty=function(n,t){return Ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},Ty(n,t)};function JQ(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ty(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var og=function(){return og=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},og.apply(this,arguments)};function VQ(n,t,e,r){var s=arguments.length,i=s<3?t:r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var l=n.length-1;l>=0;l--)(o=n[l])&&(i=(s<3?o(i):s>3?o(t,e,i):o(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}var qk=dL.map(function(n){return py("on ".concat(n))}),QQ=(function(n){JQ(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}var e=t.prototype;return e.render=function(){return x.createElement("div",{className:ky,ref:JV(this,"selectionElement")})},e.componentDidMount=function(){var r=this,s=this.props,i={};HQ.forEach(function(o){o in s&&(i[o]=s[o])}),this.selecto=new ZQ(og(og({},i),{portalContainer:this.selectionElement})),dL.forEach(function(o,l){r.selecto.on(o,function(a){var u=r.props,d=u[qk[l]]&&u[qk[l]](a);d===!1&&a.stop()})})},e.componentDidUpdate=function(r){var s=this.props,i=this.selecto;sC.forEach(function(o){r[o]!==s[o]&&(i[o]=s[o])})},e.componentWillUnmount=function(){this.selecto.destroy()},VQ([QV(YQ)],t.prototype,"selecto",void 0),t})(x.PureComponent);const XQ=({editor:n})=>{const t=x.useRef(null),[e,r]=x.useState({depth:0,targets:K0});return x.useEffect(()=>{const s=()=>{var i;return(i=t.current)==null?void 0:i.checkScroll()};return window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[n]),x.useEffect(()=>{let s=null;const i=()=>{s=ct(n.registerCommand(fc,()=>{var h;const a=((h=t.current)==null?void 0:h.getSelectedTargets())||[],{hasSelectedBlock:u,selectedAllDocument:d}=al();if(u)a.forEach(g=>ea(g));else if(d){const g=document.querySelector("div.ContentEditable__root");g==null||g.classList.remove("selected-all-document")}return!1},Ss),n.registerCommand(Ul,a=>{const{hasSelectedBlock:u,selectedAllDocument:d}=al();if(aU(n,a,t.current))return!0;const g=a.ctrlKey||a.metaKey||a.altKey;return a.key.length===1&&!g&&n.update(()=>{var b;const A=Me(),y=Io();if(A.append(y),u)(((b=t.current)==null?void 0:b.getSelectedTargets())||[]).forEach((C,S)=>{const k=He(C);k&&(S===0?k.replace(A).selectEnd():k.remove())});else if(d){const v=document.querySelector("div.ContentEditable__root");v==null||v.classList.remove("selected-all-document");const C=Ue();C.clear(),C.append(A).selectEnd()}},{tag:"historic"}),!1},De),n.registerCommand(qu,()=>{const{selectedAllDocument:a}=al();if(a){const u=document.querySelector("div.ContentEditable__root");u==null||u.classList.remove("selected-all-document")}return!1},Ss))},o=n.registerUpdateListener(()=>{const{hasSelectedBlock:a,selectedAllDocument:u}=al(),d=a||u;d&&!s?i():!d&&s&&(s(),s=null)}),l=a=>{const u=a.target,d=t.current;if(!d)return;const h=u.closest(".resizable-container__inner")||u.closest("iframe");h instanceof HTMLElement&&(h.classList.contains("selected-block")||(h.classList.add("selected-block"),d.setSelectedTargets([h]),setTimeout(()=>{var g,m;(m=(g=d.props).onSelectEnd)==null||m.call(g,n)},100)))};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l),s&&s(),o()}},[n]),p.jsx(QQ,{ref:t,className:"editor-selecto",dragContainer:".editor",selectableTargets:e.targets,selectByClick:!1,selectFromInside:!1,checkInput:!0,toggleContinueSelect:"shift",toggleContinueSelectWithoutDeselect:[["ctrl"],["meta"]],ratio:0,hitRate:0,onDragStart:s=>{s.inputEvent.target.className!=="editor"&&s.stop()},onSelectEnd:()=>{iU(n),r({targets:K0,depth:0})},onSelect:s=>uU(s,n,e,r,t.current),scrollOptions:cU,onScroll:s=>{document.documentElement.scrollBy(s.direction[0]*10,s.direction[1]*10)}})},BA=8,FA=72,_y=15,qQ={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",codeTheme:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:`${_y}px`,fontSizeInputValue:`${_y}`,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},fL=x.createContext(void 0),$Q=({children:n})=>{const[t,e]=x.useState(qQ),r=t.fontSize,s=x.useCallback((o,l)=>{e(a=>({...a,[o]:l}))},[]);x.useEffect(()=>{s("fontSizeInputValue",r.slice(0,-2))},[r,s]);const i=x.useMemo(()=>({toolbarState:t,updateToolbarState:s}),[t,s]);return p.jsx(fL.Provider,{value:i,children:n})},eX=()=>{const n=x.useContext(fL);if(n===void 0)throw new Error("useToolbarState must be used within a ToolbarProvider");return n},lh=new Set(["http:","https:","mailto:","sms:","tel:"]);function ul(n){try{const t=new URL(n);if(!lh.has(t.protocol))return"about:blank"}catch{return n}return n}const gn={ctrlKey:!R1,metaKey:R1};function tX(n){const{code:t}=n;return(t==="Numpad0"||t==="Digit0")&&Ht(n,{...gn,altKey:!0})}function nX(n){const{code:t}=n;if(!t)return!1;const e=t[t.length-1];return["1","2","3"].includes(e)&&Ht(n,{...gn,altKey:!0})}function rX(n){const{code:t}=n;return(t==="Numpad7"||t==="Digit7")&&Ht(n,{...gn,shiftKey:!0})}function sX(n){const{code:t}=n;return(t==="Numpad8"||t==="Digit8")&&Ht(n,{...gn,shiftKey:!0})}function iX(n){const{code:t}=n;return(t==="Numpad9"||t==="Digit9")&&Ht(n,{...gn,shiftKey:!0})}function oX(n){const{code:t}=n;return t==="KeyC"&&Ht(n,{...gn,altKey:!0})}function lX(n){const{code:t}=n;return t==="KeyQ"&&Ht(n,{ctrlKey:!0,shiftKey:!0})}function aX(n){const{code:t}=n;return(t==="Numpad1"||t==="Digit1")&&Ht(n,{ctrlKey:!0,shiftKey:!0})}function cX(n){const{code:t}=n;return(t==="Numpad2"||t==="Digit2")&&Ht(n,{ctrlKey:!0,shiftKey:!0})}function uX(n){const{code:t}=n;return(t==="Numpad3"||t==="Digit3")&&Ht(n,{ctrlKey:!0,shiftKey:!0})}function dX(n){const{code:t}=n;return t==="KeyX"&&Ht(n,{...gn,shiftKey:!0})}function fX(n){const{code:t}=n;return t==="BracketRight"&&Ht(n,gn)}function hX(n){const{code:t}=n;return t==="BracketLeft"&&Ht(n,gn)}function gX(n){const{code:t}=n;return t==="KeyE"&&Ht(n,{...gn,shiftKey:!0})}function pX(n){const{code:t}=n;return t==="KeyL"&&Ht(n,{...gn,shiftKey:!0})}function mX(n){const{code:t}=n;return t==="KeyR"&&Ht(n,{...gn,shiftKey:!0})}function AX(n){const{code:t}=n;return t==="KeyJ"&&Ht(n,{...gn,shiftKey:!0})}function yX(n){const{code:t}=n;return t==="Comma"&&Ht(n,gn)}function bX(n){const{code:t}=n;return t==="Period"&&Ht(n,gn)}function wX(n){const{code:t}=n;return t==="KeyC"&&Ht(n,{...gn,shiftKey:!0})}function CX(n){const{code:t}=n;return t==="Period"&&Ht(n,{...gn,shiftKey:!0})}function xX(n){const{code:t}=n;return t==="Comma"&&Ht(n,{...gn,shiftKey:!0})}function vX(n){const{code:t}=n;return t==="Backslash"&&Ht(n,gn)}function SX(n){const{code:t}=n;return t==="KeyK"&&Ht(n,gn)}function EX(n){const{code:t}=n;return t==="KeyM"&&Ht(n,{...gn,altKey:!0})}var Ny=(n=>(n[n.increment=1]="increment",n[n.decrement=2]="decrement",n))(Ny||{});const hL=(n,t)=>{if(!t)return n;let e=n;switch(t){case 2:switch(!0){case n>FA:e=FA;break;case n>=48:e-=12;break;case n>=24:e-=4;break;case n>=14:e-=2;break;case n>=9:e-=1;break;default:e=BA;break}break;case 1:switch(!0){case n<BA:e=BA;break;case n<12:e+=1;break;case n<20:e+=2;break;case n<36:e+=4;break;case n<=60:e+=12;break;default:e=FA;break}break}return e},$k=(n,t,e)=>{const r=s=>(s||(s=`${_y}px`),s=s.slice(0,-2),`${hL(Number(s),e)}px`);n.update(()=>{if(n.isEditable()){const s=Q();s!==null&&vh(s,{"font-size":t||r})}})},eT=(n,t,e)=>{if(e!==""){const r=hL(Number(e),t);$k(n,String(r)+"px",null)}else $k(n,null,t)},Cp=n=>{n.update(()=>{const t=Q();Ac(t,()=>Me())})},kX=(n,t,e)=>{t!==e&&n.update(()=>{const r=Q();Ac(r,()=>Mi(e))})},TX=(n,t)=>{t!=="bullet"?n.dispatchCommand($b,void 0):Cp(n)},_X=(n,t)=>{t!=="check"?n.dispatchCommand(ew,void 0):Cp(n)},NX=(n,t)=>{t!=="number"?n.dispatchCommand(Jg,void 0):Cp(n)},MX=(n,t)=>{t!=="quote"&&n.update(()=>{const e=Q();Ac(e,()=>md())})},IX=(n,t)=>{t!=="code"&&n.update(()=>{let e=Q();if(e)if(!J(e)||e.isCollapsed())Ac(e,()=>es());else{const r=e.getTextContent(),s=es();e.insertNodes([s]),e=Q(),J(e)&&e.insertRawText(r)}})},LX=n=>{n.update(()=>{const t=Q();if(J(t)||Gw(t)){const e=t.anchor,r=t.focus,s=t.getNodes(),i=t.extract();if(e.key===r.key&&e.offset===r.offset)return;s.forEach((o,l)=>{if(fe(o)){let a=o;l===0&&e.offset!==0&&(a=a.splitText(e.offset)[1]||a),l===s.length-1&&(a=a.splitText(r.offset)[0]||a);const u=i[0];s.length===1&&fe(u)&&(a=u),a.__style!==""&&a.setStyle(""),a.__format!==0&&a.setFormat(0);const d=yc(a);d.__format!==0&&d.setFormat(""),d.__indent!==0&&d.setIndent(0),o=a}else Js(o)||oc(o)?o.replace(Me(),!0):zh(o)&&o.setFormat("")})}})};function DX({editor:n,setIsLinkEditMode:t}){const{toolbarState:e}=eX();return x.useEffect(()=>{const r=s=>{if(Ht(s,{}))return!1;if(tX(s))Cp(n);else if(nX(s)){const{code:i}=s,o=`h${i[i.length-1]}`;kX(n,e.blockType,o)}else if(sX(s))TX(n,e.blockType);else if(rX(s))NX(n,e.blockType);else if(iX(s))_X(n,e.blockType);else if(oX(s))IX(n,e.blockType);else if(lX(s))MX(n,e.blockType);else if(dX(s))n.dispatchCommand(Ot,"strikethrough");else if(aX(s))console.log("isLowercase"),n.dispatchCommand(Ot,"lowercase");else if(cX(s))console.log("isUppercase"),n.dispatchCommand(Ot,"uppercase");else if(uX(s))n.dispatchCommand(Ot,"capitalize");else if(fX(s))n.dispatchCommand(Ys,void 0);else if(hX(s))n.dispatchCommand(ho,void 0);else if(gX(s))n.dispatchCommand(go,"center");else if(pX(s))n.dispatchCommand(go,"left");else if(mX(s))n.dispatchCommand(go,"right");else if(AX(s))n.dispatchCommand(go,"justify");else if(yX(s))n.dispatchCommand(Ot,"subscript");else if(bX(s))n.dispatchCommand(Ot,"superscript");else if(wX(s))n.dispatchCommand(Ot,"code");else if(CX(s))eT(n,Ny.increment,e.fontSizeInputValue);else if(xX(s))eT(n,Ny.decrement,e.fontSizeInputValue);else if(vX(s))LX(n);else if(SX(s)){const i=e.isLink?null:ul("https://");t(!e.isLink),n.dispatchCommand(xo,i)}else if(EX(s))n.dispatchCommand(Qw,void 0);else return!1;return s.preventDefault(),!0};return n.registerCommand(Ul,r,Ss)},[n,e.isLink,e.blockType,e.fontSizeInputValue,t]),null}const OX=1,RX=100;let gL=0,tT=!1;function jX(n){n.addEventListener("keydown",t=>{t.key==="Tab"&&(t.preventDefault(),gL=t.timeStamp)},!0)}function PX(){const[n]=je();return x.useEffect(()=>{if(!tT){const t=n.getRootElement();t&&jX(t),tT=!0}return n.registerCommand(Bo,t=>{const e=Q();return J(e)&&gL+RX>t.timeStamp&&rt(e.clone()),!1},OX)},[n]),null}function BX(n,t){const e=n.anchor,r=n.focus,i=(r.isBefore(e)?r:e).getNode(),o=yc(i);if(!t&&o.__prev===null)return!0;o instanceof kn&&!o.__opened&&o.setOpened(!0);const l=a=>{const u=a.getNextSibling(),d=u==null?void 0:u.getFirstChild();(d==null?void 0:d.__type)==="list"&&d.getChildren().forEach(g=>{g instanceof kn&&(l(g),g.setIndent(Math.max(0,g.getIndent()-1)))})};return t&&l(o),!1}function FX(n){return n.registerCommand(gc,t=>{const e=Q();if(!J(e))return!1;try{if(BX(e,t.shiftKey))return!1;t.preventDefault();const s=t.shiftKey?ho:Ys;return n.dispatchCommand(s,void 0)}catch{return!1}},Ze)}function zX(){const[n]=je();return x.useEffect(()=>FX(n)),null}function nT(n){let t=1;for(;n;)t*=Number(window.getComputedStyle(n).getPropertyValue("zoom")),n=n.parentElement;return t}const UX=33,KX=50;function WX({editor:n}){const t=x.useRef(null),e=x.useRef(null),r=x.useRef(null),[s,i]=x.useState(null),[o,l]=x.useState(null),[a,u]=x.useState(!1),[d,h]=x.useState(null),[g,m]=x.useState({right:!1,bottom:!1});x.useEffect(()=>n.registerCommand(Xr,T=>{const N=Q(),M=vt(N);return a!==M&&u(M),!1},ki));const A=x.useCallback(()=>{l(null),h(null),r.current=null,e.current=null,m({right:!1,bottom:!1})},[]);x.useEffect(()=>{const T=N=>{setTimeout(()=>{const M=N.target;if(d){i({x:N.clientX,y:N.clientY});return}if(t.current&&t.current.contains(M))return;const I=5;let D=null,j=null,B=1/0,R=null;if(o&&(R=o.elem.closest("table")),!R&&M instanceof HTMLElement){const z=Gh(M);z?R=z.elem.closest("table"):R=M.closest("table")}if(R&&R.querySelectorAll("td, th").forEach(G=>{const ce=G.getBoundingClientRect(),oe=Gh(G);if(!oe)return;const W=Math.abs(N.clientX-ce.right),Z=N.clientY>=ce.top-I&&N.clientY<=ce.bottom+I;W<=I&&Z&&W<B&&(B=W,D=oe,j="right");const ae=Math.abs(N.clientY-ce.bottom),q=N.clientX>=ce.left-I&&N.clientX<=ce.right+I;ae<=I&&q&&ae<B&&(B=ae,D=oe,j="bottom")}),D&&j)m({right:j==="right",bottom:j==="bottom"}),o!==D&&n.update(()=>{const z=He(D.elem);if(!z)return;const G=Ao(z),ce=n.getElementByKey(G.getKey());ce&&(e.current=ce.children[0].getBoundingClientRect(),l(D))});else{if(o){const z=o.elem.getBoundingClientRect(),G=Math.abs(N.clientX-z.right),ce=Math.abs(N.clientY-z.bottom),oe=Math.abs(N.clientY-z.top),W=Math.abs(N.clientX-z.left),Z=Math.min(G,ce,oe,W);m({right:G<=I&&G===Z,bottom:ce<=I&&ce===Z})}else m({right:!1,bottom:!1});o&&!R&&A()}},0)};return document.addEventListener("mousemove",T),()=>{document.removeEventListener("mousemove",T)}},[o,d,n,A]);const y=T=>T==="bottom",b=x.useCallback(T=>{if(!o)throw new Error("TableCellResizer: Expected active cell.");n.update(()=>{const N=He(o.elem);if(!ze(N))throw new Error("TableCellResizer: Table cell node not found.");const M=Ao(N),I=Xg(N),D=M.getChildren();if(I>=D.length||I<0)throw new Error("Expected table cell to be inside of table row.");const j=D[I];if(!hn(j))throw new Error("Expected table row");j.setHeight(T)})},[o,n]),v=x.useCallback((T,N)=>{if(!o)throw new Error("TableCellResizer: Expected active cell.");n.update(()=>{const M=He(o.elem);if(!ze(M))throw new Error("TableCellResizer: Table cell node not found.");const I=Ao(M),D=qg(M),j=I.getChildren();for(let B=0;B<j.length;B++){const R=j[B];if(!hn(R))throw new Error("Expected table row");const z=R.getChildren(),oe=z.map(Z=>Z.getColSpan()).reduce((Z,ae)=>{const q=Z[Z.length-1]??0;return Z.push(q+ae),Z},[]).findIndex(Z=>Z>D);if(oe>=z.length||oe<0)throw new Error("Expected table cell to be inside of table row.");const W=z[oe];if(!ze(W))throw new Error("Expected table cell");W.setWidth(T)}})},[o,n]),C=x.useCallback(T=>{const N=M=>{if(M.preventDefault(),M.stopPropagation(),n.dispatchCommand(ji,!0),!o)throw new Error("TableCellResizer: Expected active cell.");if(r.current){const{x:I,y:D}=r.current;if(o===null)return;const j=nT(M.target);if(y(T)){const B=o.elem.getBoundingClientRect().height,R=Math.abs(M.clientY-D)/j,z=T==="bottom"&&D>M.clientY;b(Math.max(z?B-R:R+B,UX))}else{const B=getComputedStyle(o.elem);let R=o.elem.clientWidth;R-=parseFloat(B.paddingLeft)+parseFloat(B.paddingRight);const z=Math.abs(M.clientX-I)/j,G=T==="right"&&I>M.clientX;v(Math.max(G?R-z:z+R,KX),R),n.update(()=>{rt(null)})}A(),document.removeEventListener("mouseup",N)}};return N},[o,A,v,b]),S=x.useCallback(T=>N=>{const M=n.getRootElement();if(M&&M.contains(document.activeElement)&&Zh(n),N.preventDefault(),N.stopPropagation(),n.dispatchCommand(ji,!0),!o)throw new Error("TableCellResizer: Expected active cell.");r.current={x:N.clientX,y:N.clientY},i(r.current),h(T),document.addEventListener("mouseup",C(T))},[o,C]),_=x.useCallback(()=>{if(o){const{height:T,width:N,top:M,left:I,right:D}=o.elem.getBoundingClientRect(),{right:j}=n._rootElement.getBoundingClientRect(),B=nT(o.elem),R=D>j?D-j+20:0,z={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${I+5}px`,top:`${M+T-5}px`,width:`${N-R}px`,opacity:d==="bottom"||g.bottom?1:0,pointerEvents:d==="bottom"||g.bottom?"auto":"none"},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${T-7}px`,left:`${I+N-5}px`,display:R?"none":"block",top:`${M+7}px`,width:"12px",opacity:d==="right"||g.right?1:0,pointerEvents:d==="right"||g.right?"auto":"none"}},G=e.current;return d&&s&&G&&(y(d)?(z[d].left=`${G.left}px`,z[d].top=`${s.y/B}px`,z[d].height="3px",z[d].width=`${G.width}px`):(z[d].top=`${G.top}px`,z[d].left=`${s.x/B}px`,z[d].width="3px",z[d].height=`${G.height}px`),z[d].backgroundColor="#adf"),z}return{bottom:null,left:null,right:null,top:null}},[o,d,s,g])();return p.jsx("div",{ref:t,children:o!=null&&!a&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:_.right||void 0,onMouseDown:S("right")}),p.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:_.bottom||void 0,onMouseDown:S("bottom")})]})})}function HX({}){var r,s;const[n]=je(),t=Rw(),e=((s=(r=n.getRootElement())==null?void 0:r.ownerDocument)==null?void 0:s.body)||document.body;return x.useMemo(()=>t?Dr.createPortal(p.jsx(WX,{editor:n}),e):null,[n,t,e])}function YX(n,t){if(!n)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function ah(n){const t=n.getShape();return{columns:t.toX-t.fromX+1,rows:t.toY-t.fromY+1}}function GX(n){const t=n.getNodes(),e=[];let r=null,s=null,i=0;for(let o=0;o<t.length;o++){const l=t[o];if(ze(l)){const a=l.getParentOrThrow();if(YX(hn(a),"Expected CellNode to have a RowNode parent"),r!==a){if(s!==null&&i!==s)return!1;r!==null&&(s=i),r=a,i=0}const u=l.__colSpan;for(let d=0;d<u;d++)e[i+d]===void 0&&(e[i+d]=0),e[i+d]+=l.__rowSpan;i+=u}}return(s===null||i===s)&&e.every(o=>o===e[0])}function ZX(){const n=Q();if(J(n)&&!n.isCollapsed()||vt(n)&&!n.anchor.is(n.focus)||!J(n)&&!vt(n))return!1;const[t]=Hn(n.anchor);return t.__colSpan>1||t.__rowSpan>1}function rT(n){if(n.getChildrenSize()!==1)return!1;const t=n.getFirstChildOrThrow();return!(!fn(t)||!t.isEmpty())}function JX(n){const t=n.getLastDescendant();Yn(t)?t.select():X(t)?t.selectEnd():t!==null&&t.selectNext()}function VX(n){return n.getEditorState().read(()=>{const t=Q();if(J(t)||vt(t)){const[e]=Hn(t.anchor);if(ze(e))return e.getBackgroundColor()}return null})}function QX(n,t){const e=t.querySelectorAll("tr");let r=!1;return Array.from(e).forEach((s,i)=>{i&&s.children[0].tagName==="TH"&&(r=!0)}),r}function XX(n){const t=n.querySelector("tr");let e=!1;return t&&Array.from(t.children).forEach((r,s)=>{s&&r.tagName==="TH"&&(e=!0)}),e}const qX=({tableCellNode:n,setIsMenuOpen:t,contextRef:e,cellMerge:r,isMenuOpen:s,selectionBeforeMenuOpenedRef:i,currentIndexColumn:o,currentIndexRow:l,tableDom:a})=>{const[u]=je(),d=x.useRef(null),[h,g]=x.useState(n),[m,A]=x.useState({columns:1,rows:1}),[y,b]=x.useState(!1),[v,C]=x.useState(!1),[S,k]=x.useState(""),{t:_}=Je.useTranslation();x.useEffect(()=>u.registerMutationListener(ws,Z=>{Z.get(h.getKey())==="updated"&&(u.getEditorState().read(()=>{g(h.getLatest())}),k(VX(u)||""))}),[u,h]),x.useEffect(()=>{s?u.getEditorState().read(()=>{const Z=i.current;if(Z&&vt(Z)){const ae=ah(Z);A(ah(Z)),b(GX(Z)&&(ae.columns>1||ae.rows>1))}try{C(ZX())}catch{}}):u.update(()=>{Q()!==null&&setTimeout(()=>{b(!1),i.current=null,A({columns:1,rows:1});try{h.getParent(),T()}catch{}},200)})},[s]),x.useEffect(()=>{const Z=e.current,ae=d.current,q=u.getRootElement();if(Z!=null&&ae!=null&&q!=null){const K=q.getBoundingClientRect(),Y=Z.getBoundingClientRect();ae.style.opacity="1";const te=ae.getBoundingClientRect(),ue=5;let re=Y.right+ue;if(re+te.width>window.innerWidth||re+te.width>K.right){const he=Y.left-te.width-ue;re=(he<0?ue:he)+window.pageXOffset}ae.style.left=`${re+window.pageXOffset}px`;let se=Y.top;if(se+te.height>window.innerHeight){const he=Y.bottom-te.height;se=(he<0?ue:he)+window.pageYOffset}ae.style.top=`${se+ +window.pageYOffset}px`}},[e,d,u]),x.useEffect(()=>{function Z(ae){d.current!=null&&e.current!=null&&!d.current.contains(ae.target)&&!e.current.contains(ae.target)&&t(!1)}return window.addEventListener("click",Z),()=>window.removeEventListener("click",Z)},[t,e]);const T=x.useCallback(()=>{u.update(()=>{if(h.isAttached()){const ae=Ao(h),q=u.getElementByKey(ae.getKey());if(!q)throw new Error("Expected to find tableElement in DOM");const K=sw(q);K!==null&&K.clearHighlight(),ae.markDirty(),g(h.getLatest())}Ue().selectStart()})},[u,h]),N=()=>{u.update(()=>{const Z=i.current;if(vt(Z)){const{columns:ae,rows:q}=ah(Z),K=Z.getNodes();let Y=null;for(let te=0;te<K.length;te++){const ue=K[te];if(ze(ue))if(Y===null){ue.setColSpan(ae).setRowSpan(q),Y=ue;const re=rT(ue);let se;re&&fn(se=ue.getFirstChild())&&se.remove()}else ze(Y)&&(rT(ue)||Y.append(...ue.getChildren()),ue.remove())}Y!==null&&(Y.getChildrenSize()===0&&Y.append(Me()),JX(Y))}})},M=()=>{u.update(()=>{AU()})},I=x.useCallback(Z=>{u.update(()=>{for(let ae=0;ae<m.rows;ae++)Yh(Z)})},[u,m.rows]),D=x.useCallback(Z=>{u.update(()=>{for(let ae=0;ae<m.columns;ae++)W0(Z)})},[u,m.columns]),j=x.useCallback(()=>{u.update(()=>{pU()})},[u]),B=x.useCallback(()=>{u.update(()=>{Ao(n).remove(),T()})},[u,n,T]),R=x.useCallback(()=>{u.update(()=>{mU()})},[u]),z=x.useCallback(()=>{u.update(()=>{const Z=Ao(h),ae=Xg(h),q=Z.getChildren();if(ae>=q.length||ae<0)throw new Error("Expected table cell to be inside of table row.");const K=q[ae];if(!hn(K))throw new Error("Expected table row");const Y=h.getHeaderStyles()^bn.ROW;K.getChildren().forEach(te=>{if(!ze(te))throw new Error("Expected table cell");te.getBackgroundColor()==="rgb(242, 243, 245)"&&te.setBackgroundColor(null),te.setHeaderStyles(Y,bn.ROW)}),T()})},[u,h,T]),G=x.useCallback(Z=>{u.update(()=>{const ae=Ao(h),q=qg(h),K=ae.getChildren(),Y=Math.max(...K.map(ue=>ue.getChildren().length));if(q>=Y||q<0)throw new Error("Expected table cell to be inside of table row.");const te=h.getHeaderStyles()^bn.COLUMN;for(let ue=0;ue<K.length;ue++){const re=K[ue];if(!hn(re))throw new Error("Expected table row");const se=re.getChildren();if(q>=se.length)continue;const he=se[q];if(!ze(he))throw new Error("Expected table cell");Z?(he.getBackgroundColor()==="rgb(242, 243, 245)"&&he.setBackgroundColor(null),he.setHeaderStyles(0,3)):he.setHeaderStyles(te,bn.COLUMN)}T()})},[u,h,T]),ce=x.useCallback(Z=>{u.update(()=>{const ae=i.current;if(J(ae)||vt(ae)){const[q]=Hn(ae.anchor);if(ze(q)&&q.setBackgroundColor(Z),vt(ae)){const K=ae.getNodes();for(let Y=0;Y<K.length;Y++){const te=K[Y];ze(te)&&te.setBackgroundColor(Z)}}}})},[u]),oe=l===0&&XX(a),W=o===0&&QX(o||0,a);return p.jsxs(p.Fragment,{children:[r&&p.jsxs(p.Fragment,{children:[y&&p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"layers-union"}),"data-test-id":"table-merge-cells",onClick:()=>N(),children:_("editor.table.menu.mergeCells")}),v&&p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"layers-substract"}),"data-test-id":"table-unmerge-cells",onClick:()=>M(),children:_("editor.table.menu.disconnectCells")})]}),p.jsx(Rt.NewColorPicker,{modes:["background"],value:{background:S},onChange:Z=>ce(Z.value),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},closeDelay:2e4},target:p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"color-picker"}),rightSection:p.jsx(Ne,{name:"chevron-right"}),"data-test-id":"table-background-color",children:_("editor.table.background",{count:m.columns>1||m.rows>1?2:1})})}),p.jsx(L.Menu.Divider,{}),!oe&&p.jsxs(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"row-insert-top"}),"data-test-id":"table-insert-row-above",onClick:()=>I(!1),children:[_("editor.table.menu.insertRow",{count:m.rows})," ",_("editor.table.menu.above")]}),p.jsxs(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"row-insert-bottom"}),"data-test-id":"table-insert-row-below",onClick:()=>I(!0),children:[_("editor.table.menu.insertRow",{count:m.rows})," ",_("editor.table.menu.below")]}),!W&&p.jsxs(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"column-insert-left"}),"data-test-id":"table-insert-column-before",onClick:()=>D(!0),children:[_("editor.table.menu.insertCol",{count:m.columns})," ",_("editor.table.menu.right")]}),p.jsxs(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"column-insert-right"}),onClick:()=>D(!1),"data-test-id":"table-insert-column-after",children:[_("editor.table.menu.insertCol",{count:m.columns})," ",_("editor.table.menu.left")]}),p.jsx(L.Menu.Divider,{}),p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"container-off"}),"data-test-id":"table-delete-columns",onClick:()=>R(),children:_("editor.table.menu.deleteCol",{count:m.columns})}),p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"container-off",iconStyle:{transform:"rotate(90deg)"}}),"data-test-id":"table-delete-rows",onClick:()=>j(),children:_("editor.table.menu.deleteRow",{count:m.rows})}),p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{name:"table-off"}),onClick:()=>B(),children:_("editor.table.menu.deleteTable")}),(!l||!o)&&p.jsx(L.Menu.Divider,{}),l===0&&p.jsx(L.Menu.Item,{onClick:()=>z(),"data-test-id":"table-row-header",children:_("editor.table.menu.headTable_row",{value:_(oe?"editor.contextMenu.delete":"editor.contextMenu.add")})}),o===0&&p.jsx(L.Menu.Item,{onClick:()=>G(W),"data-test-id":"table-column-header",children:_("editor.table.menu.headTable_col",{value:_(W?"editor.contextMenu.delete":"editor.contextMenu.add")})})]})},$X=({tableCellNode:n,setIsMenuOpen:t,contextRef:e,cellMerge:r,children:s,tableDom:i,isMenuOpen:o})=>{const[l]=je(),a=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=()=>{t(!0),l.read(()=>{const g=qg(n),m=Xg(n);u.current=g,d.current=m;const A=Q();if(vt(A)){const{columns:y,rows:b}=ah(A);(y>1||b>1)&&(a.current=A)}else XU(n,l),setTimeout(()=>{l.read(()=>{const y=Q();a.current=y})},200)})};return p.jsxs(L.Menu,{onOpen:h,onClose:()=>t(!1),shadow:"md",position:"right",opened:o,transitionProps:oi,children:[p.jsx(L.Menu.Target,{children:s}),p.jsx(L.Menu.Dropdown,{children:p.jsx(qX,{isMenuOpen:o,contextRef:e,tableCellNode:n,cellMerge:r,setIsMenuOpen:t,tableDom:i,currentIndexColumn:u.current,currentIndexRow:d.current,selectionBeforeMenuOpenedRef:a})})]})},eq=(n,t)=>{window.matchMedia("(pointer: coarse)").matches&&t&&setTimeout(()=>{t.scrollBy({left:n+25,behavior:"smooth"})},100)},Ci=12;function tq({anchorElem:n,isShowTableOptions:t,cellMerge:e}){var Z,ae;const[r]=je(),[s,i]=x.useState(!1),[o,l]=x.useState({}),[a,u]=x.useState({}),[d,h]=x.useState({}),[g,m]=x.useState({}),[A,y]=x.useState({}),[b,v]=x.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),[C,S]=x.useState(!1),k=x.useRef(null),_=x.useRef(new Set),T=x.useRef(null),N=x.useRef(null),M=x.useRef(null),I=x.useRef(null),D=x.useRef(null),{t:j}=Je.useTranslation(),B=ep(q=>{const{isOutside:K,tableDOMNode:Y}=nq(q,r,b.row),te=q.target;if(te!=null&&te.closest(".table-cell-add-container")||te!=null&&te.closest(".table-row-add-container"))return;if(K&&(b.top||b.bottom||b.left||b.right||b.column||b.row)){v({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),D.current=null,S(!1);return}if(!Y)return;N.current=Y;let ue=null,re=null,se=null;r.update(()=>{var pe,$,le,Se,we;const he=He(Y),xe=Y==null?void 0:Y.getAttribute("data-show-button-near-table");if(((pe=D.current)==null?void 0:pe.__key)!==(he==null?void 0:he.__key)&&(v({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),D.current=he,ze(he))){const Oe=Le(he,Ke=>St(Ke));if(!St(Oe))return;if(se=r.getElementByKey(Oe==null?void 0:Oe.getKey()),se){const Ke=Oe.getChildrenSize(),ke=($=Oe.getChildAtIndex(0))==null?void 0:$.getChildrenSize(),_e=Xg(he),et=qg(he);M.current=(le=se.firstChild)==null?void 0:le.childNodes[_e+1].firstChild,I.current=(we=(Se=se.firstChild)==null?void 0:Se.childNodes[1])==null?void 0:we.childNodes[et],setTimeout(()=>{xe==="bottom"?(ue=he,D.current=null,v({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1})):xe==="right"?(re=he,D.current=null,v({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1})):_e===Ke-1&&et===ke-1?(ue=he,re=he,v({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!0,options:!0})):!_e&&!et?v({top:!1,bottom:!0,left:!1,right:!0,column:!1,row:!1,options:!0}):et&&!_e&&et!==ke-1?v({top:!1,bottom:!1,left:!0,right:!0,column:!1,row:!1,options:!0}):!et&&_e&&_e!==Ke-1?v({top:!0,bottom:!0,left:!1,right:!1,column:!1,row:!1,options:!0}):!et&&_e===Ke-1?(ue=he,v({top:!0,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!0})):!_e&&et===ke-1?(re=he,v({top:!1,bottom:!1,left:!0,right:!1,column:!0,row:!1,options:!0})):!et&&_e&&_e!==Ke-1?v({top:!0,bottom:!0,left:!1,right:!0,column:!1,row:!1,options:!0}):_e===Ke-1?(ue=he,v({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!0})):et===ke-1?(re=he,v({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!0})):v({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!0})},100)}}}),setTimeout(()=>{var he,xe,pe,$,le;if(se){const{width:Se,y:we,left:Oe,right:Ke,bottom:ke,height:_e}=se.getBoundingClientRect(),{y:et,left:mt}=n.getBoundingClientRect();if(D.current){const tt=r.getElementByKey(D.current.getKey());if(tt!=null){const nt=tt.getBoundingClientRect(),ve=se.getBoundingClientRect().left+se.clientWidth,Be=nt.top-et+6;let At=nt.right-mt-20;At>ve-mt&&(At=ve-mt-20),C||y({top:Be,left:At})}}if(I.current){const{top:tt,width:nt,left:ye,right:ve}=I.current.getBoundingClientRect(),Be=Ci,At=ye-mt-Be/2,ot=tt-et-Be/2;let Zt=nt+Be+2;ve>Ke&&(Zt=Zt-(ve-Ke)),h({width:Zt,height:Be,top:ot,left:At})}if(M.current){const{top:tt,height:nt}=M.current.getBoundingClientRect(),ye=Ci,ve=Oe-mt-ye/2,Be=tt-et-ye/2;m({height:nt+ye+2,top:Be,left:ve})}const Ve=(he=se.parentElement)!=null&&he.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(ue){const tt=ke-et+3,nt=((xe=se.firstElementChild)==null?void 0:xe.clientWidth)||0;l({left:Oe-mt,top:tt,width:Se>nt?nt-2:Se,padding:0,backgroundColor:Ve})}const{right:Ft}=(pe=se.firstElementChild)==null?void 0:pe.getBoundingClientRect(),Re=Ke>Ft?Ft:Ke;re&&(eq(Ke,(le=($=r._rootElement)==null?void 0:$.parentElement)==null?void 0:le.parentElement),u({height:_e,left:Re-mt+3,top:we-et,padding:0,backgroundColor:Ve}))}},100)},50,150),R=()=>{v({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),D.current=null,S(!1)},z=(ae=(Z=M.current)==null?void 0:Z.parentElement)==null?void 0:ae.parentElement;x.useEffect(()=>{var q;z&&((q=z.parentElement)==null||q.addEventListener("scroll",()=>{R()}))},[z]),x.useEffect(()=>{if(s)return document.addEventListener("mousemove",B),()=>{R(),B.cancel(),document.removeEventListener("mousemove",B)}},[s,B]),x.useEffect(()=>r.registerCommand(ji,q=>(q&&R(),!1),De),[]),x.useEffect(()=>ct(r.registerMutationListener(xs,q=>{r.getEditorState().read(()=>{for(const[K,Y]of q)switch(Y){case"created":_.current.add(K),T.current=r.getElementByKey(K),i(_.current.size>0);break;case"destroyed":_.current.delete(K),i(_.current.size>0);break;case"updated":i(!0);const te=r.getElementByKey(K);T.current=te;break}})})),[r]);const G=q=>{r.update(()=>{if(N.current){const K=He(N.current);q?(K==null||K.selectNext(),Yh(),R()):(K==null||K.selectEnd(),W0(),R())}})},ce=x.useCallback(q=>{r.update(()=>{const K=M.current;if(K){const Y=He(K);Y==null||Y.selectEnd(),Yh(q),R()}})},[r]),oe=x.useCallback(q=>{r.update(()=>{const K=I.current;if(K){const Y=He(K);Y==null||Y.selectEnd(),W0(q),R()}})},[r]),W=window.matchMedia("(pointer: coarse)").matches;return p.jsxs(p.Fragment,{children:[p.jsx(L.Transition,{mounted:!!(D.current&&b.options&&!W),transition:"fade",duration:300,timingFunction:"ease",children:q=>p.jsx("div",{className:"table-cell-action-button-container",style:{...q,...A},children:D.current&&p.jsx($X,{isMenuOpen:C,contextRef:k,tableCellNode:D.current,cellMerge:e,setIsMenuOpen:S,tableDom:T.current,children:p.jsx(L.Tooltip,{label:j("editor.table.settings"),children:p.jsx(L.ActionIcon,{tabIndex:-1,className:"table-cell-action-button",ref:k,size:Ci,color:"gray",variant:"light",children:p.jsx(Ne,{style:{width:"100%",height:"100%"},name:"chevron-down"})})})})})}),p.jsx(L.Transition,{mounted:b.row,transition:"fade",duration:300,timingFunction:"ease",children:q=>p.jsx(L.Tooltip,{label:j("editor.table.menu.addRowBelow"),position:"bottom",children:p.jsx(L.Button,{className:"dsd__theme__tableAddRows",style:{...q,...o},onClick:()=>G(!0),variant:"light",size:"xs",color:"gray",radius:"sm",h:23,children:p.jsx(ie.IconPlus,{size:Ci,className:"dsd__theme__tableAddRows-icon",stroke:1})})})}),p.jsx(L.Transition,{mounted:b.column,transition:"fade",duration:300,timingFunction:"ease",children:q=>p.jsx(L.Tooltip,{label:j("editor.table.menu.addColAfter"),position:"right",children:p.jsx(L.Button,{className:"dsd__theme__tableAddColumns",style:{...q,...a},onClick:()=>G(!1),variant:"light",justify:"center",size:"xs",color:"gray",w:23,radius:"sm",children:p.jsx(ie.IconPlus,{className:"dsd__theme__tableAddColumns-icon",size:Ci,stroke:1})})})}),p.jsx(L.Transition,{mounted:M.current!=null&&(b.top||b.bottom)&&!W,transition:"fade",duration:300,timingFunction:"ease",children:q=>p.jsx("div",{className:"table-row-add-container",style:{...q,...g},children:M.current&&p.jsxs(L.Stack,{align:"stretch",justify:"space-between",h:"100%",children:[p.jsx(L.Tooltip,{label:j("editor.table.menu.addRowAbove"),children:p.jsx(L.ActionIcon,{onClick:()=>ce(!1),size:Ci,variant:"light",radius:"xl","aria-label":"Settings",color:"gray",style:{opacity:b.top?1:0,pointerEvents:b.top?"auto":"none"},children:p.jsx(ie.IconPlus,{size:10,stroke:1})})}),p.jsx(L.Tooltip,{label:j("editor.table.menu.addRowBelow"),children:p.jsx(L.ActionIcon,{onClick:()=>ce(!0),size:Ci,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",style:{opacity:b.bottom?1:0,pointerEvents:b.bottom?"auto":"none"},children:p.jsx(ie.IconPlus,{size:10,stroke:1})})})]})})}),p.jsx(L.Transition,{mounted:I.current!=null&&(b.left||b.right),transition:"fade",duration:300,timingFunction:"ease",keepMounted:!0,children:q=>p.jsx("div",{className:"table-cell-add-container",style:{...q,...d},children:p.jsxs(L.Group,{justify:b.left?"space-between":"flex-end",children:[p.jsx(p.Fragment,{children:b.left&&p.jsx(L.Tooltip,{label:j("editor.table.menu.addColBefore"),children:p.jsx(L.ActionIcon,{onClick:()=>oe(!1),size:Ci,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",children:p.jsx(ie.IconPlus,{size:10,stroke:1})})})}),p.jsx(p.Fragment,{children:b.right&&p.jsx(L.Tooltip,{label:j("editor.table.menu.addColAfter"),children:p.jsx(L.ActionIcon,{onClick:()=>oe(!0),size:Ci,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",children:p.jsx(ie.IconPlus,{size:10,stroke:1})})})})]})})})]})}function nq(n,t,e){const r=n.target;let s="";const i=document.querySelector("div.new-paragraph");if(t.read(()=>{const o=Ue().getLastChild();St(o)&&!e&&i&&(s="editor",i.style.visibility="hidden")}),r&&(r instanceof HTMLElement||r instanceof SVGElement)){const o="td.dsd__theme__tableCell, th.dsd__theme__tableCell";let l=r.closest(o);if(l==null||l.setAttribute("data-show-button-near-table",""),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===s){const h=document.elementFromPoint(n.x-40,n.y),g=document.elementFromPoint(n.x,n.y-40);if(h||g){const m=h==null?void 0:h.closest(o),A=g==null?void 0:g.closest(o);m&&r.className!=="dsd__theme__layoutItem"&&(l=m,l.setAttribute("data-show-button-near-table","right")),A&&(l=A,l.setAttribute("data-show-button-near-table","bottom"))}}let a=r.closest(".dsd__theme__tableAddRows")||r.closest(".table-cell-action-button-container")||r.closest(".dsd__theme__tableAddColumns");const u=r.closest(".mantine-Menu-dropdown"),d=!(l||a||u||r.closest("div.TableCellResizer__resizer"));return d&&!e&&(i==null?void 0:i.style.visibility)==="hidden"&&(i.style.visibility=""),{isOutside:d,tableDOMNode:l}}else return{isOutside:!0,tableDOMNode:null}}function rq({anchorElem:n=document.body,cellMerge:t=!1}){return Dr.createPortal(p.jsx(tq,{isShowTableOptions:!1,cellMerge:t,anchorElem:n}),n)}function iC(n){return[n.getKey(),n.getTextContent(),n.getTag()]}function sq(n,t,e){if(t===null)return e;const r=iC(t);let s=[];if(n===null){if(e.length>0&&e[0][0]===t.__key)return e;s=[r,...e]}else for(let i=0;i<e.length;i++){const o=e[i][0];if(s.push(e[i]),o===n.getKey()&&o!==t.getKey()){if(i+1<e.length&&e[i+1][0]===t.__key)return e;s.push(r)}}return s}function iq(n,t){const e=[];for(const r of t)r[0]!==n&&e.push(r);return e}function oq(n,t){const e=[];for(const r of t)r[0]===n.getKey()?e.push(iC(n)):e.push(r);return e}function sT(n,t,e){const r=[],s=iC(t);n||r.push(s);for(const i of e)i[0]!==t.getKey()&&(r.push(i),n&&i[0]===n.getKey()&&r.push(s));return r}function zA(n){let t=j1(n);for(;t!==null&&!Js(t);)t=j1(t);return t}function lq({children:n}){const[t,e]=x.useState([]),[r]=je();return x.useEffect(()=>{let s=[];r.getEditorState().read(()=>{const a=u=>{for(const d of u.getChildren())Js(d)?s.push([d.getKey(),d.getTextContent(),d.getTag()]):X(d)&&a(d)};a(Ue()),e(s)});const i=r.registerUpdateListener(({editorState:a,dirtyElements:u})=>{a.read(()=>{const d=h=>{for(const g of h.getChildren())if(Js(g)){const m=zA(g);s=sT(m,g,s),e(s)}else X(g)&&d(g)};Ue().getChildren().forEach(h=>{X(h)&&u.get(h.__key)&&d(h)})})}),o=r.registerMutationListener(Ad,a=>{r.getEditorState().read(()=>{for(const[u,d]of a)if(d==="created"){const h=Te(u);if(h!==null){const g=zA(h);s=sq(g,h,s)}}else if(d==="destroyed")s=iq(u,s);else if(d==="updated"){const h=Te(u);if(h!==null){const g=zA(h);s=sT(g,h,s)}}e(s)})},{skipInitialization:!0}),l=r.registerMutationListener(On,a=>{r.getEditorState().read(()=>{for(const[u,d]of a)if(d==="updated"){const h=Te(u);if(h!==null){const g=h.getParentOrThrow();Js(g)&&(s=oq(g,s),e(s))}}})},{skipInitialization:!0});return()=>{o(),l(),i()}},[r]),n(t,r)}const lg=624,pL=9;function aq(n,t,e){return n||`${e("editor.heading.name")} ${t.split("")[1]}`}function cq(n){var e;const t=(e=n==null?void 0:n.getClientRects()[0])==null?void 0:e.y;return t>=lg&&t<=lg+pL}function Zf(n){var e;return((e=n==null?void 0:n.getClientRects()[0])==null?void 0:e.y)<lg}function UA(n){var e;return((e=n==null?void 0:n.getClientRects()[0])==null?void 0:e.y)>=lg+pL}function uq({tableOfContents:n}){const[t,e]=x.useState(""),r=x.useRef(0),[s]=je(),{t:i}=Je.useTranslation(),[o,l]=x.useState(!1);function a(u,d){s.getEditorState().read(()=>{const h=s.getElementByKey(u);h!==null&&(h.classList.add("ScrollToBlock"),h.scrollIntoView({behavior:"smooth",block:"center"}),e(u),r.current=d,setTimeout(()=>{h.classList.remove("ScrollToBlock")},2e3))})}return x.useEffect(()=>{function u(){if(n.length>0&&r.current<n.length-1){let m=s.getElementByKey(n[r.current][0]);if(m!==null){if(UA(m)){for(;m!==null&&UA(m)&&r.current>0;){const y=s.getElementByKey(n[r.current-1][0]);y!==null&&(Zf(y)||UA(y))&&r.current--,m=y}const A=n[r.current][0];e(A)}else if(Zf(m)){for(;m!==null&&Zf(m)&&r.current<n.length-1;){const y=s.getElementByKey(n[r.current+1][0]);y!==null&&(cq(y)||Zf(y))&&r.current++,m=y}const A=n[r.current][0];e(A)}}}else r.current=0}let d;function h(m,A){clearTimeout(d),d=setTimeout(m,A)}function g(){h(u,10)}return document.addEventListener("scroll",g),()=>document.removeEventListener("scroll",g)},[n,s]),n.length<2?p.jsx(p.Fragment,{}):p.jsxs(L.Popover,{opened:o,onClose:()=>l(!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:[p.jsx(L.Popover.Target,{children:p.jsx(L.Box,{className:"table-of-contents-container",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:p.jsx(L.Box,{className:"table-of-contents",children:p.jsx(L.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:n.map(([u,,d],h)=>p.jsx(L.Box,{onClick:()=>a(u,h),style:{height:4,borderRadius:"4px",cursor:"pointer",backgroundColor:t===u?"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:d==="h1"?"38px":d==="h2"?"25px":"15px",transition:"all 0.7s"}},u))})})})}),p.jsxs(L.Popover.Dropdown,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[p.jsx(L.Text,{size:"xs",children:i("editor.content")}),n.map(([u,d,h],g)=>p.jsx(L.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>a(u,g),style:{fontSize:h==="h1"?"1.25rem":h==="h2"?"1rem":"0.875rem",marginLeft:h==="h1"?"0.25rem":h==="h2"?"0.75rem":"2.25rem",color:t===u?"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:aq(d,h,i)},u))]})]})}function My(){return p.jsx(lq,{children:n=>p.jsx(uq,{tableOfContents:n})})}function dq({hasCellMerge:n=!0,hasCellBackgroundColor:t=!0,hasTabHandler:e=!0,hasHorizontalScroll:r=!0}){const[s]=je();return x.useEffect(()=>{DU(s,r)},[s,r]),x.useEffect(()=>(s.hasNodes([xs,ws,Ec])||Ye(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),ct(s.registerCommand(Vg,({columns:i,rows:o,includeHeaders:l})=>{const a=hU(Number(o),Number(i),l),u=Gt();u&&u.replace(a);const d=a.getFirstDescendant();return Yn(d)&&d.select(),!0},Ze),s.registerNodeTransform(xs,i=>{const[o]=xM(i,null,null),l=o.reduce((u,d)=>Math.max(u,d.length),0),a=i.getChildren();for(let u=0;u<o.length;++u){const d=a[u];if(!d)continue;const h=o[u].reduce((g,m)=>m?1+g:g,0);if(h!==l)for(let g=h;g<l;++g){const m=Cs(0);m.append(Me()),d.append(m)}}}))),[s]),x.useEffect(()=>{const i=new Map,o=(a,u,d)=>{const h=Rl(a,d),g=CU(a,h,s,e);i.set(u,[g,h])},l=s.registerMutationListener(xs,a=>{s.getEditorState().read(()=>{for(const[u,d]of a){const h=i.get(u);if(d==="created"||d==="updated"){const{tableNode:g,tableElement:m}=vM(u);h===void 0?o(g,u,m):m!==h[1]&&(h[0].removeListeners(),i.delete(u),o(g,u,m))}else d==="destroyed"&&h!==void 0&&(h[0].removeListeners(),i.delete(u))}},{editor:s})},{skipInitialization:!1});return()=>{l();for(const[,[a]]of i)a.removeListeners()}},[s,e]),x.useEffect(()=>{if(!n)return s.registerNodeTransform(ws,i=>{if(i.getColSpan()>1||i.getRowSpan()>1){const[,,o]=Hn(i),[l]=rs(o,i,i),a=l.length,u=l[0].length;let d=o.getFirstChild();Ye(hn(d),"Expected TableNode first child to be a RowNode");const h=[];for(let g=0;g<a;g++){g!==0&&(d=d.getNextSibling(),Ye(hn(d),"Expected TableNode first child to be a RowNode"));let m=null;for(let A=0;A<u;A++){const y=l[g][A],b=y.cell;if(y.startRow===g&&y.startColumn===A)m=b,h.push(b);else if(b.getColSpan()>1||b.getRowSpan()>1){Ye(ze(b),"Expected TableNode cell to be a TableCellNode");const v=Cs(b.__headerState);m!==null?m.insertAfter(v):VB(d,v)}}}for(const g of h)g.setColSpan(1),g.setRowSpan(1)}})},[s,n]),x.useEffect(()=>{if(!t)return s.registerNodeTransform(ws,i=>{i.getBackgroundColor()!==null&&i.setBackgroundColor(null)})},[s,t,n]),null}function iT(n){return(n==null?void 0:n.tagName)==="TABLE"}const fq=n=>{const t=Q();if(J(t)&&t.isCollapsed()){const e=t.anchor.getNode(),r=Le(e,St),s=Le(e,ze);return yp(n,r,s)}return!0};function hq(n){const{floatingAnchorElem:t,isSmallWidthViewport:e}=n,[r]=je(),{settings:{tableCellMerge:s,showTableOfContents:i,tableCellBackgroundColor:o}}=Pw();return x.useEffect(()=>ct(r.registerCommand(Fl,l=>{var h,g;try{const m=l.clipboardData||window.clipboardData;if(!m)return!1;const A=m.getData("text/html"),y=document.createElement("div");y.innerHTML=A;let b=null;y.childNodes.length===1&&iT(y.firstChild)&&(b=y.firstChild),y.childNodes.length===2&&iT(y.childNodes[1])&&(b=y.childNodes[1]);const v=Y0?1:2;if(y.childNodes.length===(Y0?2:5)&&((h=y.childNodes[v].className)!=null&&h.includes("table-scrollable-wrapper"))&&(b=y.childNodes[v].firstChild),b){l.preventDefault();const C=Gt();if(C){const S=Le(C,ze),k=Le(C,hn),_=Le(C,St);if(!_||!k||!S)return!1;const T=b.querySelectorAll("tr"),N=T[0].childNodes,M=_.getChildren();let I=null,D=0;for(let R=0;R<_.getChildren().length;R++)if(_.getChildren()[R].__key===(k==null?void 0:k.__key)&&(D=R,R+T.length>M.length)){let G=R+T.length-M.length;(g=_==null?void 0:_.getLastChild())==null||g.selectStart();for(let ce=0;ce<G;ce++)Yh(!0);break}let j=0;_.getChildren().forEach((R,z)=>{if(z>=D&&T[j]){let G=0;R.getChildren().forEach((oe,W)=>{var Z,ae;if(ze(oe)&&(oe.__key===(S==null?void 0:S.__key)&&(I=W,oe==null||oe.selectStart()),I!==null&&W>=I&&W<N.length+I)){const q=((ae=(Z=T[j])==null?void 0:Z.childNodes[G])==null?void 0:ae.innerText)||"";oe.clear();const K=Me(),Y=Io(q||"");K.append(Y),oe.append(K),G++}}),j++}})}return!0}}catch(m){console.error("TABLE PASTE",m)}const a=Q(),u=a==null?void 0:a.getNodes();return ze(u[1])&&r.update(()=>{u.forEach(m=>{St(m)&&m.remove()})}),!1},De)),[r]),p.jsxs(p.Fragment,{children:[p.jsx(dq,{hasCellMerge:s,hasCellBackgroundColor:o,hasTabHandler:!0,hasHorizontalScroll:!0}),p.jsx(HX,{}),t&&p.jsxs(p.Fragment,{children:[p.jsx(rq,{anchorElem:t,cellMerge:!0}),p.jsx("div",{children:i&&p.jsx(My,{})})]})]})}const gq=n=>({center:{icon:"align-center",iconRTL:"center-align",name:n("editor.toolbar.center")},end:{icon:"align-end",iconRTL:"left-align",name:"End Align"},justify:{icon:"align-justify",iconRTL:"justify-align",name:n("editor.toolbar.justify")},left:{icon:"align-left",iconRTL:"left-align",name:n("editor.toolbar.left")},right:{icon:"align-right",iconRTL:"left-align",name:n("editor.toolbar.right")},start:{icon:"align-start",iconRTL:"right-align",name:"Start Align"}});function pq({editor:n,value:t,disabled:e=!1,setElementFormat:r}){const{t:s,i18n:i}=Je.useTranslation(),o=x.useMemo(()=>gq(s),[i.language]),l=x.useMemo(()=>t==="start"||t==="end"?o.left:o[t||"left"],[t,i.language]),a=u=>{r(u),n.dispatchCommand(go,u)};return p.jsxs(L.Menu,{transitionProps:oi,shadow:"md",styles:{dropdown:{zIndex:1e3}},children:[p.jsx(L.Menu.Target,{children:p.jsx(L.Tooltip,{label:s("editor.toolbar.align"),children:p.jsxs("button",{disabled:e,className:"toolbar-item spaced alignment","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-align-menu",children:[p.jsx(Ne,{size:18,name:l.icon}),p.jsxs(L.Text,{mx:5,size:"sm",children:[" ",l.name]}),p.jsx(Ne,{name:"chevron-down"})]})})}),p.jsxs(L.Menu.Dropdown,{onMouseDown:u=>{u.preventDefault()},children:[p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{size:18,name:"align-left"}),rightSection:t==="left"&&p.jsx(Ne,{name:"check-mark"}),onClick:()=>a("left"),"data-test-id":"toolbar-align-left",children:o.left.name}),p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{size:18,name:"align-center"}),rightSection:t==="center"&&p.jsx(Ne,{name:"check-mark"}),onClick:()=>a("center"),"data-test-id":"toolbar-align-center",children:o.center.name}),p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{size:18,name:"align-right"}),rightSection:t==="right"&&p.jsx(Ne,{name:"check-mark"}),onClick:()=>a("right"),"data-test-id":"toolbar-align-right",children:o.right.name}),p.jsx(L.Menu.Item,{leftSection:p.jsx(Ne,{size:18,name:"align-justify"}),rightSection:t==="justify"&&p.jsx(Ne,{name:"check-mark"}),onClick:()=>a("justify"),"data-test-id":"toolbar-align-justify",children:o.justify.name})]})]})}const mq=(n,t,e,r)=>{n.update(()=>{if(J(e)){const s=Ct(t);e.insertNodes([s]),r()}})},Aq=(n,t,e,r)=>{n.update(()=>{if(J(e)){const s=Ct(t);e.insertNodes([]);const i=s.getParent()??e.focus.getNode().getParent();if(i){const o=e.focus.getNode().getNextSibling();o?o.insertBefore(s):i.append(s),r()}}})},yq=(n,t="",e,r)=>{n.update(()=>{if(!J(e))return;const i=e.anchor.getNode().getTopLevelElementOrThrow(),o=Me();t&&o.append(Ct(t)),i.insertAfter(o),r()})},bq=(n,t)=>{n.update(()=>{const e=Q();if(J(e)){const r=e.getTextContent();t(r)}})},wq=({editor:n,response:t,onSubmit:e,setTypeMenu:r,onClose:s,t:i,selection:o})=>p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Item,{leftSection:p.jsx(ie.IconArrowNarrowLeft,{size:14}),onClick:()=>r("main"),children:i("editor.ai.back")}),p.jsx(L.Menu.Item,{onClick:()=>{mq(n,t,o,s)},leftSection:p.jsx(ie.IconReplace,{size:14}),children:i("editor.ai.menu.answer.replaceSelection")}),p.jsx(L.Menu.Item,{onClick:()=>{Aq(n,` ${t}`,o,s)},leftSection:p.jsx(ie.IconTextPlus,{size:14}),children:i("editor.ai.menu.answer.addTextInline")}),p.jsx(L.Menu.Item,{onClick:()=>{yq(n,t,o,s),s()},leftSection:p.jsx(ie.IconIndentIncrease,{size:14}),children:i("editor.ai.menu.answer.addBelowParagraph")}),p.jsx(L.Menu.Divider,{}),p.jsx(L.Menu.Label,{children:i("editor.ai.menu.answer.modifyFurther")}),p.jsx(L.Menu.Item,{onClick:()=>{e(`Start with this text and continue. Output this text at the start: "${t}"`,!1)},leftSection:p.jsx(ie.IconPlayerPlay,{size:14}),children:i("editor.ai.menu.answer.continueWriting")}),p.jsx(L.Menu.Item,{onClick:()=>{e("Regenerate this text with another way: ")},leftSection:p.jsx(ie.IconReload,{size:14}),children:i("editor.ai.menu.answer.regenerate")}),p.jsx(L.Menu.Item,{onClick:s,leftSection:p.jsx(ie.IconTrash,{size:14}),children:i("editor.ai.menu.answer.discard")})]}),Cq=["arabic","bengali","chinese","dutch","english","french","german","hindi","japanese","korean","nepali","portuguese","spanish"],xq=["professional","straightforward","friendly","poetic","passiveAggressive","pirate"],vq=[{title:"modifySelection",options:[{title:"improveWriting",prompt:"Improve the quality of the text",icon:p.jsx(ie.IconWand,{size:14})},{title:"fixMistakes",prompt:"Fix any typos or general errors in the text",icon:p.jsx(ie.IconTextSpellcheck,{size:14})},{title:"simplify",prompt:"Shorten the text, simplifying it",icon:p.jsx(ie.IconSortAscending,{size:14})},{title:"addMoreDetail",prompt:"Lengthen the text, going into more detail",icon:p.jsx(ie.IconSortDescending,{size:14})}]},{title:"generate",options:[{title:"summarise",prompt:"Summarise the text",icon:p.jsx(ie.IconNotes,{size:14})},{title:"translate",icon:p.jsx(ie.IconLanguage,{size:14}),type:"language"},{title:"changeStyle",icon:p.jsx(ie.IconScript,{size:14}),type:"style"},{title:"explain",prompt:"Explain what the text is about",icon:p.jsx(ie.IconHelpOctagon,{size:14})}]}],Sq=({setTypeMenu:n,onSubmit:t,t:e})=>p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Item,{leftSection:p.jsx(ie.IconArrowNarrowLeft,{size:14}),onClick:()=>n("main"),children:e("editor.ai.back")}),Cq.map(r=>p.jsx(L.Menu.Item,{onClick:()=>{t(`Translate text into the ${r} language`)},children:e(`editor.ai.menu.languages.${r}`)},r))]}),Eq=({setTypeMenu:n,onSubmit:t,t:e})=>p.jsx(p.Fragment,{children:vq.map(r=>p.jsxs("div",{children:[p.jsx(L.Menu.Label,{children:e(`editor.ai.menu.main.${r.title}`)}),r.options.map(s=>p.jsx(L.Menu.Item,{onClick:()=>{if(s.type){n(s.type);return}t(s.prompt||"")},leftSection:s.icon,children:e(`editor.ai.menu.main.${s.title}`)},s.title))]},r.title))}),kq=({setTypeMenu:n,onSubmit:t,t:e})=>p.jsxs(p.Fragment,{children:[p.jsx(L.Menu.Item,{leftSection:p.jsx(ie.IconArrowNarrowLeft,{size:14}),onClick:()=>n("main"),children:e("editor.ai.back")}),xq.map(r=>p.jsx(L.Menu.Item,{onClick:()=>{t(`Change text into ${r} style`)},children:e(`editor.ai.menu.style.${r}`)},r))]}),Tq=({keyType:n,setTypeMenu:t,editor:e,onSubmit:r,response:s,onClose:i,t:o,selection:l})=>{switch(n){case"main":return p.jsx(Eq,{t:o,setTypeMenu:t,onSubmit:r});case"answer":return p.jsx(wq,{t:o,onSubmit:r,editor:e,response:s,setTypeMenu:t,onClose:i,selection:l});case"language":return p.jsx(Sq,{t:o,onSubmit:r,setTypeMenu:t});case"style":return p.jsx(kq,{t:o,onSubmit:r,setTypeMenu:t});default:return null}};function _q(n,t=40){const[e,r]=x.useState(""),s=x.useRef(0),i=x.useRef(null),o=x.useRef(null);return x.useEffect(()=>{if(i.current&&clearInterval(i.current),r(""),s.current=0,!!n)return i.current=setInterval(()=>{r(l=>{const a=n[s.current];return s.current+=1,s.current>=n.length&&clearInterval(i.current),l+(a||"")})},t),()=>{i.current&&clearInterval(i.current)}},[n,t]),x.useEffect(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight)},[e]),{displayedText:e,containerRef:o}}const Nq=()=>{var B;const[n,t]=x.useState({top:"0px",bottom:"auto"}),[e,r]=x.useState(!1),[s,i]=x.useState(!1),[o]=je(),[l,a]=x.useState("main"),[u,d]=x.useState(""),[h,g]=x.useState(""),[m,A]=x.useState(""),[y,b]=x.useState(null),[v,C]=x.useState(!1),{fetchPromptResult:S}=x.useContext(Pt),{t:k}=Je.useTranslation(),[_,T]=Ja.useResizeObserver(),N=()=>{r(!1),i(!1),A(""),a("main"),setTimeout(()=>{t({top:"0px",bottom:"auto"})},200)},M=Ja.useClickOutside(()=>{N()});x.useEffect(()=>{e?(bq(o,g),document.documentElement.style.overflow="hidden",o.update(()=>{const R=Q();R&&b(R)})):(a("main"),document.documentElement.style.overflow="auto",A(""))},[e]);const{displayedText:I,containerRef:D}=_q(m,10),j=(R,z=!0)=>{const G=R+` "${z?h:""}"Only return the modified text. Do not include any explanations, introductions, or formatting.`;C(!0),S&&S(G,ce=>{A(ce),C(!1),a("answer"),d("")},()=>{C(!1)})};return x.useEffect(()=>{var z,G,ce;const{bottom:R}=((z=_.current)==null?void 0:z.getBoundingClientRect())||{bottom:0};if(R>window.innerHeight){const oe=(((ce=(G=o._rootElement)==null?void 0:G.getBoundingClientRect())==null?void 0:ce.bottom)||0)-window.innerHeight;t({...n,top:"auto",bottom:`${oe}px`})}},[T.height,e,_.current]),(B=o._rootElement)!=null&&B.parentElement?p.jsxs(p.Fragment,{children:[n.top?Dr.createPortal(p.jsx(L.Transition,{mounted:!!e,transition:"scale-x",duration:300,timingFunction:"ease",children:R=>p.jsx(L.Box,{ref:M,style:{position:"absolute",...n,...R},className:"ai-editor-menu",children:p.jsxs(L.Menu,{opened:!!s,closeOnItemClick:!1,position:"bottom-start",zIndex:99,transitionProps:{transition:"fade",duration:300},styles:{dropdown:{overflow:"auto"}},offset:8,middlewares:{flip:!0,size:{apply({availableHeight:z,elements:G}){requestAnimationFrame(()=>{Object.assign(G.floating.style,{maxHeight:`${z>=425?425:z}px`})})}}},disabled:v,children:[p.jsx(L.Menu.Target,{children:p.jsxs(L.Paper,{withBorder:!0,ref:_,shadow:"lg",radius:"md",p:"0",px:"xs",children:[m&&p.jsxs(p.Fragment,{children:[p.jsxs(L.Group,{gap:3,align:"flex-start",style:{overflowY:"auto"},mah:120,ref:D,children:[p.jsx(L.Box,{style:{flex:1},w:"auto",py:"xs",children:I}),p.jsx(L.Box,{w:"auto",mt:"xs",children:p.jsx(L.CopyButton,{value:m,timeout:2e3,children:({copied:z,copy:G})=>p.jsx(L.Tooltip,{label:z?"Copied":"Copy",withArrow:!0,position:"right",children:p.jsx(L.ActionIcon,{color:z?"teal":"gray",variant:"subtle",onClick:G,children:z?p.jsx(ie.IconCheck,{size:16}):p.jsx(ie.IconCopy,{size:16})})})})})]}),p.jsx(L.Divider,{my:"0"})]}),p.jsx(L.Box,{children:p.jsx(L.Input,{size:"md",placeholder:k("editor.ai.placeholder"),rightSectionPointerEvents:"all",variant:"unstyled",value:u,onKeyDown:z=>{if(z.key==="Enter"){if(v)return;j(u)}},onChange:z=>{d(z.target.value)},rightSection:p.jsx(p.Fragment,{children:v?p.jsx(L.Loader,{color:"violet",size:"16",mr:"xs"}):p.jsx(L.ActionIcon,{color:"violet",disabled:!u,variant:"subtle",onClick:()=>{j(u)},children:p.jsx(ie.IconSparkles,{size:16})})})})})]})}),p.jsx(L.Menu.Dropdown,{className:"menu-dropdown-ai",onMouseDown:z=>{z.stopPropagation()},children:p.jsx(Tq,{keyType:l,setTypeMenu:a,editor:o,onSubmit:j,response:m,onClose:N,t:k,selection:y})})]})})}),o._rootElement.parentElement):null,p.jsxs("button",{disabled:!1,className:"toolbar-item spaced alignment","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-ai",onClick:()=>{const R=document.querySelector(".floating-text-format-popup");if(R.style.opacity="0",R.style.transform="translate(-10000px, -10000px)",R!=null&&R.style){const z=window.getSelection();if((z==null?void 0:z.rangeCount)===0)return null;if(z){const ce=z.getRangeAt(0).getBoundingClientRect(),oe=document.querySelector(".content-editable-wrapper"),W=oe.getBoundingClientRect(),Z=ce.top-W.top+oe.scrollTop+ce.height+"px";t({top:Z,bottom:"auto"}),setTimeout(()=>{r(!0)},0),setTimeout(()=>{i(!0)},100)}}},children:[p.jsx(ie.IconSparkles,{color:"#7950f2",size:18}),p.jsx(ie.IconAi,{size:21,color:"#7950f2"})]})]}):null},mL=({children:n,...t})=>{const{imagePickerSettings:e,maxFileSize:r}=x.useContext(Pt),{t:s}=Je.useTranslation("ui"),{giphyToken:i,unsplashClientId:o,link:l,download:a,maxUploadFiles:u}=e,d=x.useMemo(()=>[{key:"gallery",enabled:!0},{key:"giphy",enabled:i},{key:"unsplash",enabled:o},{key:"link",enabled:l===void 0?!0:l},{key:"upload",enabled:a===void 0?!0:a}].filter(g=>g.enabled).map(g=>g.key),[e]);return p.jsx(Rt.FilePicker,{showTabs:d,dropZoneProps:{maxFiles:u||1,maxSize:r*1024*1024},giphyToken:i,unsplashClientId:o,...t,children:n})},Mq=({editor:n,isEditable:t,t:e})=>{const{fetchUploadMedia:r,imperativeHandleRef:s}=x.useContext(Pt),[i,o]=x.useState(!1);return r?p.jsx(mL,{popoverProps:{opened:i,position:"bottom",onChange:o},onUpload:l=>{var a,u;!r||!l.length||(o(!1),(a=s==null?void 0:s.current)!=null&&a.insertImages&&((u=s.current)==null||u.insertImages(l)))},onChange:l=>{n.dispatchCommand(Xh,{altText:"",src:l}),o(!1)},children:p.jsx(L.Tooltip,{label:e("editor.image.add_photo"),children:p.jsx("button",{disabled:!t,type:"button",onClick:()=>o(l=>!l),className:"toolbar-item spaced","data-test-id":"toolbar-insert-image",children:p.jsx(Ne,{name:"photo"})})})}):null},Iq={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"};function Jf(){return p.jsx("div",{className:"divider"})}function oT({mode:n,isFloating:t}){const[e]=je(),[r,s]=x.useState(e),[i,o]=x.useState("paragraph"),[l,a]=x.useState("root"),[u,d]=x.useState(null),[h,g]=x.useState("#000"),[m,A]=x.useState("#fff"),[y,b]=x.useState("left"),[v,C]=x.useState(!1),[S,k]=x.useState(!1),[_,T]=x.useState(!1),[N,M]=x.useState(!1),[I,D]=x.useState(!1),[j,B]=x.useState(!1),[R,z]=x.useState(!1),[G,ce]=x.useState(!1),[oe,W]=x.useState(!1),[Z,ae]=x.useState(!1),[q]=Ap(),[K,Y]=x.useState(!1),[te,ue]=x.useState(!0),[re,se]=x.useState(!0),[he,xe]=x.useState(0),[pe,$]=x.useState(()=>e.isEditable()),le=n||"default",{excludeNodes:Se,fetchUploadMedia:we,fetchPromptResult:Oe,commentController:Ke}=x.useContext(Pt),{t:ke}=Je.useTranslation(),_e=x.useCallback(()=>{const Re=Q();if(J(Re)){const tt=Re.anchor.getNode(),nt=Re.focus.getNode(),ye=Vt(tt)?null:tt.getTopLevelElementOrThrow(),ve=Vt(nt)?null:nt.getTopLevelElementOrThrow();let Be=tt.getKey()==="root"?tt:Le(tt,ur=>{const $i=ur.getParent();return $i!==null&&$n($i)});Re.getNodes().length===1?ue(!0):ue(!1),Be===null&&(Be=tt.getTopLevelElementOrThrow());const ot=Be.getKey(),Zt=r.getElementByKey(ot);e.update(()=>{k(Re.hasFormat("bold")),T(Re.hasFormat("italic")),M(Re.hasFormat("underline")),D(Re.hasFormat("strikethrough")),B(Re.hasFormat("subscript")),z(Re.hasFormat("superscript")),ce(Re.hasFormat("code"))});const nn=Za(Re),Pr=nn.getParent();Mn(Pr)||Mn(nn)?C(!0):C(!1),g(Sh(Re,"color","inherit")),A(Sh(Re,"background-color","inherit"));let Ko;Mn(Pr)&&(Ko=Le(nn,ur=>X(ur)&&!ur.isInline())),b(X(Ko)?Ko.getFormatType():X(nn)?nn.getFormatType():(Pr==null?void 0:Pr.getFormatType())||"left");const Mc=Le(nn,St);if(St(Mc)?a("table"):a("root"),Zt!==null&&(ye==null?void 0:ye.getKey())===(ve==null?void 0:ve.getKey()))if(d(ot),at(Be)){const ur=lb(tt,jr),$i=ur?ur.getListType():Be.getListType();o($i)}else{const ur=Js(Be)?Be.getTag():Be.getType();ur in Iq&&o(ur)}else o("")}},[r,ue]);x.useEffect(()=>e.registerCommand(Xr,(Re,tt)=>(_e(),s(tt),!1),vn),[e,_e]),x.useEffect(()=>ct(e.registerEditableListener(Re=>{$(Re)}),r.registerUpdateListener(({editorState:Re})=>{Re.read(()=>{_e()})}),r.registerCommand(La,Re=>(W(Re),!1),vn),r.registerCommand(Ia,Re=>(ae(Re),!1),vn)),[_e,r,e]),x.useEffect(()=>ct(r.registerCommand(WT,Re=>{const tt=Re,{code:nt,metaKey:ye}=tt;if(nt==="KeyK"&&ye){tt.preventDefault();let ve;return v?ve=null:ve=ul("https://"),r.dispatchCommand(xo,ve)}return!1},Ss),r.registerCommand(Gi,()=>{const Re=Q();if(J(Re)){const tt=Re.getNodes(),nt=tt.length>0&&tt.every(ye=>Hi(ye)||St(ye)||Ir(ye)?!1:X(ye)||fe(ye));se(!nt)}return!1},Ss)),[r,v]),x.useCallback((Re,tt)=>{r.update(()=>{const nt=Q();nt!==null&&vh(nt,Re)},tt?{tag:"historic"}:{})},[r]);const et=x.useCallback(()=>{setTimeout(()=>{r.dispatchCommand(Ot,"")}),r.update(()=>{const Re=Q();if(J(Re)){const tt=Re.anchor,nt=Re.focus,ye=Re.getNodes(),ve=Re.extract();if(tt.key===nt.key&&tt.offset===nt.offset)return;ye.forEach((Be,At)=>{if(Yn(Be)){let ot=Be;At===0&&tt.offset!==0&&(ot=ot.splitText(tt.offset)[1]||ot),At===ye.length-1&&(ot=ot.splitText(nt.offset)[0]||ot);const Zt=ve[0];ye.length===1&&Yn(Zt)&&(ot=Zt),ot.__style!==""&&ot.setStyle(""),ot.__format!==0&&ot.setFormat(0);const nn=yc(ot);nn.__format!==0&&nn.setFormat(""),nn.__indent!==0&&nn.setIndent(0),Be=ot}else Js(Be)||oc(Be)?Be.replace(Me(),!0):zh(Be)&&Be.setFormat("")})}})},[r]),mt=Re=>{g(Re.color),A(Re["background-color"]),r.update(()=>{const tt=Q();tt!==null&&vh(tt,Re)})},Ve=x.useCallback(()=>{e.dispatchCommand(pw,"create"),setTimeout(()=>{$(!0)},1e3)},[e]),Ft=()=>{e.dispatchCommand(Qw,void 0),xe(Re=>Re+1)};return p.jsx("div",{className:"toolbar-wrapper",tabIndex:-1,children:p.jsxs("div",{className:"toolbar",children:[p.jsxs(p.Fragment,{children:[p.jsx(JI,{disabled:re,blockType:i,rootType:l,editor:e,mode:le,fetchUploadMedia:we,excludeNodes:Se}),p.jsx(Jf,{})]}),n==="editor"&&!0&&Oe&&p.jsxs(p.Fragment,{children:[p.jsx(x.Suspense,{fallback:null,children:p.jsx(Nq,{})}),p.jsx(Jf,{})]}),p.jsxs(p.Fragment,{children:[p.jsx(L.Tooltip,{label:ke("editor.toolbar.bold"),children:p.jsx("button",{disabled:!pe,onClick:()=>{r.dispatchCommand(Ot,"bold")},className:"toolbar-item spaced "+(S?"active":""),type:"button","data-test-id":"toolbar-bold",children:p.jsx(Ne,{name:"bold"})})}),p.jsx(L.Tooltip,{label:ke("editor.toolbar.italic"),children:p.jsx("button",{disabled:!pe,onClick:()=>{r.dispatchCommand(Ot,"italic")},className:"toolbar-item spaced "+(_?"active":""),type:"button","data-test-id":"toolbar-italic",children:p.jsx(Ne,{name:"italic"})})}),p.jsx(L.Tooltip,{label:ke("editor.toolbar.underline"),children:p.jsx("button",{disabled:!pe,"data-test-id":"toolbar-underline",onClick:()=>{r.dispatchCommand(Ot,"underline")},className:"toolbar-item spaced "+(N?"active":""),type:"button",children:p.jsx(Ne,{name:"underline"})})}),p.jsx(L.Tooltip,{label:ke("editor.toolbar.strike"),children:p.jsx("button",{disabled:!pe,className:"toolbar-item spaced "+(I?"active":""),"data-test-id":"toolbar-strikethrough",onClick:()=>{r.dispatchCommand(Ot,"strikethrough")},children:p.jsx(Ne,{name:"strikethrough"})})}),p.jsx(L.Tooltip,{label:ke("editor.toolbar.code"),children:p.jsx("button",{disabled:!pe,onClick:()=>{r.dispatchCommand(Ot,"code")},className:"toolbar-item spaced "+(G?"active":""),type:"button","data-test-id":"toolbar-code",children:p.jsx(Ne,{name:"code"})})}),p.jsx(L.Tooltip,{label:ke("editor.toolbar.clear"),children:p.jsx("button",{disabled:!pe,className:"toolbar-item",onClick:et,"data-test-id":"toolbar-clear-format",children:p.jsx(Ne,{name:"сlear-format"})})}),p.jsx(L.Tooltip,{disabled:!pe,label:ke("editor.toolbar.link"),children:p.jsx("button",{onClick:Ve,className:"toolbar-item spaced "+(v?"active":""),onMouseDown:()=>{$(!1)},type:"button","data-test-id":"toolbar-link",children:p.jsx(Ne,{name:"link"})})}),Ke&&n==="editor"&&p.jsx(L.Tooltip,{label:ke("editor.toolbar.comment"),children:p.jsx("button",{onClick:Ft,className:"toolbar-item spaced "+(v?"active":""),type:"button","data-test-id":"toolbar-comment",children:p.jsx(Ne,{name:"message"})})},he),p.jsx(Rt.NewColorPicker,{value:{color:h,background:m},menuProps:{closeOnItemClick:!0},onChange:Re=>{mt({color:h,"background-color":m,[Re.mode==="color"?"color":"background-color"]:Re.value})},disabled:!pe,modes:["color","background"]})]}),p.jsx(Jf,{}),p.jsx(pq,{disabled:!pe,value:y,editor:e,isRTL:K,setElementFormat:b}),n==="default"&&p.jsxs(p.Fragment,{children:[p.jsx(Jf,{}),p.jsx(Mq,{editor:e,t:ke,isEditable:pe})]}),q]})})}const AL=Object.freeze({" ":"\\t","\n":"\\n"}),lT=new RegExp(Object.keys(AL).join("|"),"g"),zs=Object.freeze({ancestorHasNextSibling:"|",ancestorIsLastChild:" ",hasNextSibling:"├",isLastChild:"└",selectedChar:"^",selectedLine:">"}),Lq=[n=>n.hasFormat("bold")&&"Bold",n=>n.hasFormat("code")&&"Code",n=>n.hasFormat("italic")&&"Italic",n=>n.hasFormat("strikethrough")&&"Strikethrough",n=>n.hasFormat("subscript")&&"Subscript",n=>n.hasFormat("superscript")&&"Superscript",n=>n.hasFormat("underline")&&"Underline",n=>n.hasFormat("highlight")&&"Highlight"],Dq=[n=>n.hasTextFormat("bold")&&"Bold",n=>n.hasTextFormat("code")&&"Code",n=>n.hasTextFormat("italic")&&"Italic",n=>n.hasTextFormat("strikethrough")&&"Strikethrough",n=>n.hasTextFormat("subscript")&&"Subscript",n=>n.hasTextFormat("superscript")&&"Superscript",n=>n.hasTextFormat("underline")&&"Underline",n=>n.hasTextFormat("highlight")&&"Highlight"],Oq=[n=>n.isDirectionless()&&"Directionless",n=>n.isUnmergeable()&&"Unmergeable"],Rq=[n=>n.isToken()&&"Token",n=>n.isSegmented()&&"Segmented"];function jq(n,t,e,r,s=!1){const i=n.getEditorState(),o=n._config,l=n._compositionKey,a=n._editable;if(e){let g="";return i.read(()=>{g=(function(m){const A=document.createElement("div");return A.innerHTML=m.trim(),bL(A,0).innerHTML})(Eh(n))}),g}let u=` root
|
|
176
|
-
`;const d=i.read(()=>{const g=Q();return yL(Ue(),(m,A)=>{const y=`(${m.getKey()})`,b=m.getType()||"",v=m.isSelected();u+=`${v?zs.selectedLine:" "} ${A.join(" ")} ${y} ${b} ${(function(C,S,k=!1){const _=S?S(C,k):void 0;if(_!==void 0&&_.length>0)return _;if(fe(C)){const T=C.getTextContent(),N=T.length===0?"(empty)":`"${aT(T,k)}"`,M=(function(I){return[cT(I),Pq(I),Bq(I),uT(I)].filter(Boolean).join(", ")})(C);return[N,M.length!==0?`{ ${M} }`:null].filter(Boolean).join(" ").trim()}if(Mn(C)){const T=C.getURL(),N=T.length===0?"(empty)":`"${aT(T,k)}"`,M=(function(I){return[Fq(I),zq(I),Uq(I),uT(I)].filter(Boolean).join(", ")})(C);return[N,M.length!==0?`{ ${M} }`:null].filter(Boolean).join(" ").trim()}if(Uh(C))return`ids: [ ${C.getIDs().join(", ")} ]`;if(fn(C)){const T=(function(M){let I=Dq.map(D=>D(M)).filter(Boolean).join(", ").toLocaleLowerCase();return I!==""&&(I="format: "+I),I})(C);let N=T!==""?`{ ${T} }`:"";return N+=C.__style?`(${C.__style})`:"",N}return""})(m,r,s)}
|
|
177
|
-
`,u+=(function({indent:C,isSelected:S,node:k,nodeKeyDisplay:_,selection:T,typeDisplay:N}){if(!fe(k)||!J(T)||!S||X(k))return"";const M=T.anchor,I=T.focus;if(k.getTextContent()===""||M.getNode()===T.focus.getNode()&&M.offset===I.offset)return"";const[D,j]=(function(W,Z){const ae=Z.getStartEndPoints();if($t(Z)||ae===null)return[-1,-1];const[q,K]=ae,Y=W.getTextContent(),te=Y.length;let ue=-1,re=-1;if(q.type==="text"&&K.type==="text"){const xe=q.getNode(),pe=K.getNode();xe===pe&&W===xe&&q.offset!==K.offset?[ue,re]=q.offset<K.offset?[q.offset,K.offset]:[K.offset,q.offset]:[ue,re]=W===xe?xe.isBefore(pe)?[q.offset,te]:[0,q.offset]:W===pe?pe.isBefore(xe)?[K.offset,te]:[0,K.offset]:[0,te]}const se=(Y.slice(0,ue).match(lT)||[]).length,he=(Y.slice(ue,re).match(lT)||[]).length;return[ue+se,re+se+he]})(k,T);if(D===j)return"";const B=C[C.length-1]===zs.hasNextSibling?zs.ancestorHasNextSibling:zs.ancestorIsLastChild,R=[...C.slice(0,C.length-1),B],z=Array(D+1).fill(" "),G=Array(j-D).fill(zs.selectedChar),ce=N.length+2,oe=Array(_.length+ce).fill(" ");return[zs.selectedLine,R.join(" "),[...oe,...z,...G].join("")].join(" ")+`
|
|
178
|
-
`})({indent:A,isSelected:v,node:m,nodeKeyDisplay:y,selection:g,typeDisplay:b})}),g===null?": null":J(g)?(function(m){let A="";const y=cT(m);A+=`: range ${y!==""?`{ ${y} }`:""} ${m.style!==""?`{ style: ${m.style} } `:""}`;const b=m.anchor,v=m.focus,C=b.offset,S=v.offset;return A+=`
|
|
179
|
-
├ anchor { key: ${b.key}, offset: ${C===null?"null":C}, type: ${b.type} }`,A+=`
|
|
180
|
-
└ focus { key: ${v.key}, offset: ${S===null?"null":S}, type: ${v.type} }`,A})(g):Gw(g)?(function(m){return`: table
|
|
181
|
-
└ { table: ${m.tableKey}, anchorCell: ${m.anchor.key}, focusCell: ${m.focus.key} }`})(g):(function(m){return $t(m)?`: node
|
|
182
|
-
└ [${Array.from(m._nodes).join(", ")}]`:""})(g)});if(u+=`
|
|
183
|
-
selection`+d,u+=`
|
|
184
|
-
|
|
185
|
-
commands:`,t.length)for(const{index:g,type:m,payload:A}of t)u+=`
|
|
186
|
-
└ ${g}. { type: ${m}, payload: ${A instanceof Event?A.constructor.name:A} }`;else u+=`
|
|
187
|
-
└ None dispatched.`;const{version:h}=n.constructor;return u+=`
|
|
188
|
-
|
|
189
|
-
editor${h?` (v${h})`:""}:`,u+=`
|
|
190
|
-
└ namespace ${o.namespace}`,l!==null&&(u+=`
|
|
191
|
-
└ compositionKey ${l}`),u+=`
|
|
192
|
-
└ editable ${String(a)}`,u}function yL(n,t,e=[]){const r=n.getChildren(),s=r.length;r.forEach((i,o)=>{t(i,e.concat(o===s-1?zs.isLastChild:zs.hasNextSibling)),X(i)&&yL(i,t,e.concat(o===s-1?zs.ancestorIsLastChild:zs.ancestorHasNextSibling))})}function aT(n,t=!1){const e=Object.entries(AL).reduce((r,[s,i])=>r.replace(new RegExp(s,"g"),String(i)),n);return t?e.replace(/[^\s]/g,"*"):e}function Pq(n){let t=Oq.map(e=>e(n)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="detail: "+t),t}function Bq(n){let t=Rq.map(e=>e(n)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="mode: "+t),t}function cT(n){let t=Lq.map(e=>e(n)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="format: "+t),t}function Fq(n){let t=n.getTarget();return t!=null&&(t="target: "+t),t}function zq(n){let t=n.getRel();return t!=null&&(t="rel: "+t),t}function Uq(n){let t=n.getTitle();return t!=null&&(t="title: "+t),t}function uT(n){if(!n.__state)return!1;const t=[];for(const[r,s]of n.__state.knownState.entries()){if(r.isEqual(s,r.defaultValue))continue;const i=JSON.stringify(r.unparse(s));t.push(`[${r.key}: ${i}]`)}let e=t.join(",");return e!==""&&(e="state: "+e),e}function bL(n,t){const e=new Array(1+t++).join(" "),r=new Array(t-1).join(" ");let s;for(let i=0;i<n.children.length;i++)s=document.createTextNode(`
|
|
193
|
-
`+e),n.insertBefore(s,n.children[i]),bL(n.children[i],t),n.lastElementChild===n.children[i]&&(s=document.createTextNode(`
|
|
194
|
-
`+r),n.appendChild(s));return n}const Kq=x.forwardRef(function({treeTypeButtonClassName:n,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:r,viewClassName:s,timeTravelPanelClassName:i,editorState:o,setEditorState:l,setEditorReadOnly:a,generateContent:u,commandsLog:d=[]},h){const[g,m]=x.useState([]),[A,y]=x.useState(""),[b,v]=x.useState(!1),[C,S]=x.useState(!1),k=x.useRef(0),_=x.useRef(null),[T,N]=x.useState(!1),[M,I]=x.useState(!1),[D,j]=x.useState(!1),B=x.useRef(null),R=x.useRef([]),z=x.useRef(0),G=x.useCallback(oe=>{const W=++z.current;u(oe).then(Z=>{W===z.current&&y(Z)}).catch(Z=>{W===z.current&&y(`Error rendering tree: ${Z.message}
|
|
195
|
-
|
|
196
|
-
Stack:
|
|
197
|
-
${Z.stack}`)})},[u]);x.useEffect(()=>{if(!(!D&&o._nodeMap.size>1e3&&(I(!0),!D))&&(B.current!==o||R.current!==d)){const oe=B.current!==o;B.current=o,R.current=d,G(C),!b&&oe&&m(W=>[...W,[Date.now(),o]])}},[o,G,C,D,b,d]);const ce=g.length;return x.useEffect(()=>{if(T){let oe;const W=()=>{const Z=k.current;if(Z===ce-1)return void N(!1);const ae=g[Z][0],q=g[Z+1][0];oe=setTimeout(()=>{k.current++;const K=k.current,Y=_.current;Y!==null&&(Y.value=String(K)),l(g[K][1]),W()},q-ae)};return W(),()=>{clearTimeout(oe)}}},[g,T,ce,l]),p.jsxs("div",{className:s,children:[!D&&M?p.jsxs("div",{style:{padding:20},children:[p.jsx("span",{style:{marginRight:20},children:"Detected large EditorState, this can impact debugging performance."}),p.jsx("button",{onClick:()=>{j(!0)},style:{background:"transparent",border:"1px solid white",color:"white",cursor:"pointer",padding:5},children:"Show full tree"})]}):null,D?null:p.jsx("button",{onClick:()=>(G(!C),void S(!C)),className:n,type:"button",children:C?"Tree":"Export DOM"}),!b&&(D||!M)&&ce>2&&p.jsx("button",{onClick:()=>{a(!0),k.current=ce-1,v(!0)},className:t,type:"button",children:"Time Travel"}),(D||!M)&&p.jsx("pre",{ref:h,children:A}),b&&(D||!M)&&p.jsxs("div",{className:i,children:[p.jsx("button",{className:r,onClick:()=>{k.current===ce-1&&(k.current=1),N(!T)},type:"button",children:T?"Pause":"Play"}),p.jsx("input",{className:e,ref:_,onChange:oe=>{const W=Number(oe.target.value),Z=g[W];Z&&(k.current=W,l(Z[1]))},type:"range",min:"1",max:ce-1}),p.jsx("button",{className:r,onClick:()=>{a(!1);const oe=g.length-1,W=g[oe];l(W[1]);const Z=_.current;Z!==null&&(Z.value=String(oe)),v(!1),N(!1)},type:"button",children:"Exit"})]})]})});function Wq(n,t){const e=new Set;let r=0;for(const[s]of n._commands)e.add(n.registerCommand(s,i=>(t(o=>{r+=1;const l=[...o];return l.push({index:r,payload:i,type:s.type?s.type:"UNKNOWN"}),l.length>10&&l.shift(),l}),!1),vn));return()=>e.forEach(s=>s())}function Hq(n){const[t,e]=x.useState([]);return x.useEffect(()=>Wq(n,e),[n]),x.useMemo(()=>t,[t])}function Yq({treeTypeButtonClassName:n,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:r,timeTravelPanelClassName:s,viewClassName:i,editor:o,customPrintNode:l}){const a=xT.createRef(),[u,d]=x.useState(o.getEditorState()),h=Hq(o);return x.useEffect(()=>ct(o.registerUpdateListener(({editorState:g})=>{d(g)}),o.registerEditableListener(()=>{d(o.getEditorState())})),[o]),x.useEffect(()=>{const g=a.current;if(g!==null)return g.__lexicalEditor=o,()=>{g.__lexicalEditor=null}},[o,a]),p.jsx(Kq,{treeTypeButtonClassName:n,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:r,viewClassName:i,timeTravelPanelClassName:s,setEditorReadOnly:g=>{const m=o.getRootElement();m!=null&&(m.contentEditable=g?"false":"true")},editorState:u,setEditorState:g=>o.setEditorState(g),generateContent:async function(g){return jq(o,h,g,l)},ref:a,commandsLog:h})}function dT(n){let t=0;const e=[];return n.split(/(<[^>]+>)/g).filter(Boolean).forEach(s=>{s.startsWith("</")?(t=Math.max(0,t-2),e.push(" ".repeat(t)+s)):s.startsWith("<")?(e.push(" ".repeat(t)+s),!s.endsWith("/>")&&!s.match(/<(br|img|hr|input)[^>]*>/)&&(t+=2)):s.trim()&&e.push(" ".repeat(t)+s)}),e.join(`
|
|
198
|
-
`)}function Gq(){const[n]=je(),[t,e]=x.useState("tree"),[r,s]=x.useState(""),[i,o]=x.useState(!1);x.useEffect(()=>{if(t==="dom"){const a=()=>{const u=n.getRootElement();u&&s(u.innerHTML)};return a(),n.registerUpdateListener(a)}},[t,n]);const l=async(a=!1)=>{try{const u=a?dT(r):r;await navigator.clipboard.writeText(u),o(!0),setTimeout(()=>o(!1),2e3)}catch(u){console.error("Failed to copy:",u)}};return p.jsxs("div",{className:"tree-view-output",children:[p.jsxs("div",{style:{display:"flex",gap:"4px",padding:"8px",borderBottom:"1px solid #333",background:"#1e1e1e"},children:[p.jsx("button",{onClick:()=>e("tree"),style:{padding:"6px 12px",background:t==="tree"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:t==="tree"?"bold":"normal"},children:"Tree View"}),p.jsx("button",{onClick:()=>e("dom"),style:{padding:"6px 12px",background:t==="dom"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:t==="dom"?"bold":"normal"},children:"DOM HTML"})]}),t==="tree"&&p.jsx(Yq,{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:n}),t==="dom"&&p.jsxs("div",{style:{padding:"16px",background:"#1e1e1e",height:"100%",overflow:"auto"},children:[p.jsx("div",{style:{display:"flex",gap:"8px",marginBottom:"16px",position:"sticky",top:0,background:"#1e1e1e",paddingBottom:"8px",zIndex:10},children:p.jsx("button",{onClick:()=>l(!0),style:{padding:"6px 12px",background:i?"#28a745":"#6c757d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"11px",fontWeight:"bold"},children:i?"✓ Copied!":"Copy Formatted"})}),p.jsx("div",{style:{padding:"12px",background:"#252526",borderRadius:"4px",border:"1px solid #3e3e42"},children:p.jsx("pre",{style:{margin:0,whiteSpace:"pre",color:"#9cdcfe",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.4"},children:dT(r)})})]})]})}const fT=n=>{for(;n;){if(Hi(n))return n;const t=n.getParent();if(!t)break;n=t}return null},Zq=n=>{switch(n){case"warning":return{emoji:"e=%E2%9A%A0%EF%B8%8F",backgroundColor:"rgba(254, 247, 230, 1)",calloutType:"warning"};case"alert":return{emoji:"e=%E2%9D%97",backgroundColor:"rgba(255, 224, 223, 1)",calloutType:"alert"};case"success":return{emoji:"e=%E2%9C%85",backgroundColor:"rgba(219, 242, 233, 1)",calloutType:"success"};default:return{emoji:"e=%F0%9F%99%82",backgroundColor:"",calloutType:""}}},hT=n=>n.replace(/\s+/g," ").trim(),Jq=n=>{const t=Gt();if(t){const e=Le(t,yd);if((e==null?void 0:e.__type)==="callout"){const r=Q();if(J(r)&&r.isCollapsed()){const s=r.anchor.getNode(),i=Le(s,Hi);return yp(n,i,e)}}}return!0},Vq=(n,t,e)=>()=>{const r=fw(t,e),s=Nw(n),i=Me(),o=uw().append(i);return r.append(s),r.append(o),r},Qq=(n,t)=>{const r=t.getChildren().find(yd);if(!r)return;const s=r.getFirstChild();if(!s||!X(s))return;const i=n.getChildren(),o=[];for(const l of i)o.push(l);for(const l of o)s.append(l)};function Xq(){const[n]=je(),{imperativeHandleRef:t}=x.useContext(Pt),e=x.useCallback(()=>{const r=Gt(),{lexicalNode:s}=lc(r,n,{"callout-wrapper":!0});return s&&X(s)&&s.getChildren().length===1&&n.update(()=>{const i=Me();i.append(Ct(""));const o=s.getParent();o&&(o.replace(i),i.selectStart())}),!1},[n]);x.useEffect(()=>{t!=null&&t.current&&(t.current.onDeleteCallout=e)},[t,e]),x.useEffect(()=>{if(!n.hasNodes([ta,Do,Ro]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return ct(n.registerMutationListener(Ro,r=>{n.getEditorState().read(()=>{for(const[s,i]of r)if(i==="destroyed"){const o=Number(s),l=String(o-1);n.update(()=>{const a=Te(l);if(a&&Hi(a)){const u=a.getChildren();for(const d of u)a==null||a.insertBefore(d);a.remove()}},{tag:qr})}})}),n.registerCommand(gw,r=>{const{emoji:s,backgroundColor:i,calloutType:o}=Zq(r),l=Q();return J(l)?(Ac(l,Vq(s,i,o),Qq),!0):!1},Ze),n.registerCommand(hc,e,De),n.registerCommand(yo,()=>$w()&&n._keyToDOMMap.size>2,De),n.registerCommand(Wl,r=>{if(!r.clipboardData)return!1;const s=Q();if(!J(s))return!1;const i=fT(s.anchor.getNode()),o=fT(s.focus.getNode());if(!i||!o||i.__key!==o.__key)return!1;const{hasSelectedBlock:l,selectedAllDocument:a}=al(),u=hT(s.getTextContent()),d=hT(i.getTextContent());if(!(u===d&&(l||a)))return!1;r.preventDefault();const A=i.__calloutType??"default",y=Gg(s)["text/html"],b=i.getTextContent(),v=`<div class="dsd__theme__callout-wrapper" style="background-color: ${i.__backgroundColor}" data-type="${A}">${y}</div>`;return r.clipboardData.setData("text/html",v),r.clipboardData.setData("text/plain",b),!0},De))},[n,e])}function qq(){return Xq(),null}function $q(n,t){n.update(()=>{const e=window.getSelection();if(e&&e.rangeCount>0){const r=e.getRangeAt(0),s=r.startOffset,i=Math.max(0,s-t);r.setStart(r.startContainer,i),e.removeAllRanges(),e.addRange(r)}})}function gT(n){const t=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+/,e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return t.test(n)||e.test(n)}function e$({onChange:n}){const[t]=je(),e=x.useRef(null),r=x.useRef(""),s=x.useRef(!1);x.useEffect(()=>t.registerCommand(Dy,()=>(t.update(()=>{const i=Q();if(!J(i))return!1;const o=i.anchor,l=o.getNode();if(fe(l)){const a=l.getTextContent().substring(0,o.offset),u=a.match(/(\S+)$/);if(u){const d=u[1],h=a.lastIndexOf(d),g=h>0?a[h-1]:"";if((g===""||g===" ")&&gT(d)){n(d,pT.SPACE);const m=Co(d,{rel:"noopener noreferrer",target:"_blank"}),A=Ct(d);m.append(A);const y=h,b=y+d.length;i.anchor.set(l.__key,y,"text"),i.focus.set(l.__key,b,"text"),i.insertNodes([m]);const v=Q();J(v)&&(v.anchor.set(m.getKey(),d.length,"element"),v.focus.set(m.getKey(),d.length,"element")),m.selectEnd()}}}}),!1),vn),[t,n]),x.useEffect(()=>{const i=l=>{var u,d;const a=((u=l.clipboardData)==null?void 0:u.getData("text"))||((d=l.clipboardData)==null?void 0:d.getData("text/plain"));a&&gT(a)&&(s.current=!0,setTimeout(()=>{n(a,pT.PASTE),$q(t,a.length),t.dispatchCommand(xo,ul(a)),t.update(()=>{const h=Gt();Q()&&rt(null),h==null||h.selectEnd()}),r.current=a,s.current=!1},10))},o=t.getRootElement();if(o)return o.addEventListener("paste",i),()=>{o.removeEventListener("paste",i),e.current&&clearTimeout(e.current)}},[t,n])}const pT={PASTE:"paste",SPACE:"space"};function t$({onChange:n}){return e$({onChange:n}),null}function n$(n){switch(n){case"phone":return"tel:";case"email":return"mailto:";case"sms":return"sms:";case"web":default:return"https://"}}function r$(n,t){if(!n)return!1;try{if(t==="phone"||n.startsWith("tel:")){const r=n.startsWith("tel:")?n.substring(4):n;return/^\+?[\d\s\-\(\)]+$/.test(r)&&/\d/.test(r)}if(t==="sms"||n.startsWith("sms:")){const r=n.startsWith("sms:")?n.substring(4):n;return/^\+?[\d\s\-\(\)]+$/.test(r)&&/\d/.test(r)}if(t==="email"||n.startsWith("mailto:")){const r=n.startsWith("mailto:")?n.substring(7):n;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)}if(t==="web"){const r=[".","::","://","https://","http://"],s=n.trim();if(!s||r.includes(s)||s.startsWith("://"))return!1;const i=s.startsWith("http://")||s.startsWith("https://")?s:`https://${s}`;try{const o=new URL(i);if(!lh.has(o.protocol))return!1;const l=o.hostname;return l?l==="localhost"||l.includes(".")&&l.split(".").every(a=>a.length>0):!1}catch{return!1}}if(n.startsWith("http://")||n.startsWith("https://")){const r=new URL(n);return lh.has(r.protocol)}const e=new URL(n);return lh.has(e.protocol)}catch{return!1}}function KA(n,t){return!n||n.includes("://")||n.startsWith("tel:")||n.startsWith("mailto:")||n.startsWith("sms:")?n:n$(t)+n}function Vf(n){return n?n.startsWith("tel:")?"phone":n.startsWith("mailto:")?"email":n.startsWith("sms:")?"sms":(n.startsWith("http://")||n.startsWith("https://"),"web"):"web"}function Sa(n){return n&&(n.startsWith("tel:")?n.substring(4):n.startsWith("mailto:")?n.substring(7):n.startsWith("sms:")?n.substring(4):n.startsWith("https://")?n.substring(8):n.startsWith("http://")?n.substring(7):n)}function s$(n){switch(n){case"phone":return"+79001234567";case"email":return"example@example.com";case"sms":return"+79001234567";case"web":default:return"https://"}}function i$(n){return n==="phone"||n==="sms"?"tel":n==="email"?"email":"text"}function o$(n){return n==="email"?"email":n==="phone"||n==="sms"?"phone":"url"}function wL(n){return(n==null?void 0:n.closest(".doc-space-editor-wrapper"))??null}function l$(n){return(n==null?void 0:n.closest(".dsd__theme__link"))??null}function a$(n){return!!wL(n)}function CL(n){return n?n.closest('[data-portal="true"]')?!0:!!(n.closest("[data-combobox-dropdown]")||n.closest(".mantine-Combobox-dropdown")||n.closest('[class*="Combobox-dropdown"]')):!1}function c$(n){return{top:n.y,left:n.x}}function u$(n){const t=n.getBoundingClientRect();return{top:t.y,left:t.x+t.width/2}}function d$(){const n=window.getSelection();return!n||n.rangeCount===0?null:n.getRangeAt(0).getBoundingClientRect()}function f$(){const n=window.getSelection();return!n||n.rangeCount===0?null:n.getRangeAt(0).startContainer.parentElement}function mT(n,t=!1){var s;if(!n)return;const e=document.createRange(),r=window.getSelection();return e.setStart(n,Number(t)),e.collapse(!0),r&&(r.removeAllRanges(),r.addRange(e)),(s=n.textContent)==null?void 0:s.length}function h$(n){const t=document.createRange(),e=window.getSelection();if(!e||e.rangeCount===0)return;const r=e.getRangeAt(0),s=r.startContainer,i=r.startOffset,o=i+n;if(s.nodeType===Node.TEXT_NODE){const l=s.length,a=Math.min(o,l);t.setStart(s,a),t.setEnd(s,a)}else{const l=s.childNodes[i];if(l&&l.nodeType===Node.TEXT_NODE){const a=l.length,u=Math.min(o,a);t.setStart(l,u),t.setEnd(l,u)}else return}t.collapse(!0),e.removeAllRanges(),e.addRange(t)}async function g$(n){try{return await navigator.clipboard.writeText(n),!0}catch{return!1}}function p$({showTextToolbar:n,updateLink:t}){const e=x.useRef(null),r=x.useRef(!1),s=x.useRef(null),i=x.useRef(null),o=x.useRef(null),[l,a]=x.useState(""),[u,d]=x.useState(""),[h,g]=x.useState(!0),[m,A]=x.useState(!1),[y,b]=x.useState(!1),[v,C]=x.useState("delete"),[S,k]=x.useState({top:0,left:0}),[_,T]=x.useState("web"),[N]=je(),M=x.useCallback(()=>{setTimeout(()=>{r.current=!1,C("delete"),a(""),A(!1),b(!1),T("web"),k({top:0,left:-999}),o.current=null,s.current=null,yl(!1,document.documentElement)})},[]),I=x.useMemo(()=>dl.debounce(q=>{if(!q||!wL(q)||r.current)return;const Y=l$(q);if(Y){const te=N.getRootElement();if(!(te!=null&&te.contains(Y)))return;const ue=Y.getAttribute("href");if(k(u$(Y)),ue){const re=Vf(ue);T(re),a(Sa(ue))}else a("");b(!0),s.current=Y}else M(),k({top:0,left:0})},300),[N,M]),D=x.useCallback(q=>{const K=Q();if(q==="create"&&(C("create"),r.current=!0,T("web"),a(""),yl(!0,document.documentElement)),J(K)){const te=Za(K),ue=Le(te,Mn);if(o.current={anchorKey:K.anchor.key,anchorOffset:K.anchor.offset,anchorType:K.anchor.type,focusKey:K.focus.key,focusOffset:K.focus.offset,focusType:K.focus.type},ue){const re=ue.getURL(),se=Vf(re);T(se),a(Sa(re))}else if(Mn(te)){const re=te.getURL(),se=Vf(re);T(se),a(Sa(re))}}const Y=K?d$():null;return Y&&k(c$(Y)),b(!0),!0},[]);x.useEffect(()=>{t.current&&(t.current.updateLinkEditor=()=>{const q=f$();r.current=!1,I(q),setTimeout(()=>{r.current=!0,C("edit")},300)})},[I,t]),x.useEffect(()=>{const q=dl.debounce(K=>{if(n.current)return;const Y=K.target;Y instanceof HTMLElement&&I(Y)},150);return document.body.addEventListener("mouseover",q),()=>{document.body.removeEventListener("mouseover",q),q.cancel()}},[I,n]),x.useEffect(()=>{const q=dl.debounce(K=>{const Y=K.target;if(!(Y instanceof HTMLElement))return;const te=a$(Y),ue=CL(Y);!te&&!ue&&(M(),k({top:0,left:0}))},150);return document.addEventListener("mousemove",q),()=>{document.removeEventListener("mousemove",q),q.cancel()}},[M]),x.useEffect(()=>()=>{I.cancel()},[I]),x.useEffect(()=>ct(N.registerCommand(pw,q=>(D(q),!0),De)),[N,D]),x.useEffect(()=>{setTimeout(()=>{v&&e.current&&(e.current.focus(),setTimeout(()=>{e.current&&e.current.select()}),N.read(()=>{const q=Q();if(J(q)){i.current=Gt();const K=Za(q);Le(K,Mn)&&K&&d(K.getTextContent())}}))})},[N,v]);const j=x.useCallback(()=>{const q=Q();if(J(q))return!0;const K=o.current;if(K){const te=Te(K.anchorKey),ue=Te(K.focusKey);if(te&&ue){const re=Zi();return re.anchor.set(K.anchorKey,K.anchorOffset,K.anchorType),re.focus.set(K.focusKey,K.focusOffset,K.focusType),rt(re),!0}}const Y=i.current;if(!Y)return!1;if(fe(Y))return Y.select(0,Y.getTextContentSize()),!0;if(X(Y)){const te=Y.getFirstDescendant();if(fe(te))return te.select(0,te.getTextContentSize()),!0}return!1},[]),B=x.useCallback(()=>{const q=KA(l,_);if(r$(q,_)&&q)A(!1);else{A(!0);return}N.update(()=>{if(!j())return;const K=Q();if(!J(K))return;const Y=Za(K),te=Y?Y.getParent():null,ue=(ll(Y)?Y:null)??(ll(te)?te:null);if(!ue)N.dispatchCommand(xo,ul(q)),v==="edit"&&Y&&Yn(Y)&&(Y.setTextContent(u),Y.selectEnd());else{const re=Ct(u),se=ue.getParent();se&&(ue.remove(),se.append(re),N.dispatchCommand(xo,ul(q)),re.selectEnd())}}),setTimeout(()=>{M()})},[N,v,l,_,M,j,u]),R=x.useCallback(q=>{q.key==="Enter"?(q.preventDefault(),B()):q.key==="Escape"&&q.preventDefault()},[B]),z=q=>{m&&A(!1),a(q)},G=q=>{if(m&&A(!1),T(q),l){const K=Vf(l);K!=="web"&&K!==q&&a(Sa(l));const Y=Sa(l),te=KA(Y,q);a(Sa(te))}},ce=()=>{setTimeout(()=>{mT(s.current),C("edit"),yl(!0,document.documentElement),r.current=!0},100)},oe=()=>{const q=ul(l)||"";g(!1),g$(q).finally(()=>{setTimeout(()=>{g(!0)},300)})},W=()=>{const q=mT(s.current)||0;setTimeout(()=>{N.dispatchCommand(xo,null),M(),setTimeout(()=>{h$(q)})})},Z=v==="edit",ae=ul(KA(l,_));return{inputRef:e,isOpen:y,position:S,linkUrl:l,textUrl:u,setTextUrl:d,error:m,copied:h,isLinkEditMode:v,isShowEditTextLink:Z,safeLinkUrl:ae,linkType:_,reset:M,onUrlInputChange:z,onLinkTypeChange:G,onUrlInputKeyDown:R,onSubmit:B,onEditClick:ce,onCopyClick:oe,onRemoveClick:W}}function m$({size:n="sm",w:t=150,comboboxProps:e,rightSection:r,renderOption:s,...i}){return p.jsx(L.Select,{size:n,w:t,comboboxProps:e,classNames:{input:"editor-select__input"},renderOption:s??(({option:o,checked:l})=>p.jsxs(L.Group,{justify:"space-between",wrap:"nowrap",w:"100%",children:[o.label,l&&p.jsx(ie.IconCheck,{size:16,color:"var(--primary-color-text, #4C6EF5)"})]})),rightSection:r??p.jsx(ie.IconChevronDown,{size:16,className:"editor-select__chevron"}),...i})}function A$({onClick:n}){return p.jsx(L.ActionIcon,{size:"20",variant:"filled",radius:"4",bg:"var(--mantine-primary-color-light, rgba(76, 110, 245, 0.1))",onClick:n,"data-test-id":"floating-link-save",children:p.jsx(ie.IconCheck,{size:16,color:"var(--primary-color-text, #4C6EF5)"})})}function xL({inputRef:n,linkUrl:t,linkType:e,error:r,onLinkTypeChange:s,onUrlInputChange:i,onUrlInputKeyDown:o,onSubmit:l}){const{t:a}=Je.useTranslation();return p.jsxs(L.Group,{wrap:"nowrap",gap:0,children:[p.jsx(m$,{data:[{value:"web",label:a("editor.link.type.web")},{value:"phone",label:a("editor.link.type.phone")},{value:"email",label:a("editor.link.type.email")},{value:"sms",label:a("editor.link.type.sms")}],comboboxProps:{width:200,position:"bottom-start"},value:e,onChange:u=>{u&&s(u)},placeholder:"Web link","data-test-id":"floating-link-type-select",styles:{input:{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:0}}}),p.jsx(L.Divider,{orientation:"vertical",my:0,className:"floating-link-divider"}),p.jsx(L.Input,{ref:n,value:t,error:r,type:i$(e),name:o$(e),size:"sm",rightSectionPointerEvents:l?"auto":void 0,styles:{input:{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeft:0,width:200}},placeholder:s$(e),"data-test-id":"floating-link-url-input",onChange:u=>{i(u.target.value)},onKeyDown:o,rightSection:l?p.jsx(A$,{onClick:l}):void 0})]})}function y$({linkUrl:n,safeLinkUrl:t,linkType:e,copied:r,onEditClick:s,onCopyClick:i,onRemoveClick:o}){const{t:l}=Je.useTranslation();return p.jsxs(L.Stack,{gap:0,children:[p.jsxs(L.Group,{wrap:"nowrap",pl:"sm",gap:"xs",children:[p.jsx(Ne,{name:"link"}),p.jsx(L.Tooltip,{label:n,zIndex:1e3,openDelay:500,children:p.jsx(L.Anchor,{href:t,target:e==="web"?"_blank":void 0,rel:e==="web"?"noopener noreferrer":void 0,truncate:!0,w:300,children:n})})]}),p.jsx(L.Button,{tabIndex:0,onMouseDown:a=>a.preventDefault(),onClick:s,leftSection:p.jsx(Ne,{name:"pencil"}),justify:"left",size:"sm",color:"#000",style:{border:0},variant:"default","data-test-id":"floating-link-edit",children:l("editor.link.edit")}),p.jsx(L.Button,{tabIndex:0,onMouseDown:a=>a.preventDefault(),onClick:i,leftSection:p.jsx(Ne,{size:16,name:r?"copy":"check-mark"}),justify:"left",size:"sm",color:"#000",variant:"default",style:{border:0},"data-test-id":"floating-link-copy",children:l("editor.link.copy")}),p.jsx(L.Button,{tabIndex:0,onMouseDown:a=>a.preventDefault(),onClick:o,leftSection:p.jsx(Ne,{size:16,name:"trash",color:"red"}),justify:"left",size:"sm",color:"#000",variant:"default",style:{border:0},"data-test-id":"floating-link-remove",children:l("editor.link.remove")})]})}function b$({inputRef:n,textUrl:t,linkUrl:e,linkType:r,error:s,setTextUrl:i,onLinkTypeChange:o,onUrlInputChange:l,onUrlInputKeyDown:a,onCancel:u,onSave:d}){const{t:h}=Je.useTranslation();return p.jsxs(L.Box,{p:10,children:[p.jsxs(L.Stack,{gap:5,mb:10,children:[p.jsx(L.Text,{fw:500,size:"xs",children:h("editor.link.link")}),p.jsx(xL,{inputRef:n,linkUrl:e,linkType:r,error:s,onLinkTypeChange:o,onUrlInputChange:l,onUrlInputKeyDown:a})]}),p.jsxs(L.Stack,{gap:5,children:[p.jsx(L.Text,{fw:500,size:"xs",children:h("editor.link.name")}),p.jsx(L.Input,{ref:n,value:t,size:"sm",placeholder:h("editor.link.linkName"),"data-test-id":"floating-link-text-input",onChange:g=>{i(g.target.value)},onKeyDown:a})]}),p.jsxs(L.Group,{justify:"flex-end",mt:16,children:[p.jsx(L.Button,{h:30,variant:"subtle",color:"gray",onClick:u,children:h("editor.cancel")}),p.jsx(L.Button,{h:30,type:"submit",onClick:d,children:h("editor.link.save")})]})]})}function w$({showTextToolbar:n,updateLink:t}){const{inputRef:e,isOpen:r,position:s,linkUrl:i,textUrl:o,setTextUrl:l,error:a,copied:u,isLinkEditMode:d,isShowEditTextLink:h,safeLinkUrl:g,linkType:m,reset:A,onUrlInputChange:y,onLinkTypeChange:b,onUrlInputKeyDown:v,onSubmit:C,onEditClick:S,onCopyClick:k,onRemoveClick:_}=p$({showTextToolbar:n,updateLink:t}),T=Ja.useClickOutside(N=>{const M=N.target;CL(M)||A()});return p.jsx(p.Fragment,{children:p.jsxs(L.Popover,{width:320,opened:r,position:"bottom",offset:10,transitionProps:oi,withArrow:d==="delete",zIndex:102,children:[p.jsx(L.Popover.Target,{children:p.jsx("div",{style:{position:"fixed",left:s.left,top:s.top+8,width:10,height:10,background:"transparent"}})}),p.jsx(L.Popover.Dropdown,{bdrs:"10px",className:`floating-link-dropdown floating-link-dropdown--${d}-mode`,"data-test-id":"floating-link-dropdown",children:p.jsx("div",{ref:T,children:{create:p.jsx(xL,{inputRef:e,linkUrl:i,linkType:m,error:a,onLinkTypeChange:b,onUrlInputChange:y,onUrlInputKeyDown:v,onSubmit:C}),edit:p.jsx(b$,{inputRef:e,textUrl:o,linkUrl:i,linkType:m,error:a,setTextUrl:l,onLinkTypeChange:b,onUrlInputChange:y,onUrlInputKeyDown:v,onCancel:A,onSave:C}),delete:p.jsx(y$,{linkUrl:i,safeLinkUrl:g,linkType:m,copied:u,onEditClick:S,onCopyClick:k,onRemoveClick:_})}[d==="delete"?"delete":h?"edit":"create"]})})]})})}function C$(n){const[t]=je(),e=x.useRef({updateLinkEditor:()=>{}}),r=dl.debounce(()=>{t.update(()=>{e.current.updateLinkEditor()})},200);return p.jsxs(p.Fragment,{children:[p.jsx(t$,{onChange:(...s)=>{s[1]==="paste"&&r()}}),Dr.createPortal(p.jsx(w$,{showTextToolbar:n,updateLink:e}),document.body)]})}function x$({showTextToolbar:n}){return C$(n)}const vL=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function v$({editor:n,ariaActiveDescendant:t,ariaAutoComplete:e,ariaControls:r,ariaDescribedBy:s,ariaErrorMessage:i,ariaExpanded:o,ariaInvalid:l,ariaLabel:a,ariaLabelledBy:u,ariaMultiline:d,ariaOwns:h,ariaRequired:g,autoCapitalize:m,className:A,id:y,role:b="textbox",spellCheck:v=!0,style:C,tabIndex:S,"data-testid":k,..._},T){const[N,M]=x.useState(n.isEditable()),I=x.useCallback(j=>{j&&j.ownerDocument&&j.ownerDocument.defaultView?n.setRootElement(j):n.setRootElement(null)},[n]),D=x.useMemo(()=>(function(...j){return B=>{for(const R of j)typeof R=="function"?R(B):R!=null&&(R.current=B)}})(T,I),[I,T]);return vL(()=>(M(n.isEditable()),n.registerEditableListener(j=>{M(j)})),[n]),p.jsx("div",{"aria-activedescendant":N?t:void 0,"aria-autocomplete":N?e:"none","aria-controls":N?r:void 0,"aria-describedby":s,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":N&&b==="combobox"?!!o:void 0,...l!=null?{"aria-invalid":l}:{},"aria-label":a,"aria-labelledby":u,"aria-multiline":d,"aria-owns":N?h:void 0,"aria-readonly":!N||void 0,"aria-required":g,autoCapitalize:m,className:A,contentEditable:N,"data-testid":k,id:y,ref:D,role:b,spellCheck:v,style:C,tabIndex:S,..._})}const S$=x.forwardRef(v$);function AT(n){return n.getEditorState().read(iM(n.isComposing()))}const E$=x.forwardRef(k$);function k$(n,t){const{placeholder:e,...r}=n,[s]=je();return p.jsxs(p.Fragment,{children:[p.jsx(S$,{editor:s,...r,ref:t}),e!=null&&p.jsx(T$,{editor:s,content:e})]})}function T$({content:n,editor:t}){const e=(function(o){const[l,a]=x.useState(()=>AT(o));return vL(()=>{function u(){const d=AT(o);a(d)}return u(),ct(o.registerUpdateListener(()=>{u()}),o.registerEditableListener(()=>{u()}))},[o]),l})(t),[r,s]=x.useState(t.isEditable());if(x.useLayoutEffect(()=>(s(t.isEditable()),t.registerEditableListener(o=>{s(o)})),[t]),!e)return null;let i=null;return typeof n=="function"?i=n(r):n!==null&&(i=n),i===null?null:p.jsx("div",{"aria-hidden":!0,children:i})}function Iy({className:n}){return p.jsx(E$,{contentEditable:!1,className:n||"ContentEditable__root"})}const _$="_listContainer_1d88b_1",N$="_list_1d88b_1",M$="_text_1d88b_28",WA={listContainer:_$,list:N$,text:M$},I$=({editor:n})=>{var u;const[t,e]=x.useState(!1),{t:r,i18n:s}=Je.useTranslation(),{excludeNodes:i}=x.useContext(Pt),o=d=>{const h=document.querySelector(".editor-container");if(d){h.classList.add("empty-editor");return}h.classList.remove("empty-editor")};x.useEffect(()=>{n.update(()=>{Z0()&&(e(!0),o(!0))}),ct(n.registerCommand(pg,()=>{const d=!!Z0();return e(d),o(d),!1},De),n.registerCommand(Bo,()=>(e(!1),o(!1),!1),De))},[]);const l=(d,h)=>{d==null||d.update(()=>{d.focus();const m=Ue().getFirstChild();m&&h&&(h(m),e(!1))})},a=x.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:p.jsx(ie.IconH1,{stroke:2,size:18}),onSelect:()=>l(n,d=>{d.replace(Mi("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:p.jsx(ie.IconColumns2,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(qw,dw)})}},{title:r("editor.emptyPageOptions.list"),icon:p.jsx(ie.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(Jg,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:p.jsx(ie.IconCode,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(XI,void 0)})}},{title:r("editor.menu.media.excalidraw.hint.description"),icon:p.jsx(ie.IconPalette,{stroke:2,size:18}),onSelect:()=>{Promise.resolve().then(()=>require("./layers.DwRGDhKS.js")).then(({INSERT_EXCALIDRAW_COMMAND:d})=>{l(n,()=>{n.dispatchCommand(d,void 0)})})}},i.template?{title:r("editor.emptyPageOptions.template"),icon:p.jsx(ie.IconTemplate,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(PM,void 0)})}}:null,{title:r("editor.emptyPageOptions.callout"),icon:p.jsx(ie.IconBaseline,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(gw,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:p.jsx(ie.IconTable,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(Vg,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:p.jsx(ie.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[s.language]);return t?p.jsx(L.Portal,{target:((u=n==null?void 0:n._rootElement)==null?void 0:u.parentElement)||document.body,children:p.jsx("ul",{className:`${WA.listContainer} empty-page-options`,children:a.map((d,h)=>d?p.jsxs(L.Menu,{disabled:h!==a.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:KI,width:200,transitionProps:oi,children:[p.jsx(L.Menu.Target,{children:p.jsxs("li",{className:WA.list,onClick:d.onSelect,children:[d.icon," ",p.jsx("span",{className:WA.text,children:d.title})]})}),p.jsx(L.Menu.Dropdown,{children:kc.map(g=>p.jsx(L.Menu.Item,{className:"item "+UI(g.key==="1"),leftSection:g.icon,style:{borderRadius:"var(--mantine-radius-sm)"},onClick:()=>{l(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(Xw,""),e(!1)})})},children:g.name},g.name))})]},d.title):null)})}):null};function L$({editor:n,outputFormat:t,debounceMs:e=500,onChange:r,onBlur:s,isCommentVariant:i,checkIsEmpty:o,onChangeCommand:l}){const a=Ja.useDebouncedCallback(h=>{l&&h.dispatchCommand(l,!0)},100),u=Ja.useDebouncedCallback((h,g)=>{if(t==="html")h.read(()=>{let A=Eh(g,null);const y=Ue();y&&(o()&&(A=""),y.getChildrenSize()===0&&(g.update(()=>{y.append(Me())}),A=""));const b=Ue().getTextContent();r(A,b)});else{const m=h.toJSON();r(m)}},e),d=(h,g)=>{if(s)if(t==="html")g.update(()=>{const m=Eh(g,null);s(m)});else{const m=h.toJSON();s(m)}};return x.useEffect(()=>n.registerCommand(Fl,g=>{if(!i)return!1;try{const m=g.clipboardData||window.clipboardData;if(!m||!m.getData("application/x-lexical-editor"))return!1;const y=m.getData("text/html");if(!y)return!1;const v=new DOMParser().parseFromString(y,"text/html"),C=Sg(n,v);return ed(C),!0}catch{return!1}},De),[n,i]),{triggerOnChangeCommand:a,onChangeValue:u,onBlurValue:d}}const D$={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},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},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},video:{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},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}},yT=x.lazy(()=>Promise.resolve().then(()=>require("./layers.DwRGDhKS.js")));function $e(n,t){const e=D$[n];return e?e[t]:!0}function O$(n){const{onRef:t,floatingAnchorElem:e,isSmallWidthViewport:r,maxHeight:s,showTextToolbar:i,mode:o,isLoading:l,editor:a,onBlur:u,onFocus:d,onChange:h,outputFormat:g,debounceMs:m}=n,A=o==="editor",y=o==="comment",[b,v]=x.useState(!1),{excludeNodes:C}=x.useContext(Pt),{settings:{isRichText:S,showTreeView:k,isMaxLength:_}}=Pw(),{historyState:T}=Bw(),{triggerOnChangeCommand:N,onChangeValue:M,onBlurValue:I}=L$({editor:a,outputFormat:g,debounceMs:m,onChange:h,onBlur:u,isCommentVariant:y,checkIsEmpty:Z0,onChangeCommand:ji});let D={};s?D={maxHeight:s}:A&&(D={overflowY:"hidden"});const j=A?p.jsx("div",{className:"editor-scroller",style:D,children:p.jsx("div",{className:"editor",ref:t,children:p.jsx("div",{className:"content-editable-wrapper",children:p.jsx("div",{children:p.jsx(Iy,{})})})})}):p.jsx("div",{className:"editor-scroller",style:D,children:p.jsx("div",{className:"editor",ref:t,children:p.jsx(Iy,{})})});return p.jsxs(p.Fragment,{children:[$e("toolbar",o)&&!A&&p.jsx(oT,{mode:o}),$e("componentPicker",o)&&p.jsx(SJ,{mode:o,opened:b,setOpenedMenu:v}),$e("history",o)&&p.jsx(WN,{externalHistoryState:T}),$e("floatingTextToolbar",o)&&e&&!r&&(A?p.jsx(gy,{anchorElem:e,component:p.jsx(oT,{mode:o,isFloating:!0})}):p.jsx(gy,{anchorElem:e})),p.jsxs("div",{className:`editor-container ${S?"":"plain-text"}`,children:[$e("placeholder",o)&&p.jsx(MJ,{}),$e("autoFocus",o)&&p.jsx(EJ,{isLoading:l}),$e("emoji",o)&&p.jsx(eV,{}),$e("hashtag",o)&&p.jsx(LY,{}),$e("clearEditor",o)&&p.jsx(TY,{}),$e("richText",o)&&p.jsx(sI,{contentEditable:j,ErrorBoundary:rI}),$e("markdownShortcut",o)&&p.jsx(wV,{}),$e("shortcuts",o)&&p.jsx(DX,{editor:a,setIsLinkEditMode:()=>{}}),$e("extendCode",o)&&p.jsx(nV,{}),$e("codeHighlight",o)&&p.jsx(CZ,{}),$e("list",o)&&p.jsx(AV,{}),$e("checkList",o)&&p.jsx(bZ,{}),$e("listMaxIndent",o)&&p.jsx(pV,{maxDepth:7}),$e("link",o)&&p.jsx(qI,{}),$e("comment",o)&&p.jsx(UZ,{}),yT&&$e("excalidraw",o)&&p.jsx(x.Suspense,{children:p.jsx(yT,{})}),$e("swagger",o)&&p.jsx($Z,{}),$e("childDocs",o)&&p.jsx(wZ,{}),$e("newParagraph",o)&&!k&&p.jsx(xV,{}),$e("form",o)&&p.jsx(uV,{}),$e("video",o)&&!C.video&&p.jsx(ZW,{}),$e("audio",o)&&!C.audio&&p.jsx(hY,{}),$e("file",o)&&!C.file&&p.jsx(CY,{}),$e("embed",o)&&p.jsx(JZ,{}),$e("images",o)&&!C.photo&&p.jsx(wY,{}),$e("onChange",o)&&p.jsx(RY,{ignoreSelectionChange:!0,onChange:(B,R)=>{M(B,R),N(R)}}),$e("maxLength",o)&&_&&p.jsx(CV,{maxLength:30}),$e("blur",o)&&p.jsx(mZ,{onBlur:I}),$e("focus",o)&&p.jsx(aV,{onFocus:d}),$e("treeView",o)&&k&&p.jsx(Gq,{}),$e("actionsInspector",o)&&k&&p.jsx(hZ,{isRichText:!0,shouldPreserveNewLinesInMarkdown:!0}),$e("select",o)&&p.jsx(XQ,{editor:a}),$e("clickableLink",o)&&p.jsx(_Y,{}),$e("horizontalRule",o)&&p.jsx(DY,{}),$e("tabFocus",o)&&p.jsx(PX,{}),$e("tabIndentation",o)&&p.jsx(zX,{}),$e("collapsible",o)&&p.jsx(FZ,{}),$e("callout",o)&&p.jsx(qq,{}),$e("layout",o)&&p.jsx(XZ,{}),$e("table",o)&&e&&(A||!r)&&p.jsx(hq,{floatingAnchorElem:e,isSmallWidthViewport:r}),$e("draggableBlock",o)&&e&&!r&&p.jsx(GJ,{isShowAddButton:!0,anchorElem:e}),e&&p.jsxs(p.Fragment,{children:[$e("floatingLinkEditor",o)&&p.jsx(x$,{showTextToolbar:i}),$e("actionMenu",o)&&p.jsx(JU,{anchorElem:e}),$e("mediaActions",o)&&p.jsx(XY,{anchorElem:e})]})]}),$e("tableOfContents",o)&&(A?C.contents&&p.jsx(My,{}):(C.contents||C.contents===void 0)&&p.jsx(My,{})),$e("emptyPage",o)&&A&&p.jsx(I$,{editor:a})]})}const R$=n=>{const t=Q(),e=Gt(),r=e==null?void 0:e.getParent(),s=r==null?void 0:r.getParent();if(e){if($w())return Ue().clear(),t.insertParagraph(),!0;if(s instanceof Wi||s instanceof Lo)return RZ();if(r instanceof Lr)return tV()}return!1},j$=(n,t)=>{var e,r,s,i,o,l;if(n.dataTransfer){const a=Object.values(n.dataTransfer.files);if(a&&a.length)return n.preventDefault(),n.target instanceof HTMLElement&&((e=t.current)!=null&&e.insertImages)&&((r=He(n.target))==null||r.selectEnd(),a[0].type.includes("video")&&((s=t.current)!=null&&s.insertVideos)?t.current.insertVideos(a):a[0].type.includes("image")&&((i=t.current)!=null&&i.insertImages)?t.current.insertImages(a):a[0].type.includes("audio")&&((o=t.current)!=null&&o.insertMusics)?t.current.insertMusics(a):(l=t.current)!=null&&l.insertFiles&&(t==null||t.current.insertFiles(a))),!0}return!1},bT=()=>{const n=Gt(),t=n==null?void 0:n.getParent();return n&&Wu(t)?PZ():!1},wT=()=>{const n=Gt(),t=n==null?void 0:n.getParent();return n&&Al(t)?jZ():!1},P$=n=>{const t=Q();if(!J(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(e.getPreviousSibling()===null&&t.anchor.offset===0){const r=e.getParent();if(r){const s=Me();return s.append(...r.getChildren()),r.replace(s),n.preventDefault(),!0}}return!1};function B$(n){if(!n)return null;const e=new DOMParser().parseFromString(n,"text/html").body,r=Array.from(e.children);if(r.length!==1)return null;const s=r[0];return s.tagName!=="IMG"||e.textContent&&e.textContent.trim().length>0?null:s.getAttribute("src")||""||null}const F$=(n,t,e)=>{var i,o;const r=Gt(),s=r==null?void 0:r.getParent();if(r){if(Al(s))return BZ(n);if(yd(s))(o=(i=e.current)==null?void 0:i.onDeleteCallout)==null||o.call(i,t);else{if(Ws(s))return QZ(n);if(kt(s))return P$(t)}}return!1},z$=(n,t)=>{const e=t.ctrlKey||t.metaKey,r=t.shiftKey,s=t.code==="KeyZ";return e&&r&&s?(t.preventDefault(),n.dispatchCommand(zl,void 0),!0):!1},U$=(n,t,e,r,s)=>{var l,a;if(s)return r.preventDefault(),r.key==="Enter"&&r.shiftKey&&t.insertParagraph(),!0;const i=Gt(),o=i==null?void 0:i.getParent();if(i){if(o instanceof Rr)return VZ(n);if(o instanceof Wi)return OZ(n);if(o instanceof ta)return Jq(n);if(o instanceof ws)return fq(n);if(o instanceof jr||Rr)return AZ()}return(a=(l=e.current)==null?void 0:l.decoratorEnterAction)==null||a.call(l),!1};function K$(n,t){var e,r,s,i,o,l,a,u;if("dataTransfer"in n&&((r=(e=n.dataTransfer)==null?void 0:e.files)!=null&&r.length)){const d=Array.from(n.dataTransfer.files),h=d[0];return h.type.includes("video")&&((s=t.current)!=null&&s.insertVideos)?t.current.insertVideos(d):h.type.includes("image")&&((i=t.current)!=null&&i.insertImages)?t.current.insertImages(d):h.type.includes("audio")&&((o=t.current)!=null&&o.insertMusics)?t.current.insertMusics(d):(l=t.current)!=null&&l.insertFiles&&t.current.insertFiles(d),!0}if("clipboardData"in n){const d=(u=(a=n.clipboardData)==null?void 0:a.getData("text/html"))==null?void 0:u.trim();if(B$(d))return!0}return!1}function W$(n){if(!n||n.classList.contains("video-container")||n.classList.contains("resizable-container")||n.classList.contains("editor-image"))return null;if(n.closest("ol, ul"))return n;let t=n;for(;t&&!t.classList.contains("ContentEditable__root");)t=t.parentElement;if(t!=null&&t.classList.contains("ContentEditable__root")){let e=n;for(;e&&e.parentElement!==t;)e=e.parentElement;return e}return null}function H$(n){const{mode:t,maxHeight:e,disable:r,isErrorWs:s,content:i,isLoading:o,imperativeHandleRef:l,editorRef:a,onBlur:u,onFocus:d,onChange:h,outputFormat:g,debounceMs:m}=n,[A,y]=x.useState(null),[b,v]=x.useState(!1),C=x.useRef(!1),[S,...k]=je(),{shiftEnterInsertNewLine:_}=x.useContext(Pt);EY({editor:S}),x.useEffect(()=>{S&&(S.setEditable(!r),a&&(a.current=S),s&&S.update(()=>{if(typeof i=="string"){Ue().clear();const D=new DOMParser().parseFromString(i,"text/html"),j=Sg(S,D);Ue().select(),ed(j)}else{const M=S.parseEditorState(JSON.stringify(i));S.setEditorState(M)}}))},[s]),x.useEffect(()=>{function M(){S.dispatchCommand(V0,!0)}function I(j){const B=j.target,z=(B.tagName.toLowerCase()==="img"?B.closest("div.resizable-container__inner"):null)||W$(B);if(!z||B.classList.contains("dsd__theme__table-scrollable-wrapper"))return;(z.classList.contains("selected-block")||z.querySelector(".selected-block"))&&(j.preventDefault(),S.dispatchCommand(BM,{x:j.clientX,y:j.clientY,target:z}))}window.addEventListener("scroll",M);const D=S.getRootElement();return D==null||D.addEventListener("contextmenu",I),()=>{window.removeEventListener("scroll",M),D==null||D.removeEventListener("contextmenu",I)}},[S]);const T=M=>{M!==null&&y(M)};x.useEffect(()=>{const M=I=>{const D=navigator.platform.toUpperCase().includes("MAC"),j=D&&I.metaKey&&!I.shiftKey&&I.code==="KeyZ"||!D&&I.ctrlKey&&!I.shiftKey&&I.code==="KeyZ",B=D&&I.metaKey&&I.shiftKey&&I.code==="KeyZ"||!D&&I.ctrlKey&&I.shiftKey&&I.code==="KeyZ";j&&(I.preventDefault(),S.dispatchCommand(dc,void 0)),B&&(I.preventDefault(),S.dispatchCommand(zl,void 0))};return ct(S.registerCommand(pg,()=>(window.addEventListener("keydown",M),!1),De),S.registerCommand(Bo,()=>(window.removeEventListener("keydown",M),!1),De))},[S]),x.useEffect(()=>{const M=()=>{const I=Sc&&window.matchMedia("(max-width: 600px)").matches;I!==b&&v(I)};return M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}},[b]),x.useEffect(()=>ct(S.registerCommand(vl,M=>{const I=Q();return U$(S,I,l,M,_)},De),S.registerCommand(Hs,()=>R$(),De),S.registerCommand(fc,M=>Q()?(S.blur(),rt(null),Ti(M),!0):!1,De),S.registerCommand(Ul,M=>z$(S,M),De),S.registerCommand(Xs,()=>wT(),De),S.registerCommand(hg,()=>wT(),De),S.registerCommand(Eo,()=>bT(),De),S.registerCommand(Fl,M=>K$(M,l),De),S.registerCommand(Oy,M=>j$(M,l),ki),S.registerCommand(fg,()=>bT(),De),S.registerCommand(Bi,()=>{const M=Q();M.format=0,M.setStyle("");const I=M.insertParagraph();return I&&(I.__format=0),!0},De),S.registerCommand(Kl,M=>F$(S,M,l),ki)),[S]);const N={onRef:T,floatingAnchorElem:A,isSmallWidthViewport:b,maxHeight:e,showTextToolbar:C,mode:t,isLoading:o,editor:S,onBlur:u,onFocus:d,onChange:h,outputFormat:g,debounceMs:m};return p.jsx(O$,{...N})}const SL=[{replace:On,with:n=>new Ki(n.getTextContent()),withKlass:Ki},{replace:Ri,with:n=>new Lr(!1),withKlass:Lr},{replace:pd,with:n=>new vs(n.__ids),withKlass:vs}],Y$=[Ad,jr,kn,Zg,xs,ws,Ec,Wg,Hg,ql,fM,qi,Ki,hp,cp,dp,Yg,na,Tc,wd,pd,jl,Wi,Lo,Cd,ss,Rr,ks,cc,Do,ta,vs,Ro,Lr,Dl,xd,_c,ra,Oo,...SL.map(n=>n)],G$=n=>n==="comment"?[jr,kn,Hg,ql,fM,qi,Ki,Lr,Dl,...SL.map(t=>t)]:Y$,Z$=x.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function J$({children:n}){const[t,e]=x.useState({cellEditorConfig:null,cellEditorPlugins:null});return p.jsx(Z$.Provider,{value:x.useMemo(()=>({cellEditorConfig:t.cellEditorConfig,cellEditorPlugins:t.cellEditorPlugins,set:(r,s)=>{e({cellEditorConfig:r,cellEditorPlugins:s})}}),[t.cellEditorConfig,t.cellEditorPlugins]),children:n})}function V$(n){const t=new URL(n),e=`${t.origin}${t.pathname}`,r=t.searchParams.get("token");return{baseUrl:e,token:r}}function Q$(n,t,e="http://localhost"){const r=X$(n,t),{baseUrl:s,token:i}=V$(e);let o={};return i&&(o={params:{token:i}}),new qN(s,n,r,{connect:!1,...o})}function X$(n,t){let e=t.get(n);return e===void 0?(e=new ei,t.set(n,e)):e.load(),e}const q$=Y0?"":"os-windows",EL=({children:n})=>p.jsx("div",{className:`doc-space-styles-provider ${q$}`,children:n}),Pt=x.createContext({maxFileSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{},pages:[]}),kL=({initialContent:n,onChange:t,outputFormat:e,mode:r,maxHeight:s,onBlur:i,onFocus:o,fetchUploadMedia:l,fetchPromptResult:a,fetchDeleteMedia:u,fetchRestoreMedia:d,pageId:h,commentController:g,maxFileSize:m,contentModalUploadImage:A,maxImageSizeError:y,debounce:b,disable:v,ws:C,excludeNodes:S={},imagePickerSettings:k={},childPages:_,language:T,shiftEnterInsertNewLine:N,editorRef:M,placeholder:I})=>{const D=r||"default",j=n||"<p></p>";let B=!!(C!=null&&C.url);const{historyState:R}=Bw(),z=x.useRef({}),G=x.useRef(null),[ce,oe]=x.useState("initial"),[W,Z]=x.useState(null),ae=x.useCallback(se=>{se.update(()=>{if(typeof j=="string"){const xe=new DOMParser().parseFromString(j,"text/html"),pe=Sg(se,xe);Ue().select(),ed(pe)}})},[]),q=x.useMemo(()=>(window.editorAppVersion=`version @layers-app/editor:${F7.version}`,D==="comment"&&document.body.setAttribute("mode","true"),{editorState:null,namespace:"layers",nodes:G$(D),onError:se=>{throw se},theme:Kz(D)}),[]);x.useEffect(()=>{T&&O0.changeLanguage(T)},[T]);const K=()=>typeof j=="string"?ae:JSON.stringify(j),Y=x.useCallback((se,he)=>{const xe=Q$(se,he,C==null?void 0:C.url);return xe.on("status",pe=>{pe.status==="connecting"&&oe(pe.status)}),setTimeout(()=>Z(xe),0),xe},[]),te=x.useCallback(()=>{var pe;const se=W.awareness,xe=Array.from(se.getStates().entries()).map(([$,le])=>({id:String($),userId:$,name:le.name,color:le.color,awarenessData:le.awarenessData})).filter(($,le,Se)=>le===Se.findIndex(we=>we.name===$.name));(pe=C==null?void 0:C.getActiveUsers)==null||pe.call(C,xe)},[W]);x.useEffect(()=>{if(W!=null)return W.awareness.on("update",te),()=>W.awareness.off("update",te)},[W,te]),x.useEffect(()=>{if(W!=null&&W.ws){const se=W.ws;let he=0;se?(se.addEventListener("message",xe=>{if(typeof xe.data!="string"){he===1&&oe("connected"),he++;return}const pe=JSON.parse(xe.data);pe["active-users"]&&console.log("message",pe["active-users"]),pe.error&&(pe.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),W.disconnect()):pe.error==="No token provided"?(console.error("No token provided: You must provide a token."),W.disconnect()):(console.error("Unknown error:",pe.error),W.disconnect()),oe("error"))}),se.addEventListener("close",xe=>{console.error("WebSocket connection closed:",xe),oe("error")})):console.error("WebSocket is not initialized yet.")}},[W==null?void 0:W.ws]),x.useEffect(()=>()=>{W instanceof qN&&(W.destroy(),W.disconnect())},[W]),B||(q.editorState=K());const ue=ce==="connecting"&&B,re=x.useMemo(()=>{const se={...S};return l||(se.photo=!0,se.video=!0,se.audio=!0,se.file=!0),r!=="editor"&&(se.childDocs=!0),{fetchDeleteMedia:u,fetchUploadMedia:l,fetchRestoreMedia:d,fetchPromptResult:a,maxFileSize:m||5,contentModalUploadImage:A,maxImageSizeError:y,shiftEnterInsertNewLine:N,commentController:g,disable:v||!1,mode:D,excludeNodes:se,imagePickerSettings:k,imperativeHandleRef:z,maxHeight:s,pages:_||[],placeholder:I}},[_,h,g,I]);return p.jsx(Pt.Provider,{value:re,children:p.jsx(Je.I18nextProvider,{i18n:O0,children:p.jsx(EL,{children:p.jsxs(RG,{children:[p.jsx("div",{ref:G}),p.jsxs("div",{className:`doc-space-editor-wrapper ${D}`,children:[p.jsx(L.LoadingOverlay,{visible:ue,overlayProps:{radius:"sm",blur:2}}),p.jsx(JY,{children:p.jsx(t5,{children:p.jsxs(i7,{initialConfig:q,children:[C&&ce!=="error"?p.jsx(t7,{id:C.id,providerFactory:Y,username:C.user.name,cursorColor:C.user.color,awarenessData:C.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:G,initialEditorState:K()}):p.jsx(WN,{externalHistoryState:R}),p.jsx(VY,{children:p.jsx(J$,{children:p.jsx($Q,{children:p.jsx(JW,{children:p.jsx("div",{className:"editor-shell",children:p.jsx(H$,{editorRef:M,maxHeight:s,mode:D,disable:v||!1,isErrorWs:ce==="error",content:j,isLoading:ue,imperativeHandleRef:z,onBlur:i,onFocus:o,onChange:t,outputFormat:e,debounceMs:b})})})})})})]})})})]})]})})})})};function $$(n,t=!1){n.focus(),n.update(()=>{var r,s;const e=Ue();t?(e.selectStart(),(r=e.getFirstChild())==null||r.selectEnd()):(e.selectEnd(),(s=e.getLastChild())==null||s.selectEnd())})}exports.$createExcalidrawNode=jM;exports.$createNewParagraph=RM;exports.$isExcalidrawNode=tK;exports.$isImageNode=ac;exports.$isInlineImageNode=iY;exports.AlignmentImage=hw;exports.Button=ay;exports.CREATE_TEMPLATE=PM;exports.Context=Pt;exports.Editor=kL;exports.Ee=fc;exports.EmptyNodeButton=bd;exports.ExcalidrawNode=Oo;exports.FloatingTextFormatToolbarPlugin=gy;exports.Icon=Ne;exports.Ie=Ry;exports.ImagePicker=mL;exports.Je=gg;exports.Ki=Ze;exports.L=sI;exports.LexicalContentEditable=Iy;exports.LinkPlugin=qI;exports.Lr=Q;exports.Ne=vl;exports.Oe=hc;exports.ResizableContainer=mw;exports.StylesProvider=EL;exports.U=ct;exports.UPLOAD_IMAGE_COMMAND=tI;exports.Ve=Bo;exports.Xi=bg;exports.a=Rw;exports.at=RT;exports.commonjsGlobal=il;exports.deleteNode=tp;exports.focusEditor=$$;exports.getCurrentElement=Gt;exports.getDefaultExportFromCjs=Z7;exports.ie=Xr;exports.ji=f2;exports.l=ab;exports.mediaMap=Gr;exports.n=rI;exports.o=je;exports.parseContainerSize=Jh;exports.r=cb;exports.re=Ee;exports.se=Gi;exports.t=q2;exports.toggleLockScroll=yl;exports.u=zg;exports.useCancelUpload=Ug;exports.useModal=Ap;exports.useSettings=Pw;exports.useSharedHistoryContext=Bw;exports.we=Kl;exports.wo=rt;exports.xo=Te;exports.xr=$t;exports.zi=De;
|