@layers-app/editor 2.3.26 → 2.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/{layers.DVKQizIF.js → layers.-5fXoQ-6.js} +1 -1
- package/dist/{layers.Clkd6QzV.js → layers.-MyptjBW.js} +1 -1
- package/dist/{layers.B8d7VeDT.js → layers.-wx1zEqJ.js} +1 -1
- package/dist/{layers.BwCX6Zbb.js → layers.0LcA_rgq.js} +1 -1
- package/dist/{layers.CTerPAMp.js → layers.0Wxw4e0U.js} +1 -1
- package/dist/{layers.iQJZ_Xeu.js → layers.0zHlfBIN.js} +1 -1
- package/dist/{layers.DHh_ktw0.js → layers.2PxDiFxd.js} +1 -1
- package/dist/{layers.COUhr6uI.js → layers.4iMWn5HG.js} +1 -1
- package/dist/{layers.DKol2KvM.js → layers.5x5XNzrm.js} +4 -4
- package/dist/layers.6fnszpXd.js +8 -0
- package/dist/{layers.PHBH_jv5.js → layers.8MkKSt0Y.js} +1 -1
- package/dist/{layers.CentuFDF.js → layers.9ZBOGQLg.js} +1 -1
- package/dist/layers.9uCqrH5t.js +1 -0
- package/dist/{layers.La9_RhzS.js → layers.B-IRKn1Q.js} +1 -1
- package/dist/{layers.Co7T1xJE.js → layers.B-gemM83.js} +1 -1
- package/dist/{layers.BrG8aBro.js → layers.B1angkYw.js} +3 -3
- package/dist/{layers.D4YoFuaj.js → layers.B2PhAbFc.js} +1 -1
- package/dist/layers.B2qVoax1.js +6 -0
- package/dist/{layers.ao5OlJwt.js → layers.B5PE4t55.js} +1 -1
- package/dist/{layers.D3Zev3TA.js → layers.B5h0mMpu.js} +1 -1
- package/dist/{layers.DQtQhZvL.js → layers.B5lOZ3cQ.js} +1 -1
- package/dist/{layers.CiVrPEVY.js → layers.B6Lp9fGn.js} +1 -1
- package/dist/{layers.DJU6wk5G.js → layers.B6MA5MMV.js} +2 -2
- package/dist/{layers.Cf_XdArM.js → layers.B7qUE86i.js} +1 -1
- package/dist/{layers.CpO-2uiC.js → layers.B8SPHnlM.js} +1 -1
- package/dist/{layers.BxTOsR6r.js → layers.BATpB8ml.js} +1 -1
- package/dist/{layers.DqqIh-A8.js → layers.BBXLw8OJ.js} +2 -2
- package/dist/{layers.CwLWDj2w.js → layers.BCrI3-J4.js} +1 -1
- package/dist/{layers.BX0Tr12G.js → layers.BED9gz8f.js} +1 -1
- package/dist/{layers.CXz-70Ss.js → layers.BENTJJay.js} +1 -1
- package/dist/{layers.DGmrObFJ.js → layers.BFnccP3F.js} +1 -1
- package/dist/{layers.DhaKt_Ib.js → layers.BGvvw-Fj.js} +1 -1
- package/dist/{layers.DGX8x4Aq.js → layers.BIr76blK.js} +1 -1
- package/dist/{layers.DeIghn5n.js → layers.BJpSrNfp.js} +1 -1
- package/dist/{layers.BWijKAoG.js → layers.BLS_i4TS.js} +1 -1
- package/dist/{layers.DxGRDSkU.js → layers.BMMRiCAE.js} +1 -1
- package/dist/{layers.DOZ9lw_c.js → layers.BPQLhCgm.js} +1 -1
- package/dist/{layers.C5LFGcNR.js → layers.BQRSwCZf.js} +1 -1
- package/dist/{layers.DX6jWh1g.js → layers.BQnHmGft.js} +1 -1
- package/dist/{layers.1slD_q-E.js → layers.BR1opg7m.js} +1 -1
- package/dist/{layers.DIHAcds6.js → layers.BRRUxaz9.js} +1 -1
- package/dist/{layers.DDPnaAO6.js → layers.BRaevnzS.js} +1 -1
- package/dist/{layers.DNNRV5v8.js → layers.BSudOVYg.js} +1 -1
- package/dist/{layers.CKabsp_P.js → layers.BSwDfDvh.js} +1 -1
- package/dist/{layers.Cj2VRaTj.js → layers.BU6qvWsR.js} +1 -1
- package/dist/{layers.BqdSKxto.js → layers.BUlPZ5NW.js} +2 -2
- package/dist/{layers.pZlo1ayW.js → layers.BUtrHATE.js} +1 -1
- package/dist/{layers.vuLDwDZL.js → layers.BY9BFn4g.js} +1 -1
- package/dist/{layers.BNM6fjOD.js → layers.B_gKJhwG.js} +1 -1
- package/dist/{layers.L8zpS39e.js → layers.B_voxFTc.js} +1 -1
- package/dist/{layers.DeZfSyvl.js → layers.BcdpiASN.js} +1 -1
- package/dist/{layers.COVqoaPF.js → layers.Bcrw950R.js} +1 -1
- package/dist/{layers.8ZfminSA.js → layers.Bgf_BfoV.js} +1 -1
- package/dist/{layers.CQbTyv-D.js → layers.BhVIYBRZ.js} +1 -1
- package/dist/{layers.pjDEZw4_.js → layers.Bhl9XKfX.js} +1 -1
- package/dist/{layers.BGXxE8XC.js → layers.BlRJwiGf.js} +1 -1
- package/dist/{layers.COsMLe2U.js → layers.BmSD2jtd.js} +1 -1
- package/dist/{layers.Dy0sAky2.js → layers.BpWOxVkg.js} +3 -3
- package/dist/{layers.D4DAfKZt.js → layers.BpZtMmV0.js} +1 -1
- package/dist/{layers.BbFbd8Ow.js → layers.BpulqPoM.js} +1 -1
- package/dist/{layers.C0Pwdwl4.js → layers.Bqh2HnC4.js} +2 -2
- package/dist/{layers.FuU1jzBD.js → layers.Br3FiCNG.js} +1 -1
- package/dist/{layers.BtCroBH3.js → layers.BsTCRiau.js} +1 -1
- package/dist/{layers.DWg9fKy9.js → layers.BxFmNPcR.js} +1 -1
- package/dist/{layers.D3RbYDJF.js → layers.ByVWugfj.js} +1 -1
- package/dist/{layers.CbYN0Ct8.js → layers.Bzhbgfqj.js} +1 -1
- package/dist/{layers.CaMOsOga.js → layers.BzodtQNp.js} +1 -1
- package/dist/{layers.BbwEz-Rj.js → layers.C-bfAcMP.js} +1 -1
- package/dist/{layers.DKj4u-bP.js → layers.C10pxuwK.js} +1 -1
- package/dist/{layers.o3REqDRL.js → layers.C15SoLOr.js} +1 -1
- package/dist/{layers.Dv7rQUn2.js → layers.C198O2sc.js} +1 -1
- package/dist/{layers.BUIDBWuk.js → layers.C24XGCcF.js} +1 -1
- package/dist/{layers.C55aLJYZ.js → layers.C6M4l-tz.js} +1 -1
- package/dist/{layers.CToUZtau.js → layers.C79L57-I.js} +3 -3
- package/dist/{layers.DG8Vbv0I.js → layers.C8hhx2TF.js} +1 -1
- package/dist/{layers.BeEKrOsf.js → layers.CBSQ5kq9.js} +1 -1
- package/dist/{layers.C0NOC776.js → layers.CCQmId75.js} +1 -1
- package/dist/{layers.DWyvX4RU.js → layers.CDBJ0zLj.js} +1 -1
- package/dist/{layers.B753Sw6t.js → layers.CGUDxtll.js} +1 -1
- package/dist/{layers.CFx1QgsK.js → layers.CJfVXKS6.js} +1 -1
- package/dist/{layers.DRmatRRM.js → layers.CKQVx2Pl.js} +3 -3
- package/dist/{layers.QNT0vjba.js → layers.CLlrhFsn.js} +1 -1
- package/dist/{layers.Bo3hX10v.js → layers.CLmUDe1R.js} +1 -1
- package/dist/{layers.D6KQMGBF.js → layers.CM-8CCZn.js} +1 -1
- package/dist/{layers.DqNymmvu.js → layers.CN8uxVVv.js} +1 -1
- package/dist/{layers.DpxQJ7Rb.js → layers.CQao3Dj8.js} +2 -2
- package/dist/{layers.C16qlCnq.js → layers.CQf8tCq6.js} +1 -1
- package/dist/{layers.CTKKxCDz.js → layers.CRmUdNhF.js} +3 -3
- package/dist/{layers.DOBKsisz.js → layers.CT3QcU3C.js} +1 -1
- package/dist/{layers.uZoB4wRw.js → layers.CTQG7H04.js} +1 -1
- package/dist/{layers.CtK8YnhM.js → layers.CUc2diiw.js} +1 -1
- package/dist/{layers.DmY1C1Yi.js → layers.CUu1Lezd.js} +1 -1
- package/dist/{layers.BuuJEfe5.js → layers.CV-el4dp.js} +1 -1
- package/dist/{layers.DRJE8nbJ.js → layers.CVDTVqwe.js} +1 -1
- package/dist/{layers.BRkRGLpe.js → layers.CVRBhwR6.js} +2 -2
- package/dist/{layers.BhUV8dgx.js → layers.CWC6C17J.js} +1 -1
- package/dist/{layers.rqkW9mFY.js → layers.CW_zKPAc.js} +1 -1
- package/dist/{layers.CYXYl4S4.js → layers.CXNYkJ6S.js} +1 -1
- package/dist/{layers.C4LXM5sQ.js → layers.C_cOO-AH.js} +1 -1
- package/dist/{layers.CqpG8AyW.js → layers.CfxexSAf.js} +1 -1
- package/dist/{layers.CAYrC2cX.js → layers.CgInx-gK.js} +1 -1
- package/dist/{layers.DapC_uhI.js → layers.CgjjPDiG.js} +1 -1
- package/dist/{layers.BNVrCebq.js → layers.CjLd-GDd.js} +1 -1
- package/dist/{layers.DXxebJIY.js → layers.CjO4vnQg.js} +1 -1
- package/dist/{layers.D4UZjKiD.js → layers.CkHlumb1.js} +1 -1
- package/dist/{layers.BhEqXs7L.js → layers.CkP7SK17.js} +1 -1
- package/dist/{layers.ZOsPWpjF.js → layers.Ckto9UI4.js} +1 -1
- package/dist/{layers.CV19_sfl.js → layers.ClRTyHzp.js} +1 -1
- package/dist/{layers.Cv4qBsoZ.js → layers.Cmgx6S8B.js} +1 -1
- package/dist/{layers.1ZUBBaE9.js → layers.CpHeWx16.js} +1 -1
- package/dist/{layers.DAGyoNkA.js → layers.CpfdZkjc.js} +1 -1
- package/dist/layers.CqXhG2Ra.js +1 -0
- package/dist/{layers.gBanBt1Q.js → layers.Cqlwct_8.js} +1 -1
- package/dist/{layers.C3b5Otdk.js → layers.Cx_yotFZ.js} +3 -3
- package/dist/{layers.xxmjlO9V.js → layers.Cxh8kXZ-.js} +8 -8
- package/dist/{layers.hdGM2zns.js → layers.CyM3cnso.js} +1 -1
- package/dist/{layers.B2Ak8uT3.js → layers.CyxLWTiD.js} +1 -1
- package/dist/{layers.qYxvP8qW.js → layers.Cz72BAWi.js} +1 -1
- package/dist/{layers.3RceEWj9.js → layers.Cz8rugFA.js} +1 -1
- package/dist/{layers.DL7836AF.js → layers.CzmJje2n.js} +4 -4
- package/dist/{layers.DvqVBxKB.js → layers.D-41Np6G.js} +1 -1
- package/dist/{layers.BZqO9Gum.js → layers.D1OlbZQs.js} +1 -1
- package/dist/{layers.Cnvews_b.js → layers.D2t3Pgxg.js} +1 -1
- package/dist/{layers.DJPs4-lV.js → layers.D3QU9r8V.js} +1 -1
- package/dist/{layers.BJ68wl6N.js → layers.D43rUbwd.js} +1 -1
- package/dist/{layers.gexyL6xt.js → layers.D5V2J52v.js} +1 -1
- package/dist/{layers.DTGwHNbR.js → layers.D7-KIh7G.js} +1 -1
- package/dist/{layers.Bxe51HIv.js → layers.D7xMYlvR.js} +7 -7
- package/dist/{layers.BgiypEt0.js → layers.D90DTDHO.js} +1 -1
- package/dist/{layers.CYqodYKM.js → layers.D9ZlU-w1.js} +1 -1
- package/dist/{layers.CLs6IZSt.js → layers.DEsqXSPe.js} +1 -1
- package/dist/{layers.BCTW0EQE.js → layers.DFSs7JIn.js} +1 -1
- package/dist/{layers.BS4LGM2k.js → layers.DGSh8iWE.js} +1 -1
- package/dist/{layers.CEGLWHqY.js → layers.DHdU8pgj.js} +1 -1
- package/dist/{layers.BVeRN2gy.js → layers.DJnVNBxT.js} +1 -1
- package/dist/{layers.ZX0sa40g.js → layers.DMFszlYQ.js} +1 -1
- package/dist/{layers.Df3IwTb3.js → layers.DMjwrQLj.js} +1 -1
- package/dist/{layers.06kxkdOn.js → layers.DNVP3P1o.js} +2 -2
- package/dist/{layers.CdmNOXjZ.js → layers.DPnLe5Cu.js} +1 -1
- package/dist/{layers.BBhuRA0J.js → layers.DQoPGgou.js} +1 -1
- package/dist/{layers.Dyh0nDnO.js → layers.DSE5yahl.js} +1 -1
- package/dist/{layers.BiMX0URe.js → layers.DTgr7Av6.js} +1 -1
- package/dist/{layers.BGBqw2WI.js → layers.DV2PmtDd.js} +1 -1
- package/dist/{layers.C6q5BWce.js → layers.DWDQjjRC.js} +1 -1
- package/dist/{layers.mQYFLWEM.js → layers.DXhWU4Fz.js} +2 -2
- package/dist/{layers.DxkTV6v5.js → layers.D_dfjtoo.js} +2 -2
- package/dist/{layers.ByJjzHy5.js → layers.DeR5a9Jr.js} +1 -1
- package/dist/{layers.WrKONvAx.js → layers.DewLutn2.js} +1 -1
- package/dist/{layers.CWlsjw9_.js → layers.Dh7tyajc.js} +1 -1
- package/dist/{layers.eAgubtQz.js → layers.Di2Rr_Vd.js} +1 -1
- package/dist/{layers.DTTEecQB.js → layers.Di8C3Bta.js} +3 -3
- package/dist/{layers.DwQurUDL.js → layers.DjsGZqEz.js} +3 -3
- package/dist/{layers.CBi3LX0E.js → layers.Dl-27lpK.js} +1 -1
- package/dist/{layers.D4Pmmu4D.js → layers.DlGF8YoD.js} +3 -3
- package/dist/{layers.DblyXM5V.js → layers.DnZH4xXh.js} +1 -1
- package/dist/{layers.D6dgG1LJ.js → layers.Dnx8G9xF.js} +1 -1
- package/dist/{layers.gL4XlBSL.js → layers.DoC-cHDf.js} +1 -1
- package/dist/{layers.DmYutf7j.js → layers.DovFbJ0Y.js} +4 -4
- package/dist/{layers.D5lA_5Wf.js → layers.DsvlpAHP.js} +1 -1
- package/dist/{layers.BHXiNUkl.js → layers.DtEFOZXB.js} +1 -1
- package/dist/{layers.DOOEq-VE.js → layers.DvXQ-pTF.js} +1 -1
- package/dist/{layers.D1R1Tj6y.js → layers.Dvsl4Z6Q.js} +3 -3
- package/dist/{layers.B8da1EXN.js → layers.DxviyPH0.js} +1 -1
- package/dist/{layers.DY-7AD21.js → layers.DyobFbup.js} +1 -1
- package/dist/{layers.CTFA2pN8.js → layers.DztkVG0m.js} +1 -1
- package/dist/{layers.Bcify-hp.js → layers.EEZV8wFB.js} +1 -1
- package/dist/{layers.5HQkdVEZ.js → layers.G03pElKT.js} +24 -24
- package/dist/{layers.DVfiUS4k.js → layers.Isn7SSqK.js} +1 -1
- package/dist/{layers.B4RiOCCc.js → layers.KLj8Npgz.js} +1 -1
- package/dist/{layers.eZC85wv2.js → layers.MEmvpEMR.js} +1 -1
- package/dist/{layers.5q5EeM59.js → layers.OZ4Cc6Um.js} +1 -1
- package/dist/{layers.DyI-Ahxd.js → layers.PLD4dRUX.js} +1 -1
- package/dist/{layers.BtWXLFqX.js → layers.SPZoSyri.js} +4411 -4375
- package/dist/{layers.80VCTD7v.js → layers.TYIYh5iX.js} +1 -1
- package/dist/{layers.iJbW6H2W.js → layers.U2qGM5y0.js} +1 -1
- package/dist/{layers.BzxJsM5r.js → layers.U5ecPFb1.js} +1 -1
- package/dist/{layers.CjiNgCn9.js → layers.UEo8emoH.js} +1 -1
- package/dist/{layers.E1BHe5Zw.js → layers.UN2ykxc0.js} +89 -89
- package/dist/{layers.Cl4iVYcX.js → layers.YYeCnW7C.js} +1 -1
- package/dist/{layers.0Xb9eyO9.js → layers.ZHyI88ul.js} +4 -4
- package/dist/{layers.5mynYo8l.js → layers.ZOQzZu_H.js} +1 -1
- package/dist/{layers.DXpNFNvL.js → layers.Zo4we89b.js} +1 -1
- package/dist/{layers.DQ64SqO9.js → layers._37hg6KG.js} +1 -1
- package/dist/{layers.BmJDSttA.js → layers.a5vzba3G.js} +1 -1
- package/dist/{layers.DYq970Cu.js → layers.aUlvhkbf.js} +1 -1
- package/dist/{layers.HLJCtZKR.js → layers.b30fGQDH.js} +5 -5
- package/dist/{layers.Ctra8nKc.js → layers.c8dvMx97.js} +1 -1
- package/dist/{layers.C2WkXc0V.js → layers.d3Az6rHI.js} +1 -1
- package/dist/{layers.CB8glfw3.js → layers.d45jrq_V.js} +1 -1
- package/dist/{layers.B1VodtLc.js → layers.e8KJO6-d.js} +1 -1
- package/dist/{layers.CVh2C_qH.js → layers.eYp5kkDn.js} +1 -1
- package/dist/{layers.NyxoOheY.js → layers.g2xae00l.js} +1 -1
- package/dist/{layers.ptNr6_U6.js → layers.hEZUFCgU.js} +1 -1
- package/dist/{layers.D_ZifgOj.js → layers.j0Ega8H8.js} +1 -1
- package/dist/{layers.R_WRqNBM.js → layers.jamH01v0.js} +1 -1
- package/dist/{layers.kaRYlXdk.js → layers.jsZFZNE1.js} +1 -1
- package/dist/{layers.B9WauHjc.js → layers.lugLnedW.js} +1 -1
- package/dist/{layers.Dqt0E0gt.js → layers.mBNiXe38.js} +1 -1
- package/dist/{layers.BmJ6umV_.js → layers.rq_adk4i.js} +1 -1
- package/dist/{layers.DvO11OLY.js → layers.sXoUryh2.js} +1 -1
- package/dist/{layers.D2rpvr4Y.js → layers.tAkfRECQ.js} +1 -1
- package/dist/{layers.B2fXuMiK.js → layers.uDM07tKr.js} +2 -2
- package/dist/{layers.93mWP3q1.js → layers.vGeAi59V.js} +3 -3
- package/dist/{layers.5A202pak.js → layers.vf7X51OR.js} +1 -1
- package/dist/{layers.B2n3wluV.js → layers.zcMBgJ-u.js} +3 -3
- package/dist/{layers.sczFo7uR.js → layers.zhRc7F4d.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.C1pi18JI.js +0 -6
- package/dist/layers.LwuXnrVV.js +0 -1
- package/dist/layers.tH0oZLYW.js +0 -8
- package/dist/layers.yrvXw0Eh.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const bn=require("./layers.DKol2KvM.js"),zt={};function It(n,r){const t=zt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return rt(n,e,u)}function rt(n,r,t){if(Tt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Wn(n.children,r,t)}return Array.isArray(n)?Wn(n,r,t):""}function Wn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=rt(n[u],r,t);return e.join("")}function Tt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Y(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Qn={}.hasOwnProperty;function Bt(n){const r={};let t=-1;for(;++t<n.length;)Ot(r,n[t]);return r}function Ot(n,r){let t;for(t in r){const u=(Qn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Qn.call(u,l)||(u[l]=[]);const a=i[l];Lt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Lt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const Dt=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),v=cn(/[\dA-Za-z]/),Pt=cn(/[#-'*+\--9=?A-Z^-~]/);function zn(n){return n!==null&&(n<32||n===127)}const In=cn(/\d/),_t=cn(/[\dA-Fa-f]/),Mt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function Z(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const jt=cn(Dt),Rt=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function L(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(m){return z(m)?(n.enter(t),a(m)):r(m)}function a(m){return z(m)&&i++<u?(n.consume(m),a):(n.exit(t),r(m))}}const qt={tokenize:Ht};function Ht(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),L(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const m=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=m),t=m,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Nt={tokenize:Vt},Un={tokenize:Wt};function Vt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,m,c)(F)}return c(F)}function m(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}b(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Un,p,f)(F)}function p(F){return u&&j(),b(e),x(F)}function f(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Un,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),b(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),b(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(b(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function b(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Wt(n,r,t){return L(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $n(n){if(n===null||Z(n)||Rt(n))return 1;if(jt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const Tn={name:"attention",tokenize:Ut,resolveAll:Qt};function Qt(n,r){let t=-1,e,u,i,l,a,m,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;m=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);Zn(f,-m),Zn(x,m),l={type:m>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Y(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Y(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Y(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Y(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Y(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function Ut(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=$n(e);let i;return l;function l(m){return i=m,n.enter("attentionSequence"),a(m)}function a(m){if(m===i)return n.consume(m),a;const c=n.exit("attentionSequence"),p=$n(m),f=!p||p===2&&u||t.includes(m),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?f:f&&(u||!x)),c._close=!!(i===42?x:x&&(p||!f)),r(m)}}function Zn(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const $t={name:"autolink",tokenize:Zt};function Zt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||v(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,m):(h===43||h===45||h===46||v(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function m(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||zn(h)?t(h):(n.consume(h),m)}function c(h){return h===64?(n.consume(h),p):Pt(h)?(n.consume(h),c):t(h)}function p(h){return v(h)?f(h):t(h)}function f(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||v(h))&&e++<63){const A=h===45?x:f;return n.consume(h),A}return t(h)}}const Fn={tokenize:Yt,partial:!0};function Yt(n,r,t){return e;function e(i){return z(i)?L(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const it={name:"blockQuote",tokenize:Gt,continuation:{tokenize:Jt},exit:Kt};function Gt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Jt(n,r,t){const e=this;return u;function u(l){return z(l)?L(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(it,r,t)(l)}}function Kt(n){n.exit("blockQuote")}const ut={name:"characterEscape",tokenize:Xt};function Xt(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Mt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const Yn=document.createElement("i");function Dn(n){const r="&"+n+";";Yn.innerHTML=r;const t=Yn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const lt={name:"characterReference",tokenize:vt};function vt(n,r,t){const e=this;let u=0,i,l;return a;function a(f){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),m}function m(f){return f===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(f),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=v,p(f))}function c(f){return f===88||f===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(f),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=_t,p):(n.enter("characterReferenceValue"),i=7,l=In,p(f))}function p(f){if(f===59&&u){const x=n.exit("characterReferenceValue");return l===v&&!Dn(e.sliceSerialize(x))?t(f):(n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(f)&&u++<i?(n.consume(f),p):t(f)}}const Gn={tokenize:te,partial:!0},Jn={name:"codeFenced",tokenize:ne,concrete:!0};function ne(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return m;function m(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?L(n,f,"whitespace")(k):f(k))}function f(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Gn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),f(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),L(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?f(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),b}function b(k){return i>0&&z(k)?L(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Gn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),y}function y(w){return k.enter("codeFencedFence"),z(w)?L(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?L(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function te(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const wn={name:"codeIndented",tokenize:re},ee={tokenize:ie,partial:!0};function re(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),L(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?m(c):C(c)?n.attempt(ee,l,m)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function m(c){return n.exit("codeIndented"),r(c)}}function ie(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):L(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ue={name:"codeText",tokenize:oe,resolve:le,previous:ae};function le(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function ae(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function oe(n,r,t){let e=0,u,i;return l;function l(f){return n.enter("codeText"),n.enter("codeTextSequence"),a(f)}function a(f){return f===96?(n.consume(f),e++,a):(n.exit("codeTextSequence"),m(f))}function m(f){return f===null?t(f):f===32?(n.enter("space"),n.consume(f),n.exit("space"),m):f===96?(i=n.enter("codeTextSequence"),u=0,p(f)):C(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),m):(n.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||C(f)?(n.exit("codeTextData"),m(f)):(n.consume(f),c)}function p(f){return f===96?(n.consume(f),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(f)):(i.type="codeTextData",c(f))}}function at(n){const r={};let t=-1,e,u,i,l,a,m,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(m=e[1]._tokenizer.events,i=0,i<m.length&&m[i][1].type==="lineEndingBlank"&&(i+=2),i<m.length&&m[i][1].type==="content"))for(;++i<m.length&&m[i][1].type!=="content";)m[i][1].type==="chunkText"&&(m[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,se(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function se(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,m=[],c={};let p,f,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const b=a.slice(M[x],M[x+1]),j=i.pop();m.unshift([j,j+b.length-1]),tn(n,j,2,b)}for(x=-1;++x<m.length;)c[A+m[x][0]]=A+m[x][1],A+=m[x][1]-m[x][0]-1;return c}const ce={tokenize:fe,resolve:pe},he={tokenize:me,partial:!0};function pe(n){return at(n),n}function fe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(he,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function me(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),L(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function ot(n,r,t,e,u,i,l,a,m){const c=m||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(b),n.exit(i),x):b===null||b===32||b===41||zn(b)?t(b):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(b))}function x(b){return b===62?(n.enter(i),n.consume(b),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(n.exit("chunkString"),n.exit(a),x(b)):b===null||b===60||C(b)?t(b):(n.consume(b),b===92?A:h)}function A(b){return b===60||b===62||b===92?(n.consume(b),h):h(b)}function I(b){return!p&&(b===null||b===41||Z(b))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(b)):p<c&&b===40?(n.consume(b),p++,I):b===41?(n.consume(b),p--,I):b===null||b===32||b===40||zn(b)?t(b):(n.consume(b),b===92?M:I)}function M(b){return b===40||b===41||b===92?(n.consume(b),I):I(b)}}function st(n,r,t,e,u,i){const l=this;let a=0,m;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!m||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),m||(m=!z(h)),h===92?x:f)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,f):f(h)}}function ct(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,m):t(x)}function m(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),m(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),L(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?f:p)}function f(x){return x===l||x===92?(n.consume(x),p):p(x)}}function dn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?L(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xe={name:"definition",tokenize:ke},ge={tokenize:de,partial:!0};function ke(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return st.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return Z(h)?dn(n,c)(h):c(h)}function c(h){return ot(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(ge,f,f)(h)}function f(h){return z(h)?L(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return Z(a)?dn(n,u)(a):t(a)}function u(a){return ct(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?L(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const be={name:"hardBreakEscape",tokenize:ye};function ye(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Se={name:"headingAtx",tokenize:Ee,resolve:Fe};function Fe(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function Ee(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||Z(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),m(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?L(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function m(p){return p===35?(n.consume(p),m):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||Z(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ce=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Kn=["pre","script","style","textarea"],we={name:"htmlFlow",tokenize:Te,resolveTo:Ie,concrete:!0},Ae={tokenize:Oe,partial:!0},ze={tokenize:Be,partial:!0};function Ie(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Te(n,r,t){const e=this;let u,i,l,a,m;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),f}function f(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const K="CDATA[";return s===K.charCodeAt(a++)?(n.consume(s),a===K.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||Z(s)){const K=s===47,hn=l.toLowerCase();return!K&&!i&&Kn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ce.includes(l.toLowerCase())?(u=6,K?(n.consume(s),b):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||v(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function b(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||v(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),m=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===m?(n.consume(s),m=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||Z(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),y):t(s)}function y(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),y):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),J):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ae,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(ze,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",G):S(s)}function G(s){if(s===62){const K=l.toLowerCase();return Kn.includes(K)?(n.consume(s),J):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),G):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),J):s===45&&u===2?(n.consume(s),o):S(s)}function J(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Be(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function Oe(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Fn,r,t)}}const Le={name:"htmlText",tokenize:De};function De(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),m}function m(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function f(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=f,W(o)):(n.consume(o),f)}function x(o){return o===45?(n.consume(o),h):f(o)}function h(o){return o===62?U(o):o===45?x(o):f(o)}function A(o){const J="CDATA[";return o===J.charCodeAt(i++)?(n.consume(o),i===J.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),b):I(o)}function b(o){return o===62?U(o):o===93?(n.consume(o),b):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||v(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||v(o)?(n.consume(o),H):o===47||o===62||Z(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||v(o)?(n.consume(o),V):y(o)}function y(o){return o===61?(n.consume(o),S):C(o)?(l=y,W(o)):z(o)?(n.consume(o),y):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||Z(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||Z(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),G}function G(o){return z(o)?L(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Pn={name:"labelEnd",tokenize:qe,resolveTo:Re,resolveAll:je},Pe={tokenize:He},_e={tokenize:Ne},Me={tokenize:Ve};function je(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function Re(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const m={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",m,r],["enter",c,r]],a=Y(a,n.slice(i+1,i+e+3)),a=Y(a,[["enter",p,r]]),a=Y(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Y(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Y(a,n.slice(l+1)),a=Y(a,[["exit",m,r]]),tn(n,i,n.length,a),n}function qe(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?f(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),m):t(x)}function m(x){return x===40?n.attempt(Pe,p,l?p:f)(x):x===91?n.attempt(_e,p,l?c:f)(x):l?p(x):f(x)}function c(x){return n.attempt(Me,p,f)(x)}function p(x){return r(x)}function f(x){return i._balanced=!0,t(x)}}function He(n,r,t){return e;function e(f){return n.enter("resource"),n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),u}function u(f){return Z(f)?dn(n,i)(f):i(f)}function i(f){return f===41?p(f):ot(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return Z(f)?dn(n,m)(f):p(f)}function a(f){return t(f)}function m(f){return f===34||f===39||f===40?ct(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return Z(f)?dn(n,p)(f):p(f)}function p(f){return f===41?(n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),n.exit("resource"),r):t(f)}}function Ne(n,r,t){const e=this;return u;function u(a){return st.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Ve(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const We={name:"labelStartImage",tokenize:Qe,resolveAll:Pn.resolveAll};function Qe(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const Ue={name:"labelStartLink",tokenize:$e,resolveAll:Pn.resolveAll};function $e(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const An={name:"lineEnding",tokenize:Ze};function Ze(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),L(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ye};function Ye(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),m(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function m(c){return c===u?(n.consume(c),e++,m):(n.exit("thematicBreakSequence"),z(c)?L(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Ke,continuation:{tokenize:Xe},exit:nr},Ge={tokenize:tr,partial:!0},Je={tokenize:ve,partial:!0};function Ke(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:In(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)}function m(h){return In(h)&&++l<10?(n.consume(h),m):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Fn,e.interrupt?t:p,n.attempt(Ge,x,f))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function f(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function Xe(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Fn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,L(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Je,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,L(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ve(n,r,t){const e=this;return L(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function nr(n){n.exit(this.containerState.type)}function tr(n,r,t){const e=this;return L(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Xn={name:"setextUnderline",tokenize:rr,resolveTo:er};function er(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function rr(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,f;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){f=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||f)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?L(n,m,"lineSuffix")(c):m(c))}function m(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const ir={tokenize:ur};function ur(n){const r=this,t=n.attempt(Fn,e,n.attempt(this.parser.constructs.flowInitial,u,L(n,n.attempt(this.parser.constructs.flow,u,n.attempt(ce,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const lr={resolveAll:pt()},ar=ht("string"),or=ht("text");function ht(n){return{tokenize:r,resolveAll:pt(n==="text"?sr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),m}function m(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),m)}function c(p){if(p===null)return!0;const f=u[p];let x=-1;if(f)for(;++x<f.length;){const h=f[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function pt(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function sr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,m;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)m=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||m||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function cr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const m={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:f};let p=r.tokenize.call(c,m);return r.resolveAll&&i.push(r),c;function f(y){return l=Y(l,y),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(y,S){return pr(h(y),S)}function h(y){return hr(l,y)}function A(){const{line:y,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:y,column:S,offset:P,_index:R,_bufferIndex:w}}function I(y){u[y.line]=y.column,V()}function M(){let y;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(y=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===y&&e._bufferIndex<S.length;)b(S.charCodeAt(e._bufferIndex));else b(S)}}function b(y){p=p(y)}function j(y){C(y)?(e.line++,e.column=1,e.offset+=y===-3?2:1,V()):y!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=y}function F(y,S){const P=S||{};return P.type=y,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(y){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(y,S){H(y,S.from)}function k(y,S){S.restore()}function T(y,S){return P;function P(R,w,U){let W,G,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):J(R);function J(Q){return pn;function pn(an){const fn=an!==null&&Q[an],mn=an!==null&&Q.null,En=[...Array.isArray(fn)?fn:fn?[fn]:[],...Array.isArray(mn)?mn:mn?[mn]:[]];return rn(En)(an)}}function rn(Q){return W=Q,G=0,Q.length===0?U:s(Q[G])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,m,K,hn)(an)}}function K(Q){return y(en,o),w}function hn(Q){return o.restore(),++G<W.length?s(W[G]):U}}}function H(y,S){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&tn(c.events,S,c.events.length-S,y.resolve(c.events.slice(S),c)),y.resolveTo&&(c.events=y.resolveTo(c.events,c))}function N(){const y=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=y,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function hr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function pr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
|
|
1
|
+
"use strict";const bn=require("./layers.5x5XNzrm.js"),zt={};function It(n,r){const t=zt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return rt(n,e,u)}function rt(n,r,t){if(Tt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Wn(n.children,r,t)}return Array.isArray(n)?Wn(n,r,t):""}function Wn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=rt(n[u],r,t);return e.join("")}function Tt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Y(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Qn={}.hasOwnProperty;function Bt(n){const r={};let t=-1;for(;++t<n.length;)Ot(r,n[t]);return r}function Ot(n,r){let t;for(t in r){const u=(Qn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Qn.call(u,l)||(u[l]=[]);const a=i[l];Lt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Lt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const Dt=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),v=cn(/[\dA-Za-z]/),Pt=cn(/[#-'*+\--9=?A-Z^-~]/);function zn(n){return n!==null&&(n<32||n===127)}const In=cn(/\d/),_t=cn(/[\dA-Fa-f]/),Mt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function Z(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const jt=cn(Dt),Rt=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function L(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(m){return z(m)?(n.enter(t),a(m)):r(m)}function a(m){return z(m)&&i++<u?(n.consume(m),a):(n.exit(t),r(m))}}const qt={tokenize:Ht};function Ht(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),L(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const m=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=m),t=m,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Nt={tokenize:Vt},Un={tokenize:Wt};function Vt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,m,c)(F)}return c(F)}function m(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}b(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Un,p,f)(F)}function p(F){return u&&j(),b(e),x(F)}function f(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Un,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),b(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),b(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(b(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function b(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Wt(n,r,t){return L(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $n(n){if(n===null||Z(n)||Rt(n))return 1;if(jt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const Tn={name:"attention",tokenize:Ut,resolveAll:Qt};function Qt(n,r){let t=-1,e,u,i,l,a,m,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;m=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);Zn(f,-m),Zn(x,m),l={type:m>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[e][1].end)},a={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:m>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Y(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Y(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Y(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Y(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Y(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function Ut(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=$n(e);let i;return l;function l(m){return i=m,n.enter("attentionSequence"),a(m)}function a(m){if(m===i)return n.consume(m),a;const c=n.exit("attentionSequence"),p=$n(m),f=!p||p===2&&u||t.includes(m),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?f:f&&(u||!x)),c._close=!!(i===42?x:x&&(p||!f)),r(m)}}function Zn(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const $t={name:"autolink",tokenize:Zt};function Zt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||v(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,m):(h===43||h===45||h===46||v(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function m(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||zn(h)?t(h):(n.consume(h),m)}function c(h){return h===64?(n.consume(h),p):Pt(h)?(n.consume(h),c):t(h)}function p(h){return v(h)?f(h):t(h)}function f(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||v(h))&&e++<63){const A=h===45?x:f;return n.consume(h),A}return t(h)}}const Fn={tokenize:Yt,partial:!0};function Yt(n,r,t){return e;function e(i){return z(i)?L(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const it={name:"blockQuote",tokenize:Gt,continuation:{tokenize:Jt},exit:Kt};function Gt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Jt(n,r,t){const e=this;return u;function u(l){return z(l)?L(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(it,r,t)(l)}}function Kt(n){n.exit("blockQuote")}const ut={name:"characterEscape",tokenize:Xt};function Xt(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Mt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const Yn=document.createElement("i");function Dn(n){const r="&"+n+";";Yn.innerHTML=r;const t=Yn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const lt={name:"characterReference",tokenize:vt};function vt(n,r,t){const e=this;let u=0,i,l;return a;function a(f){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),m}function m(f){return f===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(f),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=v,p(f))}function c(f){return f===88||f===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(f),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=_t,p):(n.enter("characterReferenceValue"),i=7,l=In,p(f))}function p(f){if(f===59&&u){const x=n.exit("characterReferenceValue");return l===v&&!Dn(e.sliceSerialize(x))?t(f):(n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(f)&&u++<i?(n.consume(f),p):t(f)}}const Gn={tokenize:te,partial:!0},Jn={name:"codeFenced",tokenize:ne,concrete:!0};function ne(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return m;function m(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?L(n,f,"whitespace")(k):f(k))}function f(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Gn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),f(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),L(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?f(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),b}function b(k){return i>0&&z(k)?L(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Gn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),y}function y(w){return k.enter("codeFencedFence"),z(w)?L(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?L(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function te(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const wn={name:"codeIndented",tokenize:re},ee={tokenize:ie,partial:!0};function re(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),L(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?m(c):C(c)?n.attempt(ee,l,m)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function m(c){return n.exit("codeIndented"),r(c)}}function ie(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):L(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ue={name:"codeText",tokenize:oe,resolve:le,previous:ae};function le(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function ae(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function oe(n,r,t){let e=0,u,i;return l;function l(f){return n.enter("codeText"),n.enter("codeTextSequence"),a(f)}function a(f){return f===96?(n.consume(f),e++,a):(n.exit("codeTextSequence"),m(f))}function m(f){return f===null?t(f):f===32?(n.enter("space"),n.consume(f),n.exit("space"),m):f===96?(i=n.enter("codeTextSequence"),u=0,p(f)):C(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),m):(n.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||C(f)?(n.exit("codeTextData"),m(f)):(n.consume(f),c)}function p(f){return f===96?(n.consume(f),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(f)):(i.type="codeTextData",c(f))}}function at(n){const r={};let t=-1,e,u,i,l,a,m,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(m=e[1]._tokenizer.events,i=0,i<m.length&&m[i][1].type==="lineEndingBlank"&&(i+=2),i<m.length&&m[i][1].type==="content"))for(;++i<m.length&&m[i][1].type!=="content";)m[i][1].type==="chunkText"&&(m[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,se(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function se(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,m=[],c={};let p,f,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const b=a.slice(M[x],M[x+1]),j=i.pop();m.unshift([j,j+b.length-1]),tn(n,j,2,b)}for(x=-1;++x<m.length;)c[A+m[x][0]]=A+m[x][1],A+=m[x][1]-m[x][0]-1;return c}const ce={tokenize:fe,resolve:pe},he={tokenize:me,partial:!0};function pe(n){return at(n),n}function fe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(he,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function me(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),L(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function ot(n,r,t,e,u,i,l,a,m){const c=m||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(b),n.exit(i),x):b===null||b===32||b===41||zn(b)?t(b):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(b))}function x(b){return b===62?(n.enter(i),n.consume(b),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(n.exit("chunkString"),n.exit(a),x(b)):b===null||b===60||C(b)?t(b):(n.consume(b),b===92?A:h)}function A(b){return b===60||b===62||b===92?(n.consume(b),h):h(b)}function I(b){return!p&&(b===null||b===41||Z(b))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(b)):p<c&&b===40?(n.consume(b),p++,I):b===41?(n.consume(b),p--,I):b===null||b===32||b===40||zn(b)?t(b):(n.consume(b),b===92?M:I)}function M(b){return b===40||b===41||b===92?(n.consume(b),I):I(b)}}function st(n,r,t,e,u,i){const l=this;let a=0,m;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!m||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),m||(m=!z(h)),h===92?x:f)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,f):f(h)}}function ct(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,m):t(x)}function m(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),m(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),L(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?f:p)}function f(x){return x===l||x===92?(n.consume(x),p):p(x)}}function dn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?L(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xe={name:"definition",tokenize:ke},ge={tokenize:de,partial:!0};function ke(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return st.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),m):t(h)}function m(h){return Z(h)?dn(n,c)(h):c(h)}function c(h){return ot(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(ge,f,f)(h)}function f(h){return z(h)?L(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return Z(a)?dn(n,u)(a):t(a)}function u(a){return ct(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?L(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const be={name:"hardBreakEscape",tokenize:ye};function ye(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Se={name:"headingAtx",tokenize:Ee,resolve:Fe};function Fe(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function Ee(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||Z(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),m(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?L(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function m(p){return p===35?(n.consume(p),m):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||Z(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ce=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Kn=["pre","script","style","textarea"],we={name:"htmlFlow",tokenize:Te,resolveTo:Ie,concrete:!0},Ae={tokenize:Oe,partial:!0},ze={tokenize:Be,partial:!0};function Ie(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Te(n,r,t){const e=this;let u,i,l,a,m;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),f}function f(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const K="CDATA[";return s===K.charCodeAt(a++)?(n.consume(s),a===K.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||Z(s)){const K=s===47,hn=l.toLowerCase();return!K&&!i&&Kn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ce.includes(l.toLowerCase())?(u=6,K?(n.consume(s),b):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||v(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function b(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||v(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),m=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===m?(n.consume(s),m=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||Z(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),y):t(s)}function y(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),y):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),J):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ae,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(ze,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",G):S(s)}function G(s){if(s===62){const K=l.toLowerCase();return Kn.includes(K)?(n.consume(s),J):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),G):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),J):s===45&&u===2?(n.consume(s),o):S(s)}function J(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),J)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Be(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function Oe(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Fn,r,t)}}const Le={name:"htmlText",tokenize:De};function De(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),m}function m(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function f(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=f,W(o)):(n.consume(o),f)}function x(o){return o===45?(n.consume(o),h):f(o)}function h(o){return o===62?U(o):o===45?x(o):f(o)}function A(o){const J="CDATA[";return o===J.charCodeAt(i++)?(n.consume(o),i===J.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),b):I(o)}function b(o){return o===62?U(o):o===93?(n.consume(o),b):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||v(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||v(o)?(n.consume(o),H):o===47||o===62||Z(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||v(o)?(n.consume(o),V):y(o)}function y(o){return o===61?(n.consume(o),S):C(o)?(l=y,W(o)):z(o)?(n.consume(o),y):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||Z(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||Z(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),G}function G(o){return z(o)?L(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Pn={name:"labelEnd",tokenize:qe,resolveTo:Re,resolveAll:je},Pe={tokenize:He},_e={tokenize:Ne},Me={tokenize:Ve};function je(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function Re(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const m={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",m,r],["enter",c,r]],a=Y(a,n.slice(i+1,i+e+3)),a=Y(a,[["enter",p,r]]),a=Y(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Y(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Y(a,n.slice(l+1)),a=Y(a,[["exit",m,r]]),tn(n,i,n.length,a),n}function qe(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?f(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),m):t(x)}function m(x){return x===40?n.attempt(Pe,p,l?p:f)(x):x===91?n.attempt(_e,p,l?c:f)(x):l?p(x):f(x)}function c(x){return n.attempt(Me,p,f)(x)}function p(x){return r(x)}function f(x){return i._balanced=!0,t(x)}}function He(n,r,t){return e;function e(f){return n.enter("resource"),n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),u}function u(f){return Z(f)?dn(n,i)(f):i(f)}function i(f){return f===41?p(f):ot(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return Z(f)?dn(n,m)(f):p(f)}function a(f){return t(f)}function m(f){return f===34||f===39||f===40?ct(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return Z(f)?dn(n,p)(f):p(f)}function p(f){return f===41?(n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),n.exit("resource"),r):t(f)}}function Ne(n,r,t){const e=this;return u;function u(a){return st.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Ve(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const We={name:"labelStartImage",tokenize:Qe,resolveAll:Pn.resolveAll};function Qe(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const Ue={name:"labelStartLink",tokenize:$e,resolveAll:Pn.resolveAll};function $e(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const An={name:"lineEnding",tokenize:Ze};function Ze(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),L(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ye};function Ye(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),m(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function m(c){return c===u?(n.consume(c),e++,m):(n.exit("thematicBreakSequence"),z(c)?L(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Ke,continuation:{tokenize:Xe},exit:nr},Ge={tokenize:tr,partial:!0},Je={tokenize:ve,partial:!0};function Ke(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:In(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(h)}return t(h)}function m(h){return In(h)&&++l<10?(n.consume(h),m):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Fn,e.interrupt?t:p,n.attempt(Ge,x,f))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function f(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function Xe(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Fn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,L(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Je,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,L(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ve(n,r,t){const e=this;return L(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function nr(n){n.exit(this.containerState.type)}function tr(n,r,t){const e=this;return L(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Xn={name:"setextUnderline",tokenize:rr,resolveTo:er};function er(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function rr(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,f;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){f=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||f)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?L(n,m,"lineSuffix")(c):m(c))}function m(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const ir={tokenize:ur};function ur(n){const r=this,t=n.attempt(Fn,e,n.attempt(this.parser.constructs.flowInitial,u,L(n,n.attempt(this.parser.constructs.flow,u,n.attempt(ce,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const lr={resolveAll:pt()},ar=ht("string"),or=ht("text");function ht(n){return{tokenize:r,resolveAll:pt(n==="text"?sr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),m}function m(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),m)}function c(p){if(p===null)return!0;const f=u[p];let x=-1;if(f)for(;++x<f.length;){const h=f[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function pt(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function sr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,m;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)m=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||m||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function cr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const m={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:f};let p=r.tokenize.call(c,m);return r.resolveAll&&i.push(r),c;function f(y){return l=Y(l,y),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(y,S){return pr(h(y),S)}function h(y){return hr(l,y)}function A(){const{line:y,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:y,column:S,offset:P,_index:R,_bufferIndex:w}}function I(y){u[y.line]=y.column,V()}function M(){let y;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(y=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===y&&e._bufferIndex<S.length;)b(S.charCodeAt(e._bufferIndex));else b(S)}}function b(y){p=p(y)}function j(y){C(y)?(e.line++,e.column=1,e.offset+=y===-3?2:1,V()):y!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=y}function F(y,S){const P=S||{};return P.type=y,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(y){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(y,S){H(y,S.from)}function k(y,S){S.restore()}function T(y,S){return P;function P(R,w,U){let W,G,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):J(R);function J(Q){return pn;function pn(an){const fn=an!==null&&Q[an],mn=an!==null&&Q.null,En=[...Array.isArray(fn)?fn:fn?[fn]:[],...Array.isArray(mn)?mn:mn?[mn]:[]];return rn(En)(an)}}function rn(Q){return W=Q,G=0,Q.length===0?U:s(Q[G])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,m,K,hn)(an)}}function K(Q){return y(en,o),w}function hn(Q){return o.restore(),++G<W.length?s(W[G]):U}}}function H(y,S){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&tn(c.events,S,c.events.length-S,y.resolve(c.events.slice(S),c)),y.resolveTo&&(c.events=y.resolveTo(c.events,c))}function N(){const y=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=y,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function hr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function pr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
|
|
2
2
|
`;break}case-3:{l=`\r
|
|
3
3
|
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&u)continue;l=" ";break}default:l=String.fromCharCode(i)}u=i===-2,e.push(l)}return e.join("")}const fr={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:it},mr={91:xe},xr={[-2]:wn,[-1]:wn,32:wn},gr={35:Se,42:yn,45:[Xn,yn],60:we,61:Xn,95:yn,96:Jn,126:Jn},kr={38:lt,92:ut},dr={[-5]:An,[-4]:An,[-3]:An,33:We,38:lt,42:Tn,60:[$t,Le],91:Ue,92:[be,ut],93:Pn,95:Tn,96:ue},br={null:[Tn,lr]},yr={null:[42,95]},Sr={null:[]},Fr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:yr,contentInitial:mr,disable:Sr,document:fr,flow:gr,flowInitial:xr,insideSpan:br,string:kr,text:dr},Symbol.toStringTag,{value:"Module"}));function Er(n){const t=Bt([Fr,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:u(qt),document:u(Nt),flow:u(ir),string:u(ar),text:u(or)};return e;function u(i){return l;function l(a){return cr(e,i,a)}}}const vn=/[\0\t\n\r]/g;function Cr(){let n=1,r="",t=!0,e;return u;function u(i,l,a){const m=[];let c,p,f,x,h;for(i=r+i.toString(l),f=0,r="",t&&(i.charCodeAt(0)===65279&&f++,t=void 0);f<i.length;){if(vn.lastIndex=f,c=vn.exec(i),x=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(x),!c){r=i.slice(f);break}if(h===10&&f===x&&e)m.push(-3),e=void 0;else switch(e&&(m.push(-5),e=void 0),f<x&&(m.push(i.slice(f,x)),n+=x-f),h){case 0:{m.push(65533),n++;break}case 9:{for(p=Math.ceil(n/4)*4,m.push(-2);n++<p;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:e=!0,n=1}f=x+1}return a&&(e&&m.push(-5),r&&m.push(r),m.push(null)),m}}function wr(n){for(;!at(n););return n}function ft(n,r){const t=Number.parseInt(n,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Ar=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zr(n){return n.replace(Ar,Ir)}function Ir(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return ft(t.slice(i?2:1),i?16:10)}return Dn(t)||n}function Sn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?nt(n.position):"start"in n||"end"in n?nt(n):"line"in n||"column"in n?Bn(n):""}function Bn(n){return tt(n&&n.line)+":"+tt(n&&n.column)}function nt(n){return Bn(n&&n.start)+"-"+Bn(n&&n.end)}function tt(n){return n&&typeof n=="number"?n:1}const mt={}.hasOwnProperty,xt=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Tr(t)(wr(Er(t).document().write(Cr()(n,r,!0))))};function Tr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Nn),autolinkProtocol:y,autolinkEmail:y,atxHeading:a(Rn),blockQuote:a(En),characterEscape:y,characterReference:y,codeFenced:a(jn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(jn,m),codeText:a(dt,m),codeTextData:y,data:y,codeFlowValue:y,definition:a(bt),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(yt),hardBreakEscape:a(qn),hardBreakTrailing:a(qn),htmlFlow:a(Hn,m),htmlFlowData:y,htmlText:a(Hn,m),htmlTextData:y,image:a(St),label:m,link:a(Nn),listItem:a(Ft),listItemValue:A,listOrdered:a(Vn,h),listUnordered:a(Vn),paragraph:a(Et),reference:hn,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(Rn),strong:a(Ct),thematicBreak:a(At)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:mn,autolinkProtocol:fn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:b,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(w),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:J,labelText:o,lineEnding:P,link:p(G),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:K,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};gt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:c,exit:f,buffer:m,resume:x,setData:i,getData:l},B=[];let O=-1;for(;++O<g.length;)if(g[O][1].type==="listOrdered"||g[O][1].type==="listUnordered")if(g[O][0]==="enter")B.push(O);else{const X=B.pop();O=u(g,X,O)}for(O=-1;++O<g.length;){const X=r[g[O][0]];mt.call(X,g[O][1].type)&&X[g[O][1].type].call(Object.assign({sliceSerialize:g[O][2].sliceSerialize},E),g[O][1])}if(E.tokenStack.length>0){const X=E.tokenStack[E.tokenStack.length-1];(X[1]||et).call(E,void 0,X[0])}for(d.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},O=-1;++O<r.transforms.length;)d=r.transforms[O](d)||d;return d}function u(g,d,E){let B=d-1,O=-1,X=!1,on,un,gn,kn;for(;++B<=E;){const q=g[B];if(q[1].type==="listUnordered"||q[1].type==="listOrdered"||q[1].type==="blockQuote"?(q[0]==="enter"?O++:O--,kn=void 0):q[1].type==="lineEndingBlank"?q[0]==="enter"&&(on&&!kn&&!O&&!gn&&(gn=B),kn=void 0):q[1].type==="linePrefix"||q[1].type==="listItemValue"||q[1].type==="listItemMarker"||q[1].type==="listItemPrefix"||q[1].type==="listItemPrefixWhitespace"||(kn=void 0),!O&&q[0]==="enter"&&q[1].type==="listItemPrefix"||O===-1&&q[0]==="exit"&&(q[1].type==="listUnordered"||q[1].type==="listOrdered")){if(on){let Cn=B;for(un=void 0;Cn--;){const ln=g[Cn];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;un&&(g[un][1].type="lineEndingBlank",X=!0),ln[1].type="lineEnding",un=Cn}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}gn&&(!un||gn<un)&&(on._spread=!0),on.end=Object.assign({},un?g[un][1].start:q[1].end),g.splice(un||B,0,["exit",on,q[2]]),B++,E++}q[1].type==="listItemPrefix"&&(on={type:"listItem",_spread:!1,start:Object.assign({},q[1].start),end:void 0},g.splice(B,0,["enter",on,q[2]]),B++,E++,gn=void 0,kn=!0)}}return g[d][1]._spread=X,E}function i(g,d){t[g]=d}function l(g){return t[g]}function a(g,d){return E;function E(B){c.call(this,g(B),B),d&&d.call(this,B)}}function m(){this.stack.push({type:"fragment",children:[]})}function c(g,d,E){return this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([d,E]),g.position={start:sn(d.start)},g}function p(g){return d;function d(E){g&&g.call(this,E),f.call(this,E)}}function f(g,d){const E=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==g.type&&(d?d.call(this,g,B[0]):(B[1]||et).call(this,g,B[0]));else throw new Error("Cannot close `"+g.type+"` ("+Sn({start:g.start,end:g.end})+"): it’s not open");return E.position.end=sn(g.end),E}function x(){return It(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function A(g){if(l("expectingFirstListItemValue")){const d=this.stack[this.stack.length-2];d.start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue")}}function I(){const g=this.resume(),d=this.stack[this.stack.length-1];d.lang=g}function M(){const g=this.resume(),d=this.stack[this.stack.length-1];d.meta=g}function b(){l("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function j(){const g=this.resume(),d=this.stack[this.stack.length-1];d.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function F(){const g=this.resume(),d=this.stack[this.stack.length-1];d.value=g.replace(/(\r?\n|\r)$/g,"")}function D(g){const d=this.resume(),E=this.stack[this.stack.length-1];E.label=d,E.identifier=xn(this.sliceSerialize(g)).toLowerCase()}function _(){const g=this.resume(),d=this.stack[this.stack.length-1];d.title=g}function k(){const g=this.resume(),d=this.stack[this.stack.length-1];d.url=g}function T(g){const d=this.stack[this.stack.length-1];if(!d.depth){const E=this.sliceSerialize(g).length;d.depth=E}}function H(){i("setextHeadingSlurpLineEnding",!0)}function N(g){const d=this.stack[this.stack.length-1];d.depth=this.sliceSerialize(g).charCodeAt(0)===61?1:2}function V(){i("setextHeadingSlurpLineEnding")}function y(g){const d=this.stack[this.stack.length-1];let E=d.children[d.children.length-1];(!E||E.type!=="text")&&(E=wt(),E.position={start:sn(g.start)},d.children.push(E)),this.stack.push(E)}function S(g){const d=this.stack.pop();d.value+=this.sliceSerialize(g),d.position.end=sn(g.end)}function P(g){const d=this.stack[this.stack.length-1];if(l("atHardBreak")){const E=d.children[d.children.length-1];E.position.end=sn(g.end),i("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(d.type)&&(y.call(this,g),S.call(this,g))}function R(){i("atHardBreak",!0)}function w(){const g=this.resume(),d=this.stack[this.stack.length-1];d.value=g}function U(){const g=this.resume(),d=this.stack[this.stack.length-1];d.value=g}function W(){const g=this.resume(),d=this.stack[this.stack.length-1];d.value=g}function G(){const g=this.stack[this.stack.length-1];if(l("inReference")){const d=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=d,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function en(){const g=this.stack[this.stack.length-1];if(l("inReference")){const d=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=d,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function o(g){const d=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=zr(d),E.identifier=xn(d).toLowerCase()}function J(){const g=this.stack[this.stack.length-1],d=this.resume(),E=this.stack[this.stack.length-1];if(i("inReference",!0),E.type==="link"){const B=g.children;E.children=B}else E.alt=d}function rn(){const g=this.resume(),d=this.stack[this.stack.length-1];d.url=g}function s(){const g=this.resume(),d=this.stack[this.stack.length-1];d.title=g}function K(){i("inReference")}function hn(){i("referenceType","collapsed")}function Q(g){const d=this.resume(),E=this.stack[this.stack.length-1];E.label=d,E.identifier=xn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")}function pn(g){i("characterReferenceType",g.type)}function an(g){const d=this.sliceSerialize(g),E=l("characterReferenceType");let B;E?(B=ft(d,E==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):B=Dn(d);const O=this.stack.pop();O.value+=B,O.position.end=sn(g.end)}function fn(g){S.call(this,g);const d=this.stack[this.stack.length-1];d.url=this.sliceSerialize(g)}function mn(g){S.call(this,g);const d=this.stack[this.stack.length-1];d.url="mailto:"+this.sliceSerialize(g)}function En(){return{type:"blockquote",children:[]}}function jn(){return{type:"code",lang:null,meta:null,value:""}}function dt(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function Rn(){return{type:"heading",depth:void 0,children:[]}}function qn(){return{type:"break"}}function Hn(){return{type:"html",value:""}}function St(){return{type:"image",title:null,url:"",alt:null}}function Nn(){return{type:"link",title:null,url:"",children:[]}}function Vn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function Ft(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Et(){return{type:"paragraph",children:[]}}function Ct(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function At(){return{type:"thematicBreak"}}}function sn(n){return{line:n.line,column:n.column,offset:n.offset}}function gt(n,r){let t=-1;for(;++t<r.length;){const e=r[t];Array.isArray(e)?gt(n,e):Br(n,e)}}function Br(n,r){let t;for(t in r)if(mt.call(r,t)){if(t==="canContainEols"){const e=r[t];e&&n[t].push(...e)}else if(t==="transforms"){const e=r[t];e&&n[t].push(...e)}else if(t==="enter"||t==="exit"){const e=r[t];e&&Object.assign(n[t],e)}}}function et(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+Sn({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+Sn({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Sn({start:r.start,end:r.end})+") is still open")}function Or(n){const r=n.replace(/\n{2,}/g,`
|
|
4
4
|
`);return bn.dedent(r)}function Lr(n){const r=Or(n),{children:t}=xt(r),e=[[]];let u=0;function i(l,a="normal"){l.type==="text"?l.value.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.Cxh8kXZ-.js";
|
|
2
2
|
var a = { paste: "Pegar", pasteAsPlaintext: "Pegar en tèxt brut", pasteCharts: "Pegar los grafics", selectAll: "Tot seleccionar", multiSelect: "Apondre un element a la seleccion", moveCanvas: "Desplaçar lo canabàs", cut: "Talhar", copy: "Copiar", copyAsPng: "Copiar al quichapapièrs coma PNG", copyAsSvg: "Copiar al quichapapièrs coma SVG", copyText: "Copiar al quichapapièrs coma tèxt", copySource: "", convertToCode: "", bringForward: "En avant", sendToBack: "En arrièr", bringToFront: "A l’endavant", sendBackward: "Endarrièr", delete: "Suprimir", copyStyles: "Copiar los estiles", pasteStyles: "Pegar los estils", stroke: "Contorn", background: "Rèireplan", fill: "Empliment", strokeWidth: "Largor de contorn", strokeStyle: "Estil de contorn", strokeStyle_solid: "Solide", strokeStyle_dashed: "Tiret", strokeStyle_dotted: "Puntilhat", sloppiness: "Estil de traça", opacity: "Opacitat", textAlign: "Alinhament tèxt", edges: "Angles", sharp: "Ponchut", round: "Arredonit", arrowheads: "Cap de la flècha", arrowhead_none: "Cap", arrowhead_arrow: "Sageta", arrowhead_bar: "Barra", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Triangle", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Talha polissa", fontFamily: "Familha de polissa", addWatermark: "Apondre « Fabricat amb Excalidraw »", handDrawn: "A la man levada", normal: "Normala", code: "Còdi", small: "Pichona", medium: "Mejana", large: "Granda", veryLarge: "Gradassa", solid: "Solide", hachure: "Raia", zigzag: "Zigzag", crossHatch: "Raia crosada", thin: "Fin", bold: "Espés", left: "Esquèrra", center: "Centre", right: "Drecha", extraBold: "Espesàs", architect: "Arquitècte", artist: "Artista", cartoonist: "Dessenhaire", fileTitle: "Nom del fichièr", colorPicker: "Selector de color", canvasColors: "Utilizada suls canabassses", canvasBackground: "Rèireplan del canabàs", drawingCanvas: "Zòna de dessenh", layers: "Calques", actions: "Accions", language: "Lenga", liveCollaboration: "Collaboracion en dirèct...", duplicateSelection: "Duplicar", untitled: "Sens títol", name: "Nom", yourName: "Vòstre nom", madeWithExcalidraw: "Fabricat amb Excalidraw", group: "Gropar la seleccion", ungroup: "Desunir la seleccion", collaborators: "Collaborators", showGrid: "Afichar la gresilha", addToLibrary: "Apondre a la bibliotèca", removeFromLibrary: "Suprimir de la bibliotèca", libraryLoadingMessage: "Cargament de la bibliotèca…", libraries: "Percórrer las bibliotècas", loadingScene: "Cargament de la scèna…", align: "Alinhament", alignTop: "Alinhar ennaut", alignBottom: "Alinhar enbàs", alignLeft: "Alinhar a esquèrra", alignRight: "Alinhar a drecha", centerVertically: "Centrar verticalament", centerHorizontally: "Centrar orizontalament", distributeHorizontally: "Distribuir orizontalament", distributeVertically: "Distribuir verticalament", flipHorizontal: "Virar orizontalament", flipVertical: "Virar verticalament", viewMode: "Mòde de vista", share: "Partejar", showStroke: "Mostrar lo selector de color de contorn", showBackground: "Mostrar lo selector de color de fons", toggleTheme: "Alternar tèma", personalLib: "Bibliotèca personala", excalidrawLib: "Bibliotèca Excalidraw", decreaseFontSize: "Reduire talha polissa", increaseFontSize: "Aumentar talha polissa", unbindText: "Dessociar lo tèxte", bindText: "Ligar lo tèxt al contenidor", createContainerFromText: "Envelopar lo tèxte dins un contenedor", link: { edit: "Modificar lo ligam", editEmbed: "Modificar lo ligam e l’integracion", create: "Crear un ligam", createEmbed: "Crear un ligam e son integracion", label: "Ligam", labelEmbed: "Ligam e integracion", empty: "Cap de ligam pas definit" }, lineEditor: { edit: "Modificar la linha", exit: "Sortir de l’editor de linha" }, elementLock: { lock: "Verrolhar", unlock: "Desverrolhar", lockAll: "Tot verrolhar", unlockAll: "Tot desverrolhar" }, statusPublished: "Publicat", sidebarLock: "Gardar la barra laterala dobèrta", selectAllElementsInFrame: "Seleccionar totes los elements del quadre", removeAllElementsFromFrame: "Tirar totes los elements d’al quadre", eyeDropper: "Prendre la color a partir d’un canabàs", textToDiagram: "", prompt: "" }, e = { noItems: "Cap d’element pas encara apondut...", hint_emptyLibrary: "Seleccionatz un element d’apondre aquí, o installatz una bibliotèca del depaus public, çai-jos.", hint_emptyPrivateLibrary: "Seleccionatz un element d’apondre aquí pel canabàs." }, r = { clearReset: "Reïnicializar lo canabàs", exportJSON: "Exportar en fichièr", exportImage: "Exportar imatges...", export: "Enregistrar dins...", copyToClipboard: "Copiar al quichapapièrs", save: "Salvar al fichièr actual", saveAs: "Enregistrar jos", load: "Dobrir", getShareableLink: "Obténer lo ligam de partatge", close: "Tampar", selectLanguage: "Causir una lenga", scrollBackToContent: "Tornar al contengut", zoomIn: "Zoom avant", zoomOut: "Zoom arrièr", resetZoom: "Tirar lo zoom", menu: "Menú", done: "Acabat", edit: "Modificar", undo: "Anullar", redo: "Restablir", resetLibrary: "Reïnicializar la bibliotèca", createNewRoom: "Crear sala novèla", fullScreen: "Ecran complèt", darkMode: "Mòde escur", lightMode: "Mòde clar", zenMode: "Mòde escur", objectsSnapMode: "Ancorar als objèctes", exitZenMode: "Sortir del mòde zen", cancel: "Anullar", clear: "Escafar", remove: "Tirar", embed: "Alternar l’integracion", publishLibrary: "Publicar", submit: "Enviar", confirm: "Confirmar", embeddableInteractionButton: "Clicar per interagir" }, i = { clearReset: "Aquò suprimirà lo canabàs complèt. O volètz vertadièrament ?", couldNotCreateShareableLink: "Creacion impossibla del ligam de partatge.", couldNotCreateShareableLinkTooBig: "Creacion impossibla del ligam de partatge : la scèna es tròp granda", couldNotLoadInvalidFile: "Cargament impossible d’un fichièr invalid", importBackendFailed: "Importacion fracassada.", cannotExportEmptyCanvas: "Impossible d’exportar los canabasses voids.", couldNotCopyToClipboard: "Còpia impossibla al quichapapièrs.", decryptFailed: "Deschiframent impossible de las donadas.", uploadedSecurly: "Lo telecargament es estat securizat amb un chiframent del cap a la fin, significa que los servidors d’Excalidraw o que quina tèrça part que siá pòdon pas legir lo contengut.", loadSceneOverridePrompt: "Cargar un dessenh extèrn remplaçarà vòstre contengut existent. Volètz contunhar ?", collabStopOverridePrompt: `Arrestar la session remplaçarà vòstre precedent dessenh gardat localament. O volètz vertadièrament ?
|
|
3
3
|
|
|
4
4
|
(Se volètz gardar vòstre dessenh local, tampatz simplament l’onglet del navegador a la plaça)`, errorAddingToLibrary: "Apondon impossible de l’element a la bibliotèca", errorRemovingFromLibrary: "Supression impossibla de l’element a la bibliotèca", confirmAddLibrary: "Apondrà {{numShapes}} forma(s) a vòstra bibliotèca. Confirmatz ?", imageDoesNotContainScene: "Aqueste imatge sembla pas conténer cap de donadas de scèna. Avètz activat l’integracion de scèna pendent l’exportacion ?", cannotRestoreFromImage: "Restauracion impossibla de la scèna a partir del fichièr imatge", invalidSceneUrl: "Importacion impossibla de la scèna a partir de l’URL provesida. Es siá mal formatada o siá conten pas cap de donada JSON Excalidraw valida.", resetLibrary: "Aquò suprimirà vòstra bibliotèca. O volètz vertadièrament ?", removeItemsFromsLibrary: "Suprimir {{count}} element(s) de la bibliotèca ?", invalidEncryptionKey: "La clau de chiframent deu conténer 22 caractèrs. La collaboracion en dirèct es desactivada.", collabOfflineWarning: `Cap de connexion pas disponibla.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.D7xMYlvR.js");var e={paste:"Colar",pasteAsPlaintext:"Colar como texto simples",pasteCharts:"Colar gráficos",selectAll:"Selecionar tudo",multiSelect:"Adicionar elemento à seleção",moveCanvas:"Mover tela",cut:"Cortar",copy:"Copiar",copyAsPng:"Copiar para a área de transferência como PNG",copyAsSvg:"Copiar para a área de transferência como SVG",copyText:"Copiar para Área de Transferência como texto",copySource:"",convertToCode:"",bringForward:"Trazer para o primeiro plano",sendToBack:"Enviar para o plano de fundo",bringToFront:"Trazer para o primeiro plano",sendBackward:"Enviar para trás",delete:"Apagar",copyStyles:"Copiar os estilos",pasteStyles:"Colar os estilos",stroke:"Contornos",background:"Fundo",fill:"Preenchimento",strokeWidth:"Espessura do traço",strokeStyle:"Estilo de traço",strokeStyle_solid:"Sólido",strokeStyle_dashed:"Tracejado",strokeStyle_dotted:"Pontilhado",sloppiness:"Desleixo",opacity:"Opacidade",textAlign:"Alinhamento do texto",edges:"Arestas",sharp:"Aguçado",round:"Redondo",arrowheads:"Pontas",arrowhead_none:"Nenhuma",arrowhead_arrow:"Seta",arrowhead_bar:"Barra",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Triângulo",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Tamanho da fonte",fontFamily:"Família da fontes",addWatermark:'Adicionar "Feito com Excalidraw"',handDrawn:"Manuscrito",normal:"Normal",code:"Código",small:"Pequeno",medium:"Médio",large:"Grande",veryLarge:"Muito grande",solid:"Sólido",hachure:"Eclosão",zigzag:"ziguezague",crossHatch:"Sombreado",thin:"Fino",bold:"Espesso",left:"Esquerda",center:"Centralizar",right:"Direita",extraBold:"Muito espesso",architect:"Arquitecto",artist:"Artista",cartoonist:"Caricaturista",fileTitle:"Nome do ficheiro",colorPicker:"Seletor de cores",canvasColors:"Usado na tela",canvasBackground:"Fundo da área de desenho",drawingCanvas:"Área de desenho",layers:"Camadas",actions:"Ações",language:"Idioma",liveCollaboration:"Colaboração ao vivo...",duplicateSelection:"Duplicar",untitled:"Sem título",name:"Nome",yourName:"O seu nome",madeWithExcalidraw:"Feito com Excalidraw",group:"Agrupar seleção",ungroup:"Desagrupar seleção",collaborators:"Colaboradores",showGrid:"Mostrar grelha",addToLibrary:"Adicionar à biblioteca",removeFromLibrary:"Remover da biblioteca",libraryLoadingMessage:"A carregar a biblioteca…",libraries:"Procurar bibliotecas",loadingScene:"A carregar a cena…",align:"Alinhamento",alignTop:"Alinhar ao topo",alignBottom:"Alinhar ao fundo",alignLeft:"Alinhar à esquerda",alignRight:"Alinhar à direita",centerVertically:"Centrar verticalmente",centerHorizontally:"Centrar horizontalmente",distributeHorizontally:"Distribuir horizontalmente",distributeVertically:"Distribuir verticalmente",flipHorizontal:"Inverter horizontalmente",flipVertical:"Inverter verticalmente",viewMode:"Modo de visualização",share:"Partilhar",showStroke:"Mostrar seletor de cores do traço",showBackground:"Mostrar seletor de cores do fundo",toggleTheme:"Alternar tema",personalLib:"Biblioteca pessoal",excalidrawLib:"Biblioteca do Excalidraw",decreaseFontSize:"Reduzir o tamanho do tipo de letra",increaseFontSize:"Aumentar o tamanho do tipo de letra",unbindText:"Desvincular texto",bindText:"Ligar texto ao recipiente",createContainerFromText:"Envolver texto num recipiente",link:{edit:"Editar ligação",editEmbed:"",create:"Criar ligação",createEmbed:"",label:"Ligação",labelEmbed:"",empty:""},lineEditor:{edit:"Editar linha",exit:"Sair do editor de linha"},elementLock:{lock:"Bloquear",unlock:"Desbloquear",lockAll:"Bloquear todos",unlockAll:"Desbloquear todos"},statusPublished:"Publicado",sidebarLock:"Manter a barra lateral aberta",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"Ainda não foram adicionados nenhuns itens...",hint_emptyLibrary:"Seleccione um item na tela para adicioná-lo aqui, ou então instale uma biblioteca do repositório público abaixo.",hint_emptyPrivateLibrary:"Seleccione um item na tela para adicioná-lo aqui."},o={clearReset:"Limpar a área de desenho e redefinir a cor de fundo",exportJSON:"Exportar para ficheiro",exportImage:"Exportar imagem...",export:"Guardar para...",copyToClipboard:"Copiar para o clipboard",save:"Guardar no ficheiro atual",saveAs:"Guardar como",load:"Abrir",getShareableLink:"Obter um link de partilha",close:"Fechar",selectLanguage:"Selecionar idioma",scrollBackToContent:"Voltar ao conteúdo",zoomIn:"Aumentar zoom",zoomOut:"Diminuir zoom",resetZoom:"Redefinir zoom",menu:"Menu",done:"Concluído",edit:"Editar",undo:"Desfazer",redo:"Refazer",resetLibrary:"Repor a biblioteca",createNewRoom:"Criar nova sala",fullScreen:"Ecrã inteiro",darkMode:"Modo escuro",lightMode:"Modo claro",zenMode:"Modo zen",objectsSnapMode:"",exitZenMode:"Sair do modo zen",cancel:"Cancelar",clear:"Limpar",remove:"Remover",embed:"",publishLibrary:"Publicar",submit:"Enviar",confirm:"Confirmar",embeddableInteractionButton:""},r={clearReset:"Isto irá limpar toda a área de desenho. Tem a certeza?",couldNotCreateShareableLink:"Não foi possível criar um link partilhável.",couldNotCreateShareableLinkTooBig:"Não foi possível criar um link partilhável: a cena é muito grande",couldNotLoadInvalidFile:"Não foi possível carregar o ficheiro inválido",importBackendFailed:"A importação do servidor falhou.",cannotExportEmptyCanvas:"Não é possível exportar uma área de desenho vazia.",couldNotCopyToClipboard:"Não foi possível copiar para a área de transferência.",decryptFailed:"Não foi possível desencriptar os dados.",uploadedSecurly:"O upload foi protegido com criptografia de ponta a ponta, o que significa que o servidor do Excalidraw e terceiros não podem ler o conteúdo.",loadSceneOverridePrompt:"Se carregar um desenho externo substituirá o conteúdo existente. Quer continuar?",collabStopOverridePrompt:`Ao interromper a sessão irá substituir o último desenho guardado. Tem a certeza?
|
|
2
2
|
|
|
3
3
|
(Caso queira manter o último desenho, simplesmente feche a janela do navegador.)`,errorAddingToLibrary:"Não foi possível adicionar o item à biblioteca",errorRemovingFromLibrary:"Não foi possível remover o item da biblioteca",confirmAddLibrary:"Isso adicionará {{numShapes}} forma(s) à sua biblioteca. Tem a certeza?",imageDoesNotContainScene:"Esta imagem parece não conter dados de cenas. Ativou a incorporação da cena durante a exportação?",cannotRestoreFromImage:"Não foi possível restaurar a cena deste ficheiro de imagem",invalidSceneUrl:"Não foi possível importar a cena a partir do URL fornecido. Ou está mal formado ou não contém dados JSON do Excalidraw válidos.",resetLibrary:"Isto irá limpar a sua biblioteca. Tem a certeza?",removeItemsFromsLibrary:"Apagar {{count}} item(ns) da biblioteca?",invalidEncryptionKey:"Chave de encriptação deve ter 22 caracteres. A colaboração ao vivo está desativada.",collabOfflineWarning:`Sem ligação à internet disponível.
|
|
4
4
|
As suas alterações não serão salvas!`},i={unsupportedFileType:"Tipo de ficheiro não suportado.",imageInsertError:"Não foi possível inserir a imagem, tente novamente mais tarde...",fileTooBig:"O ficheiro é muito grande. O tamanho máximo permitido é {{maxSize}}.",svgImageInsertError:"Não foi possível inserir a imagem SVG. A marcação SVG parece inválida.",failedToFetchImage:"",invalidSVGString:"SVG inválido.",cannotResolveCollabServer:"Não foi possível fazer a ligação ao servidor colaborativo. Por favor, volte a carregar a página e tente novamente.",importLibraryError:"Não foi possível carregar a biblioteca",collabSaveFailed:"Não foi possível guardar na base de dados de backend. Se os problemas persistirem, guarde o ficheiro localmente para garantir que não perde o seu trabalho.",collabSaveFailed_sizeExceeded:"Não foi possível guardar na base de dados de backend, o ecrã parece estar muito grande. Deve guardar o ficheiro localmente para garantir que não perde o seu trabalho.",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},t={selection:"Seleção",image:"Inserir imagem",rectangle:"Retângulo",diamond:"Losango",ellipse:"Elipse",arrow:"Flecha",line:"Linha",freedraw:"Desenhar",text:"Texto",library:"Biblioteca",lock:"Manter a ferramenta selecionada ativa após desenhar",penMode:"Modo caneta - impedir toque",link:"Acrescentar/ Adicionar ligação para uma forma seleccionada",eraser:"Borracha",frame:"",magicframe:"",embeddable:"",laser:"",hand:"Mão (ferramenta de movimento da tela)",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},n={canvasActions:"Ações da área de desenho",selectedShapeActions:"Ações das formas selecionadas",shapes:"Formas"},s={canvasPanning:"Para mover a tela, carregue na roda do rato ou na barra de espaço enquanto arrasta, ou use a ferramenta da mão",linearElement:"Clique para iniciar vários pontos, arraste para uma única linha",freeDraw:"Clique e arraste, large quando terminar",text:"Dica: também pode adicionar texto clicando duas vezes em qualquer lugar com a ferramenta de seleção",embeddable:"",text_selected:"Clique duas vezes ou pressione a tecla Enter para editar o texto",text_editing:"Pressione a tecla Escape ou CtrlOrCmd+ENTER para terminar a edição",linearElementMulti:"Clique no último ponto ou pressione Escape ou Enter para terminar",lockAngle:"Pode restringir o ângulo mantendo premida a tecla SHIFT",resize:`Pode restringir as proporções mantendo a tecla SHIFT premida enquanto redimensiona,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const D=require("./layers.DOrgOHBr.js"),n=require("./layers.
|
|
1
|
+
"use strict";const D=require("./layers.DOrgOHBr.js"),n=require("./layers.5x5XNzrm.js");function Z(o){return o.innerRadius}function k(o){return o.outerRadius}function _(o){return o.startAngle}function nn(o){return o.endAngle}function en(o){return o&&o.padAngle}function an(o,h,E,P,x,v,b,i){var I=E-o,t=P-h,e=b-x,y=i-v,s=y*I-e*t;if(!(s*s<n.epsilon))return s=(e*(h-v)-y*(o-x))/s,[o+s*I,h+s*t]}function L(o,h,E,P,x,v,b){var i=o-E,I=h-P,t=(b?v:-v)/n.sqrt(i*i+I*I),e=t*I,y=-t*i,s=o+e,u=h+y,c=E+e,f=P+y,j=(s+c)/2,l=(u+f)/2,g=c-s,p=f-u,A=g*g+p*p,R=x-v,T=s*f-c*u,O=(p<0?-1:1)*n.sqrt(n.max(0,R*R*A-T*T)),S=(T*p-g*O)/A,$=(-T*g-p*O)/A,q=(T*p+g*O)/A,m=(-T*g+p*O)/A,d=S-j,a=$-l,r=q-j,z=m-l;return d*d+a*a>r*r+z*z&&(S=q,$=m),{cx:S,cy:$,x01:-e,y01:-y,x11:S*(x/R-1),y11:$*(x/R-1)}}function sn(){var o=Z,h=k,E=D.constant(0),P=null,x=_,v=nn,b=en,i=null,I=D.withPath(t);function t(){var e,y,s=+o.apply(this,arguments),u=+h.apply(this,arguments),c=x.apply(this,arguments)-n.halfPi,f=v.apply(this,arguments)-n.halfPi,j=n.abs(f-c),l=f>c;if(i||(i=e=I()),u<s&&(y=u,u=s,s=y),!(u>n.epsilon))i.moveTo(0,0);else if(j>n.tau-n.epsilon)i.moveTo(u*n.cos(c),u*n.sin(c)),i.arc(0,0,u,c,f,!l),s>n.epsilon&&(i.moveTo(s*n.cos(f),s*n.sin(f)),i.arc(0,0,s,f,c,l));else{var g=c,p=f,A=c,R=f,T=j,O=j,S=b.apply(this,arguments)/2,$=S>n.epsilon&&(P?+P.apply(this,arguments):n.sqrt(s*s+u*u)),q=n.min(n.abs(u-s)/2,+E.apply(this,arguments)),m=q,d=q,a,r;if($>n.epsilon){var z=n.asin($/s*n.sin(S)),F=n.asin($/u*n.sin(S));(T-=z*2)>n.epsilon?(z*=l?1:-1,A+=z,R-=z):(T=0,A=R=(c+f)/2),(O-=F*2)>n.epsilon?(F*=l?1:-1,g+=F,p-=F):(O=0,g=p=(c+f)/2)}var B=u*n.cos(g),C=u*n.sin(g),G=s*n.cos(R),H=s*n.sin(R);if(q>n.epsilon){var J=u*n.cos(p),K=u*n.sin(p),M=s*n.cos(A),N=s*n.sin(A),w;if(j<n.pi)if(w=an(B,C,M,N,J,K,G,H)){var Q=B-w[0],U=C-w[1],V=J-w[0],W=K-w[1],X=1/n.sin(n.acos((Q*V+U*W)/(n.sqrt(Q*Q+U*U)*n.sqrt(V*V+W*W)))/2),Y=n.sqrt(w[0]*w[0]+w[1]*w[1]);m=n.min(q,(s-Y)/(X-1)),d=n.min(q,(u-Y)/(X+1))}else m=d=0}O>n.epsilon?d>n.epsilon?(a=L(M,N,B,C,u,d,l),r=L(J,K,G,H,u,d,l),i.moveTo(a.cx+a.x01,a.cy+a.y01),d<q?i.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(r.y01,r.x01),!l):(i.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),i.arc(0,0,u,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(r.cy+r.y11,r.cx+r.x11),!l),i.arc(r.cx,r.cy,d,n.atan2(r.y11,r.x11),n.atan2(r.y01,r.x01),!l))):(i.moveTo(B,C),i.arc(0,0,u,g,p,!l)):i.moveTo(B,C),!(s>n.epsilon)||!(T>n.epsilon)?i.lineTo(G,H):m>n.epsilon?(a=L(G,H,J,K,s,-m,l),r=L(B,C,M,N,s,-m,l),i.lineTo(a.cx+a.x01,a.cy+a.y01),m<q?i.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(r.y01,r.x01),!l):(i.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),i.arc(0,0,s,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(r.cy+r.y11,r.cx+r.x11),l),i.arc(r.cx,r.cy,m,n.atan2(r.y11,r.x11),n.atan2(r.y01,r.x01),!l))):i.arc(0,0,s,R,A,l)}if(i.closePath(),e)return i=null,e+""||null}return t.centroid=function(){var e=(+o.apply(this,arguments)+ +h.apply(this,arguments))/2,y=(+x.apply(this,arguments)+ +v.apply(this,arguments))/2-n.pi/2;return[n.cos(y)*e,n.sin(y)*e]},t.innerRadius=function(e){return arguments.length?(o=typeof e=="function"?e:D.constant(+e),t):o},t.outerRadius=function(e){return arguments.length?(h=typeof e=="function"?e:D.constant(+e),t):h},t.cornerRadius=function(e){return arguments.length?(E=typeof e=="function"?e:D.constant(+e),t):E},t.padRadius=function(e){return arguments.length?(P=e==null?null:typeof e=="function"?e:D.constant(+e),t):P},t.startAngle=function(e){return arguments.length?(x=typeof e=="function"?e:D.constant(+e),t):x},t.endAngle=function(e){return arguments.length?(v=typeof e=="function"?e:D.constant(+e),t):v},t.padAngle=function(e){return arguments.length?(b=typeof e=="function"?e:D.constant(+e),t):b},t.context=function(e){return arguments.length?(i=e??null,t):i},t}exports.arc=sn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as ln, c as W } from "./layers.DLwuMfdd.js";
|
|
2
|
-
import { R as an, S as j, T as S, U as rn, V as y, W as on, X as C, Y as _, _ as un, $ as t, a0 as sn, a1 as tn, a2 as fn } from "./layers.
|
|
2
|
+
import { R as an, S as j, T as S, U as rn, V as y, W as on, X as C, Y as _, _ as un, $ as t, a0 as sn, a1 as tn, a2 as fn } from "./layers.G03pElKT.js";
|
|
3
3
|
function cn(l) {
|
|
4
4
|
return l.innerRadius;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.Cxh8kXZ-.js";
|
|
2
2
|
var e = { paste: "Yapışdır", pasteAsPlaintext: "Düz mətn kimi yapışdırın", pasteCharts: "Diaqramları yapışdırın", selectAll: "Hamısını seç", multiSelect: "Seçimə element əlavə edin", moveCanvas: "Kanvası köçürün", cut: "Kəs", copy: "Kopyala", copyAsPng: "PNG olaraq panoya kopyala", copyAsSvg: "SVG olaraq panoya kopyala", copyText: "Mətn olaraq panoya kopyala", copySource: "", convertToCode: "", bringForward: "Önə daşı", sendToBack: "Geriyə göndərin", bringToFront: "Önə gətirin", sendBackward: "Geriyə göndərin", delete: "Sil", copyStyles: "Stilləri kopyalayın", pasteStyles: "Stilləri yapışdırın", stroke: "Strok rəngi", background: "Arxa fon", fill: "Doldur", strokeWidth: "Strok eni", strokeStyle: "Strok stili", strokeStyle_solid: "Solid", strokeStyle_dashed: "Kəsik", strokeStyle_dotted: "Nöqtəli", sloppiness: "Səliqəsizlik", opacity: "Şəffaflıq", textAlign: "Mətni uyğunlaşdır", edges: "Kənarlar", sharp: "Kəskin", round: "Dəyirmi", arrowheads: "Ox ucları", arrowhead_none: "Heç biri", arrowhead_arrow: "Ox", arrowhead_bar: "Çubuq", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Üçbucaq", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Şrift ölçüsü", fontFamily: "Şrift qrupu", addWatermark: '"Made with Excalidraw" əlavə et', handDrawn: "Əllə çəkilmiş", normal: "Normal", code: "Kod", small: "Kiçik", medium: "Orta", large: "Böyük", veryLarge: "Çox böyük", solid: "Solid", hachure: "Ştrix", zigzag: "Ziqzaq", crossHatch: "Çarpaz dəlik", thin: "İncə", bold: "Qalın", left: "Sol", center: "Mərkəz", right: "Sağ", extraBold: "Ekstra qalın", architect: "Memar", artist: "Rəssam", cartoonist: "Karikaturaçı", fileTitle: "Fayl adı", colorPicker: "Rəng seçən", canvasColors: "Kanvas üzərində istifadə olunur", canvasBackground: "Kanvas arxa fonu", drawingCanvas: "Kanvas çəkmək", layers: "Qatlar", actions: "Hərəkətlər", language: "Dil", liveCollaboration: "Canlı əməkdaşlıq...", duplicateSelection: "Dublikat", untitled: "Başlıqsız", name: "Ad", yourName: "Adınız", madeWithExcalidraw: "Excalidraw ilə hazırlanmışdır", group: "Qrup şəklində seçim", ungroup: "Qrupsuz seçim", 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: "", 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: "" }, a = { noItems: "", hint_emptyLibrary: "", hint_emptyPrivateLibrary: "" }, r = { 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: "" }, o = { clearReset: "", couldNotCreateShareableLink: "", couldNotCreateShareableLinkTooBig: "", couldNotLoadInvalidFile: "", importBackendFailed: "", cannotExportEmptyCanvas: "", couldNotCopyToClipboard: "", decryptFailed: "", uploadedSecurly: "", loadSceneOverridePrompt: "", collabStopOverridePrompt: "", errorAddingToLibrary: "", errorRemovingFromLibrary: "", confirmAddLibrary: "", imageDoesNotContainScene: "", cannotRestoreFromImage: "", invalidSceneUrl: "", resetLibrary: "", removeItemsFromsLibrary: "", invalidEncryptionKey: "", collabOfflineWarning: "" }, t = { unsupportedFileType: "", imageInsertError: "", fileTooBig: "", svgImageInsertError: "", failedToFetchImage: "", invalidSVGString: "", cannotResolveCollabServer: "", importLibraryError: "", collabSaveFailed: "", collabSaveFailed_sizeExceeded: "", imageToolNotSupported: "", brave_measure_text_error: { line1: "", line2: "", line3: "", line4: "" }, libraryElementTypeError: { embeddable: "", iframe: "", image: "" }, asyncPasteFailedOnRead: "", asyncPasteFailedOnParse: "", copyToSystemClipboardFailed: "" }, i = { selection: "", image: "", rectangle: "", diamond: "", ellipse: "", arrow: "", line: "", freedraw: "", text: "", library: "", lock: "", penMode: "", link: "", eraser: "", frame: "", magicframe: "", embeddable: "", laser: "", hand: "", extraTools: "", mermaidToExcalidraw: "", magicSettings: "" }, l = { canvasActions: "", selectedShapeActions: "", shapes: "" }, n = { canvasPanning: "", linearElement: "", freeDraw: "", text: "", embeddable: "", text_selected: "", text_editing: "", linearElementMulti: "", lockAngle: "", resize: "", resizeImage: "", rotate: "", lineEditor_info: "", lineEditor_pointSelected: "", lineEditor_nothingSelected: "", placeImage: "", publishLibrary: "", bindTextToElement: "", deepBoxSelect: "", eraserRevert: "", firefox_clipboard_write: "", disableSnapping: "" }, s = { cannotShowPreview: "", canvasTooBig: "", canvasTooBigTip: "" }, d = { headingMain: "", clearCanvasMessage: "", clearCanvasCaveat: "", trackedToSentry: "", openIssueMessage: "", sceneContent: "" }, u = { desc_intro: "", desc_privacy: "", button_startSession: "", button_stopSession: "", desc_inProgressIntro: "", desc_shareLink: "", desc_exitSession: "", shareTitle: "" }, c = { title: "" }, m = { disk_title: "", disk_details: "", disk_button: "", link_title: "", link_details: "", link_button: "", excalidrawplus_description: "", excalidrawplus_button: "", excalidrawplus_exportError: "" }, p = { blog: "", click: "", deepSelect: "", deepBoxSelect: "", curvedArrow: "", curvedLine: "", documentation: "", doubleClick: "", drag: "", editor: "", editLineArrowPoints: "", editText: "", github: "", howto: "", or: "", preventBinding: "", tools: "", shortcuts: "", textFinish: "", textNewLine: "", title: "", view: "", zoomToFit: "", zoomToSelection: "", toggleElementLock: "", movePageUpDown: "", movePageLeftRight: "" }, g = { title: "" }, b = { title: "", itemName: "", authorName: "", githubUsername: "", twitterUsername: "", libraryName: "", libraryDesc: "", website: "", placeholder: { authorName: "", libraryName: "", libraryDesc: "", githubHandle: "", twitterHandle: "", website: "" }, errors: { required: "", website: "" }, noteDescription: "", noteGuidelines: "", noteLicense: "", noteItems: "", atleastOneLibItem: "", republishWarning: "" }, y = { title: "", content: "" }, x = { resetLibrary: "", removeItemsFromLib: "" }, h = { header: "", label: { withBackground: "", onlySelected: "", darkMode: "", embedScene: "", scale: "", padding: "" }, tooltip: { embedScene: "" }, title: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" }, button: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" } }, k = { tooltip: "", link: "" }, S = { angle: "", element: "", elements: "", height: "", scene: "", selected: "", storage: "", title: "", total: "", version: "", versionCopy: "", versionNotAvailable: "", width: "" }, v = { addedToLibrary: "", copyStyles: "", copyToClipboard: "", copyToClipboardAsPng: "", fileSaved: "", fileSavedToFilename: "", canvas: "", selection: "", pasteAsSingleElement: "", unableToEmbed: "", unrecognizedLinkFormat: "" }, F = { transparent: "", black: "", white: "", red: "", pink: "", grape: "", violet: "", gray: "", blue: "", cyan: "", teal: "", green: "", yellow: "", orange: "", bronze: "" }, w = { app: { center_heading: "", center_heading_plus: "", menuHint: "" }, defaults: { menuHint: "", center_heading: "", toolbarHint: "", helpHint: "" } }, E = { mostUsedCustomColors: "", colors: "", shades: "", hexCode: "", noShades: "" }, T = { action: { exportToImage: { title: "", button: "", description: "" }, saveToDisk: { title: "", button: "", description: "" }, excalidrawPlus: { title: "", button: "", description: "" } }, modal: { loadFromFile: { title: "", button: "", description: "" }, shareableLink: { title: "", button: "", description: "" } } }, _ = { title: "", button: "", description: "", syntax: "", preview: "" }, f = { labels: e, library: a, buttons: r, alerts: o, errors: t, toolBar: i, headings: l, hints: n, canvasError: s, errorSplash: d, roomDialog: u, errorDialog: c, exportDialog: m, helpDialog: p, clearCanvasDialog: g, publishDialog: b, publishSuccessDialog: y, confirmDialog: x, imageExportDialog: h, encrypted: k, stats: S, toast: v, colors: F, welcomeScreen: w, colorPicker: E, overwriteConfirm: T, mermaid: _ };
|
|
3
3
|
export {
|
|
4
4
|
o as alerts,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.Cxh8kXZ-.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: '"Made with 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: "Made with 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: "프롬프트" }, C = { noItems: "추가된 아이템 없음", hint_emptyLibrary: "캔버스 위에서 아이템을 선택하여 여기에 추가를 하거나, 아래의 공용 저장소에서 라이브러리를 설치하세요.", hint_emptyPrivateLibrary: "캔버스 위에서 아이템을 선택하여 여기 추가하세요." }, B = { 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: "클릭하여 상호작용" }, D = { clearReset: "모든 작업 내용이 초기화됩니다. 계속하시겠습니까?", couldNotCreateShareableLink: "공유 가능한 링크를 생성할 수 없습니다.", couldNotCreateShareableLinkTooBig: "공유 가능한 링크를 생성할 수 없습니다: 화면이 너무 큽니다.", couldNotLoadInvalidFile: "유효하지 않은 파일입니다.", importBackendFailed: "서버로부터 불러 오지 못했습니다.", cannotExportEmptyCanvas: "빈 캔버스를 내보낼 수 없습니다.", couldNotCopyToClipboard: "클립보드로 복사하지 못했습니다.", decryptFailed: "데이터를 복호화하지 못했습니다.", uploadedSecurly: "업로드는 종단 간 암호화로 보호되므로 Excalidraw 서버 및 타사가 콘텐츠를 읽을 수 없습니다.", loadSceneOverridePrompt: "외부 파일을 불러 오면 기존 콘텐츠가 대체됩니다. 계속 진행할까요?", collabStopOverridePrompt: `협업 세션을 종료하면 로컬 저장소에 있는 그림이 협업 세션의 그림으로 대체됩니다. 진행하겠습니까?
|
|
3
3
|
|
|
4
4
|
(로컬 저장소에 있는 그림을 유지하려면 현재 브라우저 탭을 닫아주세요.)`, errorAddingToLibrary: "아이템을 라이브러리에 추가 할수 없습니다", errorRemovingFromLibrary: "라이브러리에서 아이템을 삭제할수 없습니다", confirmAddLibrary: "{{numShapes}}개의 모양이 라이브러리에 추가됩니다. 계속하시겠어요?", imageDoesNotContainScene: "이 이미지는 화면 데이터를 포함하고 있지 않은 것 같습니다. 내보낼 때 화면을 첨부하도록 설정하셨나요?", cannotRestoreFromImage: "이미지 파일에서 화면을 복구할 수 없었습니다", invalidSceneUrl: "제공된 URL에서 화면을 가져오는데 실패했습니다. 주소가 잘못되거나, 유효한 Excalidraw JSON 데이터를 포함하고 있지 않은 것일 수 있습니다.", resetLibrary: "당신의 라이브러리를 초기화 합니다. 계속하시겠습니까?", removeItemsFromsLibrary: "{{count}}개의 아이템을 라이브러리에서 삭제하시겠습니까?", invalidEncryptionKey: "암호화 키는 반드시 22글자여야 합니다. 실시간 협업이 비활성화됩니다.", collabOfflineWarning: `인터넷에 연결되어 있지 않습니다.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react"),F=require("react-i18next"),B=require("@lexical/react/LexicalComposerContext"),x=require("@mantine/core"),N=require("lexical"),t=require("./layers.E1BHe5Zw.js"),V=require("@layers-app/shared"),X=require("@lexical/react/useLexicalEditable"),W=require("@mantine/hooks");require("@lexical/react/LexicalDecoratorBlockNode");require("@lexical/utils");require("@lexical/mark");require("@lexical/code");require("@lexical/selection");require("react-dom");require("@lexical/react/LexicalErrorBoundary");require("@lexical/react/LexicalBlockWithAlignableContents");require("@mantine/notifications");const Le=e=>{if(typeof e=="number")return e>0;if(e.includes("%"))return e!==t.DEFAULT_NEW_IMAGE_WIDTH_HEIGHT;const a=parseFloat(e);return Number.isFinite(a)&&a>0};function Ee(e,a){const n=document.createElement("a");n.href=e,n.download=a,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()}function Y(e){try{const n=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return n.includes(".")?n:`${n}.png`}catch{return"image"}}async function Z(e,a){const n=await fetch(e);if(!n.ok)throw new Error("fetch failed");const s=await n.blob(),l=URL.createObjectURL(s);try{Ee(l,a)}finally{setTimeout(()=>URL.revokeObjectURL(l),0)}}function Pe({editor:e,nodeKey:a,href:n,onClose:s}){const[l,u]=r.useState(()=>t.getLinkTypeFromUrl(n)),[c,g]=r.useState(()=>t.removeProtocol(n)),[D,v]=r.useState(!1),m=r.useCallback(p=>{u(p),v(!1)},[]),f=r.useCallback(p=>{g(p),v(!1)},[]),b=r.useCallback(()=>{const p=t.addProtocolIfNeeded(c.trim(),l);if(!p||!t.isValidUrl(p,l)){v(!0);return}t.$writeImageLinkToNode(e,a,t.sanitizeUrl(p)),s()},[e,a,c,l,s]),C=r.useCallback(()=>{t.$writeImageLinkToNode(e,a,""),s()},[e,a,s]),I=r.useCallback(p=>{p.key==="Enter"?(p.preventDefault(),b()):p.key==="Escape"&&(p.preventDefault(),s())},[b,s]);return{linkType:l,linkUrl:c,error:D,onLinkTypeChange:m,onUrlInputChange:f,onUrlInputKeyDown:I,onSave:b,onRemove:C}}function J({editor:e,nodeKey:a,href:n,onClose:s,mobile:l}){const u=r.useRef(null),c=Pe({editor:e,nodeKey:a,href:n,onClose:s});return r.useEffect(()=>{var g;(g=u.current)==null||g.focus({preventScroll:!0})},[]),o.jsx(t.CreateMode,{inputRef:u,linkUrl:c.linkUrl,linkType:c.linkType,error:c.error,mobile:l,onLinkTypeChange:c.onLinkTypeChange,onUrlInputChange:c.onUrlInputChange,onUrlInputKeyDown:c.onUrlInputKeyDown,onCancel:s,onSave:c.onSave,onRemove:n?c.onRemove:void 0})}function fe({opened:e,onOpenChange:a,t:n,onDownload:s,onDelete:l,hasLink:u,onLinkAction:c}){return o.jsxs(x.Menu,{opened:e,onChange:a,transitionProps:t.Tt,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[o.jsx(x.Menu.Target,{children:o.jsx(t.Lt,{label:n("editor.toolbar.more"),icon:t.K1,iconColor:"var(--mantine-color-gray-text)","aria-label":n("editor.toolbar.more")})}),o.jsxs(x.Menu.Dropdown,{p:4,miw:164,w:"max-content",onMouseDown:g=>g.preventDefault(),children:[c&&o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.Icon,{name:"link",size:16})}),onClick:g=>{g.stopPropagation(),c()},children:n(u?"editor.link.editLink":"editor.link.addLink")}),o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16})}),onClick:g=>{g.stopPropagation(),s()},children:n("editor.gallery.download")}),o.jsx(x.Menu.Item,{color:"red",leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"red.6",children:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16})}),onClick:g=>{g.stopPropagation(),l()},children:n("editor.contextMenu.delete")})]})]})}const he=({t:e,src:a,setShown:n,id:s})=>{const[l,{open:u,close:c}]=W.useDisclosure(!1),g=t.useCanDownload(),D=r.useMemo(()=>[{id:!s||s==="0"?"":s,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,s]),v=m=>{m?u():c()};return o.jsxs(o.Fragment,{children:[o.jsx(V.AttachmentsGalleryModal,{opened:l,onOpenChange:v,attachments:D,allowDownload:g}),o.jsx(t.Lt,{label:e("editor.image.preview"),icon:t.gn,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{n(!1),u()}})]})},Te=({nodeKey:e,src:a,href:n})=>{const[s]=B.useLexicalComposerContext(),l=X.useLexicalEditable(),[u,c]=r.useState(!1),[g,D]=r.useState(!1),[v,m]=r.useState(!1),{t:f}=F.useTranslation();r.useEffect(()=>{if(!v)return;const I=p=>{const k=p.target;k!=null&&k.closest(".floating-link-dropdown")||k!=null&&k.closest(".floating-link-type-combobox-dropdown")||m(!1)};return document.addEventListener("pointerdown",I,!0),()=>document.removeEventListener("pointerdown",I,!0)},[v]);const b=r.useCallback(()=>{s.update(()=>{const I=N.$getNodeByKey(e);t.$isImageNode(I)&&I.remove()})},[s,e]),C=r.useCallback(async()=>{if(a)try{await Z(a,Y(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:v,onChange:m,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:`media-actions ${l?"":"media-actions--readonly"}`,children:[o.jsx(he,{t:f,src:a,setShown:()=>{}}),l&&o.jsxs(o.Fragment,{children:[o.jsx(t.wr,{opened:u,setOpened:c,t:f,editor:s,nodeKey:e,setShown:()=>{}}),o.jsx(fe,{opened:g,onOpenChange:D,t:f,onDownload:()=>void C(),onDelete:b,hasLink:!!n,onLinkAction:()=>m(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${n?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(J,{editor:s,nodeKey:e,href:n,onClose:()=>m(!1)})})]})},Me=()=>{};function Oe({nodeKey:e,src:a,id:n,href:s}){const{t:l}=F.useTranslation(),[u]=B.useLexicalComposerContext(),c=X.useLexicalEditable(),[g,D]=r.useState(!1),[v,m]=r.useState(!1),[f,b]=r.useState(!1);r.useEffect(()=>{if(!f)return;const p=k=>{const S=k.target;S!=null&&S.closest(".floating-link-dropdown")||S!=null&&S.closest(".floating-link-type-combobox-dropdown")||b(!1)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[f]);const C=r.useCallback(()=>{m(!1),u.update(()=>{const p=N.$getNodeByKey(e);if(!t.$isImageNode(p))return;const k=p.getParent();t.$isImageOverlayWrapperNode(k)?k.remove():p.remove()})},[u,e]),I=r.useCallback(async()=>{if(a)try{await Z(a,Y(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:f,onChange:b,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:"media-actions visible",style:{position:"absolute",top:10,right:10,zIndex:10,pointerEvents:"auto",display:"flex",gap:4},onClick:p=>p.stopPropagation(),children:[o.jsx(he,{t:l,src:a,setShown:Me,id:n}),c&&o.jsxs(o.Fragment,{children:[o.jsx(t.wr,{opened:g,setOpened:D,t:l,editor:u,nodeKey:e}),o.jsx(fe,{opened:v,onOpenChange:m,t:l,onDownload:()=>void I(),onDelete:C,hasLink:!!s,onLinkAction:()=>b(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${s?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(J,{editor:u,nodeKey:e,href:s,onClose:()=>b(!1)})})]})}function Ue({nodeKey:e,src:a,id:n,href:s}){const{t:l}=F.useTranslation(),[u]=B.useLexicalComposerContext(),c=X.useLexicalEditable(),g=t.useCanDownload(),[D,{open:v,close:m}]=W.useDisclosure(!1),[f,{open:b,close:C}]=W.useDisclosure(!1),[I,{open:p,close:k}]=W.useDisclosure(!1),S=()=>{m(),p()},M=r.useMemo(()=>[{id:!n||n==="0"?"":n,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,n]),w=()=>{m(),b()},L=r.useCallback(async()=>{if(m(),!!a)try{await Z(a,Y(a))}catch{}},[a,m]),P=r.useCallback(()=>{m(),u.update(()=>{const j=N.$getNodeByKey(e);t.$isImageNode(j)&&j.remove()})},[u,e,m]);return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"image-touch-actions",style:{position:"absolute",top:8,right:8,zIndex:10,pointerEvents:"auto"},onClick:j=>j.stopPropagation(),children:o.jsx(t.Lt,{label:l("editor.toolbar.more"),icon:t.O1,iconColor:"var(--mantine-color-gray-text)","aria-label":l("editor.toolbar.more"),onClick:v})}),o.jsx(V.AttachmentsGalleryModal,{opened:f,onOpenChange:j=>j?b():C(),attachments:M,allowDownload:g}),o.jsx(t.yn,{opened:D,onClose:m,title:l("editor.image.mobileActions"),children:o.jsxs(x.Stack,{gap:4,p:0,children:[o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:w,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.gn,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.image.previewFullScreen")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:S,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.zz,size:16,color:"var(--mantine-color-dimmed)"}),children:l(s?"editor.link.editLink":"editor.link.addLink")}),g&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:()=>void L(),leftSection:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.gallery.download")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:P,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16,color:"var(--mantine-color-red-6)"}),children:l("editor.actions.delete")})]})}),o.jsx(t.yn,{opened:I,onClose:k,title:l(s?"editor.link.editLink":"editor.link.addLink"),children:o.jsx(J,{editor:u,nodeKey:e,href:s,onClose:k,mobile:!0})})]})}const pe=75,me=e=>{const{width:a,height:n,isLoading:s,isError:l,src:u,id:c,altText:g,imageRef:D,maxWidth:v,aspectRatio:m,href:f}=e,b=r.useRef(null);return o.jsxs("div",{className:"media-wrapper","data-reserved-box":m?"":void 0,style:{width:a,height:m?"auto":n,aspectRatio:m||void 0,display:"inline-flex",position:"relative"},children:[o.jsx(x.LoadingOverlay,{visible:s,zIndex:1e3,overlayProps:{backgroundOpacity:.5},loaderProps:{size:24,color:"black"}}),o.jsx("a",{className:"editor-image-link","data-link":f?"true":void 0,"data-href":f?t.sanitizeUrl(f):void 0,role:f?"link":void 0,rel:f?"noopener noreferrer":void 0,draggable:!1,onMouseDown:f?C=>{b.current={x:C.clientX,y:C.clientY}}:void 0,onClick:f?C=>{C.preventDefault();const I=b.current;b.current=null,!(I&&Math.hypot(C.clientX-I.x,C.clientY-I.y)>5)&&window.open(t.sanitizeUrl(f),"_blank","noopener,noreferrer")}:void 0,children:o.jsx(Ae,{className:null,src:u,altText:g,imageRef:D,width:"inherit",height:"inherit",maxWidth:v||"auto",id:c})}),t.Ve&&o.jsx(Ue,{nodeKey:e.nodeKey,src:u,id:c,href:f}),t.cr&&o.jsx(Oe,{nodeKey:e.nodeKey,src:u,id:c,href:f}),t.At&&!t.Ve&&!t.cr&&o.jsx(Te,{nodeKey:e.nodeKey,src:u,href:f})]})};function Ae({altText:e,className:a,imageRef:n,src:s,width:l,height:u,maxWidth:c,id:g}){const[D,v]=r.useState(!1);return o.jsx("img",{className:`${a||void 0} ${D?"":"loading"}`,src:s,alt:e,ref:n,style:{height:u,maxWidth:c,width:l},onLoad:()=>{s.includes("splash")?setTimeout(()=>{v(!0)},100):v(!0)},draggable:"false","data-id":g})}function Re(e){const{disable:a}=r.useContext(t.Context);return a&&t.ImageNode.isPlaceholderSrc(e.src)?null:o.jsx($e,{...e})}function $e({src:e,altText:a,nodeKey:n,width:s,height:l,maxWidth:u,showCaption:c,caption:g,id:D,create:v,alignment:m,imagePickerTab:f,aspectRatio:b,href:C}){var se,le;const I=r.useRef(null),[p,k]=r.useState(!0),[S,M]=r.useState(!1),[w]=B.useLexicalComposerContext(),[L,P]=r.useState(!0),[j,O]=r.useState({width:0,height:0}),{start:Q,cancel:K}=t.pr(),[ze,U]=r.useState(0),{fetchUploadMedia:A,fetchDeleteMedia:ee,maxFileSize:We,imperativeHandleRef:E,disable:we}=r.useContext(t.Context),R=t.mediaMap.has(e)&&(((se=t.mediaMap.get(e))==null?void 0:se.mediaNodeKeys.length)===0||((le=t.mediaMap.get(e))==null?void 0:le.mediaNodeKeys.length)===void 0||e.trim()===""),{t:$}=F.useTranslation(),te=i=>{if(typeof i=="number")return i>0?i:null;if(typeof i=="string"&&!i.includes("%")){const h=parseFloat(i);return Number.isFinite(h)&&h>0?h:null}return null},T=te(s),oe=te(l),xe=Le(s),ne=T&&oe?T/oe:void 0,[be,ke]=r.useState(void 0),ie=r.useMemo(()=>{try{const i=parseFloat(localStorage.getItem("layers-img-ratio:"+e)||"");return Number.isFinite(i)&&i>0?i:void 0}catch{return}},[e]),ye=ne??b??ie??be,[ve,_]=r.useState(!1),Ie=!ve&&!ne&&(b??ie)!=null,[Fe,Ce]=r.useState(0);r.useEffect(()=>w.registerDecoratorListener(()=>{Ce(i=>i+1)}),[R]),r.useEffect(()=>{const i=w.getElementByKey(n);i&&(i.style.removeProperty("aspect-ratio"),i.style.removeProperty("width"))},[w,n]),r.useEffect(()=>{if(!e||e.startsWith("data:image/")||!e.trim()){k(!1);return}const i=new Image;i.src=e,i.onload=()=>{if(k(!1),i.naturalWidth){const h=i.naturalWidth/i.naturalHeight;if(ke(h),i.naturalWidth>=100)try{localStorage.setItem("layers-img-ratio:"+e,String(h))}catch{}!b&&i.naturalWidth>=100&&w.update(()=>{const d=N.$getNodeByKey(n);t.$isImageNode(d)&&d.getAspectRatio()==null&&d.setAspectRatio(h)},{tag:"history-merge"})}},i.onerror=()=>{k(!1)}},[e,R]);const je=(i,h)=>{w.update(()=>{N.$setSelection(null);const d=N.$getNodeByKey(n);t.$isImageNode(d)&&d.setWidthAndHeight(i,h)})},{historyState:re}=t.useSharedHistoryContext(),{settings:{showNestedEditorTreeView:ae}}=t.useSettings();function De(i){return new Promise((h,d)=>{if(t.isSvgSource(i)){const z=t.decodeSvgDataUrl(i);h(z?t.getSvgMarkupSize(z):{width:0,height:0});return}const y=new Image;y.src=i,y.onload=()=>{h({width:y.width,height:y.height})},y.onerror=()=>{d(new Error("Failed to load image"))}})}r.useEffect(()=>{let i=s,h=l,d=pe;if((e.includes("unsplash")?e.trim():!R&&e.trim()||e.includes("upload-src-editor"))&&e!=="upload"){if(T!=null&&T>=d){P(!1),O({width:T,height:T}),_(!0);return}De(e).then(({width:y,height:z})=>{var ce,de;if(typeof i=="number"&&i<d&&y<d)P(!0),O({width:i,height:h});else if(y<d)P(!0),O({width:y,height:z});else if(O({width:y,height:y}),P(!1),!xe){const G=((de=(ce=w.getElementByKey(n))==null?void 0:ce.parentElement)==null?void 0:de.getBoundingClientRect().width)??0;if(G>0&&y<G){const ue=y/G*100;w.update(()=>{const ge=N.$getNodeByKey(n);t.$isImageNode(ge)&&ge.setWidthAndHeight(ue,ue)},{tag:"history-merge"})}}_(!0)}).catch(y=>{_(!0),console.warn("Ошибка при загрузке изображения:",y.message)})}},[e,R]),r.useEffect(()=>{j.width&&j.height&&L&&w.update(()=>{const i=N.$getNodeByKey(n);t.$isImageNode(i)&&i.setWidthAndHeight(j.width,j.height)})},[j.width,j.height,L]);const Ne=r.useCallback(i=>t.$writeImagePickerTabToNode(w,n,i),[w,n]),q=r.useCallback((i,h)=>{M(!1),k(!1),w.update(()=>{const d=N.$getNodeByKey(n);t.$isImageNode(d)&&(d.setSrc(i),d.setId(h))})},[w,n]),Se=r.useCallback(()=>{K(),M(!1),k(!1),U(0)},[K]),H=r.useCallback(i=>{M(!0),k(!0);const h=Q();A&&A(i[0],(d,y)=>{q(d,y),U(0)},d=>{d&&V.showErrorNotification({message:$("editor.gallery.errorFile")}),U(0),q(e.startsWith("blob:")?"upload":"","")},h,d=>{U(d)},w.getEditorState().read(()=>{const d=N.$getNodeByKey(n);return t.$isImageNode(d)?d.getId():void 0}))},[w,A,n,Q,$,q,e]);return r.useEffect(()=>w.registerCommand(t.UPLOAD_IMAGE_COMMAND,i=>!e.startsWith("blob:")&&e!=="upload"||i.targetNodeKey!==n?!1:(H(i.files),!0),N.COMMAND_PRIORITY_LOW),[w,H,n,e]),!e||e==="upload"?S?o.jsx(x.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:o.jsx(t.fr,{onCancel:Se})}):o.jsx(x.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:o.jsx(t.ImagePicker,{inline:!0,nodeKey:n,defaultTabValue:f,onWriteTabToNode:Ne,onUpload:i=>{var d,y;if(!A||!i.length)return;H([i[0]]);const h=i.slice(1);h.length&&((y=(d=E==null?void 0:E.current)==null?void 0:d.insertImages)==null||y.call(d,h))},popoverProps:{opened:!0,position:"bottom",zIndex:t.EDITOR_UI_MIN_Z_INDEX},onChange:i=>{w.update(()=>{const h=N.$getNodeByKey(n);t.$isImageNode(h)&&h.setSrc(i)})}})}):L&&!Ie?o.jsx(me,{width:j.width,height:j.height,isLoading:p,isError:!1,isIcon:L,src:e,id:D,editor:w,nodeKey:n,fetchDeleteMedia:ee,altText:a,imageRef:I,maxWidth:u,showCaption:c,caption:g,isCollabActive:!1,historyState:re,showNestedEditorTreeView:ae,t:$,href:C}):o.jsx(t.yr,{editor:w,isIcon:L,minWidthPx:pe,width:t.parseContainerSize(s),height:t.parseContainerSize(l),initialWidth:j.width||"",initialHeight:j.height||"",onResizeEnd:je,alignment:m,disable:we,onRegisterDecoratorEnter:i=>{E!=null&&E.current&&(E.current.decoratorEnterAction=i)},onActivate:()=>w.dispatchCommand(t.ON_CHANGE_COMMAND,"show_menu"),children:o.jsx(me,{width:"inherit",height:"inherit",aspectRatio:ye,isLoading:p,isError:!1,isIcon:L,src:e,id:D,editor:w,nodeKey:n,fetchDeleteMedia:ee,altText:a,imageRef:I,maxWidth:u,showCaption:c,caption:g,isCollabActive:!1,historyState:re,showNestedEditorTreeView:ae,t:$,href:C})})}exports.default=Re;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("react"),F=require("react-i18next"),B=require("@lexical/react/LexicalComposerContext"),x=require("@mantine/core"),N=require("lexical"),t=require("./layers.UN2ykxc0.js"),V=require("@layers-app/shared"),X=require("@lexical/react/useLexicalEditable"),W=require("@mantine/hooks");require("@lexical/react/LexicalDecoratorBlockNode");require("@lexical/utils");require("@lexical/mark");require("@lexical/code");require("@lexical/selection");require("react-dom");require("@lexical/react/LexicalErrorBoundary");require("@lexical/react/LexicalBlockWithAlignableContents");require("@mantine/notifications");const Le=e=>{if(typeof e=="number")return e>0;if(e.includes("%"))return e!==t.DEFAULT_NEW_IMAGE_WIDTH_HEIGHT;const a=parseFloat(e);return Number.isFinite(a)&&a>0};function Ee(e,a){const n=document.createElement("a");n.href=e,n.download=a,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()}function Y(e){try{const n=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return n.includes(".")?n:`${n}.png`}catch{return"image"}}async function Z(e,a){const n=await fetch(e);if(!n.ok)throw new Error("fetch failed");const s=await n.blob(),l=URL.createObjectURL(s);try{Ee(l,a)}finally{setTimeout(()=>URL.revokeObjectURL(l),0)}}function Pe({editor:e,nodeKey:a,href:n,onClose:s}){const[l,u]=r.useState(()=>t.getLinkTypeFromUrl(n)),[c,g]=r.useState(()=>t.removeProtocol(n)),[D,v]=r.useState(!1),m=r.useCallback(p=>{u(p),v(!1)},[]),f=r.useCallback(p=>{g(p),v(!1)},[]),b=r.useCallback(()=>{const p=t.addProtocolIfNeeded(c.trim(),l);if(!p||!t.isValidUrl(p,l)){v(!0);return}t.$writeImageLinkToNode(e,a,t.sanitizeUrl(p)),s()},[e,a,c,l,s]),C=r.useCallback(()=>{t.$writeImageLinkToNode(e,a,""),s()},[e,a,s]),I=r.useCallback(p=>{p.key==="Enter"?(p.preventDefault(),b()):p.key==="Escape"&&(p.preventDefault(),s())},[b,s]);return{linkType:l,linkUrl:c,error:D,onLinkTypeChange:m,onUrlInputChange:f,onUrlInputKeyDown:I,onSave:b,onRemove:C}}function J({editor:e,nodeKey:a,href:n,onClose:s,mobile:l}){const u=r.useRef(null),c=Pe({editor:e,nodeKey:a,href:n,onClose:s});return r.useEffect(()=>{var g;(g=u.current)==null||g.focus({preventScroll:!0})},[]),o.jsx(t.CreateMode,{inputRef:u,linkUrl:c.linkUrl,linkType:c.linkType,error:c.error,mobile:l,onLinkTypeChange:c.onLinkTypeChange,onUrlInputChange:c.onUrlInputChange,onUrlInputKeyDown:c.onUrlInputKeyDown,onCancel:s,onSave:c.onSave,onRemove:n?c.onRemove:void 0})}function fe({opened:e,onOpenChange:a,t:n,onDownload:s,onDelete:l,hasLink:u,onLinkAction:c}){return o.jsxs(x.Menu,{opened:e,onChange:a,transitionProps:t.Tt,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[o.jsx(x.Menu.Target,{children:o.jsx(t.Lt,{label:n("editor.toolbar.more"),icon:t.K1,iconColor:"var(--mantine-color-gray-text)","aria-label":n("editor.toolbar.more")})}),o.jsxs(x.Menu.Dropdown,{p:4,miw:164,w:"max-content",onMouseDown:g=>g.preventDefault(),children:[c&&o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.Icon,{name:"link",size:16})}),onClick:g=>{g.stopPropagation(),c()},children:n(u?"editor.link.editLink":"editor.link.addLink")}),o.jsx(x.Menu.Item,{leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"gray.6",children:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16})}),onClick:g=>{g.stopPropagation(),s()},children:n("editor.gallery.download")}),o.jsx(x.Menu.Item,{color:"red",leftSection:o.jsx(x.Flex,{align:"center",justify:"center",c:"red.6",children:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16})}),onClick:g=>{g.stopPropagation(),l()},children:n("editor.contextMenu.delete")})]})]})}const he=({t:e,src:a,setShown:n,id:s})=>{const[l,{open:u,close:c}]=W.useDisclosure(!1),g=t.useCanDownload(),D=r.useMemo(()=>[{id:!s||s==="0"?"":s,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,s]),v=m=>{m?u():c()};return o.jsxs(o.Fragment,{children:[o.jsx(V.AttachmentsGalleryModal,{opened:l,onOpenChange:v,attachments:D,allowDownload:g}),o.jsx(t.Lt,{label:e("editor.image.preview"),icon:t.gn,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{n(!1),u()}})]})},Te=({nodeKey:e,src:a,href:n})=>{const[s]=B.useLexicalComposerContext(),l=X.useLexicalEditable(),[u,c]=r.useState(!1),[g,D]=r.useState(!1),[v,m]=r.useState(!1),{t:f}=F.useTranslation();r.useEffect(()=>{if(!v)return;const I=p=>{const k=p.target;k!=null&&k.closest(".floating-link-dropdown")||k!=null&&k.closest(".floating-link-type-combobox-dropdown")||m(!1)};return document.addEventListener("pointerdown",I,!0),()=>document.removeEventListener("pointerdown",I,!0)},[v]);const b=r.useCallback(()=>{s.update(()=>{const I=N.$getNodeByKey(e);t.$isImageNode(I)&&I.remove()})},[s,e]),C=r.useCallback(async()=>{if(a)try{await Z(a,Y(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:v,onChange:m,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:`media-actions ${l?"":"media-actions--readonly"}`,children:[o.jsx(he,{t:f,src:a,setShown:()=>{}}),l&&o.jsxs(o.Fragment,{children:[o.jsx(t.wr,{opened:u,setOpened:c,t:f,editor:s,nodeKey:e,setShown:()=>{}}),o.jsx(fe,{opened:g,onOpenChange:D,t:f,onDownload:()=>void C(),onDelete:b,hasLink:!!n,onLinkAction:()=>m(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${n?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(J,{editor:s,nodeKey:e,href:n,onClose:()=>m(!1)})})]})},Me=()=>{};function Oe({nodeKey:e,src:a,id:n,href:s}){const{t:l}=F.useTranslation(),[u]=B.useLexicalComposerContext(),c=X.useLexicalEditable(),[g,D]=r.useState(!1),[v,m]=r.useState(!1),[f,b]=r.useState(!1);r.useEffect(()=>{if(!f)return;const p=k=>{const S=k.target;S!=null&&S.closest(".floating-link-dropdown")||S!=null&&S.closest(".floating-link-type-combobox-dropdown")||b(!1)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[f]);const C=r.useCallback(()=>{m(!1),u.update(()=>{const p=N.$getNodeByKey(e);if(!t.$isImageNode(p))return;const k=p.getParent();t.$isImageOverlayWrapperNode(k)?k.remove():p.remove()})},[u,e]),I=r.useCallback(async()=>{if(a)try{await Z(a,Y(a))}catch{}},[a]);return o.jsxs(x.Popover,{opened:f,onChange:b,position:"bottom-end",offset:4,shadow:"md",radius:"md",withinPortal:!0,closeOnClickOutside:!1,children:[o.jsx(x.Popover.Target,{children:o.jsxs("div",{className:"media-actions visible",style:{position:"absolute",top:10,right:10,zIndex:10,pointerEvents:"auto",display:"flex",gap:4},onClick:p=>p.stopPropagation(),children:[o.jsx(he,{t:l,src:a,setShown:Me,id:n}),c&&o.jsxs(o.Fragment,{children:[o.jsx(t.wr,{opened:g,setOpened:D,t:l,editor:u,nodeKey:e}),o.jsx(fe,{opened:v,onOpenChange:m,t:l,onDownload:()=>void I(),onDelete:C,hasLink:!!s,onLinkAction:()=>b(!0)})]})]})}),o.jsx(x.Popover.Dropdown,{className:`floating-link-dropdown floating-link-dropdown--${s?"edit":"create"}-mode`,"data-test-id":"floating-link-dropdown",children:o.jsx(J,{editor:u,nodeKey:e,href:s,onClose:()=>b(!1)})})]})}function Ue({nodeKey:e,src:a,id:n,href:s}){const{t:l}=F.useTranslation(),[u]=B.useLexicalComposerContext(),c=X.useLexicalEditable(),g=t.useCanDownload(),[D,{open:v,close:m}]=W.useDisclosure(!1),[f,{open:b,close:C}]=W.useDisclosure(!1),[I,{open:p,close:k}]=W.useDisclosure(!1),S=()=>{m(),p()},M=r.useMemo(()=>[{id:!n||n==="0"?"":n,Url:a??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[a,n]),w=()=>{m(),b()},L=r.useCallback(async()=>{if(m(),!!a)try{await Z(a,Y(a))}catch{}},[a,m]),P=r.useCallback(()=>{m(),u.update(()=>{const j=N.$getNodeByKey(e);t.$isImageNode(j)&&j.remove()})},[u,e,m]);return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"image-touch-actions",style:{position:"absolute",top:8,right:8,zIndex:10,pointerEvents:"auto"},onClick:j=>j.stopPropagation(),children:o.jsx(t.Lt,{label:l("editor.toolbar.more"),icon:t.O1,iconColor:"var(--mantine-color-gray-text)","aria-label":l("editor.toolbar.more"),onClick:v})}),o.jsx(V.AttachmentsGalleryModal,{opened:f,onOpenChange:j=>j?b():C(),attachments:M,allowDownload:g}),o.jsx(t.yn,{opened:D,onClose:m,title:l("editor.image.mobileActions"),children:o.jsxs(x.Stack,{gap:4,p:0,children:[o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:w,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.gn,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.image.previewFullScreen")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:S,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.zz,size:16,color:"var(--mantine-color-dimmed)"}),children:l(s?"editor.link.editLink":"editor.link.addLink")}),g&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:()=>void L(),leftSection:o.jsx(t.HugeiconsIcon,{icon:t.Tm,size:16,color:"var(--mantine-color-dimmed)"}),children:l("editor.gallery.download")}),c&&o.jsx(x.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:P,leftSection:o.jsx(t.HugeiconsIcon,{icon:t.lg,size:16,color:"var(--mantine-color-red-6)"}),children:l("editor.actions.delete")})]})}),o.jsx(t.yn,{opened:I,onClose:k,title:l(s?"editor.link.editLink":"editor.link.addLink"),children:o.jsx(J,{editor:u,nodeKey:e,href:s,onClose:k,mobile:!0})})]})}const pe=75,me=e=>{const{width:a,height:n,isLoading:s,isError:l,src:u,id:c,altText:g,imageRef:D,maxWidth:v,aspectRatio:m,href:f}=e,b=r.useRef(null);return o.jsxs("div",{className:"media-wrapper","data-reserved-box":m?"":void 0,style:{width:a,height:m?"auto":n,aspectRatio:m||void 0,display:"inline-flex",position:"relative"},children:[o.jsx(x.LoadingOverlay,{visible:s,zIndex:1e3,overlayProps:{backgroundOpacity:.5},loaderProps:{size:24,color:"black"}}),o.jsx("a",{className:"editor-image-link","data-link":f?"true":void 0,"data-href":f?t.sanitizeUrl(f):void 0,role:f?"link":void 0,rel:f?"noopener noreferrer":void 0,draggable:!1,onMouseDown:f?C=>{b.current={x:C.clientX,y:C.clientY}}:void 0,onClick:f?C=>{C.preventDefault();const I=b.current;b.current=null,!(I&&Math.hypot(C.clientX-I.x,C.clientY-I.y)>5)&&window.open(t.sanitizeUrl(f),"_blank","noopener,noreferrer")}:void 0,children:o.jsx(Ae,{className:null,src:u,altText:g,imageRef:D,width:"inherit",height:"inherit",maxWidth:v||"auto",id:c})}),t.Ve&&o.jsx(Ue,{nodeKey:e.nodeKey,src:u,id:c,href:f}),t.cr&&o.jsx(Oe,{nodeKey:e.nodeKey,src:u,id:c,href:f}),t.At&&!t.Ve&&!t.cr&&o.jsx(Te,{nodeKey:e.nodeKey,src:u,href:f})]})};function Ae({altText:e,className:a,imageRef:n,src:s,width:l,height:u,maxWidth:c,id:g}){const[D,v]=r.useState(!1);return o.jsx("img",{className:`${a||void 0} ${D?"":"loading"}`,src:s,alt:e,ref:n,style:{height:u,maxWidth:c,width:l},onLoad:()=>{s.includes("splash")?setTimeout(()=>{v(!0)},100):v(!0)},draggable:"false","data-id":g})}function Re(e){const{disable:a}=r.useContext(t.Context);return a&&t.ImageNode.isPlaceholderSrc(e.src)?null:o.jsx($e,{...e})}function $e({src:e,altText:a,nodeKey:n,width:s,height:l,maxWidth:u,showCaption:c,caption:g,id:D,create:v,alignment:m,imagePickerTab:f,aspectRatio:b,href:C}){var se,le;const I=r.useRef(null),[p,k]=r.useState(!0),[S,M]=r.useState(!1),[w]=B.useLexicalComposerContext(),[L,P]=r.useState(!0),[j,O]=r.useState({width:0,height:0}),{start:Q,cancel:K}=t.pr(),[ze,U]=r.useState(0),{fetchUploadMedia:A,fetchDeleteMedia:ee,maxFileSize:We,imperativeHandleRef:E,disable:we}=r.useContext(t.Context),R=t.mediaMap.has(e)&&(((se=t.mediaMap.get(e))==null?void 0:se.mediaNodeKeys.length)===0||((le=t.mediaMap.get(e))==null?void 0:le.mediaNodeKeys.length)===void 0||e.trim()===""),{t:$}=F.useTranslation(),te=i=>{if(typeof i=="number")return i>0?i:null;if(typeof i=="string"&&!i.includes("%")){const h=parseFloat(i);return Number.isFinite(h)&&h>0?h:null}return null},T=te(s),oe=te(l),xe=Le(s),ne=T&&oe?T/oe:void 0,[be,ke]=r.useState(void 0),ie=r.useMemo(()=>{try{const i=parseFloat(localStorage.getItem("layers-img-ratio:"+e)||"");return Number.isFinite(i)&&i>0?i:void 0}catch{return}},[e]),ye=ne??b??ie??be,[ve,_]=r.useState(!1),Ie=!ve&&!ne&&(b??ie)!=null,[Fe,Ce]=r.useState(0);r.useEffect(()=>w.registerDecoratorListener(()=>{Ce(i=>i+1)}),[R]),r.useEffect(()=>{const i=w.getElementByKey(n);i&&(i.style.removeProperty("aspect-ratio"),i.style.removeProperty("width"))},[w,n]),r.useEffect(()=>{if(!e||e.startsWith("data:image/")||!e.trim()){k(!1);return}const i=new Image;i.src=e,i.onload=()=>{if(k(!1),i.naturalWidth){const h=i.naturalWidth/i.naturalHeight;if(ke(h),i.naturalWidth>=100)try{localStorage.setItem("layers-img-ratio:"+e,String(h))}catch{}!b&&i.naturalWidth>=100&&w.update(()=>{const d=N.$getNodeByKey(n);t.$isImageNode(d)&&d.getAspectRatio()==null&&d.setAspectRatio(h)},{tag:"history-merge"})}},i.onerror=()=>{k(!1)}},[e,R]);const je=(i,h)=>{w.update(()=>{N.$setSelection(null);const d=N.$getNodeByKey(n);t.$isImageNode(d)&&d.setWidthAndHeight(i,h)})},{historyState:re}=t.useSharedHistoryContext(),{settings:{showNestedEditorTreeView:ae}}=t.useSettings();function De(i){return new Promise((h,d)=>{if(t.isSvgSource(i)){const z=t.decodeSvgDataUrl(i);h(z?t.getSvgMarkupSize(z):{width:0,height:0});return}const y=new Image;y.src=i,y.onload=()=>{h({width:y.width,height:y.height})},y.onerror=()=>{d(new Error("Failed to load image"))}})}r.useEffect(()=>{let i=s,h=l,d=pe;if((e.includes("unsplash")?e.trim():!R&&e.trim()||e.includes("upload-src-editor"))&&e!=="upload"){if(T!=null&&T>=d){P(!1),O({width:T,height:T}),_(!0);return}De(e).then(({width:y,height:z})=>{var ce,de;if(typeof i=="number"&&i<d&&y<d)P(!0),O({width:i,height:h});else if(y<d)P(!0),O({width:y,height:z});else if(O({width:y,height:y}),P(!1),!xe){const G=((de=(ce=w.getElementByKey(n))==null?void 0:ce.parentElement)==null?void 0:de.getBoundingClientRect().width)??0;if(G>0&&y<G){const ue=y/G*100;w.update(()=>{const ge=N.$getNodeByKey(n);t.$isImageNode(ge)&&ge.setWidthAndHeight(ue,ue)},{tag:"history-merge"})}}_(!0)}).catch(y=>{_(!0),console.warn("Ошибка при загрузке изображения:",y.message)})}},[e,R]),r.useEffect(()=>{j.width&&j.height&&L&&w.update(()=>{const i=N.$getNodeByKey(n);t.$isImageNode(i)&&i.setWidthAndHeight(j.width,j.height)})},[j.width,j.height,L]);const Ne=r.useCallback(i=>t.$writeImagePickerTabToNode(w,n,i),[w,n]),q=r.useCallback((i,h)=>{M(!1),k(!1),w.update(()=>{const d=N.$getNodeByKey(n);t.$isImageNode(d)&&(d.setSrc(i),d.setId(h))})},[w,n]),Se=r.useCallback(()=>{K(),M(!1),k(!1),U(0)},[K]),H=r.useCallback(i=>{M(!0),k(!0);const h=Q();A&&A(i[0],(d,y)=>{q(d,y),U(0)},d=>{d&&V.showErrorNotification({message:$("editor.gallery.errorFile")}),U(0),q(e.startsWith("blob:")?"upload":"","")},h,d=>{U(d)},w.getEditorState().read(()=>{const d=N.$getNodeByKey(n);return t.$isImageNode(d)?d.getId():void 0}))},[w,A,n,Q,$,q,e]);return r.useEffect(()=>w.registerCommand(t.UPLOAD_IMAGE_COMMAND,i=>!e.startsWith("blob:")&&e!=="upload"||i.targetNodeKey!==n?!1:(H(i.files),!0),N.COMMAND_PRIORITY_LOW),[w,H,n,e]),!e||e==="upload"?S?o.jsx(x.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:o.jsx(t.fr,{onCancel:Se})}):o.jsx(x.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:o.jsx(t.ImagePicker,{inline:!0,nodeKey:n,defaultTabValue:f,onWriteTabToNode:Ne,onUpload:i=>{var d,y;if(!A||!i.length)return;H([i[0]]);const h=i.slice(1);h.length&&((y=(d=E==null?void 0:E.current)==null?void 0:d.insertImages)==null||y.call(d,h))},popoverProps:{opened:!0,position:"bottom",zIndex:t.EDITOR_UI_MIN_Z_INDEX},onChange:i=>{w.update(()=>{const h=N.$getNodeByKey(n);t.$isImageNode(h)&&h.setSrc(i)})}})}):L&&!Ie?o.jsx(me,{width:j.width,height:j.height,isLoading:p,isError:!1,isIcon:L,src:e,id:D,editor:w,nodeKey:n,fetchDeleteMedia:ee,altText:a,imageRef:I,maxWidth:u,showCaption:c,caption:g,isCollabActive:!1,historyState:re,showNestedEditorTreeView:ae,t:$,href:C}):o.jsx(t.yr,{editor:w,isIcon:L,minWidthPx:pe,width:t.parseContainerSize(s),height:t.parseContainerSize(l),initialWidth:j.width||"",initialHeight:j.height||"",onResizeEnd:je,alignment:m,disable:we,onRegisterDecoratorEnter:i=>{E!=null&&E.current&&(E.current.decoratorEnterAction=i)},onActivate:()=>w.dispatchCommand(t.ON_CHANGE_COMMAND,"show_menu"),children:o.jsx(me,{width:"inherit",height:"inherit",aspectRatio:ye,isLoading:p,isError:!1,isIcon:L,src:e,id:D,editor:w,nodeKey:n,fetchDeleteMedia:ee,altText:a,imageRef:I,maxWidth:u,showCaption:c,caption:g,isCollabActive:!1,historyState:re,showNestedEditorTreeView:ae,t:$,href:C})})}exports.default=Re;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.Cxh8kXZ-.js";
|
|
2
2
|
var u = { paste: "Dán", pasteAsPlaintext: "Dán kiểu văn bản thuần", pasteCharts: "Dán biểu đồ", selectAll: "Chọn tất cả", multiSelect: "Thêm mới vào Select", moveCanvas: "Di chuyển canvas", cut: "Cắt", copy: "Sao chép", copyAsPng: "Sao chép vào bộ nhớ tạm dưới dạng PNG", copyAsSvg: "Sao chép vào bộ nhớ tạm dưới dạng SVG", copyText: "Sao chép vào bộ nhớ tạm dưới dạng chữ", copySource: "", convertToCode: "", bringForward: "Đưa ra trước", sendToBack: "Hạ xuống dưới", bringToFront: "Đưa ra đầu tiên", sendBackward: "Hạ xuống cuối", delete: "Xóa", copyStyles: "Sao chép định dạng", pasteStyles: "Dán định dạng", stroke: "Nét", background: "Nền", fill: "Fill", strokeWidth: "Độ dày nét", strokeStyle: "Kiểu nét", strokeStyle_solid: "Khối", strokeStyle_dashed: "Gạch ngang", strokeStyle_dotted: "Nhiều chấm", sloppiness: "Hoa văn nét", opacity: "Độ trong suốt", textAlign: "Căn chỉnh văn bản", edges: "Cạnh", sharp: "Nhọn", round: "Tròn", arrowheads: "Đầu mũi tên", arrowhead_none: "Không", arrowhead_arrow: "Mũi tên", arrowhead_bar: "Thanh", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Tam giác", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Cỡ chữ", fontFamily: "Phông chữ", addWatermark: 'Làm với Excalidraw"', handDrawn: "Vẽ tay", normal: "Bình thường", code: "Mã", small: "Nhỏ", medium: "Vừa", large: "Lớn", veryLarge: "Rất lớn", solid: "Đặc", hachure: "Nét gạch gạch", zigzag: "Zigzag", crossHatch: "Nét gạch chéo", thin: "Mỏng", bold: "In đậm", left: "Trái", center: "Giữa", right: "Phải", extraBold: "Nét siêu đậm", architect: "Kiến trúc sư", artist: "Nghệ sỹ", cartoonist: "Hoạt hình", fileTitle: "Tên tập tin", colorPicker: "Chọn màu", canvasColors: "Đã dùng trên canvas", canvasBackground: "Nền canvas", drawingCanvas: "Canvas vẽ", layers: "Lớp", actions: "Chức năng", language: "Ngôn ngữ", liveCollaboration: "Hợp tác trực tiếp...", duplicateSelection: "Tạo bản sao", untitled: "Không có tiêu đề", name: "Tên", yourName: "Tên của bạn", madeWithExcalidraw: "Làm với Excalidraw", group: "Gộp nhóm lại lựa chọn", ungroup: "Tách nhóm lựa chọn", collaborators: "Cộng tác viên", showGrid: "Hiển thị lưới", addToLibrary: "Thêm vào thư viện", removeFromLibrary: "Xóa khỏi thư viện", libraryLoadingMessage: "Đang tải thư viện…", libraries: "Xem thư viện", loadingScene: "Đang tải về…", align: "Căn chỉnh", alignTop: "Căn trên", alignBottom: "Căn dưới", alignLeft: "Canh trái", alignRight: "Canh phải", centerVertically: "Giữa theo chiều dọc", centerHorizontally: "Giữa theo chiều ngang", distributeHorizontally: "Phân bố theo chiều ngang", distributeVertically: "Phân bố theo chiều dọc", flipHorizontal: "Lật ngang", flipVertical: "Lật dọc", viewMode: "Chế độ xem", share: "Chia sẻ", showStroke: "Hiển thị chọn màu", showBackground: "Hiện thị chọn màu nền", toggleTheme: "", personalLib: "Thư viện cá nhân", excalidrawLib: "Thư viện Excalidraw", decreaseFontSize: "Giảm cỡ chữ", increaseFontSize: "Tăng cỡ chữ", unbindText: "", bindText: "", createContainerFromText: "", link: { edit: "Sửa liên kết", editEmbed: "", create: "Tạo liên kết", createEmbed: "", label: "Liên kết", labelEmbed: "", empty: "" }, lineEditor: { edit: "Điều chỉnh nét", exit: "Thoát chỉnh nét" }, elementLock: { lock: "Khoá", unlock: "Mở khoá", lockAll: "Khóa tất cả", unlockAll: "Mở khóa tất cả" }, statusPublished: "Đã đăng tải", sidebarLock: "Giữ thanh bên luôn mở", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, E = { noItems: "Chưa có món nào...", hint_emptyLibrary: "Chọn một món trên canvas để thêm nó vào đây, hoặc cài đặt thư viện từ kho lưu trữ công cộng, ở bên dưới.", hint_emptyPrivateLibrary: "Chọn một món trên canvas để thêm nó vào đây." }, n = { clearReset: "Reset canvas", exportJSON: "Xuất ra tập tin", exportImage: "Xuất file ảnh...", export: "Lưu vào...", copyToClipboard: "Sao chép vào bộ nhớ tạm", save: "Lưu vào tập tin hiện tại", saveAs: "Lưu thành", load: "Mở", getShareableLink: "Tạo liên kết để chia sẻ", close: "Đóng", selectLanguage: "Chọn ngôn ngữ", scrollBackToContent: "Cuộn về nội dung chính", zoomIn: "Phóng to", zoomOut: "Thu nhỏ", resetZoom: "Đặt lại thu phóng", menu: "Bảng chọn", done: "Xong", edit: "Chỉnh sửa", undo: "Hoàn tác", redo: "Làm lại", resetLibrary: "", createNewRoom: "Tạo phòng mới", fullScreen: "Toàn màn hình", darkMode: "Chế độ tối", lightMode: "Chế độ sáng", zenMode: "Chế độ zen", objectsSnapMode: "", exitZenMode: "Thoát chể độ zen", cancel: "Hủy", clear: "Làm sạch", remove: "Xóa", embed: "", publishLibrary: "Đăng tải", submit: "Gửi", confirm: "Xác nhận", embeddableInteractionButton: "" }, e = { clearReset: "Điều này sẽ dọn hết canvas. Bạn có chắc không?", couldNotCreateShareableLink: "Không thể tạo đường dẫn chia sẻ.", couldNotCreateShareableLinkTooBig: "Không thể tạo đường dẫn chia sẻ: bản vẽ quá lớn", couldNotLoadInvalidFile: "Không thể load tập tin không hợp lệ", importBackendFailed: "", cannotExportEmptyCanvas: "Không thể xuất canvas trống.", couldNotCopyToClipboard: "", decryptFailed: "Không thể giải mã dữ liệu.", uploadedSecurly: "", loadSceneOverridePrompt: "", collabStopOverridePrompt: `Dừng phiên sẽ ghi đè lên bản vẽ được lưu trữ cục bộ trước đó của bạn. Bạn có chắc không?
|
|
3
3
|
|
|
4
4
|
(Nếu bạn muốn giữ bản vẽ cục bộ của mình, chỉ cần đóng tab trình duyệt.)`, errorAddingToLibrary: "Không thể thêm món vào thư viện", errorRemovingFromLibrary: "Không thể xoá món khỏi thư viện", confirmAddLibrary: "Hình {{numShapes}} sẽ được thêm vào thư viện. Bạn chắc chứ?", imageDoesNotContainScene: "Hình ảnh này dường như không chứa bất kỳ dữ liệu cảnh nào. Bạn đã bật tính năng nhúng cảnh khi xuất chưa?", cannotRestoreFromImage: "", invalidSceneUrl: "", resetLibrary: "", removeItemsFromsLibrary: "Xoá {{count}} món từ thư viện?", invalidEncryptionKey: "Khóa mã hóa phải có 22 ký tự. Hợp tác trực tiếp bị vô hiệu hóa.", collabOfflineWarning: `Không có kết nối internet.
|