@layers-app/editor 2.3.27 → 2.3.28
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{layers.DyobFbup.js → layers.-TIJ_I0b.js} +1 -1
- package/dist/{layers.BlRJwiGf.js → layers.473xt3I9.js} +1 -1
- package/dist/{layers.Ckto9UI4.js → layers.4ZaH4S2q.js} +1 -1
- package/dist/{layers.DtEFOZXB.js → layers.4f4jgVOZ.js} +1 -1
- package/dist/{layers.Dh7tyajc.js → layers.6cmnJSOO.js} +1 -1
- package/dist/{layers.DHdU8pgj.js → layers.B-rj2j2M.js} +1 -1
- package/dist/{layers.DztkVG0m.js → layers.B0ElCgXd.js} +1 -1
- package/dist/{layers.DMjwrQLj.js → layers.B1vyqnZ9.js} +1 -1
- package/dist/{layers.CgInx-gK.js → layers.B2f-Krpj.js} +1 -1
- package/dist/{layers.BUtrHATE.js → layers.B3CmSYyL.js} +1 -1
- package/dist/{layers.CXNYkJ6S.js → layers.B5ni90Fk.js} +1 -1
- package/dist/{layers.BBXLw8OJ.js → layers.B6j1fexS.js} +2 -2
- package/dist/{layers.Br3FiCNG.js → layers.B6rVbOw9.js} +1 -1
- package/dist/{layers.BMMRiCAE.js → layers.B6ttcnvu.js} +1 -1
- package/dist/{layers.CVDTVqwe.js → layers.BCMujAGQ.js} +1 -1
- package/dist/{layers.DXhWU4Fz.js → layers.BD-T_Gvz.js} +2 -2
- package/dist/{layers.DnZH4xXh.js → layers.BDmxF1bW.js} +1 -1
- package/dist/{layers.-wx1zEqJ.js → layers.BJ996w78.js} +1 -1
- package/dist/{layers.TYIYh5iX.js → layers.BJFyjcEb.js} +1 -1
- package/dist/{layers.DewLutn2.js → layers.BJdK88MF.js} +1 -1
- package/dist/{layers.BU6qvWsR.js → layers.BJmMB-lW.js} +1 -1
- package/dist/{layers.CpfdZkjc.js → layers.BJvWovvb.js} +1 -1
- package/dist/{layers.CBSQ5kq9.js → layers.BKRltPdl.js} +1 -1
- package/dist/{layers.CLlrhFsn.js → layers.BLNFOzFN.js} +1 -1
- package/dist/{layers.C15SoLOr.js → layers.BLbhX84O.js} +1 -1
- package/dist/{layers.CfxexSAf.js → layers.BOXsy440.js} +1 -1
- package/dist/{layers.Di2Rr_Vd.js → layers.BP2lJ-7s.js} +1 -1
- package/dist/layers.BP9dqCwW.js +1 -0
- package/dist/{layers.hEZUFCgU.js → layers.BREz0rrn.js} +1 -1
- package/dist/{layers.CWC6C17J.js → layers.BUMxMwzZ.js} +1 -1
- package/dist/{layers.EEZV8wFB.js → layers.BV_f1FPL.js} +1 -1
- package/dist/{layers.U5ecPFb1.js → layers.BYJbCyt4.js} +1 -1
- package/dist/{layers.BFnccP3F.js → layers.BYy0ZrGJ.js} +1 -1
- package/dist/{layers.BLS_i4TS.js → layers.BZQ20Yht.js} +1 -1
- package/dist/{layers.D7-KIh7G.js → layers.BZXPRrnU.js} +1 -1
- package/dist/{layers.2PxDiFxd.js → layers.BZz2cNee.js} +1 -1
- package/dist/{layers.B2PhAbFc.js → layers.B_yVQ0Uo.js} +1 -1
- package/dist/{layers.BCrI3-J4.js → layers.BbBbCZjk.js} +1 -1
- package/dist/{layers.0LcA_rgq.js → layers.BbYVsNYL.js} +1 -1
- package/dist/{layers.CyM3cnso.js → layers.BgzQv7-J.js} +1 -1
- package/dist/{layers.BmSD2jtd.js → layers.BkgJv5ku.js} +1 -1
- package/dist/{layers.MEmvpEMR.js → layers.Bm8u-Cul.js} +1 -1
- package/dist/{layers.DsvlpAHP.js → layers.BmtE6eOF.js} +1 -1
- package/dist/{layers.BED9gz8f.js → layers.BmwhKAIi.js} +1 -1
- package/dist/{layers.DeR5a9Jr.js → layers.Bq2rZmoc.js} +1 -1
- package/dist/{layers.CCQmId75.js → layers.Bq3XN9OK.js} +1 -1
- package/dist/{layers.C_cOO-AH.js → layers.BqzRMR4l.js} +1 -1
- package/dist/{layers.BpulqPoM.js → layers.BslIdv2x.js} +1 -1
- package/dist/{layers.CkHlumb1.js → layers.Bw0Oa4f_.js} +1 -1
- package/dist/{layers.B5PE4t55.js → layers.BwFLna5N.js} +1 -1
- package/dist/{layers.D9ZlU-w1.js → layers.BwUQDQvy.js} +1 -1
- package/dist/{layers.CQao3Dj8.js → layers.Bx9xfzM0.js} +2 -2
- package/dist/{layers.DGSh8iWE.js → layers.C-YW0tI-.js} +1 -1
- package/dist/{layers.0zHlfBIN.js → layers.C-f1RHsd.js} +1 -1
- package/dist/{layers.CRmUdNhF.js → layers.C0iEszDc.js} +3 -3
- package/dist/{layers.5x5XNzrm.js → layers.C0sh5VIs.js} +4 -4
- package/dist/{layers.Cz8rugFA.js → layers.C1UQClgT.js} +1 -1
- package/dist/{layers.Bhl9XKfX.js → layers.C4pYe_Xl.js} +1 -1
- package/dist/{layers.9ZBOGQLg.js → layers.C57AqABe.js} +1 -1
- package/dist/{layers.C198O2sc.js → layers.C5a3BITs.js} +1 -1
- package/dist/{layers.BpZtMmV0.js → layers.C7Vnyx84.js} +1 -1
- package/dist/{layers.D3QU9r8V.js → layers.C8GpUf6J.js} +1 -1
- package/dist/{layers.DSE5yahl.js → layers.C8s3uTem.js} +1 -1
- package/dist/{layers.CTQG7H04.js → layers.C96YGam3.js} +1 -1
- package/dist/{layers.B5h0mMpu.js → layers.CBDhG4J0.js} +1 -1
- package/dist/{layers.c8dvMx97.js → layers.CBYeoj3F.js} +1 -1
- package/dist/{layers.BSwDfDvh.js → layers.CBc6vRCR.js} +1 -1
- package/dist/{layers.ByVWugfj.js → layers.CCJ8Il-g.js} +1 -1
- package/dist/{layers.8MkKSt0Y.js → layers.CCh6KFil.js} +1 -1
- package/dist/{layers.C24XGCcF.js → layers.CGNUrcOF.js} +1 -1
- package/dist/{layers.BY9BFn4g.js → layers.CJyOOVOY.js} +1 -1
- package/dist/{layers.D43rUbwd.js → layers.CL6P-I9j.js} +1 -1
- package/dist/{layers.BGvvw-Fj.js → layers.CLI2-2Kl.js} +1 -1
- package/dist/{layers.YYeCnW7C.js → layers.CMFeS4o_.js} +1 -1
- package/dist/{layers.DJnVNBxT.js → layers.CMitj0lN.js} +1 -1
- package/dist/{layers.D2t3Pgxg.js → layers.CPW8tCh0.js} +1 -1
- package/dist/{layers.DjsGZqEz.js → layers.CQkX4BTW.js} +3 -3
- package/dist/{layers.CzmJje2n.js → layers.CUWIAnmu.js} +4 -4
- package/dist/{layers.UEo8emoH.js → layers.CUjsx6L4.js} +1 -1
- package/dist/{layers.aUlvhkbf.js → layers.CV_VAckL.js} +1 -1
- package/dist/{layers.Dl-27lpK.js → layers.CW7ZxVpn.js} +1 -1
- package/dist/{layers.jsZFZNE1.js → layers.CX44qaJj.js} +1 -1
- package/dist/{layers.Cx_yotFZ.js → layers.CXGzLqbH.js} +3 -3
- package/dist/{layers.4iMWn5HG.js → layers.CXHIsgUA.js} +1 -1
- package/dist/{layers.BUlPZ5NW.js → layers.CXrimS0b.js} +2 -2
- package/dist/{layers.ZOQzZu_H.js → layers.CZhksrhl.js} +1 -1
- package/dist/{layers.CVRBhwR6.js → layers.C_Jw3M6c.js} +2 -2
- package/dist/{layers.mBNiXe38.js → layers.C_uzY7vQ.js} +1 -1
- package/dist/{layers.D7xMYlvR.js → layers.CcK4q-JC.js} +7 -7
- package/dist/{layers.CyxLWTiD.js → layers.Cdp1rWUz.js} +1 -1
- package/dist/{layers.C79L57-I.js → layers.Cdr-hRhP.js} +3 -3
- package/dist/{layers.C6M4l-tz.js → layers.CfGwx25w.js} +1 -1
- package/dist/{layers.DlGF8YoD.js → layers.CgYaI5eJ.js} +3 -3
- package/dist/{layers.Cqlwct_8.js → layers.Ch0ejGeq.js} +1 -1
- package/dist/{layers.B6MA5MMV.js → layers.CivrfJYR.js} +2 -2
- package/dist/{layers.eYp5kkDn.js → layers.Cj9pFIlD.js} +1 -1
- package/dist/layers.CjN_doUB.js +1 -0
- package/dist/{layers.CpHeWx16.js → layers.Cjl1K5FO.js} +1 -1
- package/dist/{layers.D1OlbZQs.js → layers.CjqTAJsG.js} +1 -1
- package/dist/{layers.DWDQjjRC.js → layers.CkV_C-Gw.js} +1 -1
- package/dist/{layers.DvXQ-pTF.js → layers.Cm4vItfB.js} +1 -1
- package/dist/{layers.CT3QcU3C.js → layers.CmqEgFH9.js} +1 -1
- package/dist/{layers.CQf8tCq6.js → layers.CnH4JgOc.js} +1 -1
- package/dist/{layers.C-bfAcMP.js → layers.CnqF3sWy.js} +1 -1
- package/dist/{layers.DoC-cHDf.js → layers.Cotwj5BN.js} +1 -1
- package/dist/layers.CowqiIOR.js +8 -0
- package/dist/{layers.zcMBgJ-u.js → layers.CpGhHhIv.js} +3 -3
- package/dist/{layers.DEsqXSPe.js → layers.CpVTk9W_.js} +1 -1
- package/dist/{layers.BpWOxVkg.js → layers.Cq0_1-fa.js} +3 -3
- package/dist/{layers.CLmUDe1R.js → layers.Crnqe_dv.js} +1 -1
- package/dist/{layers.Isn7SSqK.js → layers.CuS1r2pG.js} +1 -1
- package/dist/{layers.0Wxw4e0U.js → layers.Cv2vYZMF.js} +1 -1
- package/dist/{layers.g2xae00l.js → layers.CvYZiwZE.js} +1 -1
- package/dist/{layers.ClRTyHzp.js → layers.CvrvipX6.js} +1 -1
- package/dist/{layers.Bcrw950R.js → layers.CwHrfy3-.js} +1 -1
- package/dist/{layers.BIr76blK.js → layers.D-srpqao.js} +1 -1
- package/dist/{layers.e8KJO6-d.js → layers.D1-1WtVR.js} +1 -1
- package/dist/{layers.C10pxuwK.js → layers.D1LbB9yx.js} +1 -1
- package/dist/{layers.zhRc7F4d.js → layers.D1WVwo0Y.js} +1 -1
- package/dist/{layers.DQoPGgou.js → layers.D3Xma4i8.js} +1 -1
- package/dist/{layers.CJfVXKS6.js → layers.D5F-Vo1G.js} +1 -1
- package/dist/{layers.Zo4we89b.js → layers.D9G73ga5.js} +1 -1
- package/dist/{layers.BxFmNPcR.js → layers.DBddXdJv.js} +1 -1
- package/dist/{layers.D90DTDHO.js → layers.DBkaMxa_.js} +1 -1
- package/dist/{layers.CDBJ0zLj.js → layers.DC04ODpv.js} +1 -1
- package/dist/{layers.DPnLe5Cu.js → layers.DD5PXXd0.js} +1 -1
- package/dist/{layers.BRaevnzS.js → layers.DDR94qQ7.js} +1 -1
- package/dist/{layers.j0Ega8H8.js → layers.DDvtsLLS.js} +1 -1
- package/dist/{layers.BsTCRiau.js → layers.DI8gvt1w.js} +1 -1
- package/dist/{layers.BPQLhCgm.js → layers.DItIWtjm.js} +1 -1
- package/dist/{layers.DTgr7Av6.js → layers.DMjmi7l_.js} +1 -1
- package/dist/{layers.vf7X51OR.js → layers.DNc57n3V.js} +1 -1
- package/dist/layers.DO6r6_M0.js +6 -0
- package/dist/{layers.BSudOVYg.js → layers.DOrWqEaG.js} +1 -1
- package/dist/{layers.ZHyI88ul.js → layers.DSOA7cfs.js} +4 -4
- package/dist/{layers.C8hhx2TF.js → layers.DVl3B9CX.js} +1 -1
- package/dist/{layers.BR1opg7m.js → layers.DXThww7s.js} +1 -1
- package/dist/{layers.Bgf_BfoV.js → layers.DXyeQpD-.js} +1 -1
- package/dist/{layers.KLj8Npgz.js → layers.DYSdYwpW.js} +1 -1
- package/dist/{layers.D5V2J52v.js → layers.DZJeAPgT.js} +1 -1
- package/dist/{layers.B6Lp9fGn.js → layers.DZJevB-R.js} +1 -1
- package/dist/{layers.OZ4Cc6Um.js → layers.DZdXWgwP.js} +1 -1
- package/dist/{layers.sXoUryh2.js → layers.D_oPaHnq.js} +1 -1
- package/dist/{layers.B-gemM83.js → layers.D_xN9rag.js} +1 -1
- package/dist/{layers.B-IRKn1Q.js → layers.Dc_lYKUH.js} +1 -1
- package/dist/{layers.Di8C3Bta.js → layers.DccGs1Ve.js} +3 -3
- package/dist/{layers.CjO4vnQg.js → layers.DczyA-2m.js} +1 -1
- package/dist/{layers.vGeAi59V.js → layers.Dd5TwXL6.js} +3 -3
- package/dist/{layers.uDM07tKr.js → layers.DdFQJ2EJ.js} +2 -2
- package/dist/{layers.B7qUE86i.js → layers.DdvZvPvr.js} +1 -1
- package/dist/{layers.CM-8CCZn.js → layers.DeMm4eVH.js} +1 -1
- package/dist/{layers.Cmgx6S8B.js → layers.DeilW6TC.js} +1 -1
- package/dist/{layers.D_dfjtoo.js → layers.DhnByoZw.js} +2 -2
- package/dist/{layers.DNVP3P1o.js → layers.DiyXmUqZ.js} +2 -2
- package/dist/{layers.CW_zKPAc.js → layers.DoJTxHND.js} +1 -1
- package/dist/{layers.B8SPHnlM.js → layers.DqfF0N0T.js} +1 -1
- package/dist/{layers.DxviyPH0.js → layers.Dqqsw2yP.js} +1 -1
- package/dist/{layers.Dvsl4Z6Q.js → layers.Ds72ovgG.js} +3 -3
- package/dist/{layers.U2qGM5y0.js → layers.Duqkf_9r.js} +1 -1
- package/dist/{layers.B_voxFTc.js → layers.Dvy_tgZm.js} +1 -1
- package/dist/{layers.CkP7SK17.js → layers.DwJNVNO_.js} +1 -1
- package/dist/{layers.BJpSrNfp.js → layers.DyNiPe7Q.js} +1 -1
- package/dist/{layers.jamH01v0.js → layers.DzOlyrw9.js} +1 -1
- package/dist/{layers.rq_adk4i.js → layers.ELI5_rd2.js} +1 -1
- package/dist/{layers.d3Az6rHI.js → layers.EoccabY-.js} +1 -1
- package/dist/{layers.-MyptjBW.js → layers.G3VcL5P8.js} +1 -1
- package/dist/{layers.B1angkYw.js → layers.J7wMHJ92.js} +3 -3
- package/dist/{layers.PLD4dRUX.js → layers.K63OuuCM.js} +1 -1
- package/dist/{layers.CGUDxtll.js → layers.NXq2Ov0C.js} +1 -1
- package/dist/{layers._37hg6KG.js → layers.O-t8zv96.js} +1 -1
- package/dist/{layers.D-41Np6G.js → layers.ORI4Q9ym.js} +1 -1
- package/dist/{layers.DV2PmtDd.js → layers.PPP_C6I7.js} +1 -1
- package/dist/{layers.B_gKJhwG.js → layers.QUeVORba.js} +1 -1
- package/dist/{layers.d45jrq_V.js → layers.RLWzsvlI.js} +1 -1
- package/dist/{layers.Dnx8G9xF.js → layers.Tvv7cMAm.js} +1 -1
- package/dist/{layers.DFSs7JIn.js → layers.VWdbToa8.js} +1 -1
- package/dist/{layers.Bzhbgfqj.js → layers.ZPLm0PEz.js} +1 -1
- package/dist/{layers.tAkfRECQ.js → layers._5htJ1CG.js} +1 -1
- package/dist/{layers.BzodtQNp.js → layers.b1_XS2LF.js} +1 -1
- package/dist/{layers.DovFbJ0Y.js → layers.cuOO6caB.js} +4 -4
- package/dist/{layers.Cz72BAWi.js → layers.dSkrMoKs.js} +1 -1
- package/dist/{layers.Bqh2HnC4.js → layers.eLDRZ8sx.js} +2 -2
- package/dist/{layers.G03pElKT.js → layers.epsfVoHn.js} +24 -24
- package/dist/{layers.b30fGQDH.js → layers.fbzTkjHZ.js} +5 -5
- package/dist/{layers.BRRUxaz9.js → layers.ip57NJCe.js} +1 -1
- package/dist/{layers.CgjjPDiG.js → layers.kj-GhfOl.js} +1 -1
- package/dist/{layers.BhVIYBRZ.js → layers.mBxwpfmd.js} +1 -1
- package/dist/{layers.DMFszlYQ.js → layers.nc6d3pTW.js} +1 -1
- package/dist/{layers.CKQVx2Pl.js → layers.ndckXIGC.js} +3 -3
- package/dist/{layers.Cxh8kXZ-.js → layers.nsaOu4aP.js} +8 -8
- package/dist/{layers.CjLd-GDd.js → layers.o6shmrn8.js} +1 -1
- package/dist/{layers.-5fXoQ-6.js → layers.oPcAyRf2.js} +1 -1
- package/dist/{layers.BQnHmGft.js → layers.otZo_nNI.js} +1 -1
- package/dist/{layers.B5lOZ3cQ.js → layers.qXqEeq1V.js} +1 -1
- package/dist/{layers.SPZoSyri.js → layers.r62pWsRw.js} +274 -268
- package/dist/{layers.CUc2diiw.js → layers.soRcLhJJ.js} +1 -1
- package/dist/{layers.CUu1Lezd.js → layers.tzWryVlg.js} +1 -1
- package/dist/{layers.BcdpiASN.js → layers.uc7mpsqb.js} +1 -1
- package/dist/{layers.UN2ykxc0.js → layers.vDuz1-17.js} +64 -64
- package/dist/{layers.a5vzba3G.js → layers.vkQLtcYo.js} +1 -1
- package/dist/{layers.BATpB8ml.js → layers.wVNLMNVD.js} +1 -1
- package/dist/{layers.CN8uxVVv.js → layers.xqvqFZ0b.js} +1 -1
- package/dist/{layers.CV-el4dp.js → layers.yluUoUnl.js} +1 -1
- package/dist/{layers.lugLnedW.js → layers.yxvV2bvG.js} +1 -1
- package/dist/{layers.BQRSwCZf.js → layers.zLWA1a0m.js} +1 -1
- package/dist/{layers.BENTJJay.js → layers.zT4Phjjd.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.6fnszpXd.js +0 -8
- package/dist/layers.9uCqrH5t.js +0 -1
- package/dist/layers.B2qVoax1.js +0 -6
- package/dist/layers.CqXhG2Ra.js +0 -1
|
@@ -815,16 +815,16 @@ function pP({
|
|
|
815
815
|
let me = 0, J = 0, se = H.ackedBytes;
|
|
816
816
|
{
|
|
817
817
|
const Ee = K / 1048576, Fe = H.ackedBytes / 1048576, We = e7(Ae), ot = hP();
|
|
818
|
-
let pe = null, de = 0, V = 0,
|
|
818
|
+
let pe = null, de = 0, V = 0, ce = 0, le = 0, Ie = !1;
|
|
819
819
|
const Ve = ot ? ot.A + ot.B * Fe : 0, Je = We != null && We.nInt >= 2 && Ve > 0 && We.meanInt < Ve * 0.5;
|
|
820
820
|
if (We && ot && We.nInt < Qb && !Je) {
|
|
821
821
|
const ht = We.nInt / Qb;
|
|
822
|
-
pe = ht * We.A + (1 - ht) * ot.A, de = ht * We.B + (1 - ht) * ot.B,
|
|
823
|
-
} else We ? (pe = We.A, de = We.B,
|
|
824
|
-
if (pe !== null &&
|
|
822
|
+
pe = ht * We.A + (1 - ht) * ot.A, de = ht * We.B + (1 - ht) * ot.B, le = We.nInt, V = We.nInt + $b, ce = pe + de * Fe;
|
|
823
|
+
} else We ? (pe = We.A, de = We.B, le = We.nInt, V = We.nInt, ce = We.meanInt, Ie = !0) : ot && (pe = ot.A, de = ot.B, le = 0, V = $b, ce = pe + de * Fe);
|
|
824
|
+
if (pe !== null && ce > 0) {
|
|
825
825
|
if (Ie) {
|
|
826
|
-
const tn =
|
|
827
|
-
pe + de * Ee > tn *
|
|
826
|
+
const tn = le < 3 ? 3 : Math.max(3, Ee / Math.max(Fe, 1));
|
|
827
|
+
pe + de * Ee > tn * ce && (de = Math.max(0, (tn * ce - pe) / Ee));
|
|
828
828
|
}
|
|
829
829
|
let ht = mP(pe, de, Fe, Ee) + 0.4 * (pe + de * Ee);
|
|
830
830
|
ht *= 1 + uP / Math.max(1, V);
|
|
@@ -925,13 +925,13 @@ function pP({
|
|
|
925
925
|
We,
|
|
926
926
|
ae,
|
|
927
927
|
pe.signal,
|
|
928
|
-
(
|
|
928
|
+
(le) => {
|
|
929
929
|
if (se.isPaused || se.isPausing) return;
|
|
930
|
-
const Ie = ot +
|
|
930
|
+
const Ie = ot + le;
|
|
931
931
|
Ie <= We + 1 && (se.currentOffset = Ie);
|
|
932
932
|
},
|
|
933
|
-
(
|
|
934
|
-
se.currentXhr =
|
|
933
|
+
(le) => {
|
|
934
|
+
se.currentXhr = le;
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
937
|
if (se.chunkAbortController = null, se.currentXhr = null, (ne = se.signal) == null || ne.removeEventListener("abort", de), V.expectedOffset != null) {
|
|
@@ -945,8 +945,8 @@ function pP({
|
|
|
945
945
|
continue;
|
|
946
946
|
}
|
|
947
947
|
ve = 0, Se = 0, Ee = !0, he = V.nextOffset != null ? V.nextOffset : We + 1, se.ackedBytes = he, y.current.push({ t: Date.now(), b: he }), y.current.length > 9 && y.current.shift();
|
|
948
|
-
const
|
|
949
|
-
if (
|
|
948
|
+
const ce = e7(y.current);
|
|
949
|
+
if (ce && fP(ce), he < ae && await Ou(500, se.signal ?? void 0), se.currentOffset = he, se.chunkAbortController = null, se.lastUploadAckAt = Date.now(), se.uploadStallReported = !1, !se.isPaused && !se.isPausing && he < ae && N(he, ae), se.isPausing) {
|
|
950
950
|
se.isPausing = !1, se.isPaused = !0, f(!0);
|
|
951
951
|
break;
|
|
952
952
|
}
|
|
@@ -964,13 +964,13 @@ function pP({
|
|
|
964
964
|
}
|
|
965
965
|
if ((!(V != null && V.status) || (V == null ? void 0 : V.status) === 0 || (V == null ? void 0 : V.status) === 409) && Se < sP && Ce < aP) {
|
|
966
966
|
Se++, Ce++;
|
|
967
|
-
const
|
|
968
|
-
if (await Ou(
|
|
967
|
+
const ce = lP * Se;
|
|
968
|
+
if (await Ou(ce, se.signal ?? void 0), se.cancelled || (J = se.signal) != null && J.aborted || se.isPaused || se.isPausing)
|
|
969
969
|
break;
|
|
970
970
|
try {
|
|
971
|
-
const
|
|
972
|
-
if (
|
|
973
|
-
const Ie =
|
|
971
|
+
const le = await _.current.fetchOffset(K);
|
|
972
|
+
if (le.nextOffset != null) {
|
|
973
|
+
const Ie = le.nextOffset;
|
|
974
974
|
if (Ie === he && Se >= 2) {
|
|
975
975
|
await Ou(5e3, se.signal ?? void 0);
|
|
976
976
|
const Ve = await _.current.fetchOffset(K);
|
|
@@ -1294,37 +1294,37 @@ const kP = ({
|
|
|
1294
1294
|
isBottom: !1,
|
|
1295
1295
|
isLeft: !1,
|
|
1296
1296
|
isRight: !1
|
|
1297
|
-
}), ne = (V,
|
|
1298
|
-
var
|
|
1299
|
-
const Ie = (
|
|
1297
|
+
}), ne = (V, ce = 100) => {
|
|
1298
|
+
var le;
|
|
1299
|
+
const Ie = (le = e._window) == null ? void 0 : le.innerWidth;
|
|
1300
1300
|
if (Ie) {
|
|
1301
1301
|
let Ve = c ?? 100;
|
|
1302
1302
|
m && (Ve = 250);
|
|
1303
1303
|
const Je = Ve / Ie * 100;
|
|
1304
|
-
return V < Je ? Je : V >
|
|
1304
|
+
return V < Je ? Je : V > ce ? ce : V;
|
|
1305
1305
|
} else
|
|
1306
1306
|
return V < 20 ? 20 : V > 100 ? 100 : V;
|
|
1307
|
-
}, we = (V,
|
|
1308
|
-
const
|
|
1309
|
-
return 15 + (Math.max(200, Math.min(800,
|
|
1310
|
-
}, Ae = (V,
|
|
1307
|
+
}, we = (V, ce) => {
|
|
1308
|
+
const le = Math.min(V, ce);
|
|
1309
|
+
return 15 + (Math.max(200, Math.min(800, le)) - 100) / 500 * 15;
|
|
1310
|
+
}, Ae = (V, ce, le) => {
|
|
1311
1311
|
if (D("default"), !B) return;
|
|
1312
1312
|
let Ie = E;
|
|
1313
|
-
Ie = AP(V,
|
|
1313
|
+
Ie = AP(V, ce, le, O), X.current.isResizing && (Ie = E), D(Ie), L(S), k((Ve) => t7(
|
|
1314
1314
|
V,
|
|
1315
1315
|
Ie,
|
|
1316
1316
|
m || !1,
|
|
1317
1317
|
K.current
|
|
1318
1318
|
) || Ve);
|
|
1319
1319
|
}, me = (V) => {
|
|
1320
|
-
var
|
|
1320
|
+
var ce;
|
|
1321
1321
|
if (fl) return;
|
|
1322
1322
|
V.preventDefault();
|
|
1323
|
-
const
|
|
1324
|
-
if (!
|
|
1325
|
-
const Ie = V.clientX -
|
|
1326
|
-
X.current.isResizing || Ae(
|
|
1327
|
-
}, J = (V,
|
|
1323
|
+
const le = (ce = K.current) == null ? void 0 : ce.getBoundingClientRect();
|
|
1324
|
+
if (!le) return;
|
|
1325
|
+
const Ie = V.clientX - le.left, Ve = V.clientY - le.top;
|
|
1326
|
+
X.current.isResizing || Ae(le, Ie, Ve);
|
|
1327
|
+
}, J = (V, ce = 12, le = 100, Ie = X.current.rootWidth) => {
|
|
1328
1328
|
const Ve = K.current, Je = X.current;
|
|
1329
1329
|
if (!Ve || V.button === 2 || !(Je != null && Je.isResizing)) return;
|
|
1330
1330
|
const ht = Ve.getBoundingClientRect(), lt = V.clientX - ht.left, qt = V.clientY - ht.top;
|
|
@@ -1336,32 +1336,32 @@ const kP = ({
|
|
|
1336
1336
|
Pt || Hn ? Qn = Jn / Ie * 100 : (Rn || tn || Pn) && (Qn = Gn * dn), (Pt || Rn) && (!Zt || wn && !Pt) && (!tn || Pn) && (Qn = -Qn), (Rn && Hn || tn && Hn) && (Qn = Jn / Ie * 100), Qn = Math.max(-100, Math.min(100, Qn));
|
|
1337
1337
|
const Qo = Je.startWidthPercent + Qn, pn = Je.startHeightPercent + Qn;
|
|
1338
1338
|
Je.currentWidthPercent = ne(
|
|
1339
|
-
Math.max(
|
|
1340
|
-
|
|
1339
|
+
Math.max(ce, Qo),
|
|
1340
|
+
le
|
|
1341
1341
|
), Je.currentHeightPercent = ne(
|
|
1342
|
-
Math.max(
|
|
1343
|
-
|
|
1342
|
+
Math.max(ce, pn),
|
|
1343
|
+
le
|
|
1344
1344
|
), Ve.style.width = `${Je.currentWidthPercent}%`, Ve.style.height = `${Je.currentHeightPercent}%`;
|
|
1345
1345
|
}, se = () => {
|
|
1346
1346
|
const V = H.current;
|
|
1347
1347
|
V && (document.removeEventListener("mousedown", V, !0), document.removeEventListener("pointerdown", V, !0), document.removeEventListener("click", V, !0), H.current = null);
|
|
1348
1348
|
}, ae = (V) => {
|
|
1349
|
-
var
|
|
1349
|
+
var ce, le;
|
|
1350
1350
|
const Ie = X.current;
|
|
1351
|
-
if (Ie.isResizing = !1, We(null), se(), (
|
|
1351
|
+
if (Ie.isResizing = !1, We(null), se(), (ce = K.current) == null || ce.classList.remove("is-resizing"), (le = K.current) == null || le.releasePointerCapture(V.pointerId), u(
|
|
1352
1352
|
Ie.currentWidthPercent + "%",
|
|
1353
1353
|
Ie.currentHeightPercent + "%"
|
|
1354
1354
|
), document.removeEventListener("pointermove", J), !K.current) return;
|
|
1355
1355
|
const Ve = K.current.getBoundingClientRect(), Je = we(Ve.width, Ve.height);
|
|
1356
1356
|
L(Je);
|
|
1357
|
-
}, he = (V,
|
|
1358
|
-
var
|
|
1357
|
+
}, he = (V, ce) => {
|
|
1358
|
+
var le, Ie, Ve;
|
|
1359
1359
|
const Je = V.target;
|
|
1360
|
-
if (Je && !((
|
|
1360
|
+
if (Je && !((le = K.current) != null && le.contains(Je)) || Je != null && Je.closest(
|
|
1361
1361
|
".video-player-controls, .video-player-menu-dropdown, .mantine-Menu-dropdown, .media-actions, .embed-action-btn, .embed-header__actions"
|
|
1362
1362
|
))
|
|
1363
1363
|
return;
|
|
1364
|
-
if (V.button === 2 || !B && !
|
|
1364
|
+
if (V.button === 2 || !B && !ce) {
|
|
1365
1365
|
V.preventDefault(), V.stopPropagation();
|
|
1366
1366
|
return;
|
|
1367
1367
|
}
|
|
@@ -1370,9 +1370,9 @@ const kP = ({
|
|
|
1370
1370
|
if (!ht) return;
|
|
1371
1371
|
const lt = ht.getBoundingClientRect();
|
|
1372
1372
|
if (!e.isEditable()) return;
|
|
1373
|
-
const qt =
|
|
1373
|
+
const qt = ce ?? E;
|
|
1374
1374
|
if (qt === "default") return;
|
|
1375
|
-
|
|
1375
|
+
ce && D(ce);
|
|
1376
1376
|
const dn = Y.current;
|
|
1377
1377
|
if (dn === null) return;
|
|
1378
1378
|
const Zt = (Ie = K.current) == null ? void 0 : Ie.getBoundingClientRect();
|
|
@@ -1383,7 +1383,7 @@ const kP = ({
|
|
|
1383
1383
|
};
|
|
1384
1384
|
H.current = Ue, document.addEventListener("mousedown", Ue, !0), document.addEventListener("pointerdown", Ue, !0), document.addEventListener("click", Ue, !0);
|
|
1385
1385
|
}
|
|
1386
|
-
const { width: Pn, height: Pt, top: Rn, left: tn } = Zt, wn = V.clientX - tn, Hn = V.clientY - Rn, Jn =
|
|
1386
|
+
const { width: Pn, height: Pt, top: Rn, left: tn } = Zt, wn = V.clientX - tn, Hn = V.clientY - Rn, Jn = ce ? qt.startsWith("n") : Hn <= g1, Gn = ce ? qt.startsWith("s") : Hn >= Pt - g1, Qn = ce ? qt.includes("w-") : wn <= g1, Qo = ce ? qt.includes("e-") : wn >= Pn - g1, pn = X.current, Do = window.getComputedStyle(ht), $o = parseFloat(Do.paddingTop), ct = parseFloat(Do.paddingBottom), Jt = parseFloat(Do.paddingLeft), _n = parseFloat(Do.paddingRight);
|
|
1387
1387
|
pn.rootHeight = lt.height - $o - ct || 0, pn.rootWidth = lt.width - Jt - _n || 0, pn.ratio = Pn / Pt, pn.currentWidth = pn.currentWidth || Pn, pn.currentWidthPercent = +K.current.style.width.replace(
|
|
1388
1388
|
"%",
|
|
1389
1389
|
""
|
|
@@ -1410,35 +1410,35 @@ const kP = ({
|
|
|
1410
1410
|
};
|
|
1411
1411
|
te(() => {
|
|
1412
1412
|
var V;
|
|
1413
|
-
const
|
|
1414
|
-
if (!
|
|
1413
|
+
const ce = K.current;
|
|
1414
|
+
if (!ce) return;
|
|
1415
1415
|
if (typeof t == "number" && typeof n == "number") {
|
|
1416
|
-
|
|
1416
|
+
ce.style.width = `${ne(t)}%`, ce.style.height = `${ne(n)}%`;
|
|
1417
1417
|
return;
|
|
1418
1418
|
}
|
|
1419
|
-
const
|
|
1420
|
-
if (!
|
|
1419
|
+
const le = (V = ce.parentElement) == null ? void 0 : V.getBoundingClientRect();
|
|
1420
|
+
if (!le) return;
|
|
1421
1421
|
const Ie = b1(
|
|
1422
1422
|
r,
|
|
1423
|
-
|
|
1423
|
+
le.height
|
|
1424
1424
|
), Ve = b1(
|
|
1425
1425
|
o,
|
|
1426
|
-
|
|
1426
|
+
le.width
|
|
1427
1427
|
);
|
|
1428
|
-
|
|
1428
|
+
ce.style.width = `${Ve}%`, ce.style.height = `${Ie}%`;
|
|
1429
1429
|
}, [t, n, o, r]), te(() => {
|
|
1430
1430
|
var V;
|
|
1431
1431
|
if (!K.current) return;
|
|
1432
|
-
const
|
|
1432
|
+
const ce = K.current.getBoundingClientRect(), le = (V = K.current.parentElement) == null ? void 0 : V.getBoundingClientRect(), Ie = we(ce.width, ce.height);
|
|
1433
1433
|
if (L(Ie), typeof t == "number" && typeof n == "number")
|
|
1434
1434
|
K.current.style.width = `${ne(t)}%`, K.current.style.height = `${ne(n)}%`, X.current.currentWidthPercent = t, X.current.currentHeightPercent = n;
|
|
1435
|
-
else if (
|
|
1435
|
+
else if (le) {
|
|
1436
1436
|
const Ve = b1(
|
|
1437
1437
|
r,
|
|
1438
|
-
|
|
1438
|
+
le.height
|
|
1439
1439
|
), Je = b1(
|
|
1440
1440
|
o,
|
|
1441
|
-
|
|
1441
|
+
le.width
|
|
1442
1442
|
);
|
|
1443
1443
|
requestAnimationFrame(() => {
|
|
1444
1444
|
K.current && (K.current.style.height = `${Ve}%`, K.current.style.width = `${Je}%`);
|
|
@@ -1447,10 +1447,10 @@ const kP = ({
|
|
|
1447
1447
|
K.current.style.height = "100%", K.current.style.width = "100%", X.current.currentWidthPercent = 100, X.current.currentHeightPercent = 100;
|
|
1448
1448
|
}, [K.current, a, r, o]);
|
|
1449
1449
|
const ve = (V) => {
|
|
1450
|
-
const
|
|
1451
|
-
return
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1450
|
+
const ce = V.target.closest("[data-lexical-decorator]");
|
|
1451
|
+
return ce ? e.update(() => {
|
|
1452
|
+
const le = Rt(ce);
|
|
1453
|
+
le && le instanceof Za && (typeof le.select == "function" && le.select(), z(le));
|
|
1454
1454
|
}) : z(null), !1;
|
|
1455
1455
|
};
|
|
1456
1456
|
y && y(() => (P && setTimeout(() => {
|
|
@@ -1470,29 +1470,29 @@ const kP = ({
|
|
|
1470
1470
|
);
|
|
1471
1471
|
te(() => {
|
|
1472
1472
|
if (!fl || !Ce) return;
|
|
1473
|
-
const V = (
|
|
1474
|
-
var
|
|
1475
|
-
X.current.isResizing || (
|
|
1473
|
+
const V = (ce) => {
|
|
1474
|
+
var le;
|
|
1475
|
+
X.current.isResizing || (le = K.current) != null && le.contains(ce.target) || Ee(!1);
|
|
1476
1476
|
};
|
|
1477
1477
|
return document.addEventListener("pointerdown", V, !0), () => document.removeEventListener("pointerdown", V, !0);
|
|
1478
1478
|
}, [Ce]);
|
|
1479
1479
|
const ot = (V) => {
|
|
1480
|
-
var
|
|
1480
|
+
var ce;
|
|
1481
1481
|
if (!fl || R) return;
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1482
|
+
const le = V.target;
|
|
1483
|
+
le && !((ce = K.current) != null && ce.contains(le)) || le != null && le.closest(".resizable-container__touch-handle") || le != null && le.closest(
|
|
1484
1484
|
".video-player-controls, .video-player-menu-dropdown, .mantine-Menu-dropdown, .media-actions, .embed-action-btn, .embed-header__actions"
|
|
1485
1485
|
) || Ce || Ee(!0);
|
|
1486
|
-
}, pe = (V) => (
|
|
1487
|
-
|
|
1488
|
-
|
|
1486
|
+
}, pe = (V) => (ce) => {
|
|
1487
|
+
ce.stopPropagation(), We(V), he(
|
|
1488
|
+
ce,
|
|
1489
1489
|
V
|
|
1490
1490
|
);
|
|
1491
1491
|
}, de = (V) => {
|
|
1492
|
-
var
|
|
1493
|
-
const
|
|
1494
|
-
return
|
|
1495
|
-
|
|
1492
|
+
var ce;
|
|
1493
|
+
const le = (ce = K.current) == null ? void 0 : ce.getBoundingClientRect();
|
|
1494
|
+
return le ? t7(
|
|
1495
|
+
le,
|
|
1496
1496
|
V,
|
|
1497
1497
|
m || !1,
|
|
1498
1498
|
K.current
|
|
@@ -1505,12 +1505,17 @@ const kP = ({
|
|
|
1505
1505
|
() => e.registerEditableListener(N),
|
|
1506
1506
|
[e]
|
|
1507
1507
|
), I) {
|
|
1508
|
-
const V = typeof t == "number" ? `${t}%` : typeof t == "string" ? t : "100%", le = typeof n == "number" ? `${n}%` : typeof n == "string" ? n : "100%";
|
|
1508
|
+
const V = typeof o == "number" && o > 0, ce = typeof t == "number" ? `${t}%` : t === "inherit" ? V ? `${o}px` : "100%" : typeof t == "string" ? t : "100%", le = typeof n == "number" ? `${n}%` : n === "inherit" ? "auto" : typeof n == "string" ? n : "100%";
|
|
1509
1509
|
return /* @__PURE__ */ h(
|
|
1510
1510
|
"div",
|
|
1511
1511
|
{
|
|
1512
1512
|
className: `resizable-container ${f || ""} ${q ? "hide-padding" : ""} ${p ? `resizable-container--${p}` : ""}`,
|
|
1513
|
-
style: {
|
|
1513
|
+
style: {
|
|
1514
|
+
width: ce,
|
|
1515
|
+
maxWidth: "100%",
|
|
1516
|
+
height: le,
|
|
1517
|
+
cursor: "default"
|
|
1518
|
+
},
|
|
1514
1519
|
children: /* @__PURE__ */ h(
|
|
1515
1520
|
"div",
|
|
1516
1521
|
{
|
|
@@ -1543,7 +1548,7 @@ const kP = ({
|
|
|
1543
1548
|
"div",
|
|
1544
1549
|
{
|
|
1545
1550
|
className: `resizable-container__hit-area resizable-container__hit-area--${V.replace("-resize", "")}`,
|
|
1546
|
-
onPointerDown: fl ? ot : (
|
|
1551
|
+
onPointerDown: fl ? ot : (ce) => he(ce, V)
|
|
1547
1552
|
},
|
|
1548
1553
|
V
|
|
1549
1554
|
)),
|
|
@@ -1601,21 +1606,21 @@ const kP = ({
|
|
|
1601
1606
|
fl && Ce && !R && O.filter(
|
|
1602
1607
|
(V) => Fe ? V === Fe : !0
|
|
1603
1608
|
).map((V) => {
|
|
1604
|
-
const
|
|
1609
|
+
const ce = de(V);
|
|
1605
1610
|
return /* @__PURE__ */ h(
|
|
1606
1611
|
"svg",
|
|
1607
1612
|
{
|
|
1608
1613
|
className: "resizable-container__handle hovered resizable-container__touch-handle",
|
|
1609
1614
|
onPointerDown: pe(V),
|
|
1610
1615
|
style: {
|
|
1611
|
-
"--clip-x1": `${
|
|
1612
|
-
"--clip-y1": `${
|
|
1613
|
-
"--clip-x2": `${
|
|
1614
|
-
"--clip-y2": `${
|
|
1615
|
-
"--clip-x3": `${
|
|
1616
|
-
"--clip-y3": `${
|
|
1617
|
-
"--clip-x4": `${
|
|
1618
|
-
"--clip-y4": `${
|
|
1616
|
+
"--clip-x1": `${ce.x - S}px`,
|
|
1617
|
+
"--clip-y1": `${ce.y - S}px`,
|
|
1618
|
+
"--clip-x2": `${ce.x + S}px`,
|
|
1619
|
+
"--clip-y2": `${ce.y - S}px`,
|
|
1620
|
+
"--clip-x3": `${ce.x + S}px`,
|
|
1621
|
+
"--clip-y3": `${ce.y + S}px`,
|
|
1622
|
+
"--clip-x4": `${ce.x - S}px`,
|
|
1623
|
+
"--clip-y4": `${ce.y + S}px`,
|
|
1619
1624
|
clipPath: `polygon(
|
|
1620
1625
|
var(--clip-x1) var(--clip-y1),
|
|
1621
1626
|
var(--clip-x2) var(--clip-y2),
|
|
@@ -3040,9 +3045,9 @@ class wA extends vA {
|
|
|
3040
3045
|
this.shouldConnect = !0, !this.wsconnected && this.ws === null && (CA(this), this.connectBc());
|
|
3041
3046
|
}
|
|
3042
3047
|
}
|
|
3043
|
-
const O_ = "2.3.
|
|
3048
|
+
const O_ = "2.3.28", P_ = {
|
|
3044
3049
|
version: O_
|
|
3045
|
-
}, d7 = rf(() => import("./layers.
|
|
3050
|
+
}, d7 = rf(() => import("./layers.DSOA7cfs.js"));
|
|
3046
3051
|
function __(e) {
|
|
3047
3052
|
const t = e.getAttribute("data-lexical-excalidraw-json"), n = e.firstChild.style.height || "0", r = e.firstChild.style.width || "0", o = e.style.justifyContent || "left", i = n === "inherit" ? "inherit" : parseInt(n, 10), s = r === "inherit" ? "inherit" : parseInt(r, 10);
|
|
3048
3053
|
return t ? {
|
|
@@ -4055,7 +4060,7 @@ function Ps(e) {
|
|
|
4055
4060
|
}
|
|
4056
4061
|
return e;
|
|
4057
4062
|
}
|
|
4058
|
-
const Jz = rf(() => import("./layers.
|
|
4063
|
+
const Jz = rf(() => import("./layers.BwUQDQvy.js")), $1 = "upload", v7 = "100%";
|
|
4059
4064
|
function Qz(e) {
|
|
4060
4065
|
var L;
|
|
4061
4066
|
const t = e;
|
|
@@ -4463,7 +4468,7 @@ const Nc = {
|
|
|
4463
4468
|
return t ? eF.test(t) : !1;
|
|
4464
4469
|
}, VA = (e) => /<svg[\s>]/i.test(e), nF = (e) => VA(e) ? "svg" : tF(e) ? "mermaid" : null, rF = async () => {
|
|
4465
4470
|
try {
|
|
4466
|
-
return (await import("./layers.
|
|
4471
|
+
return (await import("./layers.EoccabY-.js")).default;
|
|
4467
4472
|
} catch {
|
|
4468
4473
|
return null;
|
|
4469
4474
|
}
|
|
@@ -12123,10 +12128,10 @@ var ds = function(t, n) {
|
|
|
12123
12128
|
unit: "ex"
|
|
12124
12129
|
}, n) : 12 * m, y = 3 * m, A = t.arraystretch * v, C = 0.7 * A, k = 0.3 * A, S = 0;
|
|
12125
12130
|
function L(V) {
|
|
12126
|
-
for (var
|
|
12127
|
-
|
|
12131
|
+
for (var ce = 0; ce < V.length; ++ce)
|
|
12132
|
+
ce > 0 && (S += 0.25), u.push({
|
|
12128
12133
|
pos: S,
|
|
12129
|
-
isDashed: V[
|
|
12134
|
+
isDashed: V[ce]
|
|
12130
12135
|
});
|
|
12131
12136
|
}
|
|
12132
12137
|
for (L(s[0]), r = 0; r < t.body.length; ++r) {
|
|
@@ -17689,12 +17694,12 @@ function SH({
|
|
|
17689
17694
|
uploadTicket: S,
|
|
17690
17695
|
onComplete: (pe, de) => {
|
|
17691
17696
|
C();
|
|
17692
|
-
const V = `/v1/attachments/${pe}/content`,
|
|
17697
|
+
const V = `/v1/attachments/${pe}/content`, ce = new URLSearchParams({
|
|
17693
17698
|
contentType: kH(de),
|
|
17694
17699
|
fileSize: String(de.size),
|
|
17695
17700
|
originalFileName: de.name
|
|
17696
|
-
}),
|
|
17697
|
-
k(
|
|
17701
|
+
}), le = `${V}?${ce.toString()}`;
|
|
17702
|
+
k(le);
|
|
17698
17703
|
},
|
|
17699
17704
|
onError: (pe) => {
|
|
17700
17705
|
C(), pe && !(pe != null && pe.__liveAuthRequired) && Hc({
|
|
@@ -17704,16 +17709,16 @@ function SH({
|
|
|
17704
17709
|
});
|
|
17705
17710
|
te(() => {
|
|
17706
17711
|
t.update(() => {
|
|
17707
|
-
var V,
|
|
17708
|
-
const pe = Be(n), de = ((
|
|
17712
|
+
var V, ce;
|
|
17713
|
+
const pe = Be(n), de = ((ce = (V = y.current) == null ? void 0 : V.firstChild) == null ? void 0 : ce.outerHTML) || "";
|
|
17709
17714
|
pe instanceof Gs && e && pe.setRef(de);
|
|
17710
17715
|
});
|
|
17711
17716
|
}, [e, t, n]);
|
|
17712
17717
|
const { fileSize: I, fileName: R, contentType: P } = gt(() => {
|
|
17713
|
-
const pe = new URL(e, window.location.origin), de = pe.searchParams.get("contentType"), V = pe.searchParams.get("fileSize"),
|
|
17718
|
+
const pe = new URL(e, window.location.origin), de = pe.searchParams.get("contentType"), V = pe.searchParams.get("fileSize"), ce = pe.searchParams.get("originalFileName");
|
|
17714
17719
|
return {
|
|
17715
17720
|
contentType: de,
|
|
17716
|
-
fileName:
|
|
17721
|
+
fileName: ce || e,
|
|
17717
17722
|
fileSize: V
|
|
17718
17723
|
};
|
|
17719
17724
|
}, [e]), z = gt(
|
|
@@ -17770,11 +17775,11 @@ function SH({
|
|
|
17770
17775
|
N(), C();
|
|
17771
17776
|
}, [N, C]), he = xe(
|
|
17772
17777
|
(pe) => {
|
|
17773
|
-
var V,
|
|
17778
|
+
var V, ce;
|
|
17774
17779
|
if (!pe.length) return;
|
|
17775
17780
|
A(), B(pe[0]);
|
|
17776
17781
|
const de = pe.slice(1);
|
|
17777
|
-
de.length && ((
|
|
17782
|
+
de.length && ((ce = (V = f == null ? void 0 : f.current) == null ? void 0 : V.insertFiles) == null || ce.call(V, de));
|
|
17778
17783
|
},
|
|
17779
17784
|
[f, B, A]
|
|
17780
17785
|
);
|
|
@@ -17797,8 +17802,8 @@ function SH({
|
|
|
17797
17802
|
try {
|
|
17798
17803
|
const de = await fetch(e);
|
|
17799
17804
|
if (!de.ok) throw new Error("failed to fetch");
|
|
17800
|
-
const V = await de.blob(),
|
|
17801
|
-
|
|
17805
|
+
const V = await de.blob(), ce = URL.createObjectURL(V), le = document.createElement("a");
|
|
17806
|
+
le.href = ce, le.download = se, document.body.appendChild(le), le.click(), le.remove(), setTimeout(() => URL.revokeObjectURL(ce), 6e4);
|
|
17802
17807
|
} catch {
|
|
17803
17808
|
Xy(e, se);
|
|
17804
17809
|
}
|
|
@@ -17819,8 +17824,8 @@ function SH({
|
|
|
17819
17824
|
try {
|
|
17820
17825
|
const de = await fetch(e);
|
|
17821
17826
|
if (!de.ok) throw new Error("failed to fetch pdf");
|
|
17822
|
-
const V = await de.blob(),
|
|
17823
|
-
Ie.href =
|
|
17827
|
+
const V = await de.blob(), ce = V.type === "application/pdf" ? V : new Blob([V], { type: "application/pdf" }), le = URL.createObjectURL(ce), Ie = document.createElement("a");
|
|
17828
|
+
Ie.href = le, Ie.target = "_blank", Ie.rel = "noopener noreferrer", document.body.appendChild(Ie), Ie.click(), Ie.remove(), setTimeout(() => URL.revokeObjectURL(le), 6e4);
|
|
17824
17829
|
} catch {
|
|
17825
17830
|
Hc({
|
|
17826
17831
|
message: o("editor.gallery.errorFile")
|
|
@@ -27812,20 +27817,20 @@ function hZ({
|
|
|
27812
27817
|
return zu(V) && V.setMinHeight(de), !0;
|
|
27813
27818
|
});
|
|
27814
27819
|
}, we = (de) => {
|
|
27815
|
-
const V = Be(a),
|
|
27816
|
-
if (zu(V) &&
|
|
27817
|
-
const
|
|
27818
|
-
if (de && !
|
|
27820
|
+
const V = Be(a), ce = d2(f, (O == null ? void 0 : O.embed.regexMatches) || []);
|
|
27821
|
+
if (zu(V) && ce) {
|
|
27822
|
+
const le = f.includes("maps");
|
|
27823
|
+
if (de && !le) {
|
|
27819
27824
|
V.setSrc(de);
|
|
27820
27825
|
return;
|
|
27821
27826
|
}
|
|
27822
|
-
V.setPlatform(O == null ? void 0 : O.embed.platform), V.setId(f),
|
|
27827
|
+
V.setPlatform(O == null ? void 0 : O.embed.platform), V.setId(f), le ? V.setSrc(ek(f)) : O != null && O.embed.transformMatch ? V.setSrc(O == null ? void 0 : O.embed.transformMatch(O == null ? void 0 : O.matches)) : V.setSrc(f);
|
|
27823
27828
|
}
|
|
27824
27829
|
}, Ae = (de, V) => {
|
|
27825
27830
|
s.update(() => {
|
|
27826
27831
|
vn(null);
|
|
27827
|
-
const
|
|
27828
|
-
return zu(
|
|
27832
|
+
const ce = Be(a);
|
|
27833
|
+
return zu(ce) && ce.setWidthAndHeight(de, V), !0;
|
|
27829
27834
|
});
|
|
27830
27835
|
}, me = () => {
|
|
27831
27836
|
if (!d2(f, (O == null ? void 0 : O.embed.regexMatches) || []) && !(O != null && O.embed.platform)) {
|
|
@@ -27836,8 +27841,8 @@ function hZ({
|
|
|
27836
27841
|
const V = Be(a);
|
|
27837
27842
|
if (!V) return;
|
|
27838
27843
|
we();
|
|
27839
|
-
const
|
|
27840
|
-
|
|
27844
|
+
const ce = V.getNextSibling();
|
|
27845
|
+
ce && vn(ce.selectNext());
|
|
27841
27846
|
}), y(!1), g(!1);
|
|
27842
27847
|
}, J = (de) => {
|
|
27843
27848
|
de.preventDefault(), me();
|
|
@@ -29602,7 +29607,7 @@ function Oh(e) {
|
|
|
29602
29607
|
function KZ(e) {
|
|
29603
29608
|
return e instanceof mu;
|
|
29604
29609
|
}
|
|
29605
|
-
const UZ = rf(() => import("./layers.
|
|
29610
|
+
const UZ = rf(() => import("./layers.DXThww7s.js"));
|
|
29606
29611
|
class pu extends Za {
|
|
29607
29612
|
static getType() {
|
|
29608
29613
|
return "tabs-header";
|
|
@@ -34346,7 +34351,7 @@ function oV() {
|
|
|
34346
34351
|
const We = JSON.parse(ne), ot = We.nodes ?? We;
|
|
34347
34352
|
if (Array.isArray(ot) && ot.length > 0) {
|
|
34348
34353
|
if (ot.some(
|
|
34349
|
-
(
|
|
34354
|
+
(le) => typeof (le == null ? void 0 : le.text) == "string" || (le == null ? void 0 : le.type) === "linebreak" || (le == null ? void 0 : le.type) === "tab"
|
|
34350
34355
|
))
|
|
34351
34356
|
return !1;
|
|
34352
34357
|
const de = C9(ot);
|
|
@@ -34356,8 +34361,8 @@ function oV() {
|
|
|
34356
34361
|
const V = [];
|
|
34357
34362
|
e.update(
|
|
34358
34363
|
() => {
|
|
34359
|
-
const
|
|
34360
|
-
Me(
|
|
34364
|
+
const le = be();
|
|
34365
|
+
Me(le) && le.removeText();
|
|
34361
34366
|
for (const Ie of ot)
|
|
34362
34367
|
try {
|
|
34363
34368
|
const Ve = Yo(Ie);
|
|
@@ -34367,9 +34372,9 @@ function oV() {
|
|
|
34367
34372
|
},
|
|
34368
34373
|
{ discrete: !0 }
|
|
34369
34374
|
), k.current = de, S.current = V;
|
|
34370
|
-
const
|
|
34375
|
+
const ce = ((Ce = X.clipboardData) == null ? void 0 : Ce.getData("text/plain")) || "";
|
|
34371
34376
|
return u(
|
|
34372
|
-
|
|
34377
|
+
ce || ot.map((le) => Ka(le)).join(`
|
|
34373
34378
|
`)
|
|
34374
34379
|
), M(), I(), !0;
|
|
34375
34380
|
}
|
|
@@ -37943,8 +37948,8 @@ function Xk({
|
|
|
37943
37948
|
var de;
|
|
37944
37949
|
const pe = r.current;
|
|
37945
37950
|
try {
|
|
37946
|
-
const
|
|
37947
|
-
|
|
37951
|
+
const ce = f.getLatest().getFirstChild();
|
|
37952
|
+
ce && "getFormatType" in ce && M(ce.getFormatType() || "left");
|
|
37948
37953
|
} catch {
|
|
37949
37954
|
}
|
|
37950
37955
|
if (pe && Gt(pe)) {
|
|
@@ -37955,9 +37960,9 @@ function Xk({
|
|
|
37955
37960
|
return;
|
|
37956
37961
|
}
|
|
37957
37962
|
g(V);
|
|
37958
|
-
const
|
|
37963
|
+
const ce = Ur(
|
|
37959
37964
|
pe.anchor.getNode()
|
|
37960
|
-
),
|
|
37965
|
+
), le = ce.getChildrenSize(), Ie = (de = ce.getChildAtIndex(0)) == null ? void 0 : de.getChildrenSize(), Ve = V.columns >= Ie && V.rows >= le;
|
|
37961
37966
|
S(Ve), y(
|
|
37962
37967
|
gX(pe) && (V.columns > 1 || V.rows > 1)
|
|
37963
37968
|
);
|
|
@@ -37971,8 +37976,8 @@ function Xk({
|
|
|
37971
37976
|
if (a === "row" || a === "column")
|
|
37972
37977
|
V.push(...P());
|
|
37973
37978
|
else if (pe && Gt(pe))
|
|
37974
|
-
for (const
|
|
37975
|
-
De(
|
|
37979
|
+
for (const ce of pe.getNodes())
|
|
37980
|
+
De(ce) && V.push(ce);
|
|
37976
37981
|
else
|
|
37977
37982
|
V.push(f.getLatest());
|
|
37978
37983
|
I(
|
|
@@ -38013,10 +38018,10 @@ function Xk({
|
|
|
38013
38018
|
}
|
|
38014
38019
|
if (a === "column" && o !== null) {
|
|
38015
38020
|
const V = [];
|
|
38016
|
-
for (const
|
|
38017
|
-
if (An(
|
|
38018
|
-
const
|
|
38019
|
-
De(
|
|
38021
|
+
for (const ce of de)
|
|
38022
|
+
if (An(ce)) {
|
|
38023
|
+
const le = ce.getChildAtIndex(o);
|
|
38024
|
+
De(le) && V.push(le);
|
|
38020
38025
|
}
|
|
38021
38026
|
return V;
|
|
38022
38027
|
}
|
|
@@ -38027,14 +38032,14 @@ function Xk({
|
|
|
38027
38032
|
if (a === "row" || a === "column") {
|
|
38028
38033
|
const V = P();
|
|
38029
38034
|
if (V.length <= 1) return;
|
|
38030
|
-
const
|
|
38031
|
-
a === "row" ?
|
|
38032
|
-
const
|
|
38035
|
+
const ce = V[0];
|
|
38036
|
+
a === "row" ? ce.setColSpan(V.length) : ce.setRowSpan(V.length);
|
|
38037
|
+
const le = Fu(ce);
|
|
38033
38038
|
let Ie;
|
|
38034
|
-
|
|
38039
|
+
le && Sn(Ie = ce.getFirstChild()) && Ie.remove();
|
|
38035
38040
|
for (let Ve = 1; Ve < V.length; Ve++)
|
|
38036
|
-
Fu(V[Ve]) ||
|
|
38037
|
-
|
|
38041
|
+
Fu(V[Ve]) || ce.append(...V[Ve].getChildren()), V[Ve].remove();
|
|
38042
|
+
ce.getChildrenSize() === 0 && ce.append(st()), G9(ce);
|
|
38038
38043
|
return;
|
|
38039
38044
|
}
|
|
38040
38045
|
const pe = r.current;
|
|
@@ -38045,10 +38050,10 @@ function Xk({
|
|
|
38045
38050
|
} catch {
|
|
38046
38051
|
return;
|
|
38047
38052
|
}
|
|
38048
|
-
const { columns:
|
|
38053
|
+
const { columns: ce, rows: le } = V, Ie = Ur(
|
|
38049
38054
|
pe.anchor.getNode()
|
|
38050
38055
|
), Ve = Ie.getChildrenSize(), Je = (de = Ie.getChildAtIndex(0)) == null ? void 0 : de.getChildrenSize();
|
|
38051
|
-
if (
|
|
38056
|
+
if (ce >= Je && le >= Ve)
|
|
38052
38057
|
return;
|
|
38053
38058
|
const ht = pe.getNodes();
|
|
38054
38059
|
let lt = null;
|
|
@@ -38056,7 +38061,7 @@ function Xk({
|
|
|
38056
38061
|
const dn = ht[qt];
|
|
38057
38062
|
if (De(dn))
|
|
38058
38063
|
if (lt === null) {
|
|
38059
|
-
dn.setColSpan(
|
|
38064
|
+
dn.setColSpan(ce).setRowSpan(le), lt = dn;
|
|
38060
38065
|
const Zt = Fu(dn);
|
|
38061
38066
|
let Pn;
|
|
38062
38067
|
Zt && Sn(Pn = dn.getFirstChild()) && Pn.remove();
|
|
@@ -38084,12 +38089,12 @@ function Xk({
|
|
|
38084
38089
|
position: pe ? "after" : "before"
|
|
38085
38090
|
}), c.update(() => {
|
|
38086
38091
|
const de = !pe && f.getHeaderStyles() & cn.ROW, V = Ns(f);
|
|
38087
|
-
let
|
|
38088
|
-
for (let
|
|
38089
|
-
|
|
38090
|
-
if (
|
|
38091
|
-
const
|
|
38092
|
-
De(
|
|
38092
|
+
let ce = null;
|
|
38093
|
+
for (let le = 0; le < p.rows; le++)
|
|
38094
|
+
ce = _d(pe) ?? ce;
|
|
38095
|
+
if (ce) {
|
|
38096
|
+
const le = ce.getChildAtIndex(V) ?? ce.getFirstChild();
|
|
38097
|
+
De(le) && le.selectStart();
|
|
38093
38098
|
}
|
|
38094
38099
|
if (de) {
|
|
38095
38100
|
const Ie = Ur(f).getChildren(), Ve = Ie[0], Je = Ie[1];
|
|
@@ -38113,12 +38118,12 @@ function Xk({
|
|
|
38113
38118
|
u == null || u("table_column_added", {
|
|
38114
38119
|
position: pe ? "after" : "before"
|
|
38115
38120
|
}), c.update(() => {
|
|
38116
|
-
const de = !pe && f.getHeaderStyles() & cn.COLUMN, V = Is(f),
|
|
38121
|
+
const de = !pe && f.getHeaderStyles() & cn.COLUMN, V = Is(f), ce = Ns(f);
|
|
38117
38122
|
for (let Ve = 0; Ve < p.columns; Ve++)
|
|
38118
38123
|
Dh(pe);
|
|
38119
38124
|
const Ie = Ur(f).getChildAtIndex(V);
|
|
38120
38125
|
if (An(Ie)) {
|
|
38121
|
-
const Ve = pe ?
|
|
38126
|
+
const Ve = pe ? ce + 1 : ce, Je = Ie.getChildAtIndex(Ve);
|
|
38122
38127
|
De(Je) && Je.selectStart();
|
|
38123
38128
|
}
|
|
38124
38129
|
if (de) {
|
|
@@ -38155,27 +38160,27 @@ function Xk({
|
|
|
38155
38160
|
const pe = Ur(f), de = Is(f), V = pe.getChildren();
|
|
38156
38161
|
if (de >= V.length || de < 0)
|
|
38157
38162
|
throw new Error("Expected table cell to be inside of table row.");
|
|
38158
|
-
const
|
|
38159
|
-
if (!An(
|
|
38163
|
+
const ce = V[de];
|
|
38164
|
+
if (!An(ce))
|
|
38160
38165
|
throw new Error("Expected table row");
|
|
38161
|
-
const
|
|
38162
|
-
|
|
38166
|
+
const le = f.getHeaderStyles() ^ cn.ROW;
|
|
38167
|
+
ce.getChildren().forEach((Ie) => {
|
|
38163
38168
|
if (!De(Ie))
|
|
38164
38169
|
throw new Error("Expected table cell");
|
|
38165
|
-
Ie.setHeaderStyles(
|
|
38170
|
+
Ie.setHeaderStyles(le, cn.ROW);
|
|
38166
38171
|
}), R();
|
|
38167
38172
|
});
|
|
38168
38173
|
}, [c, f, R]), we = xe(
|
|
38169
38174
|
(pe) => {
|
|
38170
38175
|
c.update(() => {
|
|
38171
|
-
const de = Ur(f), V = Ns(f),
|
|
38172
|
-
...
|
|
38176
|
+
const de = Ur(f), V = Ns(f), ce = de.getChildren(), le = Math.max(
|
|
38177
|
+
...ce.map((Ve) => Ve.getChildren().length)
|
|
38173
38178
|
);
|
|
38174
|
-
if (V >=
|
|
38179
|
+
if (V >= le || V < 0)
|
|
38175
38180
|
throw new Error("Expected table cell to be inside of table row.");
|
|
38176
38181
|
const Ie = f.getHeaderStyles() ^ cn.COLUMN;
|
|
38177
|
-
for (let Ve = 0; Ve <
|
|
38178
|
-
const Je =
|
|
38182
|
+
for (let Ve = 0; Ve < ce.length; Ve++) {
|
|
38183
|
+
const Je = ce[Ve];
|
|
38179
38184
|
if (!An(Je))
|
|
38180
38185
|
throw new Error("Expected table row");
|
|
38181
38186
|
const ht = Je.getChildren();
|
|
@@ -38195,17 +38200,17 @@ function Xk({
|
|
|
38195
38200
|
c.update(() => {
|
|
38196
38201
|
if (a === "row" || a === "column") {
|
|
38197
38202
|
const V = P();
|
|
38198
|
-
for (const
|
|
38199
|
-
|
|
38203
|
+
for (const ce of V)
|
|
38204
|
+
ce.setBackgroundColor(pe);
|
|
38200
38205
|
return;
|
|
38201
38206
|
}
|
|
38202
38207
|
const de = r.current;
|
|
38203
38208
|
if (Me(de) || Gt(de)) {
|
|
38204
38209
|
const [V] = Dr(de.anchor);
|
|
38205
38210
|
if (De(V) && V.setBackgroundColor(pe), Gt(de)) {
|
|
38206
|
-
const
|
|
38207
|
-
for (let
|
|
38208
|
-
const Ie = le
|
|
38211
|
+
const ce = de.getNodes();
|
|
38212
|
+
for (let le = 0; le < ce.length; le++) {
|
|
38213
|
+
const Ie = ce[le];
|
|
38209
38214
|
De(Ie) && Ie.setBackgroundColor(pe);
|
|
38210
38215
|
}
|
|
38211
38216
|
}
|
|
@@ -38218,18 +38223,18 @@ function Xk({
|
|
|
38218
38223
|
c.update(() => {
|
|
38219
38224
|
const de = pe === "inherit" || !pe ? null : pe;
|
|
38220
38225
|
if (a === "row" || a === "column") {
|
|
38221
|
-
const
|
|
38222
|
-
for (const
|
|
38223
|
-
eg(
|
|
38226
|
+
const ce = P();
|
|
38227
|
+
for (const le of ce)
|
|
38228
|
+
eg(le, de);
|
|
38224
38229
|
return;
|
|
38225
38230
|
}
|
|
38226
38231
|
const V = r.current;
|
|
38227
38232
|
if (Me(V) || Gt(V)) {
|
|
38228
|
-
const [
|
|
38229
|
-
if (De(
|
|
38230
|
-
const
|
|
38231
|
-
for (let Ie = 0; Ie <
|
|
38232
|
-
const Ve =
|
|
38233
|
+
const [ce] = Dr(V.anchor);
|
|
38234
|
+
if (De(ce) && eg(ce, de), Gt(V)) {
|
|
38235
|
+
const le = V.getNodes();
|
|
38236
|
+
for (let Ie = 0; Ie < le.length; Ie++) {
|
|
38237
|
+
const Ve = le[Ie];
|
|
38233
38238
|
De(Ve) && eg(Ve, de);
|
|
38234
38239
|
}
|
|
38235
38240
|
}
|
|
@@ -38240,42 +38245,42 @@ function Xk({
|
|
|
38240
38245
|
), J = xe(() => {
|
|
38241
38246
|
function pe(de) {
|
|
38242
38247
|
const V = de.exportJSON();
|
|
38243
|
-
return typeof de.getChildren == "function" && (V.children = de.getChildren().map((
|
|
38248
|
+
return typeof de.getChildren == "function" && (V.children = de.getChildren().map((ce) => pe(ce))), V;
|
|
38244
38249
|
}
|
|
38245
38250
|
c.update(() => {
|
|
38246
38251
|
const de = Ur(f);
|
|
38247
38252
|
if (a === "row" && i !== null) {
|
|
38248
|
-
const
|
|
38249
|
-
if (!An(
|
|
38250
|
-
const
|
|
38253
|
+
const ce = de.getChildren()[i];
|
|
38254
|
+
if (!An(ce)) return;
|
|
38255
|
+
const le = ce.getChildren().filter(De).map((ht) => pe(ht));
|
|
38251
38256
|
_d(!0);
|
|
38252
38257
|
const Ve = de.getChildren()[i + 1];
|
|
38253
38258
|
if (!An(Ve)) return;
|
|
38254
38259
|
const Je = Ve.getChildren().filter(De);
|
|
38255
|
-
for (let ht = 0; ht < Math.min(
|
|
38260
|
+
for (let ht = 0; ht < Math.min(le.length, Je.length); ht++) {
|
|
38256
38261
|
Je[ht].getChildren().forEach((qt) => qt.remove());
|
|
38257
|
-
for (const qt of
|
|
38262
|
+
for (const qt of le[ht].children)
|
|
38258
38263
|
Je[ht].append(Yo(qt));
|
|
38259
38264
|
Je[ht].setBackgroundColor(
|
|
38260
|
-
|
|
38265
|
+
le[ht].backgroundColor || ""
|
|
38261
38266
|
);
|
|
38262
|
-
const lt =
|
|
38267
|
+
const lt = le[ht].headerState & cn.COLUMN;
|
|
38263
38268
|
Je[ht].setHeaderStyles(
|
|
38264
38269
|
lt ? cn.COLUMN : cn.NO_STATUS,
|
|
38265
38270
|
cn.ROW | cn.COLUMN
|
|
38266
38271
|
);
|
|
38267
38272
|
}
|
|
38268
38273
|
} else if (a === "column" && o !== null) {
|
|
38269
|
-
const
|
|
38274
|
+
const ce = de.getChildren().filter(An).map((Ve) => {
|
|
38270
38275
|
const Je = Ve.getChildAtIndex(o);
|
|
38271
38276
|
return De(Je) ? pe(Je) : null;
|
|
38272
38277
|
});
|
|
38273
38278
|
Dh(!0);
|
|
38274
|
-
const
|
|
38279
|
+
const le = de.getChildren();
|
|
38275
38280
|
let Ie = 0;
|
|
38276
|
-
for (const Ve of
|
|
38281
|
+
for (const Ve of le) {
|
|
38277
38282
|
if (!An(Ve)) continue;
|
|
38278
|
-
const Je =
|
|
38283
|
+
const Je = ce[Ie];
|
|
38279
38284
|
if (Ie++, !Je) continue;
|
|
38280
38285
|
const ht = Ve.getChildAtIndex(o + 1);
|
|
38281
38286
|
if (!De(ht)) continue;
|
|
@@ -38296,20 +38301,20 @@ function Xk({
|
|
|
38296
38301
|
if (a === "row" || a === "column") {
|
|
38297
38302
|
const de = P();
|
|
38298
38303
|
for (const V of de)
|
|
38299
|
-
V.getChildren().forEach((
|
|
38304
|
+
V.getChildren().forEach((ce) => ce.remove()), V.append(st());
|
|
38300
38305
|
return;
|
|
38301
38306
|
}
|
|
38302
38307
|
const pe = r.current;
|
|
38303
38308
|
if (Gt(pe)) {
|
|
38304
38309
|
const de = pe.getNodes();
|
|
38305
38310
|
for (const V of de)
|
|
38306
|
-
De(V) && (V.getChildren().forEach((
|
|
38311
|
+
De(V) && (V.getChildren().forEach((ce) => ce.remove()), V.append(st()));
|
|
38307
38312
|
} else {
|
|
38308
38313
|
const de = be() || pe;
|
|
38309
38314
|
if (!de || !Me(de) && !Gt(de))
|
|
38310
38315
|
return;
|
|
38311
38316
|
const [V] = Dr(de.anchor);
|
|
38312
|
-
De(V) && (V.getChildren().forEach((
|
|
38317
|
+
De(V) && (V.getChildren().forEach((ce) => ce.remove()), V.append(st()), V.selectStart());
|
|
38313
38318
|
}
|
|
38314
38319
|
});
|
|
38315
38320
|
}, [c, r, a, P]), ae = xe(() => {
|
|
@@ -38324,8 +38329,8 @@ function Xk({
|
|
|
38324
38329
|
a === "row" || a === "column" ? c.update(() => {
|
|
38325
38330
|
const de = P();
|
|
38326
38331
|
for (const V of de)
|
|
38327
|
-
V.getChildren().forEach((
|
|
38328
|
-
Xe(
|
|
38332
|
+
V.getChildren().forEach((ce) => {
|
|
38333
|
+
Xe(ce) && ce.setFormat(pe);
|
|
38329
38334
|
});
|
|
38330
38335
|
}) : c.dispatchCommand(Sl, pe);
|
|
38331
38336
|
},
|
|
@@ -39249,7 +39254,7 @@ function WX({
|
|
|
39249
39254
|
}, [v.column]), te(() => {
|
|
39250
39255
|
v.row && v.column || Fe(!1);
|
|
39251
39256
|
}, [v.row, v.column]);
|
|
39252
|
-
const We = Te(null), ot = Te(null), pe = Te(null), de = Te(!1), V = Te(null),
|
|
39257
|
+
const We = Te(null), ot = Te(null), pe = Te(null), de = Te(!1), V = Te(null), ce = Te(!1), le = Te(!1), Ie = Te(null), Ve = Te(/* @__PURE__ */ new Set()), Je = Te(null), ht = Te(null), lt = Te(null), qt = Te(null), dn = Te(null), Zt = Te(null), Pn = Te(null), Pt = Te(null), Rn = Te(null), { t: tn } = vt(), wn = xe(
|
|
39253
39258
|
(Oe, Pe) => {
|
|
39254
39259
|
const { y: Ue, left: ut } = e.getBoundingClientRect(), yt = Oe.getBoundingClientRect(), kt = Pe.getBoundingClientRect(), Qt = Oe.closest(
|
|
39255
39260
|
".dsd__theme__table-scrollable-wrapper"
|
|
@@ -39280,7 +39285,7 @@ function WX({
|
|
|
39280
39285
|
column: !1,
|
|
39281
39286
|
row: !1,
|
|
39282
39287
|
options: !1
|
|
39283
|
-
}), V.current && (V.current.classList.remove("dsd__theme__tableCellActive"), V.current = null), (Oe = Pn.current) == null || Oe.disconnect(), Pn.current = null, Pt.current = null, Zt.current = null,
|
|
39288
|
+
}), V.current && (V.current.classList.remove("dsd__theme__tableCellActive"), V.current = null), (Oe = Pn.current) == null || Oe.disconnect(), Pn.current = null, Pt.current = null, Zt.current = null, ce.current = !1);
|
|
39284
39289
|
}, []), Jn = xe(
|
|
39285
39290
|
(Oe) => {
|
|
39286
39291
|
Oe && (de.current || (Rn.current && Rn.current !== Oe && Hn(), Rn.current = Oe));
|
|
@@ -39314,7 +39319,7 @@ function WX({
|
|
|
39314
39319
|
}
|
|
39315
39320
|
}
|
|
39316
39321
|
if (Pe && (v.top || v.bottom || v.left || v.right || v.column || v.row)) {
|
|
39317
|
-
if (
|
|
39322
|
+
if (ce.current) {
|
|
39318
39323
|
C((Ct) => ({
|
|
39319
39324
|
...Ct,
|
|
39320
39325
|
top: !1,
|
|
@@ -39673,7 +39678,7 @@ function WX({
|
|
|
39673
39678
|
if (pt) {
|
|
39674
39679
|
if (Jn(
|
|
39675
39680
|
pt.closest("table.dsd__theme__table")
|
|
39676
|
-
),
|
|
39681
|
+
), ce.current) {
|
|
39677
39682
|
r.read(() => {
|
|
39678
39683
|
var at, qe;
|
|
39679
39684
|
const je = Rt(pt);
|
|
@@ -39743,7 +39748,7 @@ function WX({
|
|
|
39743
39748
|
});
|
|
39744
39749
|
return;
|
|
39745
39750
|
}
|
|
39746
|
-
if (
|
|
39751
|
+
if (ce.current) {
|
|
39747
39752
|
if (v.row || v.column) {
|
|
39748
39753
|
const qe = e.querySelectorAll(
|
|
39749
39754
|
"table.dsd__theme__table"
|
|
@@ -39893,27 +39898,27 @@ function WX({
|
|
|
39893
39898
|
"td.dsd__theme__tableCell, th.dsd__theme__tableCell"
|
|
39894
39899
|
);
|
|
39895
39900
|
if (!$e) {
|
|
39896
|
-
|
|
39901
|
+
ce.current = !1, Qn();
|
|
39897
39902
|
return;
|
|
39898
39903
|
}
|
|
39899
39904
|
at.shiftKey || (Jn(
|
|
39900
39905
|
$e.closest("table.dsd__theme__table")
|
|
39901
|
-
),
|
|
39906
|
+
), ce.current = !0, lt.current = $e, ne(!1), J(null), Ae(null), gc(!1), r.update(() => {
|
|
39902
39907
|
const Ft = Rt($e);
|
|
39903
39908
|
if (!De(Ft)) return;
|
|
39904
39909
|
const Wt = be();
|
|
39905
|
-
Gt(Wt) && Ft.selectStart(),
|
|
39910
|
+
Gt(Wt) && Ft.selectStart(), le.current = !0, Oe(Ft, {
|
|
39906
39911
|
updateShownButtons: !0
|
|
39907
39912
|
});
|
|
39908
39913
|
}));
|
|
39909
39914
|
}, Ue = r.registerUpdateListener(
|
|
39910
39915
|
({ editorState: at }) => {
|
|
39911
|
-
if (
|
|
39912
|
-
|
|
39916
|
+
if (le.current) {
|
|
39917
|
+
le.current = !1;
|
|
39913
39918
|
return;
|
|
39914
39919
|
}
|
|
39915
39920
|
at.read(() => {
|
|
39916
|
-
if (!
|
|
39921
|
+
if (!ce.current) return;
|
|
39917
39922
|
const qe = be();
|
|
39918
39923
|
if (!qe || !Me(qe)) return;
|
|
39919
39924
|
const et = qe.anchor.getNode(), $e = De(et) ? et : dt(et, De);
|
|
@@ -40055,7 +40060,7 @@ function WX({
|
|
|
40055
40060
|
Oe.read(() => {
|
|
40056
40061
|
const Pe = be();
|
|
40057
40062
|
if (Gt(Pe)) {
|
|
40058
|
-
|
|
40063
|
+
ce.current = !1, V.current && (V.current.classList.remove(
|
|
40059
40064
|
"dsd__theme__tableCellActive"
|
|
40060
40065
|
), V.current = null);
|
|
40061
40066
|
const Ue = Pe.anchor.getNode(), ut = De(Ue) ? Ue : dt(Ue, De), yt = Pe.focus.getNode(), kt = De(yt) ? yt : dt(yt, De);
|
|
@@ -40098,7 +40103,7 @@ function WX({
|
|
|
40098
40103
|
}, Pe = () => {
|
|
40099
40104
|
ne(!1), J(null), Ae(null), gc(!1), V.current && (V.current.classList.remove(
|
|
40100
40105
|
"dsd__theme__tableCellActive"
|
|
40101
|
-
), V.current = null),
|
|
40106
|
+
), V.current = null), ce.current = !1, r.update(() => {
|
|
40102
40107
|
Gt(be()) && vn(null);
|
|
40103
40108
|
});
|
|
40104
40109
|
}, Ue = window.matchMedia(
|
|
@@ -43099,7 +43104,7 @@ function V5({
|
|
|
43099
43104
|
key: "excalidraw",
|
|
43100
43105
|
hide: t || n.excalidraw,
|
|
43101
43106
|
onSelect: () => {
|
|
43102
|
-
n.excalidraw || import("./layers.
|
|
43107
|
+
n.excalidraw || import("./layers.B6j1fexS.js").then(
|
|
43103
43108
|
({ INSERT_EXCALIDRAW_COMMAND: P }) => {
|
|
43104
43109
|
Bn(
|
|
43105
43110
|
e,
|
|
@@ -44953,7 +44958,7 @@ function iQ() {
|
|
|
44953
44958
|
["partial", E],
|
|
44954
44959
|
["partialRight", D],
|
|
44955
44960
|
["rearg", _]
|
|
44956
|
-
], J = "[object Arguments]", se = "[object Array]", ae = "[object AsyncFunction]", he = "[object Boolean]", ve = "[object Date]", Se = "[object DOMException]", Ce = "[object Error]", Ee = "[object Function]", Fe = "[object GeneratorFunction]", We = "[object Map]", ot = "[object Number]", pe = "[object Null]", de = "[object Object]", V = "[object Promise]",
|
|
44961
|
+
], J = "[object Arguments]", se = "[object Array]", ae = "[object AsyncFunction]", he = "[object Boolean]", ve = "[object Date]", Se = "[object DOMException]", Ce = "[object Error]", Ee = "[object Function]", Fe = "[object GeneratorFunction]", We = "[object Map]", ot = "[object Number]", pe = "[object Null]", de = "[object Object]", V = "[object Promise]", ce = "[object Proxy]", le = "[object RegExp]", Ie = "[object Set]", Ve = "[object String]", Je = "[object Symbol]", ht = "[object Undefined]", lt = "[object WeakMap]", qt = "[object WeakSet]", dn = "[object ArrayBuffer]", Zt = "[object DataView]", Pn = "[object Float32Array]", Pt = "[object Float64Array]", Rn = "[object Int8Array]", tn = "[object Int16Array]", wn = "[object Int32Array]", Hn = "[object Uint8Array]", Jn = "[object Uint8ClampedArray]", Gn = "[object Uint16Array]", Qn = "[object Uint32Array]", Qo = /\b__p \+= '';/g, pn = /\b(__p \+=) '' \+/g, Do = /(__e\(.*?\)|\b__t\)) \+\n'';/g, $o = /&(?:amp|lt|gt|quot|#39);/g, ct = /[&<>"']/g, Jt = RegExp($o.source), _n = RegExp(ct.source), Tn = /<%-([\s\S]+?)%>/g, Oe = /<%([\s\S]+?)%>/g, Pe = /<%=([\s\S]+?)%>/g, Ue = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ut = /^\w*$/, yt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, kt = /[\\^$.*+?()[\]{}|]/g, Qt = RegExp(kt.source), pt = /^\s+/, zt = /\s/, Ct = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, je = /\{\n\/\* \[wrapped with (.+)\] \*/, at = /,? & /, qe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, et = /[()=,{}\[\]\/\s]/, $e = /\\(\\)?/g, nt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, bt = /\w*$/, Ft = /^[-+]0x[0-9a-f]+$/i, Wt = /^0b[01]+$/i, gn = /^\[object .+?Constructor\]$/, qn = /^0o[0-7]+$/i, Dn = /^(?:0|[1-9]\d*)$/, sr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, zn = /($^)/, Tr = /['\n\r\u2028\u2029\\]/g, Er = "\\ud800-\\udfff", Zr = "\\u0300-\\u036f", ps = "\\ufe20-\\ufe2f", gs = "\\u20d0-\\u20ff", hn = Zr + ps + gs, er = "\\u2700-\\u27bf", tr = "a-z\\xdf-\\xf6\\xf8-\\xff", Mi = "\\xac\\xb1\\xd7\\xf7", Gr = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $l = "\\u2000-\\u206f", Qa = " \\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", $a = "A-Z\\xc0-\\xd6\\xd8-\\xde", Bo = "\\ufe0e\\ufe0f", co = Mi + Gr + $l + Qa, Yi = "['’]", el = "[" + Er + "]", Zi = "[" + co + "]", tl = "[" + hn + "]", p3 = "\\d+", hS = "[" + er + "]", g3 = "[" + tr + "]", b3 = "[^" + Er + co + p3 + er + tr + $a + "]", nm = "\\ud83c[\\udffb-\\udfff]", fS = "(?:" + tl + "|" + nm + ")", v3 = "[^" + Er + "]", rm = "(?:\\ud83c[\\udde6-\\uddff]){2}", om = "[\\ud800-\\udbff][\\udc00-\\udfff]", ec = "[" + $a + "]", y3 = "\\u200d", A3 = "(?:" + g3 + "|" + b3 + ")", mS = "(?:" + ec + "|" + b3 + ")", C3 = "(?:" + Yi + "(?:d|ll|m|re|s|t|ve))?", w3 = "(?:" + Yi + "(?:D|LL|M|RE|S|T|VE))?", k3 = fS + "?", x3 = "[" + Bo + "]?", pS = "(?:" + y3 + "(?:" + [v3, rm, om].join("|") + ")" + x3 + k3 + ")*", gS = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", bS = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", S3 = x3 + k3 + pS, vS = "(?:" + [hS, rm, om].join("|") + ")" + S3, yS = "(?:" + [v3 + tl + "?", tl, rm, om, el].join("|") + ")", AS = RegExp(Yi, "g"), CS = RegExp(tl, "g"), im = RegExp(nm + "(?=" + nm + ")|" + yS + S3, "g"), wS = RegExp([
|
|
44957
44962
|
ec + "?" + g3 + "+" + C3 + "(?=" + [Zi, ec, "$"].join("|") + ")",
|
|
44958
44963
|
mS + "+" + w3 + "(?=" + [Zi, ec + A3, "$"].join("|") + ")",
|
|
44959
44964
|
ec + "?" + A3 + "+" + C3,
|
|
@@ -44994,9 +44999,9 @@ function iQ() {
|
|
|
44994
44999
|
"parseInt",
|
|
44995
45000
|
"setTimeout"
|
|
44996
45001
|
], TS = -1, $n = {};
|
|
44997
|
-
$n[Pn] = $n[Pt] = $n[Rn] = $n[tn] = $n[wn] = $n[Hn] = $n[Jn] = $n[Gn] = $n[Qn] = !0, $n[J] = $n[se] = $n[dn] = $n[he] = $n[Zt] = $n[ve] = $n[Ce] = $n[Ee] = $n[We] = $n[ot] = $n[de] = $n[
|
|
45002
|
+
$n[Pn] = $n[Pt] = $n[Rn] = $n[tn] = $n[wn] = $n[Hn] = $n[Jn] = $n[Gn] = $n[Qn] = !0, $n[J] = $n[se] = $n[dn] = $n[he] = $n[Zt] = $n[ve] = $n[Ce] = $n[Ee] = $n[We] = $n[ot] = $n[de] = $n[le] = $n[Ie] = $n[Ve] = $n[lt] = !1;
|
|
44998
45003
|
var Vn = {};
|
|
44999
|
-
Vn[J] = Vn[se] = Vn[dn] = Vn[Zt] = Vn[he] = Vn[ve] = Vn[Pn] = Vn[Pt] = Vn[Rn] = Vn[tn] = Vn[wn] = Vn[We] = Vn[ot] = Vn[de] = Vn[
|
|
45004
|
+
Vn[J] = Vn[se] = Vn[dn] = Vn[Zt] = Vn[he] = Vn[ve] = Vn[Pn] = Vn[Pt] = Vn[Rn] = Vn[tn] = Vn[wn] = Vn[We] = Vn[ot] = Vn[de] = Vn[le] = Vn[Ie] = Vn[Ve] = Vn[Je] = Vn[Hn] = Vn[Jn] = Vn[Gn] = Vn[Qn] = !0, Vn[Ce] = Vn[Ee] = Vn[lt] = !1;
|
|
45000
45005
|
var ES = {
|
|
45001
45006
|
// Latin-1 Supplement block.
|
|
45002
45007
|
À: "A",
|
|
@@ -46046,7 +46051,7 @@ function iQ() {
|
|
|
46046
46051
|
return d.test(cl(l));
|
|
46047
46052
|
}
|
|
46048
46053
|
function uE(l) {
|
|
46049
|
-
return hr(l) && uo(l) ==
|
|
46054
|
+
return hr(l) && uo(l) == le;
|
|
46050
46055
|
}
|
|
46051
46056
|
function dE(l) {
|
|
46052
46057
|
return hr(l) && so(l) == Ie;
|
|
@@ -46814,7 +46819,7 @@ function iQ() {
|
|
|
46814
46819
|
return Ri(+l, +d);
|
|
46815
46820
|
case Ce:
|
|
46816
46821
|
return l.name == d.name && l.message == d.message;
|
|
46817
|
-
case
|
|
46822
|
+
case le:
|
|
46818
46823
|
case Ve:
|
|
46819
46824
|
return l == d + "";
|
|
46820
46825
|
case We:
|
|
@@ -47011,7 +47016,7 @@ function iQ() {
|
|
|
47011
47016
|
case ot:
|
|
47012
47017
|
case Ve:
|
|
47013
47018
|
return new x(l);
|
|
47014
|
-
case
|
|
47019
|
+
case le:
|
|
47015
47020
|
return SE(l);
|
|
47016
47021
|
case Ie:
|
|
47017
47022
|
return new x();
|
|
@@ -47883,7 +47888,7 @@ function iQ() {
|
|
|
47883
47888
|
if (!ar(l))
|
|
47884
47889
|
return !1;
|
|
47885
47890
|
var d = uo(l);
|
|
47886
|
-
return d == Ee || d == Fe || d == ae || d ==
|
|
47891
|
+
return d == Ee || d == Fe || d == ae || d == ce;
|
|
47887
47892
|
}
|
|
47888
47893
|
function pb(l) {
|
|
47889
47894
|
return typeof l == "number" && l == rn(l);
|
|
@@ -48775,12 +48780,12 @@ function dQ(e, t, n) {
|
|
|
48775
48780
|
}
|
|
48776
48781
|
if (We != null && We.classList.contains("selected-block"))
|
|
48777
48782
|
return;
|
|
48778
|
-
const
|
|
48779
|
-
|
|
48783
|
+
const ce = e._rootElement, le = Array.from(
|
|
48784
|
+
ce.querySelectorAll(".selected-block")
|
|
48780
48785
|
), Ie = pe ? "after" : "before";
|
|
48781
|
-
if (
|
|
48786
|
+
if (le.length) {
|
|
48782
48787
|
const Je = TU(
|
|
48783
|
-
|
|
48788
|
+
le.map((qt) => Rt(qt)).filter((qt) => qt !== null)
|
|
48784
48789
|
), ht = de;
|
|
48785
48790
|
let lt = ht;
|
|
48786
48791
|
if (nh(SU(Je), ht))
|
|
@@ -48851,13 +48856,13 @@ function dQ(e, t, n) {
|
|
|
48851
48856
|
Ce.getBoundingClientRect(),
|
|
48852
48857
|
t
|
|
48853
48858
|
)) {
|
|
48854
|
-
const
|
|
48859
|
+
const ce = Y8(
|
|
48855
48860
|
{ htmlElement: Ce, lexicalNode: Ee },
|
|
48856
48861
|
Se,
|
|
48857
48862
|
ae,
|
|
48858
48863
|
e
|
|
48859
48864
|
);
|
|
48860
|
-
rt(
|
|
48865
|
+
rt(ce.lexicalNode) && (Ce = ce.htmlElement, Ee = ce.lexicalNode, We = !1, Fe = xU(e, Ti(ce.lexicalNode)) ?? void 0);
|
|
48861
48866
|
}
|
|
48862
48867
|
if ((Ee == null ? void 0 : Ee.__type) === "callout" || (Ee == null ? void 0 : Ee.__type) === "collapsible-content" || (Ee == null ? void 0 : Ee.__type) === "tabs-content" || Fw(
|
|
48863
48868
|
u.current,
|
|
@@ -48974,33 +48979,33 @@ function dQ(e, t, n) {
|
|
|
48974
48979
|
} catch {
|
|
48975
48980
|
Ce = [];
|
|
48976
48981
|
}
|
|
48977
|
-
const Ee = Ce.filter((
|
|
48982
|
+
const Ee = Ce.filter((le) => {
|
|
48978
48983
|
var Ie;
|
|
48979
|
-
return sn(
|
|
48980
|
-
}), Fe = Ee.map((
|
|
48981
|
-
const Ie = e.getElementByKey(
|
|
48982
|
-
return
|
|
48983
|
-
}).filter((
|
|
48984
|
+
return sn(le) ? !1 : rt(le) ? !Jr(le) && ((Ie = Ih(le).getParent()) == null ? void 0 : Ie.getKey()) === "root" : le.__parent === "root" && !Qe(le);
|
|
48985
|
+
}), Fe = Ee.map((le) => {
|
|
48986
|
+
const Ie = e.getElementByKey(le.getKey());
|
|
48987
|
+
return le.getType() === "table" ? Ie == null ? void 0 : Ie.firstElementChild : Ie;
|
|
48988
|
+
}).filter((le) => le !== null), We = Ee.length && Fe.includes(ae) ? Fe : [ae];
|
|
48984
48989
|
if (We.length === 1) {
|
|
48985
|
-
const
|
|
48986
|
-
if (!
|
|
48987
|
-
se || (Xe(
|
|
48990
|
+
const le = Rt(ae);
|
|
48991
|
+
if (!le) return;
|
|
48992
|
+
se || (Xe(le) ? le.select(0) : u4(le) || le.selectStart(), e.__savedDragHandleSelection = be()), N(le);
|
|
48988
48993
|
} else
|
|
48989
48994
|
N(null);
|
|
48990
48995
|
const ot = document.querySelector(
|
|
48991
48996
|
".selected-all-document"
|
|
48992
48997
|
), pe = !!ot;
|
|
48993
|
-
pe || We.forEach((
|
|
48998
|
+
pe || We.forEach((le) => {
|
|
48994
48999
|
Bf(e, {
|
|
48995
|
-
block:
|
|
49000
|
+
block: le,
|
|
48996
49001
|
isCreateEventListener: !1
|
|
48997
49002
|
});
|
|
48998
49003
|
});
|
|
48999
|
-
const V = Array.from(pe ? ot.children : document.querySelectorAll(".selected-block")).reduce((
|
|
49004
|
+
const V = Array.from(pe ? ot.children : document.querySelectorAll(".selected-block")).reduce((le, Ie) => {
|
|
49000
49005
|
const Ve = Rt(Ie);
|
|
49001
|
-
return Ve &&
|
|
49002
|
-
}, []),
|
|
49003
|
-
D(
|
|
49006
|
+
return Ve && le.push(Ve), le;
|
|
49007
|
+
}, []), ce = V.length > 0 && V.every((le) => yi(le) || on(le) || vo(le) || Hl(le) || No(le) && !is(le) ? !1 : Xe(le) || sn(le));
|
|
49008
|
+
D(ce ? "text" : "block");
|
|
49004
49009
|
}), Va();
|
|
49005
49010
|
const ve = Number(J == null ? void 0 : J.y) + 240 > window.innerHeight ? Number(J == null ? void 0 : J.y) - 200 : J == null ? void 0 : J.y;
|
|
49006
49011
|
L({ opened: !0, x: (J == null ? void 0 : J.x) ?? 0, y: ve ?? 0 }), e.dispatchCommand(Wg, !0);
|
|
@@ -56430,8 +56435,8 @@ function Wv({
|
|
|
56430
56435
|
fetchPromptResult: pe,
|
|
56431
56436
|
commentController: de,
|
|
56432
56437
|
onTrack: V,
|
|
56433
|
-
plugins:
|
|
56434
|
-
} = Et(It), { t:
|
|
56438
|
+
plugins: ce
|
|
56439
|
+
} = Et(It), { t: le } = vt(), Ie = xe(() => {
|
|
56435
56440
|
const ct = be();
|
|
56436
56441
|
if (Me(ct)) {
|
|
56437
56442
|
const Jt = ct.anchor.getNode(), _n = ct.focus.getNode(), Tn = ka(Jt) ? null : Jt.getTopLevelElementOrThrow(), Oe = ka(_n) ? null : _n.getTopLevelElementOrThrow();
|
|
@@ -56626,7 +56631,7 @@ function Wv({
|
|
|
56626
56631
|
fetchUploadMedia: ot,
|
|
56627
56632
|
excludeNodes: We,
|
|
56628
56633
|
menuProps: { onChange: wn },
|
|
56629
|
-
children: /* @__PURE__ */ h(Ho, { label:
|
|
56634
|
+
children: /* @__PURE__ */ h(Ho, { label: le("editor.toolbar.turnInto"), children: /* @__PURE__ */ Z(
|
|
56630
56635
|
"button",
|
|
56631
56636
|
{
|
|
56632
56637
|
disabled: ae,
|
|
@@ -56666,7 +56671,7 @@ function Wv({
|
|
|
56666
56671
|
/* @__PURE__ */ h(
|
|
56667
56672
|
Ho,
|
|
56668
56673
|
{
|
|
56669
|
-
label: Ca(
|
|
56674
|
+
label: Ca(le("editor.toolbar.bold"), Aa.bold),
|
|
56670
56675
|
children: /* @__PURE__ */ h(
|
|
56671
56676
|
"button",
|
|
56672
56677
|
{
|
|
@@ -56693,7 +56698,7 @@ function Wv({
|
|
|
56693
56698
|
Ho,
|
|
56694
56699
|
{
|
|
56695
56700
|
label: Ca(
|
|
56696
|
-
|
|
56701
|
+
le("editor.toolbar.italic"),
|
|
56697
56702
|
Aa.italic
|
|
56698
56703
|
),
|
|
56699
56704
|
children: /* @__PURE__ */ h(
|
|
@@ -56722,7 +56727,7 @@ function Wv({
|
|
|
56722
56727
|
Ho,
|
|
56723
56728
|
{
|
|
56724
56729
|
label: Ca(
|
|
56725
|
-
|
|
56730
|
+
le("editor.toolbar.underline"),
|
|
56726
56731
|
Aa.underline
|
|
56727
56732
|
),
|
|
56728
56733
|
children: /* @__PURE__ */ h(
|
|
@@ -56751,7 +56756,7 @@ function Wv({
|
|
|
56751
56756
|
Ho,
|
|
56752
56757
|
{
|
|
56753
56758
|
label: Ca(
|
|
56754
|
-
|
|
56759
|
+
le("editor.toolbar.strike"),
|
|
56755
56760
|
Aa.strike
|
|
56756
56761
|
),
|
|
56757
56762
|
children: /* @__PURE__ */ h(
|
|
@@ -56782,7 +56787,7 @@ function Wv({
|
|
|
56782
56787
|
Ho,
|
|
56783
56788
|
{
|
|
56784
56789
|
disabled: !Ce,
|
|
56785
|
-
label: Ca(
|
|
56790
|
+
label: Ca(le("editor.toolbar.link"), Aa.link),
|
|
56786
56791
|
children: /* @__PURE__ */ h(
|
|
56787
56792
|
"button",
|
|
56788
56793
|
{
|
|
@@ -56808,7 +56813,7 @@ function Wv({
|
|
|
56808
56813
|
/* @__PURE__ */ h(
|
|
56809
56814
|
Ho,
|
|
56810
56815
|
{
|
|
56811
|
-
label: Ca(
|
|
56816
|
+
label: Ca(le("editor.toolbar.code"), Aa.code),
|
|
56812
56817
|
children: /* @__PURE__ */ h(
|
|
56813
56818
|
"button",
|
|
56814
56819
|
{
|
|
@@ -56831,7 +56836,7 @@ function Wv({
|
|
|
56831
56836
|
)
|
|
56832
56837
|
}
|
|
56833
56838
|
),
|
|
56834
|
-
!We["equation-inline"] && /* @__PURE__ */ h(Ho, { label:
|
|
56839
|
+
!We["equation-inline"] && /* @__PURE__ */ h(Ho, { label: le("editor.toolbar.equation", "Inline equation"), children: /* @__PURE__ */ h(
|
|
56835
56840
|
"button",
|
|
56836
56841
|
{
|
|
56837
56842
|
disabled: !Ce,
|
|
@@ -56875,7 +56880,7 @@ function Wv({
|
|
|
56875
56880
|
Ho,
|
|
56876
56881
|
{
|
|
56877
56882
|
label: Ca(
|
|
56878
|
-
|
|
56883
|
+
le("editor.toolbar.color", "Text color"),
|
|
56879
56884
|
Aa.textColor
|
|
56880
56885
|
),
|
|
56881
56886
|
children: /* @__PURE__ */ Z(
|
|
@@ -56933,7 +56938,7 @@ function Wv({
|
|
|
56933
56938
|
Ho,
|
|
56934
56939
|
{
|
|
56935
56940
|
label: Ca(
|
|
56936
|
-
|
|
56941
|
+
le("editor.toolbar.comment"),
|
|
56937
56942
|
Aa.comment
|
|
56938
56943
|
),
|
|
56939
56944
|
children: /* @__PURE__ */ Z(
|
|
@@ -56952,21 +56957,21 @@ function Wv({
|
|
|
56952
56957
|
color: "currentColor"
|
|
56953
56958
|
}
|
|
56954
56959
|
) }),
|
|
56955
|
-
!Dt && /* @__PURE__ */ h("span", { className: "toolbar-light-btn__text", children:
|
|
56960
|
+
!Dt && /* @__PURE__ */ h("span", { className: "toolbar-light-btn__text", children: le("editor.toolbar.comment") })
|
|
56956
56961
|
]
|
|
56957
56962
|
}
|
|
56958
56963
|
)
|
|
56959
56964
|
},
|
|
56960
56965
|
ve
|
|
56961
56966
|
) }),
|
|
56962
|
-
e === "default" && !We.photo && /* @__PURE__ */ h("div", { className: "toolbar-section", children: /* @__PURE__ */ h(Vte, { editor: n, t:
|
|
56963
|
-
/* @__PURE__ */ h("div", { className: "toolbar-section", children: Hn ? /* @__PURE__ */ h(Ho, { label:
|
|
56967
|
+
e === "default" && !We.photo && /* @__PURE__ */ h("div", { className: "toolbar-section", children: /* @__PURE__ */ h(Vte, { editor: n, t: le, isEditable: Ce }) }),
|
|
56968
|
+
/* @__PURE__ */ h("div", { className: "toolbar-section", children: Hn ? /* @__PURE__ */ h(Ho, { label: le("editor.toolbar.more"), children: /* @__PURE__ */ h(
|
|
56964
56969
|
Qr,
|
|
56965
56970
|
{
|
|
56966
56971
|
className: "toolbar-item",
|
|
56967
56972
|
type: "button",
|
|
56968
56973
|
"data-test-id": "toolbar-more",
|
|
56969
|
-
"aria-label":
|
|
56974
|
+
"aria-label": le("editor.toolbar.more"),
|
|
56970
56975
|
onClick: () => Qo(!0),
|
|
56971
56976
|
style: { width: "auto" },
|
|
56972
56977
|
children: /* @__PURE__ */ Z(gr, { align: "center", justify: "center", gap: 6, children: [
|
|
@@ -56978,7 +56983,7 @@ function Wv({
|
|
|
56978
56983
|
color: "currentColor"
|
|
56979
56984
|
}
|
|
56980
56985
|
),
|
|
56981
|
-
/* @__PURE__ */ h(Ze, { size: "sm", children:
|
|
56986
|
+
/* @__PURE__ */ h(Ze, { size: "sm", children: le("editor.toolbar.more") })
|
|
56982
56987
|
] })
|
|
56983
56988
|
}
|
|
56984
56989
|
) }) : /* @__PURE__ */ Z(
|
|
@@ -56995,13 +57000,13 @@ function Wv({
|
|
|
56995
57000
|
item: { gap: "var(--mantine-spacing-sm)" }
|
|
56996
57001
|
},
|
|
56997
57002
|
children: [
|
|
56998
|
-
/* @__PURE__ */ h(ke.Target, { children: /* @__PURE__ */ h(Ho, { label:
|
|
57003
|
+
/* @__PURE__ */ h(ke.Target, { children: /* @__PURE__ */ h(Ho, { label: le("editor.toolbar.more"), children: /* @__PURE__ */ h(
|
|
56999
57004
|
Qr,
|
|
57000
57005
|
{
|
|
57001
57006
|
className: "toolbar-item",
|
|
57002
57007
|
type: "button",
|
|
57003
57008
|
"data-test-id": "toolbar-more",
|
|
57004
|
-
"aria-label":
|
|
57009
|
+
"aria-label": le("editor.toolbar.more"),
|
|
57005
57010
|
children: /* @__PURE__ */ h(gr, { align: "center", justify: "center", children: /* @__PURE__ */ h(
|
|
57006
57011
|
re,
|
|
57007
57012
|
{
|
|
@@ -57018,7 +57023,7 @@ function Wv({
|
|
|
57018
57023
|
canRedo: X,
|
|
57019
57024
|
isEditable: Ce,
|
|
57020
57025
|
onClearFormatting: Ve,
|
|
57021
|
-
t:
|
|
57026
|
+
t: le
|
|
57022
57027
|
}).map((ct) => ct.type === "divider" ? /* @__PURE__ */ h(ke.Divider, {}, ct.id) : /* @__PURE__ */ h(
|
|
57023
57028
|
ke.Item,
|
|
57024
57029
|
{
|
|
@@ -57070,7 +57075,7 @@ function Wv({
|
|
|
57070
57075
|
mode: Fe,
|
|
57071
57076
|
excludeNodes: We,
|
|
57072
57077
|
fetchUploadMedia: ot,
|
|
57073
|
-
plugins:
|
|
57078
|
+
plugins: ce,
|
|
57074
57079
|
onTrack: V
|
|
57075
57080
|
}
|
|
57076
57081
|
)
|
|
@@ -57324,7 +57329,7 @@ const tne = "_listContainer_1l5sq_1", nne = "_list_1l5sq_1", rne = "_text_1l5sq_
|
|
|
57324
57329
|
title: r("editor.menu.media.excalidraw.hint.description"),
|
|
57325
57330
|
icon: /* @__PURE__ */ h(re, { icon: PA, size: 18 }),
|
|
57326
57331
|
onSelect: () => {
|
|
57327
|
-
import("./layers.
|
|
57332
|
+
import("./layers.B6j1fexS.js").then(
|
|
57328
57333
|
({ INSERT_EXCALIDRAW_COMMAND: m }) => {
|
|
57329
57334
|
c(e, () => {
|
|
57330
57335
|
e.dispatchCommand(m, void 0);
|
|
@@ -57602,7 +57607,7 @@ function cne(e, t, n, r, o) {
|
|
|
57602
57607
|
);
|
|
57603
57608
|
}
|
|
57604
57609
|
const Uv = rf(
|
|
57605
|
-
() => import("./layers.
|
|
57610
|
+
() => import("./layers.B6j1fexS.js").then((e) => ({
|
|
57606
57611
|
default: e.ExcalidrawPlugin
|
|
57607
57612
|
}))
|
|
57608
57613
|
);
|
|
@@ -57929,16 +57934,17 @@ const bne = () => {
|
|
|
57929
57934
|
return (c = (a = n.current) == null ? void 0 : a.decoratorEnterAction) == null || c.call(a), !1;
|
|
57930
57935
|
};
|
|
57931
57936
|
function wne(e, t, n) {
|
|
57932
|
-
var
|
|
57933
|
-
|
|
57934
|
-
|
|
57935
|
-
|
|
57937
|
+
var o, i, s, a, c, u, f, m;
|
|
57938
|
+
const r = "dataTransfer" in e && ((o = e.dataTransfer) == null ? void 0 : o.files) || "clipboardData" in e && ((i = e.clipboardData) == null ? void 0 : i.files) || null;
|
|
57939
|
+
if (r && r.length) {
|
|
57940
|
+
const p = Array.from(r), g = p[0];
|
|
57941
|
+
return Hx(g) && ((s = t.current) != null && s.insertVideos) ? t.current.insertVideos(p) : g.type.includes("image") && ((a = t.current) != null && a.insertImages) ? t.current.insertImages(p, { fromClipboard: !0 }) : g.type.includes("audio") && ((c = t.current) != null && c.insertMusics) ? t.current.insertMusics(p) : (u = t.current) != null && u.insertFiles && t.current.insertFiles(p), !0;
|
|
57936
57942
|
}
|
|
57937
57943
|
if ("clipboardData" in e) {
|
|
57938
|
-
const
|
|
57939
|
-
if (
|
|
57944
|
+
const p = (m = (f = e.clipboardData) == null ? void 0 : f.getData("text/html")) == null ? void 0 : m.trim(), g = gne(p);
|
|
57945
|
+
if (g)
|
|
57940
57946
|
return e.preventDefault(), n.dispatchCommand(qf, {
|
|
57941
|
-
src:
|
|
57947
|
+
src: g,
|
|
57942
57948
|
altText: ""
|
|
57943
57949
|
}), !0;
|
|
57944
57950
|
}
|
|
@@ -60616,7 +60622,7 @@ const joe = Xr ? "" : "os-windows", Yoe = ({ children: e }) => /* @__PURE__ */ h
|
|
|
60616
60622
|
}) => {
|
|
60617
60623
|
const Fe = r || "default", We = e || "<p></p>";
|
|
60618
60624
|
let ot = !!(R != null && R.url);
|
|
60619
|
-
const { historyState: pe } = aw(), de = Te({}), V = Te(null), [
|
|
60625
|
+
const { historyState: pe } = aw(), de = Te({}), V = Te(null), [ce, le] = oe("initial"), [Ie, Ve] = oe(
|
|
60620
60626
|
null
|
|
60621
60627
|
), Je = xe((Pt) => {
|
|
60622
60628
|
Pt.update(() => {
|
|
@@ -60648,7 +60654,7 @@ const joe = Xr ? "" : "os-windows", Yoe = ({ children: e }) => /* @__PURE__ */ h
|
|
|
60648
60654
|
(Pt, Rn) => {
|
|
60649
60655
|
const tn = Woe(Pt, Rn, R == null ? void 0 : R.url);
|
|
60650
60656
|
return tn.on("status", (wn) => {
|
|
60651
|
-
wn.status === "connecting" &&
|
|
60657
|
+
wn.status === "connecting" && le(wn.status);
|
|
60652
60658
|
}), setTimeout(() => Ve(tn), 0), tn;
|
|
60653
60659
|
},
|
|
60654
60660
|
[]
|
|
@@ -60676,21 +60682,21 @@ const joe = Xr ? "" : "os-windows", Yoe = ({ children: e }) => /* @__PURE__ */ h
|
|
|
60676
60682
|
let Rn = 0;
|
|
60677
60683
|
Pt ? (Pt.addEventListener("message", (tn) => {
|
|
60678
60684
|
if (typeof tn.data != "string") {
|
|
60679
|
-
Rn === 1 &&
|
|
60685
|
+
Rn === 1 && le("connected"), Rn++;
|
|
60680
60686
|
return;
|
|
60681
60687
|
}
|
|
60682
60688
|
const wn = JSON.parse(tn.data);
|
|
60683
60689
|
wn["active-users"] && console.log("message", wn["active-users"]), wn.error && (wn.error === "Unauthorized" ? (console.error(
|
|
60684
60690
|
"Connection unauthorized: You are not authorized to access this WebSocket."
|
|
60685
|
-
), Ie.disconnect()) : wn.error === "No token provided" ? (console.error("No token provided: You must provide a token."), Ie.disconnect()) : (console.error("Unknown error:", wn.error), Ie.disconnect()),
|
|
60691
|
+
), Ie.disconnect()) : wn.error === "No token provided" ? (console.error("No token provided: You must provide a token."), Ie.disconnect()) : (console.error("Unknown error:", wn.error), Ie.disconnect()), le("error"));
|
|
60686
60692
|
}), Pt.addEventListener("close", (tn) => {
|
|
60687
|
-
console.error("WebSocket connection closed:", tn),
|
|
60693
|
+
console.error("WebSocket connection closed:", tn), le("error");
|
|
60688
60694
|
})) : console.error("WebSocket is not initialized yet.");
|
|
60689
60695
|
}
|
|
60690
60696
|
}, [Ie == null ? void 0 : Ie.ws]), te(() => () => {
|
|
60691
60697
|
Ie instanceof wA && (Ie.destroy(), Ie.disconnect());
|
|
60692
60698
|
}, [Ie]), ot || (ht.editorState = lt());
|
|
60693
|
-
const Zt =
|
|
60699
|
+
const Zt = ce === "connecting" && ot, Pn = gt(() => {
|
|
60694
60700
|
const Pt = { ...P };
|
|
60695
60701
|
return a || (Pt.photo = !0, Pt.video = !0, Pt.audio = !0, Pt.file = !0), r !== "editor" && (Pt.childDocs = !0), Pt.callout && (Pt.default = !0, Pt.alert = !0, Pt.success = !0, Pt.warning = !0), {
|
|
60696
60702
|
fetchDeleteMedia: k,
|
|
@@ -60781,7 +60787,7 @@ const joe = Xr ? "" : "os-windows", Yoe = ({ children: e }) => /* @__PURE__ */ h
|
|
|
60781
60787
|
}
|
|
60782
60788
|
),
|
|
60783
60789
|
/* @__PURE__ */ h($H, { children: /* @__PURE__ */ h(JR, { children: /* @__PURE__ */ Z($R, { initialConfig: ht, children: [
|
|
60784
|
-
R &&
|
|
60790
|
+
R && ce !== "error" ? /* @__PURE__ */ h(
|
|
60785
60791
|
QR,
|
|
60786
60792
|
{
|
|
60787
60793
|
id: R.id,
|
|
@@ -60802,7 +60808,7 @@ const joe = Xr ? "" : "os-windows", Yoe = ({ children: e }) => /* @__PURE__ */ h
|
|
|
60802
60808
|
maxHeight: o,
|
|
60803
60809
|
mode: Fe,
|
|
60804
60810
|
disable: N || !1,
|
|
60805
|
-
isErrorWs:
|
|
60811
|
+
isErrorWs: ce === "error",
|
|
60806
60812
|
content: We,
|
|
60807
60813
|
isLoading: Zt,
|
|
60808
60814
|
imperativeHandleRef: de,
|