@layers-app/editor 2.2.42 → 2.2.43
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.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/{layers.BUK2tI9F.js → layers.-wUVh76U.js} +1 -1
- package/dist/{layers.NCzGgZgn.js → layers.03AG_Ahp.js} +1 -1
- package/dist/{layers.DapuU0KG.js → layers.0PDCLAB9.js} +4 -4
- package/dist/{layers.OpOAYuMR.js → layers.0cO0ixPk.js} +1 -1
- package/dist/{layers.CIy-CBKt.js → layers.0mM7kmYM.js} +1 -1
- package/dist/{layers.8PsdhJr_.js → layers.4Bvndpod.js} +1 -1
- package/dist/{layers.4HZIjqYX.js → layers.5e-XI3nh.js} +1 -1
- package/dist/{layers.Du5Kw0lv.js → layers.6IPXZlHV.js} +3 -3
- package/dist/layers.6hbGirUz.js +1 -0
- package/dist/{layers.DKneR75F.js → layers.9fzhTnHG.js} +1 -1
- package/dist/{layers.k6ZdPuHR.js → layers.B07DqX4u.js} +1 -1
- package/dist/{layers.pKbdoZxb.js → layers.B0xERJEP.js} +1 -1
- package/dist/{layers.C4opoFoN.js → layers.B2oAQIVT.js} +1 -1
- package/dist/{layers.B-Gq744C.js → layers.B3Z00oIe.js} +1 -1
- package/dist/{layers.CDQSxMxh.js → layers.B4oJOgaL.js} +1 -1
- package/dist/{layers.DASOIOHg.js → layers.B5iDAMC-.js} +1 -1
- package/dist/{layers.CRe13l0l.js → layers.B5iuTZ1t.js} +1 -1
- package/dist/{layers.BiJ8hfRt.js → layers.B7K7JjK6.js} +3 -3
- package/dist/{layers.B2J3gqbX.js → layers.B7XHIy_4.js} +1 -1
- package/dist/layers.BGELWsp6.js +6 -0
- package/dist/{layers.DmpOGm35.js → layers.BHmZJxfg.js} +1 -1
- package/dist/{layers.Bpz3db4s.js → layers.BHu_YyDc.js} +1 -1
- package/dist/{layers.BbXqqa2k.js → layers.BJCeJUWZ.js} +19085 -19527
- package/dist/{layers.C9VjKLJz.js → layers.BLtR2kcw.js} +4 -4
- package/dist/{layers.B4ODDrXe.js → layers.BM0IeEyx.js} +1 -1
- package/dist/{layers.joneqHx_.js → layers.BN7XA9Mz.js} +1 -1
- package/dist/{layers.DGLOIH3X.js → layers.BPiBAWd5.js} +1 -1
- package/dist/{layers.BadYBGOU.js → layers.BRYVeXtX.js} +1 -1
- package/dist/{layers.BcQ1kMl1.js → layers.BRzmQpbn.js} +1 -1
- package/dist/{layers.BbPWb_1m.js → layers.BSDW_YyL.js} +1 -1
- package/dist/{layers.B6ppQCpX.js → layers.BSzAtyQb.js} +1 -1
- package/dist/{layers.bgBWDeIT.js → layers.BU3693bQ.js} +1 -1
- package/dist/{layers.DmErEsm4.js → layers.BZ-_wuxN.js} +1 -1
- package/dist/layers.B_bY10SW.js +16 -0
- package/dist/{layers.DuwiO77s.js → layers.BaFHpWlD.js} +1 -1
- package/dist/{layers.BZQfXHhW.js → layers.BaSqDCUi.js} +1 -1
- package/dist/{layers.BkLWcq3H.js → layers.BbMtfvwE.js} +1 -1
- package/dist/layers.BbPiDwK6.js +8 -0
- package/dist/{layers.BzjTlsuS.js → layers.BcB0Nlwg.js} +1 -1
- package/dist/{layers.Dyrdw0nq.js → layers.BcrIK8qs.js} +1 -1
- package/dist/{layers.CLt1lOdh.js → layers.Bdnbq1Fc.js} +1 -1
- package/dist/{layers.CqjHpZPx.js → layers.Bdo184oK.js} +1 -1
- package/dist/{layers.B-7Utm8u.js → layers.BdpJh8Oo.js} +1 -1
- package/dist/{layers.cooC1lo-.js → layers.BfM6qako.js} +207 -213
- package/dist/{layers.BUo--Bs7.js → layers.BhBT87wa.js} +1 -1
- package/dist/{layers.CaIMnQjx.js → layers.BjPDJ-Kw.js} +10 -10
- package/dist/{layers.Dx-CTZW1.js → layers.BjkFiCls.js} +1 -1
- package/dist/{layers.B5HL7Xgu.js → layers.Bk5Uaw8R.js} +1 -1
- package/dist/{layers.CAzXuKad.js → layers.Bn8ENbPC.js} +1 -1
- package/dist/{layers.WEumG3HP.js → layers.BnPxqyuX.js} +1 -1
- package/dist/layers.BnUlk4VQ.js +8583 -0
- package/dist/{layers.DgK1GSIr.js → layers.Bo56cnSy.js} +1 -1
- package/dist/{layers.DtKBFm_W.js → layers.BswN_MdX.js} +1 -1
- package/dist/{layers.CKplKAGd.js → layers.Btm6c1FD.js} +1 -1
- package/dist/{layers.BAZJ_QW2.js → layers.BudxiKeS.js} +1 -1
- package/dist/{layers.Bj2-sMHc.js → layers.BvTr3OqB.js} +1 -1
- package/dist/{layers.CCvPJmBs.js → layers.Bx4TPdVb.js} +1 -1
- package/dist/{layers.BNk94eBs.js → layers.BxBOl4Dl.js} +1 -1
- package/dist/{layers.nZZ7shb4.js → layers.Bxvsg8Mb.js} +1 -1
- package/dist/{layers.BrrQS_To.js → layers.By6Y9awO.js} +115 -111
- package/dist/{layers.DvVNW7Dv.js → layers.ByPB1YI0.js} +1 -1
- package/dist/{layers.BxHQuXfB.js → layers.BzLOwAv9.js} +1 -1
- package/dist/layers.BzQjss-Y.js +423 -0
- package/dist/{layers.BRxZwSOd.js → layers.C2WnW5up.js} +4 -4
- package/dist/{layers.AoyuuPNv.js → layers.C3I87c35.js} +1 -1
- package/dist/{layers.DqzWMLD7.js → layers.C4I6DUMy.js} +111 -111
- package/dist/{layers.nsnjrxZs.js → layers.C4lKVCKG.js} +1 -1
- package/dist/layers.C5-WLmjg.js +1 -0
- package/dist/{layers.C-kj3R5W.js → layers.C9Sr1U5-.js} +319 -310
- package/dist/{layers.DcZ6n4g7.js → layers.CFWmVRYf.js} +1 -1
- package/dist/{layers.D_G_yN8x.js → layers.CF_7ZzFo.js} +3 -3
- package/dist/{layers.C6qBEls5.js → layers.CIebvJty.js} +1 -1
- package/dist/{layers.Dbom-nDm.js → layers.CIjbcwec.js} +1 -1
- package/dist/{layers.BPVJ3lO7.js → layers.CJO8izOl.js} +1 -1
- package/dist/{layers.BgtSsAyW.js → layers.CKVfFH8C.js} +1 -1
- package/dist/{layers.ce4kfKHf.js → layers.CKtCjDB5.js} +1 -1
- package/dist/{layers.BK4uJeQs.js → layers.CLGJqlQC.js} +1 -1
- package/dist/{layers.BWlwaF_p.js → layers.CMJ7A9ld.js} +1 -1
- package/dist/{layers.CbtaJD5X.js → layers.CPHBPK8k.js} +1 -1
- package/dist/{layers.BI4_cIL3.js → layers.CPNJ-TZg.js} +1 -1
- package/dist/{layers.9izsxn6m.js → layers.CQ-YrAtS.js} +1 -1
- package/dist/{layers.gysZsHSy.js → layers.CS7HWB4X.js} +4 -4
- package/dist/{layers.BwDXQByz.js → layers.CUGnkSgl.js} +1 -1
- package/dist/{layers.DrP_szmi.js → layers.CUHCWsr6.js} +3 -3
- package/dist/{layers.C9z5acJ1.js → layers.CW1tyuRJ.js} +8 -8
- package/dist/{layers.CxZWzFjf.js → layers.CWyLzhzU.js} +1 -1
- package/dist/{layers.WpQERc9Q.js → layers.C_48WisB.js} +3 -3
- package/dist/{layers.BgOa2ZQq.js → layers.C_IvrzZ3.js} +1 -1
- package/dist/{layers.DpI_1b3F.js → layers.C_qUkVxS.js} +1 -1
- package/dist/{layers.Bwhr4KSk.js → layers.CasHcfAK.js} +1 -1
- package/dist/{layers.B0eCSf4g.js → layers.Cb8w7m3T.js} +1 -1
- package/dist/{layers.BxevgFep.js → layers.CcY8SYVh.js} +1 -1
- package/dist/{layers.h88EgD7e.js → layers.CemDejcL.js} +1 -1
- package/dist/{layers.Co-LTnhB.js → layers.Cglb20ve.js} +1 -1
- package/dist/{layers.2FxpdJNJ.js → layers.Cim2gy1q.js} +1 -1
- package/dist/{layers.5MSYp6bY.js → layers.CjPHxy5F.js} +1 -1
- package/dist/{layers.q6KUarMd.js → layers.CjwpDgRI.js} +1 -1
- package/dist/{layers.mD4zfQJm.js → layers.Cm4ScAcA.js} +1 -1
- package/dist/{layers.DKBXcRnY.js → layers.CnHlffpI.js} +1 -1
- package/dist/{layers.0y-kmAVw.js → layers.CnLvIdDn.js} +1 -1
- package/dist/{layers.C8Ui2tfR.js → layers.CnPbRZ5g.js} +1 -1
- package/dist/layers.Co188iOY.js +6 -0
- package/dist/{layers.DNo9l6_0.js → layers.Con-Dh2E.js} +3 -3
- package/dist/{layers.BFCtF16Q.js → layers.CqOEfQFk.js} +1 -1
- package/dist/{layers.BMelfabQ.js → layers.CtmFs842.js} +1 -1
- package/dist/{layers.CX50nmzf.js → layers.Cu4zCXaq.js} +4 -4
- package/dist/{layers.DqWJoelP.js → layers.CwQebQGo.js} +2 -2
- package/dist/{layers.DZMtXIgo.js → layers.CxOau-hs.js} +1 -1
- package/dist/{layers.-lWbvG61.js → layers.CxfeVqFB.js} +1 -1
- package/dist/{layers.DKFcr53Q.js → layers.CxqZJUKb.js} +1 -1
- package/dist/{layers.DXpRdEJb.js → layers.CyJwHXzH.js} +6 -6
- package/dist/{layers.obOGK1bO.js → layers.CzcULpYV.js} +1 -1
- package/dist/{layers.3OW-7kTT.js → layers.D1YO6sUx.js} +1 -1
- package/dist/{layers.CZPR3sOU.js → layers.D2pb9Wvr.js} +1 -1
- package/dist/layers.D2uJTLQD.js +1 -0
- package/dist/layers.D3UpXEwL.js +425 -0
- package/dist/{layers.BAb6lW00.js → layers.D3fr8EC0.js} +1 -1
- package/dist/{layers.CDDYSTV_.js → layers.D4WHc1zo.js} +2 -2
- package/dist/{layers.2VKdA5L8.js → layers.D78A28yU.js} +8488 -8818
- package/dist/{layers.8lGj-GYn.js → layers.D7IERGZB.js} +1 -1
- package/dist/{layers.gK8xSegA.js → layers.D9NG4hfd.js} +1 -1
- package/dist/{layers.CqpiEwZY.js → layers.D9ajcZP1.js} +1 -1
- package/dist/{layers.CxTp3fVS.js → layers.DB3g0uv9.js} +1 -1
- package/dist/{layers.BpfBdFIq.js → layers.DC3-RC1l.js} +1 -1
- package/dist/{layers.Dj9XjFcz.js → layers.DFiSzcgX.js} +11 -11
- package/dist/{layers.D8ukxayM.js → layers.DGA33SjL.js} +2 -2
- package/dist/{layers.CxQW8Fe5.js → layers.DH3ePdsz.js} +1 -1
- package/dist/{layers.C_dKp51p.js → layers.DHLBQn4i.js} +3 -3
- package/dist/{layers.BaCCzKX7.js → layers.DKbpSRnS.js} +2 -2
- package/dist/{layers.BlehOZWo.js → layers.DMD2Uy-b.js} +1 -1
- package/dist/{layers.BnaqmWv7.js → layers.DMbmaXEp.js} +1 -1
- package/dist/{layers.U-n1WT4t.js → layers.DMmvRDDM.js} +1 -1
- package/dist/{layers.-ju7gx16.js → layers.DMrcq2Gr.js} +1 -1
- package/dist/{layers.qCM4_T1x.js → layers.DO67bAdi.js} +1 -1
- package/dist/layers.DQGVM1KB.js +1 -0
- package/dist/layers.DRRyMIft.js +1 -0
- package/dist/{layers.P62ZJW6E.js → layers.DRtT_PXy.js} +6 -2
- package/dist/{layers.Q3ufNO5n.js → layers.DS2xWw5u.js} +1 -1
- package/dist/{layers.DDdtjC0i.js → layers.DTvOLDFJ.js} +1 -1
- package/dist/{layers.QMyAgzrv.js → layers.DVH0bxj2.js} +22 -22
- package/dist/{layers.q4K1JOUr.js → layers.DW5NMC_Y.js} +1 -1
- package/dist/{layers.C6gBGZRI.js → layers.DWCTsdNx.js} +1 -1
- package/dist/{layers.BEKhTeC7.js → layers.DXGbCu9s.js} +1 -1
- package/dist/{layers.hh4D1Fip.js → layers.DXvR0Ic3.js} +3 -3
- package/dist/{layers.B5wP95v5.js → layers.DXwUwZdz.js} +2 -2
- package/dist/{layers.BUn7PajZ.js → layers.DZNF4hVk.js} +1 -1
- package/dist/{layers.Dwab3CXB.js → layers.D_KUnC5f.js} +1 -1
- package/dist/{layers.C7JWqsly.js → layers.D_dNQ2RW.js} +5 -5
- package/dist/{layers.Cx5c5eym.js → layers.D_fmVaW-.js} +1 -1
- package/dist/{layers.BalCY_dc.js → layers.Da0nsXuF.js} +1 -1
- package/dist/{layers.DyBzvt5Z.js → layers.DbYK2pEp.js} +1 -1
- package/dist/{layers.CqLC3MAT.js → layers.DbbksUuA.js} +1 -1
- package/dist/{layers.CJsBqp7q.js → layers.Dbri2FL3.js} +1 -1
- package/dist/{layers.ClM8rQ7y.js → layers.Dc7NnfUG.js} +1 -1
- package/dist/layers.Ddrl9HG1.js +96 -0
- package/dist/{layers.zC9WahYF.js → layers.DiAn5oCP.js} +1 -1
- package/dist/{layers.BuCNtu_x.js → layers.Dib9h9Y9.js} +1 -1
- package/dist/layers.Dl5fPqLs.js +1 -0
- package/dist/{layers.B1ZqapyL.js → layers.Dl_n_LxZ.js} +6 -6
- package/dist/{layers.D4nQTLQ5.js → layers.Dm1yBfDi.js} +1 -1
- package/dist/{layers.BagYg5_M.js → layers.DmM2jU0O.js} +1 -1
- package/dist/{layers.Y6_WR9xb.js → layers.DoHU4UID.js} +4 -4
- package/dist/{layers.BstcEXkq.js → layers.Dp9QA0Dz.js} +1 -1
- package/dist/{layers.Fvne9rpD.js → layers.DqkcR9Cj.js} +3 -3
- package/dist/{layers.DIbawAb9.js → layers.DquK_j31.js} +1 -1
- package/dist/layers.Dsw7pDbX.js +748 -0
- package/dist/{layers.Fj9T6hYj.js → layers.DsxjlRxg.js} +1 -1
- package/dist/{layers.z1UnV_Zw.js → layers.DtaKuCjp.js} +1 -1
- package/dist/layers.Dv5cum-u.js +51 -0
- package/dist/{layers.X9eT4tKQ.js → layers.Dwfq9cNX.js} +1 -1
- package/dist/{layers.8G3URL9h.js → layers.DzZcev45.js} +1 -1
- package/dist/{layers.piUu5-9J.js → layers.ENr5T7WS.js} +1 -1
- package/dist/{layers.CsR_o0I9.js → layers.FKGuICkq.js} +7 -7
- package/dist/{layers.C9oeho5s.js → layers.GSbMAxhC.js} +1 -1
- package/dist/{layers.DXvTFzh9.js → layers.I-tHkE95.js} +1 -1
- package/dist/{layers.Dj6dKbkY.js → layers.L0lr9_dy.js} +1 -1
- package/dist/{layers._dOKpw-_.js → layers.OZMdOIeE.js} +4 -4
- package/dist/{layers.D9blD47B.js → layers.Q2dvyyyS.js} +1 -1
- package/dist/{layers.Db9YZra7.js → layers.R2p30D-p.js} +1 -1
- package/dist/{layers.BhAJ6OOY.js → layers.STJilcsA.js} +1 -1
- package/dist/{layers.DgSWuxXH.js → layers.T7eDGkWl.js} +1 -1
- package/dist/{layers.C-DNpoMP.js → layers.UgwPqXW8.js} +1 -1
- package/dist/{layers.Dlm_YrEu.js → layers.Xh-WVbYL.js} +1 -1
- package/dist/{layers.B0FBFZmZ.js → layers.e5-5q9GW.js} +1 -1
- package/dist/{layers.B5mV1X7_.js → layers.hGNauRnS.js} +4135 -4186
- package/dist/layers.hUNsvmkE.js +198 -0
- package/dist/{layers.afOClBbH.js → layers.hkL7RA_5.js} +1 -1
- package/dist/{layers.CA7_AZSw.js → layers.joa0U6F3.js} +1 -1
- package/dist/{layers.ZeymhrNs.js → layers.mOqn0HZL.js} +3 -3
- package/dist/{layers.1LxuOQJN.js → layers.n-WUmPth.js} +1 -1
- package/dist/{layers.Cq8R8om8.js → layers.nTJYG5Fr.js} +1 -1
- package/dist/{layers.BGRwNWNe.js → layers.o99xgyrj.js} +1 -1
- package/dist/{layers.BJX3Xmr1.js → layers.pQg8FbPj.js} +5 -5
- package/dist/{layers.CV-0KbJB.js → layers.phLsmtCV.js} +1 -1
- package/dist/{layers.Yr2VZBmQ.js → layers.pp1C1Tmj.js} +1 -1
- package/dist/{layers.BVUC3gyi.js → layers.qZ_fMp-N.js} +1 -1
- package/dist/{layers.D66FS0DJ.js → layers.rnn88Z_F.js} +1 -1
- package/dist/{layers.BuPYl1zn.js → layers.sZWWruWl.js} +1 -1
- package/dist/{layers.BrvXOTnQ.js → layers.skYBIGuA.js} +1 -1
- package/dist/{layers.B1bwH-QM.js → layers.t9ki07H9.js} +2 -2
- package/dist/{layers.C3dMe__G.js → layers.v9an1lHW.js} +1 -1
- package/dist/{layers.BQ6oy-pR.js → layers.w5M_mTV4.js} +3 -3
- package/dist/{layers.DhOoVmLi.js → layers.zw0Kaz0i.js} +1 -1
- package/dist/{layers.BIN6x-T7.js → layers.zzb4BOcI.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.3NvonLEq.js +0 -10148
- package/dist/layers.B1riWlup.js +0 -425
- package/dist/layers.B2xZr_Qb.js +0 -6
- package/dist/layers.BMNz_Q3r.js +0 -108
- package/dist/layers.BOKoyCba.js +0 -16
- package/dist/layers.BZcwfAyr.js +0 -1
- package/dist/layers.C3ZTJw5y.js +0 -1
- package/dist/layers.C9lQwkMT.js +0 -1
- package/dist/layers.CbzJxFV8.js +0 -423
- package/dist/layers.CmTZUf2p.js +0 -1
- package/dist/layers.DA8K1lr6.js +0 -1
- package/dist/layers.DCeGFEI8.js +0 -51
- package/dist/layers.DEnv6tje.js +0 -756
- package/dist/layers.DMvDtceD.js +0 -7
- package/dist/layers.EnPHWkJ_.js +0 -8
- package/dist/layers.TRNn3vJS.js +0 -198
- package/dist/layers.iXfVMZ0v.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useContext as se, useMemo as ce, useState as B, useEffect as
|
|
1
|
+
import { jsx as n, jsxs as y, Fragment as le } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as se, useMemo as ce, useState as B, useEffect as A, useRef as W, useCallback as F, Suspense as he, lazy as pe } from "react";
|
|
3
3
|
import { useLexicalComposerContext as Ce } from "@lexical/react/LexicalComposerContext";
|
|
4
4
|
import { useLexicalEditable as xe } from "@lexical/react/useLexicalEditable";
|
|
5
5
|
import { useLexicalNodeSelection as be } from "@lexical/react/useLexicalNodeSelection";
|
|
6
6
|
import { mergeRegister as ve } from "@lexical/utils";
|
|
7
7
|
import { $setSelection as we, $getNodeByKey as V, CLICK_COMMAND as Ee, COMMAND_PRIORITY_LOW as J, KEY_DELETE_COMMAND as ye, KEY_BACKSPACE_COMMAND as ke } from "lexical";
|
|
8
|
-
import { H as K,
|
|
8
|
+
import { H as K, j as Te, C as de, R as Me, k as Q, m as ee, A as Z, K as De, t as te, N as Oe, n as oe, o as Ne, q as _e, O as Se, a as ue, r as re, l as Ae, p as Be, s as ne, v as Le, w as ze, x as Re } from "./layers.BJCeJUWZ.js";
|
|
9
9
|
import { useTranslation as P } from "react-i18next";
|
|
10
|
-
import { Modal as
|
|
10
|
+
import { Modal as je, Stack as q, Text as ie, Group as We, Button as U, Box as ae, useMantineColorScheme as Fe, Loader as Ie } from "@mantine/core";
|
|
11
11
|
import { useDisclosure as He } from "@mantine/hooks";
|
|
12
12
|
import "@lexical/mark";
|
|
13
13
|
import "@lexical/code";
|
|
@@ -18,8 +18,8 @@ const Ve = ({
|
|
|
18
18
|
confirmClose: p
|
|
19
19
|
}) => {
|
|
20
20
|
const { t: C } = P();
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ n(
|
|
22
|
+
je,
|
|
23
23
|
{
|
|
24
24
|
opened: i,
|
|
25
25
|
onClose: () => {
|
|
@@ -32,23 +32,23 @@ const Ve = ({
|
|
|
32
32
|
size: 440,
|
|
33
33
|
radius: "lg",
|
|
34
34
|
zIndex: 999,
|
|
35
|
-
children: /* @__PURE__ */ y(
|
|
36
|
-
/* @__PURE__ */ y(
|
|
37
|
-
/* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ y(q, { gap: 24, pt: "md", children: [
|
|
36
|
+
/* @__PURE__ */ y(q, { gap: "xs", align: "center", children: [
|
|
37
|
+
/* @__PURE__ */ n(
|
|
38
38
|
K,
|
|
39
39
|
{
|
|
40
|
-
icon:
|
|
40
|
+
icon: Te,
|
|
41
41
|
size: 20,
|
|
42
42
|
color: "var(--mantine-color-dimmed)"
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */ y(
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ y(q, { gap: 6, align: "center", children: [
|
|
46
|
+
/* @__PURE__ */ n(ie, { fw: 700, size: "md", ta: "center", children: C("editor.unsavedChanges.title") }),
|
|
47
|
+
/* @__PURE__ */ n(ie, { c: "dimmed", size: "sm", ta: "center", children: C("editor.unsavedChanges.message") })
|
|
48
48
|
] })
|
|
49
49
|
] }),
|
|
50
|
-
/* @__PURE__ */ y(
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ y(We, { gap: "xs", grow: !0, wrap: "nowrap", children: [
|
|
51
|
+
/* @__PURE__ */ n(
|
|
52
52
|
U,
|
|
53
53
|
{
|
|
54
54
|
variant: "default",
|
|
@@ -59,29 +59,29 @@ const Ve = ({
|
|
|
59
59
|
children: C("editor.unsavedChanges.cancel")
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ n(U, { color: "indigo.8", radius: "md", onClick: p, children: C("editor.unsavedChanges.closeWithoutSaving") })
|
|
63
63
|
] })
|
|
64
64
|
] })
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
|
-
function
|
|
68
|
+
function $e({
|
|
69
69
|
imageContainerRef: i,
|
|
70
70
|
editor: a,
|
|
71
71
|
rootClassName: p = null,
|
|
72
72
|
width: C = "inherit",
|
|
73
73
|
height: u = "inherit",
|
|
74
74
|
nodeKey: s,
|
|
75
|
-
alignment:
|
|
75
|
+
alignment: I,
|
|
76
76
|
setModalOpen: L,
|
|
77
|
-
previewSVG:
|
|
77
|
+
previewSVG: r,
|
|
78
78
|
isModalOpen: m
|
|
79
79
|
}) {
|
|
80
|
-
const { disable: g, imperativeHandleRef: v } = se(de), H = ce(() =>
|
|
80
|
+
const { disable: g, imperativeHandleRef: v } = se(de), H = ce(() => r ?? "", [r]), [M, h] = B(!1), [
|
|
81
81
|
G,
|
|
82
82
|
{ open: w, close: D }
|
|
83
83
|
] = He(!1), { t: b } = P();
|
|
84
|
-
|
|
84
|
+
A(() => {
|
|
85
85
|
m && h(!1);
|
|
86
86
|
}, [m]);
|
|
87
87
|
const O = (e, x) => {
|
|
@@ -91,34 +91,34 @@ function qe({
|
|
|
91
91
|
return ue(l) && l.setWidthAndHeight(e, x), !0;
|
|
92
92
|
});
|
|
93
93
|
}, E = () => {
|
|
94
|
-
|
|
94
|
+
re(a, s);
|
|
95
95
|
}, z = () => {
|
|
96
96
|
D(), L(!0);
|
|
97
97
|
}, N = () => {
|
|
98
|
-
D(),
|
|
98
|
+
D(), re(a, s);
|
|
99
99
|
};
|
|
100
100
|
return /* @__PURE__ */ y(
|
|
101
|
-
|
|
101
|
+
Me,
|
|
102
102
|
{
|
|
103
103
|
editor: a,
|
|
104
104
|
isIcon: !1,
|
|
105
105
|
isEmbed: !0,
|
|
106
|
-
width:
|
|
107
|
-
height:
|
|
106
|
+
width: ee(C),
|
|
107
|
+
height: ee(u),
|
|
108
108
|
onResizeEnd: O,
|
|
109
|
-
alignment:
|
|
109
|
+
alignment: I,
|
|
110
110
|
disable: g,
|
|
111
111
|
onRegisterDecoratorEnter: (e) => {
|
|
112
112
|
v != null && v.current && (v.current.decoratorEnterAction = e);
|
|
113
113
|
},
|
|
114
|
-
onActivate: () => a.dispatchCommand(
|
|
114
|
+
onActivate: () => a.dispatchCommand(Se, "show_menu"),
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ y(ae, { className: "media-wrapper excaildraw", children: [
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ n(
|
|
118
118
|
"div",
|
|
119
119
|
{
|
|
120
120
|
className: `media-actions${Q || !Ne ? " visible" : ""}`,
|
|
121
|
-
children: Q ? /* @__PURE__ */
|
|
121
|
+
children: Q ? /* @__PURE__ */ n(
|
|
122
122
|
Z,
|
|
123
123
|
{
|
|
124
124
|
"aria-label": b("editor.toolbar.more"),
|
|
@@ -129,7 +129,7 @@ function qe({
|
|
|
129
129
|
iconColor: "var(--mantine-color-gray-text)"
|
|
130
130
|
}
|
|
131
131
|
) : /* @__PURE__ */ y(le, { children: [
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ n(
|
|
133
133
|
Z,
|
|
134
134
|
{
|
|
135
135
|
"aria-label": "Settings",
|
|
@@ -138,14 +138,14 @@ function qe({
|
|
|
138
138
|
onClick: () => {
|
|
139
139
|
L(!0);
|
|
140
140
|
},
|
|
141
|
-
icon:
|
|
141
|
+
icon: te,
|
|
142
142
|
iconColor: "var(--mantine-color-gray-text)"
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ n(
|
|
146
146
|
Oe,
|
|
147
147
|
{
|
|
148
|
-
opened:
|
|
148
|
+
opened: M,
|
|
149
149
|
setOpened: h,
|
|
150
150
|
t: b,
|
|
151
151
|
editor: a,
|
|
@@ -153,21 +153,21 @@ function qe({
|
|
|
153
153
|
flexBorder: !0
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ n(
|
|
157
157
|
Z,
|
|
158
158
|
{
|
|
159
159
|
"aria-label": "Delete",
|
|
160
160
|
label: b("editor.actions.delete"),
|
|
161
161
|
flexBorder: !0,
|
|
162
162
|
onClick: E,
|
|
163
|
-
icon:
|
|
163
|
+
icon: oe,
|
|
164
164
|
iconColor: "var(--mantine-color-red-outline)"
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
] })
|
|
168
168
|
}
|
|
169
169
|
),
|
|
170
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ n(
|
|
171
171
|
ae,
|
|
172
172
|
{
|
|
173
173
|
w: "100%",
|
|
@@ -179,14 +179,14 @@ function qe({
|
|
|
179
179
|
}
|
|
180
180
|
)
|
|
181
181
|
] }),
|
|
182
|
-
Q && /* @__PURE__ */
|
|
182
|
+
Q && /* @__PURE__ */ n(
|
|
183
183
|
_e,
|
|
184
184
|
{
|
|
185
185
|
opened: G,
|
|
186
186
|
onClose: D,
|
|
187
187
|
title: b("editor.image.mobileActions"),
|
|
188
|
-
children: /* @__PURE__ */ y(
|
|
189
|
-
/* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ y(q, { gap: 4, p: 0, children: [
|
|
189
|
+
/* @__PURE__ */ n(
|
|
190
190
|
U,
|
|
191
191
|
{
|
|
192
192
|
type: "button",
|
|
@@ -196,10 +196,10 @@ function qe({
|
|
|
196
196
|
justify: "flex-start",
|
|
197
197
|
bg: "var(--editor-action-bg)",
|
|
198
198
|
onClick: z,
|
|
199
|
-
leftSection: /* @__PURE__ */
|
|
199
|
+
leftSection: /* @__PURE__ */ n(
|
|
200
200
|
K,
|
|
201
201
|
{
|
|
202
|
-
icon:
|
|
202
|
+
icon: te,
|
|
203
203
|
size: 16,
|
|
204
204
|
color: "var(--mantine-color-dimmed)"
|
|
205
205
|
}
|
|
@@ -207,7 +207,7 @@ function qe({
|
|
|
207
207
|
children: b("editor.link.edit")
|
|
208
208
|
}
|
|
209
209
|
),
|
|
210
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ n(
|
|
211
211
|
U,
|
|
212
212
|
{
|
|
213
213
|
type: "button",
|
|
@@ -217,10 +217,10 @@ function qe({
|
|
|
217
217
|
justify: "flex-start",
|
|
218
218
|
bg: "var(--editor-action-bg)",
|
|
219
219
|
onClick: N,
|
|
220
|
-
leftSection: /* @__PURE__ */
|
|
220
|
+
leftSection: /* @__PURE__ */ n(
|
|
221
221
|
K,
|
|
222
222
|
{
|
|
223
|
-
icon:
|
|
223
|
+
icon: oe,
|
|
224
224
|
size: 16,
|
|
225
225
|
color: "var(--mantine-color-red-6)"
|
|
226
226
|
}
|
|
@@ -236,14 +236,14 @@ function qe({
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
let Y = null;
|
|
239
|
-
const
|
|
239
|
+
const qe = /* @__PURE__ */ pe(async () => {
|
|
240
240
|
var a;
|
|
241
|
-
const i = await import("./layers.
|
|
241
|
+
const i = await import("./layers.D78A28yU.js").then((p) => p.M);
|
|
242
242
|
return !Y && i && (Y = i.exportToSvg || ((a = i.default) == null ? void 0 : a.exportToSvg) || i.default), { default: i.Excalidraw };
|
|
243
243
|
}), Ue = () => {
|
|
244
244
|
const [i, a] = B(
|
|
245
245
|
null
|
|
246
|
-
), p =
|
|
246
|
+
), p = F(
|
|
247
247
|
(C) => a(C),
|
|
248
248
|
[]
|
|
249
249
|
);
|
|
@@ -256,20 +256,20 @@ function Ye({
|
|
|
256
256
|
initialFiles: C,
|
|
257
257
|
isShown: u = !1,
|
|
258
258
|
onDelete: s,
|
|
259
|
-
onClose:
|
|
259
|
+
onClose: I,
|
|
260
260
|
isEdited: L
|
|
261
261
|
}) {
|
|
262
|
-
const [
|
|
263
|
-
|
|
262
|
+
const [r, m] = Ue(), { i18n: g, t: v } = P(), { colorScheme: H } = Fe(), M = W(!1), [h, G] = B(a), [w, D] = B(C), [b, O] = B(u);
|
|
263
|
+
A(() => {
|
|
264
264
|
u && O(!0);
|
|
265
|
-
}, [u]),
|
|
266
|
-
!u ||
|
|
267
|
-
}, [u]),
|
|
265
|
+
}, [u]), A(() => {
|
|
266
|
+
!u || M.current || (M.current = !0, Promise.resolve({ }));
|
|
267
|
+
}, [u]), A(() => {
|
|
268
268
|
u && setTimeout(() => {
|
|
269
269
|
var e, x;
|
|
270
|
-
(e =
|
|
270
|
+
(e = r == null ? void 0 : r.refresh) == null || e.call(r), (x = r == null ? void 0 : r.scrollToContent) == null || x.call(r);
|
|
271
271
|
}, 500);
|
|
272
|
-
}, [u,
|
|
272
|
+
}, [u, r]), A(() => {
|
|
273
273
|
if (!u)
|
|
274
274
|
return;
|
|
275
275
|
const e = (o, c) => {
|
|
@@ -289,7 +289,7 @@ function Ye({
|
|
|
289
289
|
"Web Embed": l,
|
|
290
290
|
"Web embeded": l,
|
|
291
291
|
Generate: d
|
|
292
|
-
},
|
|
292
|
+
}, j = () => {
|
|
293
293
|
const o = document.querySelector(".App-toolbar__extra-tools-dropdown");
|
|
294
294
|
if (!o)
|
|
295
295
|
return;
|
|
@@ -302,15 +302,15 @@ function Ye({
|
|
|
302
302
|
for (; t = c.nextNode(); )
|
|
303
303
|
if (t.nodeType === Node.TEXT_NODE && t.textContent) {
|
|
304
304
|
const f = t.textContent.trim();
|
|
305
|
-
for (const [
|
|
306
|
-
if (f ===
|
|
307
|
-
t.textContent = t.textContent.replace(
|
|
305
|
+
for (const [T, S] of Object.entries(R))
|
|
306
|
+
if (f === T && S && !f.includes(S)) {
|
|
307
|
+
t.textContent = t.textContent.replace(T, S);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}, _ = () => {
|
|
312
312
|
setTimeout(() => {
|
|
313
|
-
|
|
313
|
+
j();
|
|
314
314
|
}, 0);
|
|
315
315
|
}, k = setTimeout(() => {
|
|
316
316
|
const o = document.querySelector(
|
|
@@ -336,15 +336,15 @@ function Ye({
|
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
}, [u, g.language, v]);
|
|
339
|
-
const E =
|
|
340
|
-
var
|
|
339
|
+
const E = F(async () => {
|
|
340
|
+
var j, _, k;
|
|
341
341
|
let e = Y;
|
|
342
342
|
if (!e || typeof e != "function") {
|
|
343
|
-
const o = await import("./layers.
|
|
344
|
-
e = o.exportToSvg || ((
|
|
343
|
+
const o = await import("./layers.D78A28yU.js").then((c) => c.M);
|
|
344
|
+
e = o.exportToSvg || ((j = o.default) == null ? void 0 : j.exportToSvg) || o.default, e && typeof e == "function" && (Y = e);
|
|
345
345
|
}
|
|
346
346
|
if (!e || typeof e != "function") {
|
|
347
|
-
const o = await import("./layers.
|
|
347
|
+
const o = await import("./layers.D78A28yU.js").then((t) => t.M), c = o ? Object.keys(o) : [];
|
|
348
348
|
throw console.error("Excalidraw module structure:", {
|
|
349
349
|
keys: c,
|
|
350
350
|
hasExportToSvg: o && "exportToSvg" in o,
|
|
@@ -355,7 +355,7 @@ function Ye({
|
|
|
355
355
|
`exportToSvg is not available from @excalidraw/excalidraw. Module keys: ${c.join(", ")}. Please ensure @excalidraw/excalidraw is properly installed.`
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
|
-
const x = ((_ =
|
|
358
|
+
const x = ((_ = r == null ? void 0 : r.getAppState) == null ? void 0 : _.call(r)) ?? p, l = await e({
|
|
359
359
|
appState: x,
|
|
360
360
|
elements: h,
|
|
361
361
|
files: w
|
|
@@ -365,9 +365,9 @@ function Ye({
|
|
|
365
365
|
l.setAttribute("width", o[2]), l.setAttribute("height", o[3]);
|
|
366
366
|
}
|
|
367
367
|
return d && d.tagName === "style" && d.remove(), l.setAttribute("width", "100%"), l.setAttribute("height", "100%"), l.setAttribute("display", "block"), l.classList.add("excalidraw-svg"), l.outerHTML;
|
|
368
|
-
}, [h, w,
|
|
368
|
+
}, [h, w, r, p]), z = () => {
|
|
369
369
|
if (h && h.filter((e) => !e.isDeleted).length > 0) {
|
|
370
|
-
const e =
|
|
370
|
+
const e = r == null ? void 0 : r.getAppState(), x = {
|
|
371
371
|
exportBackground: e == null ? void 0 : e.exportBackground,
|
|
372
372
|
exportScale: e == null ? void 0 : e.exportScale,
|
|
373
373
|
exportWithDarkMode: (e == null ? void 0 : e.theme) === "dark",
|
|
@@ -389,18 +389,18 @@ function Ye({
|
|
|
389
389
|
}, N = (e, x, l) => {
|
|
390
390
|
(e == null ? void 0 : e.length) !== (a == null ? void 0 : a.length) && (L.current = !0), G(e), D(l);
|
|
391
391
|
};
|
|
392
|
-
return /* @__PURE__ */
|
|
392
|
+
return /* @__PURE__ */ n(
|
|
393
393
|
Ge,
|
|
394
394
|
{
|
|
395
395
|
opened: u,
|
|
396
|
-
onClose:
|
|
396
|
+
onClose: I,
|
|
397
397
|
onSave: z,
|
|
398
398
|
className: "excaildraw-modal",
|
|
399
399
|
closeOnEscape: !1,
|
|
400
|
-
children: b && /* @__PURE__ */
|
|
400
|
+
children: b && /* @__PURE__ */ n(
|
|
401
401
|
he,
|
|
402
402
|
{
|
|
403
|
-
fallback: /* @__PURE__ */
|
|
403
|
+
fallback: /* @__PURE__ */ n(
|
|
404
404
|
"div",
|
|
405
405
|
{
|
|
406
406
|
style: {
|
|
@@ -410,13 +410,13 @@ function Ye({
|
|
|
410
410
|
height: "100%",
|
|
411
411
|
minHeight: "400px"
|
|
412
412
|
},
|
|
413
|
-
children: /* @__PURE__ */
|
|
413
|
+
children: /* @__PURE__ */ n(Ie, { size: "sm" })
|
|
414
414
|
}
|
|
415
415
|
),
|
|
416
|
-
children: /* @__PURE__ */
|
|
417
|
-
|
|
416
|
+
children: /* @__PURE__ */ n(
|
|
417
|
+
qe,
|
|
418
418
|
{
|
|
419
|
-
langCode:
|
|
419
|
+
langCode: Ae[g.language],
|
|
420
420
|
theme: H,
|
|
421
421
|
onChange: N,
|
|
422
422
|
excalidrawAPI: m,
|
|
@@ -441,27 +441,27 @@ function st({
|
|
|
441
441
|
alignment: u
|
|
442
442
|
}) {
|
|
443
443
|
var c;
|
|
444
|
-
const [s] = Ce(), { fetchUploadMedia:
|
|
445
|
-
|
|
446
|
-
), v =
|
|
444
|
+
const [s] = Ce(), { fetchUploadMedia: I, fetchDeleteMedia: L } = se(de), r = xe(), m = ce(() => Be(a), [a]), g = W(
|
|
445
|
+
ne(m.files ?? {})
|
|
446
|
+
), v = W(
|
|
447
447
|
Object.keys(m.files ?? {})
|
|
448
448
|
);
|
|
449
|
-
|
|
450
|
-
const t =
|
|
449
|
+
A(() => {
|
|
450
|
+
const t = ne(m.files ?? {});
|
|
451
451
|
for (const f of Object.keys(t))
|
|
452
452
|
g.current[f] = t[f];
|
|
453
453
|
}, [m.files]);
|
|
454
|
-
const H = ((c = m == null ? void 0 : m.elements) == null ? void 0 : c.length) === 0 && !m.previewSVG, [
|
|
454
|
+
const H = ((c = m == null ? void 0 : m.elements) == null ? void 0 : c.length) === 0 && !m.previewSVG, [M, h] = B(
|
|
455
455
|
H && s.isEditable()
|
|
456
|
-
), [G, w] = B(!1), D =
|
|
456
|
+
), [G, w] = B(!1), D = W(null), b = W(null), O = W(null), [E, z, N] = be(i), e = F(
|
|
457
457
|
(t) => (E && (t.preventDefault(), s.update(() => {
|
|
458
458
|
const f = V(i);
|
|
459
459
|
f && f.remove();
|
|
460
460
|
})), !1),
|
|
461
461
|
[s, E, i]
|
|
462
462
|
);
|
|
463
|
-
|
|
464
|
-
if (!
|
|
463
|
+
A(() => {
|
|
464
|
+
if (!r) {
|
|
465
465
|
E && N();
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
@@ -469,8 +469,8 @@ function st({
|
|
|
469
469
|
s.registerCommand(
|
|
470
470
|
Ee,
|
|
471
471
|
(t) => {
|
|
472
|
-
const f = b.current,
|
|
473
|
-
return f !== null && f.contains(
|
|
472
|
+
const f = b.current, T = t.target;
|
|
473
|
+
return f !== null && f.contains(T) ? (t.shiftKey || N(), z(!E), t.detail > 1 && h(!0), !0) : !1;
|
|
474
474
|
},
|
|
475
475
|
J
|
|
476
476
|
),
|
|
@@ -485,48 +485,48 @@ function st({
|
|
|
485
485
|
J
|
|
486
486
|
)
|
|
487
487
|
);
|
|
488
|
-
}, [N, s, E, e, z,
|
|
489
|
-
const x =
|
|
488
|
+
}, [N, s, E, e, z, r]);
|
|
489
|
+
const x = F(() => (h(!1), s.update(() => {
|
|
490
490
|
const t = V(i);
|
|
491
491
|
t && t.remove();
|
|
492
|
-
})), [s, i]), l = async (t, f,
|
|
492
|
+
})), [s, i]), l = async (t, f, T, S) => {
|
|
493
493
|
const {
|
|
494
|
-
files:
|
|
494
|
+
files: $,
|
|
495
495
|
urlByDataUrl: fe,
|
|
496
496
|
attachmentIdByFileId: me
|
|
497
497
|
} = await Le(
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
T,
|
|
499
|
+
I,
|
|
500
500
|
g.current
|
|
501
501
|
);
|
|
502
502
|
g.current = ze(
|
|
503
503
|
v.current,
|
|
504
|
-
|
|
504
|
+
$,
|
|
505
505
|
me,
|
|
506
506
|
L
|
|
507
|
-
), v.current = Object.keys(
|
|
508
|
-
const ge = Re(
|
|
507
|
+
), v.current = Object.keys($);
|
|
508
|
+
const ge = Re(S, fe);
|
|
509
509
|
s.update(() => {
|
|
510
510
|
const X = V(i);
|
|
511
|
-
ue(X) && (t && t.length > 0 || Object.keys(
|
|
511
|
+
ue(X) && (t && t.length > 0 || Object.keys($).length > 0 ? X.setData(
|
|
512
512
|
JSON.stringify({
|
|
513
513
|
appState: f,
|
|
514
514
|
elements: t,
|
|
515
|
-
files:
|
|
515
|
+
files: $,
|
|
516
516
|
previewSVG: ge
|
|
517
517
|
})
|
|
518
518
|
) : X.remove());
|
|
519
519
|
});
|
|
520
|
-
}, { elements: d = [], files: R = {}, appState:
|
|
520
|
+
}, { elements: d = [], files: R = {}, appState: j = {}, previewSVG: _ } = m, k = F(() => {
|
|
521
521
|
h(!1), w(!1), O.current = !1, (d == null ? void 0 : d.length) === 0 && s.update(() => {
|
|
522
522
|
const t = V(i);
|
|
523
523
|
t && t.remove();
|
|
524
524
|
});
|
|
525
|
-
}, [s, i, d == null ? void 0 : d.length]), o =
|
|
525
|
+
}, [s, i, d == null ? void 0 : d.length]), o = F(() => {
|
|
526
526
|
O.current ? w(!0) : k();
|
|
527
527
|
}, [k]);
|
|
528
528
|
return /* @__PURE__ */ y(le, { children: [
|
|
529
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ n(
|
|
530
530
|
Ve,
|
|
531
531
|
{
|
|
532
532
|
isCloseModal: G,
|
|
@@ -534,31 +534,31 @@ function st({
|
|
|
534
534
|
setCloseModalOpen: w
|
|
535
535
|
}
|
|
536
536
|
),
|
|
537
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ n(
|
|
538
538
|
Ye,
|
|
539
539
|
{
|
|
540
540
|
initialElements: d,
|
|
541
541
|
isEdited: O,
|
|
542
542
|
initialFiles: R,
|
|
543
|
-
initialAppState:
|
|
544
|
-
isShown:
|
|
543
|
+
initialAppState: j,
|
|
544
|
+
isShown: M,
|
|
545
545
|
onDelete: x,
|
|
546
546
|
onClose: o,
|
|
547
|
-
onSave: async (t, f,
|
|
548
|
-
await l(t, f,
|
|
547
|
+
onSave: async (t, f, T, S) => {
|
|
548
|
+
await l(t, f, T, S), h(!1);
|
|
549
549
|
},
|
|
550
550
|
closeOnClickOutside: !1
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
|
-
(d == null ? void 0 : d.length) && /* @__PURE__ */
|
|
553
|
+
(d == null ? void 0 : d.length) && /* @__PURE__ */ n(
|
|
554
554
|
"div",
|
|
555
555
|
{
|
|
556
556
|
style: {
|
|
557
557
|
display: "flex",
|
|
558
558
|
justifyContent: u
|
|
559
559
|
},
|
|
560
|
-
children: /* @__PURE__ */
|
|
561
|
-
|
|
560
|
+
children: /* @__PURE__ */ n(
|
|
561
|
+
$e,
|
|
562
562
|
{
|
|
563
563
|
imageContainerRef: D,
|
|
564
564
|
className: "image",
|
|
@@ -569,7 +569,7 @@ function st({
|
|
|
569
569
|
alignment: u,
|
|
570
570
|
setModalOpen: h,
|
|
571
571
|
previewSVG: _,
|
|
572
|
-
isModalOpen:
|
|
572
|
+
isModalOpen: M
|
|
573
573
|
}
|
|
574
574
|
)
|
|
575
575
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.D78A28yU.js";
|
|
2
2
|
var u = { paste: "הדבק", pasteAsPlaintext: "הדבק ללא עיצוב", pasteCharts: "הדבק גרפים", selectAll: "בחר הכל", multiSelect: "הוסף רכיב לבחירה", moveCanvas: "הזז את הקנבס", cut: "גזור", copy: "העתק", copyAsPng: "העתק ללוח כ PNG", copyAsSvg: "העתק ללוח כ SVG", copyText: "העתק ללוח כטקסט", copySource: "", convertToCode: "", bringForward: "הבא שכבה קדימה", sendToBack: "שלח אחורה", bringToFront: "העבר לחזית", sendBackward: "העבר שכבה אחורה", delete: "מחק", copyStyles: "העתק סגנון", pasteStyles: "הדבק סגנון", stroke: "קו מתאר", background: "רקע", fill: "מילוי", strokeWidth: "עובי קו מתאר", strokeStyle: "סגנון קו המתאר", strokeStyle_solid: "מלא", strokeStyle_dashed: "מקווקו", strokeStyle_dotted: "מנוקד", sloppiness: "רישול", opacity: "אטימות", textAlign: "יישור טקסט", edges: "קצוות", sharp: "חד", round: "עגול", arrowheads: "ראשי חצים", arrowhead_none: "ללא", arrowhead_arrow: "חץ", arrowhead_bar: "קצה אנכי", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "משולש", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "גודל גופן", fontFamily: "גופן", addWatermark: 'הוסף "נוצר באמצעות Excalidraw"', handDrawn: "ציור יד", normal: "רגיל", code: "קוד", small: "קטן", medium: "בינוני", large: "גדול", veryLarge: "גדול מאוד", solid: "מוצק", hachure: "קווים מקבילים קצרים להצגת כיוון וחדות שיפוע במפה", zigzag: "זיגזג", crossHatch: "קווים מוצלבים שתי וערב", thin: "דק", bold: "מודגש", left: "שמאל", center: "מרכז", right: "ימין", extraBold: "מודגש במיוחד", architect: "ארכיטקט", artist: "אמן", cartoonist: "קריקטוריסט", fileTitle: "שם קובץ", colorPicker: "בוחר צבעים", canvasColors: "בשימוש בקנבס", canvasBackground: "רקע קנבס", drawingCanvas: "קנבס ציור", layers: "שכבות", actions: "פעולות", language: "שפה", liveCollaboration: "התחל שיתוף חי...", duplicateSelection: "שכפל", untitled: "ללא כותרת", name: "שם", yourName: "שמך", madeWithExcalidraw: "נוצר באמצעות Excalidraw", group: "קבץ", ungroup: "פרק קבוצה", collaborators: "שותפים", showGrid: "הצג רשת", addToLibrary: "הוסף לספריה", removeFromLibrary: "הסר מספריה", libraryLoadingMessage: "טוען ספריה…", libraries: "עיין בספריות", loadingScene: "טוען תצוגה…", align: "יישר", alignTop: "יישר למעלה", alignBottom: "יישר למטה", alignLeft: "יישר לשמאל", alignRight: "יישר לימין", centerVertically: "מרכז אנכית", centerHorizontally: "מרכז אופקית", distributeHorizontally: "חלוקה אופקית", distributeVertically: "חלוקה אנכית", flipHorizontal: "הפוך אופקית", flipVertical: "הפוך אנכית", viewMode: "מצב תצוגה", share: "שתף", showStroke: "הצג בוחר צבע מברשת", showBackground: "הצג בוחר צבע רקע", toggleTheme: "שינוי ערכת העיצוב", personalLib: "ספריה פרטית", excalidrawLib: "הספריה של Excalidraw", decreaseFontSize: "הקטן את גודל הגופן", increaseFontSize: "הגדל את גודל הגופן", unbindText: "ביטול קיבוע הטקסט", bindText: "קיבוע הטקסט למיכל", createContainerFromText: "ארוז טקסט במיכל", link: { edit: "עריכת קישור", editEmbed: "ערוך קישור ושבץ", create: "יצירת קישור", createEmbed: "צור קישור ושבץ", label: "קישור", labelEmbed: "קשר ושבץ", empty: "לא נקבע קישור" }, lineEditor: { edit: "ערוך קו", exit: "צא מעורך הקו" }, elementLock: { lock: "נעילה", unlock: "ביטול נעילה", lockAll: "לנעול הכל", unlockAll: "שחרור הכול" }, statusPublished: "פורסם", sidebarLock: "שמור את סרגל הצד פתוח", selectAllElementsInFrame: "בחר את כל האלמנטים במסגרת", removeAllElementsFromFrame: "הסר את כל האלמנטים שבמסגרת", eyeDropper: "", textToDiagram: "", prompt: "" }, D = { noItems: "עוד לא הוספת דברים...", hint_emptyLibrary: "בחר משהו בקנבס כדי להוסיף אותו לכאן, או שתתקין ספריה מהספריה הציבורית מטה.", hint_emptyPrivateLibrary: "בחר משהו בקנבס כדי להוסיף אותו לכאן." }, E = { clearReset: "אפס את הקנבאס", exportJSON: "ייצא לקובץ", exportImage: "ייצוא התמונה...", export: "שמור ל...", copyToClipboard: "העתק ללוח", save: "שמור לקובץ נוכחי", saveAs: "שמירה בשם", load: "פתח", getShareableLink: "קבל קישור לשיתוף", close: "סגור", selectLanguage: "בחר שפה", scrollBackToContent: "גלול בחזרה לתוכן", zoomIn: "הגדל", zoomOut: "הקטן", resetZoom: "איפוס זום", menu: "תפריט", done: "בוצע", edit: "ערוך", undo: "בטל", redo: "בצע מחדש", resetLibrary: "איפוס ספריה", createNewRoom: "צור חדר חדש", fullScreen: "מסך מלא", darkMode: "מצב כהה", lightMode: "מצב בהיר", zenMode: "מצב זן", objectsSnapMode: "", exitZenMode: "צא ממצב זן", cancel: "ביטול", clear: "ניקוי", remove: "הסר", embed: "", publishLibrary: "פרסום", submit: "שליחה", confirm: "אשר", embeddableInteractionButton: "" }, e = { clearReset: "פעולה זו תנקה את כל הקנבס. אתה בטוח?", couldNotCreateShareableLink: "יצירת קישור לשיתוף נכשל.", couldNotCreateShareableLinkTooBig: "יצירת קישור לשיתוף נכשל: התצוגה גדולה מדי", couldNotLoadInvalidFile: "טעינת קובץ לא תקין נכשלה", importBackendFailed: "ייבוא מהשרת נכשל.", cannotExportEmptyCanvas: "לא ניתן לייצא קנבאס ריק.", couldNotCopyToClipboard: "לא ניתן היה להעתיק ללוח.", decryptFailed: "פיענוח ההצפנה של המידע נכשל.", uploadedSecurly: "ההעלאה אובטחה באמצעות הצפנה מקצה לקצה, פירוש הדבר שהשרת של Excalidraw וגורמי צד ג׳ לא יכולים לקרוא את התוכן.", loadSceneOverridePrompt: "טעינה של ציור חיצוני תחליף את התוכן הקיים שלך. האם תרצה להמשיך?", collabStopOverridePrompt: `עצירת השיתוף תוביל למחיקת הציור הקודם ששמור מקומית בדפדפן. האם אתה בטוח?
|
|
3
3
|
|
|
4
4
|
(אם תרצה לשמור את הציור המקומי, סגור את הטאב של הדפדפן במקום.)`, errorAddingToLibrary: "לא ניתן להוסיף פריט לספרייה", errorRemovingFromLibrary: "לא ניתן להסיר פריט מהספריה", confirmAddLibrary: "זה יוסיף {{numShapes}} צורה(ות) לספריה שלך. האם אתה בטוח?", imageDoesNotContainScene: "נראה שהתמונה לא מכילה מידע על הסצינה. האם אפשרת הטמעת מידע הסצינה בעת השמירה?", cannotRestoreFromImage: "לא הצלחנו לשחזר את הסצנה מקובץ התמונה", invalidSceneUrl: "ייבוא מידע סצנה מהקישור שסופק כשל. או שהוא משובש, או שאינו מכיל מידע של Excalidraw בפורמט JSON.", resetLibrary: "פעולה זו תנקה את כל הספריה שלך. אתה בטוח?", removeItemsFromsLibrary: "מחק {{count}} פריט(ים) מהספריה?", invalidEncryptionKey: "מפתח ההצפנה חייב להיות בן 22 תוים. השיתוף החי מנוטרל.", collabOfflineWarning: `אין חיבור זמין לאינטרנט.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./layers.Ddrl9HG1.js"),cn=require("./layers.CHZsXQcr.js");function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function C(n){let t,e,r;n.length!==2?(t=F,e=(a,c)=>F(n(a),c),r=(a,c)=>n(a)-c):(t=n===F||n===hn?n:ln,e=n,r=n);function i(a,c,o=0,s=a.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(a[h],c)<0?o=h+1:s=h}while(o<s)}return o}function f(a,c,o=0,s=a.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(a[h],c)<=0?o=h+1:s=h}while(o<s)}return o}function u(a,c,o=0,s=a.length){const h=i(a,c,o,s-1);return h>o&&r(a[h-1],c)>-r(a[h],c)?h-1:h}return{left:i,center:u,right:f}}function ln(){return 0}function mn(n){return n===null?NaN:+n}const sn=C(F),dn=sn.right;C(mn).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function E(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),u=f>=gn?10:f>=yn?5:f>=Mn?2:1;let a,c,o;return i<0?(o=Math.pow(10,-i)/u,a=Math.round(n*o),c=Math.round(t*o),a/o<n&&++a,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*u,a=Math.round(n/o),c=Math.round(t/o),a*o<n&&++a,c*o>t&&--c),c<a&&.5<=e&&e<2?E(n,t,e*2):[a,c,o]}function pn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,u]=r?E(t,n,e):E(n,t,e);if(!(f>=i))return[];const a=f-i+1,c=new Array(a);if(r)if(u<0)for(let o=0;o<a;++o)c[o]=(f-o)/-u;else for(let o=0;o<a;++o)c[o]=(f-o)*u;else if(u<0)for(let o=0;o<a;++o)c[o]=(i+o)/-u;else for(let o=0;o<a;++o)c[o]=(i+o)*u;return c}function I(n,t,e){return t=+t,n=+n,e=+e,E(n,t,e)[2]}function W(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?I(t,n,e):I(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function wn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function Nn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function kn(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),u;for(u=0;u<r;++u)i[u]=B(n[u],t[u]);for(;u<e;++u)f[u]=t[u];return function(a){for(u=0;u<r;++u)f[u]=i[u](a);return f}}function xn(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function An(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=B(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function B(n,t){var e=typeof t,r;return t==null||e==="boolean"?p.constant(t):(e==="number"?p.interpolateNumber:e==="string"?(r=p.color(t))?(t=r,p.interpolateRgb):p.interpolateString:t instanceof p.color?p.interpolateRgb:t instanceof Date?xn:Nn(t)?wn:Array.isArray(t)?kn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?An:p.interpolateNumber)(n,t)}function vn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function Sn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function q(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function S(n){return n=q(Math.abs(n)),n?n[1]:NaN}function bn(n,t){return function(e,r){for(var i=e.length,f=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),f.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return f.reverse().join(t)}}function jn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var Pn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=Pn.exec(n)))throw new Error("invalid format: "+n);var t;return new G({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=G.prototype;function G(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}G.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function zn(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var _;function Rn(n,t){var e=q(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=r.length;return f===u?r:f>u?r+new Array(f-u+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+q(n,Math.max(0,t+f-1))[0]}function Y(n,t){var e=q(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Z={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Y(n*100,t),r:Y,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $n(n){var t=n.grouping===void 0||n.thousands===void 0?H:bn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:jn(J.call(n.numerals,String)),u=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var m=h.fill,w=h.align,y=h.sign,b=h.symbol,x=h.zero,j=h.width,T=h.comma,N=h.precision,O=h.trim,d=h.type;d==="n"?(T=!0,d="g"):Z[d]||(N===void 0&&(N=12),O=!0,d="g"),(x||m==="0"&&w==="=")&&(x=!0,m="0",w="=");var un=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",an=b==="$"?r:/[%p]/.test(d)?u:"",V=Z[d],fn=/[defgprs%]/.test(d);N=N===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function X(l){var k=un,g=an,A,U,P;if(d==="c")g=V(l)+g,l="";else{l=+l;var z=l<0||1/l<0;if(l=isNaN(l)?c:V(Math.abs(l),N),O&&(l=zn(l)),z&&+l==0&&y!=="+"&&(z=!1),k=(z?y==="("?y:a:y==="-"||y==="("?"":y)+k,g=(d==="s"?K[8+_/3]:"")+g+(z&&y==="("?")":""),fn){for(A=-1,U=l.length;++A<U;)if(P=l.charCodeAt(A),48>P||P>57){g=(P===46?i+l.slice(A+1):l.slice(A))+g,l=l.slice(0,A);break}}}T&&!x&&(l=t(l,1/0));var R=k.length+l.length+g.length,M=R<j?new Array(j-R+1).join(m):"";switch(T&&x&&(l=t(M+l,M.length?j-g.length:1/0),M=""),w){case"<":l=k+l+g+M;break;case"=":l=k+M+l+g;break;case"^":l=M.slice(0,R=M.length>>1)+k+l+g+M.slice(R);break;default:l=M+k+l+g;break}return f(l)}return X.toString=function(){return h+""},X}function s(h,m){var w=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(S(m)/3)))*3,b=Math.pow(10,-y),x=K[8+y/3];return function(j){return w(b*j)+x}}return{format:o,formatPrefix:s}}var $,nn,tn;Fn({thousands:",",grouping:[3],currency:["$",""]});function Fn(n){return $=$n(n),nn=$.format,tn=$.formatPrefix,$}function En(n){return Math.max(0,-S(Math.abs(n)))}function qn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(S(t)/3)))*3-S(Math.abs(n)))}function Dn(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,S(t)-S(n))+1}function Tn(n){return function(){return n}}function In(n){return+n}var Q=[0,1];function v(n){return n}function L(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Tn(isNaN(t)?NaN:.5)}function Ln(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Cn(n,t,e){var r=n[0],i=n[1],f=t[0],u=t[1];return i<r?(r=L(i,r),f=e(u,f)):(r=L(r,i),f=e(f,u)),function(a){return f(r(a))}}function Bn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),f=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=L(n[u],n[u+1]),f[u]=e(t[u],t[u+1]);return function(a){var c=dn(n,a,1,r)-1;return f[c](i[c](a))}}function rn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Gn(){var n=Q,t=Q,e=B,r,i,f,u=v,a,c,o;function s(){var m=Math.min(n.length,t.length);return u!==v&&(u=Ln(n[0],n[m-1])),a=m>2?Bn:Cn,c=o=null,h}function h(m){return m==null||isNaN(m=+m)?f:(c||(c=a(n.map(r),t,e)))(r(u(m)))}return h.invert=function(m){return u(i((o||(o=a(t,n.map(r),p.interpolateNumber)))(m)))},h.domain=function(m){return arguments.length?(n=Array.from(m,In),s()):n.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),s()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),e=vn,s()},h.clamp=function(m){return arguments.length?(u=m?!0:v,s()):u!==v},h.interpolate=function(m){return arguments.length?(e=m,s()):e},h.unknown=function(m){return arguments.length?(f=m,h):f},function(m,w){return r=m,i=w,s()}}function en(){return Gn()(v,v)}function On(n,t,e,r){var i=W(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=qn(i,u))&&(r.precision=f),tn(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Dn(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=En(i))&&(r.precision=f-(r.type==="%")*2);break}}return nn(r)}function Vn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return On(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,u=r[i],a=r[f],c,o,s=10;for(a<u&&(o=u,u=a,a=o,o=i,i=f,f=o);s-- >0;){if(o=I(u,a,e),o===c)return r[i]=u,r[f]=a,t(r);if(o>0)u=Math.floor(u/o)*o,a=Math.ceil(a/o)*o;else if(o<0)u=Math.ceil(u*o)/o,a=Math.floor(a*o)/o;else break;c=o}return n},n}function on(){var n=en();return n.copy=function(){return rn(n,on())},cn.initRange.apply(n,arguments),Vn(n)}exports.bisector=C;exports.continuous=en;exports.copy=rn;exports.linear=on;exports.tickStep=W;
|