@layers-app/editor 0.5.2 → 0.5.4-optimization
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{layers.2RmTpOSe.js → layers.0EAb8Ajx.js} +2 -2
- package/dist/{layers.BekArbNQ.js → layers.1Mvzm38Y.js} +3 -3
- package/dist/{layers.HISmbvvZ.js → layers.2wIERhxO.js} +1 -1
- package/dist/{layers.BJWQnQ1b.js → layers.694DrE1_.js} +3 -3
- package/dist/{layers.DtwPvqvM.js → layers.B-5aeeDH.js} +4 -4
- package/dist/{layers.Da7N3t0o.js → layers.B0winug5.js} +2 -2
- package/dist/{layers.n8BNeBDu.js → layers.B1S8ufDn.js} +1 -1
- package/dist/{layers.qKFGZSrv.js → layers.B3JNY9Km.js} +1 -1
- package/dist/{layers.D-P1auk3.js → layers.B6W2tqC0.js} +1 -1
- package/dist/{layers.DgQ6wjQ6.js → layers.B7Olyhe8.js} +1 -1
- package/dist/{layers.Deuxf8WS.js → layers.BCuuRSaf.js} +1 -1
- package/dist/{layers.B5fhqRqQ.js → layers.BESPlBGC.js} +1 -1
- package/dist/{layers.BocrFl_z.js → layers.BJTh7mUo.js} +2 -2
- package/dist/{layers.Bw7AFM_C.js → layers.BLL-019k.js} +1 -1
- package/dist/{layers.BEsDNARG.js → layers.BNJiP8Pw.js} +1 -1
- package/dist/{layers.8xliMm_4.js → layers.BNvAl5dS.js} +2 -2
- package/dist/{layers.C-f2Ts9u.js → layers.BThP74aw.js} +1 -1
- package/dist/{layers.BLomL8Y1.js → layers.BZ4laUeR.js} +1 -1
- package/dist/{layers.DGKHsEgL.js → layers.BZByPNdY.js} +1 -1
- package/dist/{layers.COTtcXWr.js → layers.B_5zMrI3.js} +1 -1
- package/dist/{layers.KNG61fVD.js → layers.B_7N5yjX.js} +1 -1
- package/dist/{layers.CvCe_XZO.js → layers.BdvfoI4U.js} +1 -1
- package/dist/{layers.CyGuH0wW.js → layers.BiJBOHr0.js} +1 -1
- package/dist/{layers.GGg0Uela.js → layers.Bk3_8qR9.js} +6 -6
- package/dist/{layers.CG-pQKxy.js → layers.BkPPOKBy.js} +1 -1
- package/dist/{layers.Ww9bBIaA.js → layers.BnZcjRLr.js} +1 -1
- package/dist/{layers.D-4uOpUj.js → layers.BqpcWKH6.js} +4 -4
- package/dist/{layers.J-SBicA2.js → layers.Br7D0wMN.js} +1 -1
- package/dist/{layers.LG7pZboq.js → layers.BsAu1GXs.js} +1 -1
- package/dist/{layers.DRi0nv8t.js → layers.Bv5sK47C.js} +3 -3
- package/dist/{layers.YUbPYUxB.js → layers.BxEdkUpI.js} +3 -3
- package/dist/{layers.DAUiVpfA.js → layers.BxUBbVsO.js} +1 -1
- package/dist/{layers.DkRaFpYI.js → layers.Bzalhqz_.js} +1 -1
- package/dist/{layers.BrBnUsI5.js → layers.C-dS7ntQ.js} +1 -1
- package/dist/{layers.CLG-12Ft.js → layers.C5BFsvzI.js} +2 -2
- package/dist/{layers.DzWUGmmi.js → layers.C5WLg9ed.js} +8 -8
- package/dist/{layers.jS5D2j9k.js → layers.C6lAFlKZ.js} +4 -4
- package/dist/{layers.N7uLiJJF.js → layers.CGwNL7dH.js} +5 -5
- package/dist/{layers.B7R5e9nb.js → layers.CI739wqN.js} +1 -1
- package/dist/{layers.CBTk7340.js → layers.CKaj4dG4.js} +1 -1
- package/dist/{layers.DXM-M_t4.js → layers.CLRiSwgi.js} +3 -3
- package/dist/{layers.B9H_VqGH.js → layers.CN1QkD6D.js} +1 -1
- package/dist/{layers.CAAtHbGC.js → layers.CPY6U3g-.js} +1 -1
- package/dist/{layers.C8d9V9GQ.js → layers.CRSjdIG6.js} +1 -1
- package/dist/{layers.D_qBxnuW.js → layers.CUHkTCid.js} +1 -1
- package/dist/{layers.BBu8KTxD.js → layers.CUPMw0sy.js} +1 -1
- package/dist/{layers.k5zSy7kx.js → layers.CWb6LiAY.js} +1 -1
- package/dist/{layers.CNNAjKqx.js → layers.C_XsSNQo.js} +1 -1
- package/dist/{layers.CfjCZzg8.js → layers.CbmlFoXt.js} +1 -1
- package/dist/{layers.D-0DKizI.js → layers.CfGeHh-g.js} +1 -1
- package/dist/{layers.CF0jHwg8.js → layers.CiJxVu9b.js} +1 -1
- package/dist/{layers.1kchl9Fg.js → layers.Cj4ezyVr.js} +1 -1
- package/dist/{layers.mkPf05Ff.js → layers.Cpb-MRZn.js} +1 -1
- package/dist/{layers.RY1Pc_vI.js → layers.CskURloi.js} +1 -1
- package/dist/{layers.B5o5YNLY.js → layers.CtTD47i4.js} +1 -1
- package/dist/{layers.g0MJEmgM.js → layers.CxcvEfKe.js} +1 -1
- package/dist/{layers.Fv2UzX_J.js → layers.D-U9uIsP.js} +1 -1
- package/dist/{layers.B4cctrKy.js → layers.D10WeKck.js} +3 -3
- package/dist/{layers.CjZ_56YO.js → layers.D4jK2Tet.js} +1 -1
- package/dist/{layers.DZAc2rlA.js → layers.DBosqi2D.js} +4 -4
- package/dist/{layers.BzfTuld3.js → layers.DGtETOVJ.js} +1 -1
- package/dist/{layers.A7FX8Cpf.js → layers.DKENAsMv.js} +4 -4
- package/dist/{layers.DuQS64hQ.js → layers.DOBSfaUM.js} +1 -1
- package/dist/{layers.CPdjh9hT.js → layers.DOKLQ6A3.js} +3 -3
- package/dist/{layers.DLK9DV2V.js → layers.DPuVWH3L.js} +1 -1
- package/dist/{layers.CNAZOY0z.js → layers.DQVXh43C.js} +1 -1
- package/dist/{layers.CX_ayh7E.js → layers.DSTh89J8.js} +1 -1
- package/dist/{layers.fdHV7i_n.js → layers.DUsIfvNt.js} +24899 -25580
- package/dist/{layers.CeNyh2LV.js → layers.DVfpGIrv.js} +1 -1
- package/dist/{layers.DyVeJ5nq.js → layers.DWSkLlGf.js} +1 -1
- package/dist/{layers.Bz8CGnnD.js → layers.DX1RI3m3.js} +1 -1
- package/dist/{layers.Bv6t74Ng.js → layers.DdMwmP4m.js} +1 -1
- package/dist/{layers.cXShihLV.js → layers.DhkyREpW.js} +3 -3
- package/dist/{layers.YejPlmok.js → layers.Dj-f1_6N.js} +1 -1
- package/dist/{layers.DAgjLyi0.js → layers.DjhJT1nZ.js} +4 -4
- package/dist/{layers.B1970UjZ.js → layers.Djl9Gz6s.js} +2 -2
- package/dist/{layers.CO0NalVl.js → layers.Dn2AP7iE.js} +5 -5
- package/dist/{layers.37cL7YbN.js → layers.Dqbek_0L.js} +1 -1
- package/dist/{layers.D176Y7Vo.js → layers.DsDjOLHs.js} +3 -3
- package/dist/layers.DsOaqGXW.js +8 -0
- package/dist/{layers.DG5nJvev.js → layers.DuE1l7lR.js} +1 -1
- package/dist/{layers.DneF9QFl.js → layers.DxHlP7Pb.js} +1 -1
- package/dist/{layers.CCGTXI7t.js → layers.DyZ5R-vS.js} +1 -1
- package/dist/{layers.ku7sc5w7.js → layers.H2Kl_PC2.js} +1 -1
- package/dist/{layers.DJJF7QHv.js → layers.IW4NBP9k.js} +1 -1
- package/dist/{layers.ByEhw12k.js → layers.LGx1jmqd.js} +1 -1
- package/dist/{layers.CfsQNfbN.js → layers.NABwYdw5.js} +1 -1
- package/dist/{layers.D__Ge0jR.js → layers.NtwvbkGN.js} +3 -3
- package/dist/{layers.CgqehJlq.js → layers.O-bFTk-n.js} +4 -4
- package/dist/{layers.T5F5IY6f.js → layers.R_udKe_N.js} +1 -1
- package/dist/{layers.DZ4rueAA.js → layers.TdTDbIzb.js} +1 -1
- package/dist/{layers.0aivjg14.js → layers.WLeJl9el.js} +4 -4
- package/dist/{layers.B_C8Ox8-.js → layers.dEHKcy8J.js} +2 -2
- package/dist/{layers.D9oxm2Q3.js → layers.eTredPK_.js} +1 -1
- package/dist/{layers.4q_x5roN.js → layers.gIdzfQAa.js} +1 -1
- package/dist/{layers.CzqAzeMM.js → layers.huV95Ipe.js} +1 -1
- package/dist/{layers.KZKDnGbd.js → layers.jU4W5PG5.js} +24 -24
- package/dist/{layers.BRVeeDcH.js → layers.mQcENPPW.js} +4 -4
- package/dist/{layers.B1TVCKFc.js → layers.nPQCmYXI.js} +1 -1
- package/dist/{layers.BWwCeuKP.js → layers.ntC1foLT.js} +1 -1
- package/dist/layers.uHy1yMbq.js +6 -0
- package/package.json +5 -4
- package/dist/index.cjs +0 -2
- package/dist/layers.-TbWEgSf.js +0 -425
- package/dist/layers.52famHy6.js +0 -1
- package/dist/layers.68ma6K6f.js +0 -1
- package/dist/layers.6HZckrJk.js +0 -1
- package/dist/layers.9pNaFvaX.js +0 -1
- package/dist/layers.B-MfAaIy.js +0 -1
- package/dist/layers.B17DijoR.js +0 -6
- package/dist/layers.B19hGmey.js +0 -1
- package/dist/layers.B1IP0xF5.js +0 -122
- package/dist/layers.B2wb1BnV.js +0 -1
- package/dist/layers.B3D4g2HH.js +0 -1
- package/dist/layers.B3QZKSP7.js +0 -4
- package/dist/layers.B5eIpqUm.js +0 -5
- package/dist/layers.B7QKbjTP.js +0 -1
- package/dist/layers.B9gDt0mt.js +0 -2
- package/dist/layers.BAtv1CM7.js +0 -1
- package/dist/layers.BAx1rxXM.js +0 -1
- package/dist/layers.BC0UHUHZ.js +0 -6
- package/dist/layers.BIFfWqjp.js +0 -6
- package/dist/layers.BIRO82v2.js +0 -1
- package/dist/layers.BIXkxpJg.js +0 -7
- package/dist/layers.BIeVwYKL.js +0 -1
- package/dist/layers.BKA3G4tE.js +0 -8
- package/dist/layers.BKcOrB7G.js +0 -8
- package/dist/layers.BLd2spTm.js +0 -1
- package/dist/layers.BOGcxS4S.js +0 -11
- package/dist/layers.BPpqQ2zl.js +0 -10
- package/dist/layers.BQGV7_aP.js +0 -7
- package/dist/layers.BQvMgKOV.js +0 -257
- package/dist/layers.BSB9eX8_.js +0 -96
- package/dist/layers.BSDp4pjf.js +0 -160
- package/dist/layers.BSTBZrFn.js +0 -1
- package/dist/layers.BXYVnzZo.js +0 -10
- package/dist/layers.BYxlPasW.js +0 -9
- package/dist/layers.B_rZy9ZE.js +0 -10
- package/dist/layers.Becl7PvM.js +0 -1
- package/dist/layers.BgOa2ZQq.js +0 -7
- package/dist/layers.BhZmc2PE.js +0 -1
- package/dist/layers.BhaSD27u.js +0 -8
- package/dist/layers.Bm7EN78W.js +0 -5
- package/dist/layers.BrhJtZkc.js +0 -84
- package/dist/layers.Bsxy-Zmv.js +0 -7
- package/dist/layers.Bu9go6nF.js +0 -10
- package/dist/layers.BuJFmhxG.js +0 -1
- package/dist/layers.BuNBio9d.js +0 -10
- package/dist/layers.BufbpNF2.js +0 -35
- package/dist/layers.C0xLKPSB.js +0 -7
- package/dist/layers.C9KUAI3S.js +0 -9
- package/dist/layers.C9Qm4iyY.js +0 -51
- package/dist/layers.CDnEPiFS.js +0 -13
- package/dist/layers.CFEmW02q.js +0 -189
- package/dist/layers.CFpY72SE.js +0 -1
- package/dist/layers.CHZsXQcr.js +0 -1
- package/dist/layers.CIBiA4cp.js +0 -9
- package/dist/layers.CJ5oFhK5.js +0 -9
- package/dist/layers.CLQVPEWO.js +0 -70
- package/dist/layers.CNAp0agL.js +0 -11
- package/dist/layers.COsJBDU8.js +0 -11
- package/dist/layers.CSFyrYzY.js +0 -118
- package/dist/layers.Ce_CBSin.js +0 -9
- package/dist/layers.CildyhOW.js +0 -1
- package/dist/layers.CjBfNqWg.js +0 -207
- package/dist/layers.Ct7y2KbU.js +0 -1
- package/dist/layers.CtASemAs.js +0 -1
- package/dist/layers.CvF4WyAB.js +0 -8
- package/dist/layers.CvgnifSj.js +0 -10
- package/dist/layers.Cyzu9PKQ.js +0 -1
- package/dist/layers.CzZCiNn3.js +0 -1
- package/dist/layers.Cz_HcKZR.js +0 -9
- package/dist/layers.D-z4IZwp.js +0 -139
- package/dist/layers.D0zn4_Mx.js +0 -1
- package/dist/layers.D1TLKJdE.js +0 -2
- package/dist/layers.D4SM8Ihn.js +0 -10
- package/dist/layers.D819V-1U.js +0 -5
- package/dist/layers.D92dwfZm.js +0 -9
- package/dist/layers.DG5DkMsX.js +0 -4
- package/dist/layers.DGIvTJgm.js +0 -1
- package/dist/layers.DJINSxsc.js +0 -1
- package/dist/layers.DLNMmOF6.js +0 -10
- package/dist/layers.DMkBISW1.js +0 -1
- package/dist/layers.DO3jf13r.js +0 -139
- package/dist/layers.DOrgOHBr.js +0 -1
- package/dist/layers.DTEtUQ-N.js +0 -11
- package/dist/layers.DZAwluRX.js +0 -7
- package/dist/layers.DbCde96z.js +0 -61
- package/dist/layers.DbaKVP5e.js +0 -1
- package/dist/layers.Dhs3Sikn.js +0 -230
- package/dist/layers.DizdRJDv.js +0 -10
- package/dist/layers.Dn0j_OK5.js +0 -8
- package/dist/layers.DnohNr8z.js +0 -2
- package/dist/layers.DtjaV33P.js +0 -4
- package/dist/layers.DvcL-c1J.js +0 -10
- package/dist/layers.DwGEUGi4.js +0 -1
- package/dist/layers.Dwf-cmfl.js +0 -1
- package/dist/layers.DxuaZtRi.js +0 -116
- package/dist/layers.Dz5Fekdu.js +0 -8
- package/dist/layers.DzTjTsrg.js +0 -52
- package/dist/layers.DzWSztoe.js +0 -8
- package/dist/layers.JWCLFILJ.js +0 -1
- package/dist/layers.Jy2BJnrD.js +0 -7
- package/dist/layers.Kcxw1ZN5.js +0 -8
- package/dist/layers.P0mMn9V6.js +0 -4
- package/dist/layers.UBsT16id.js +0 -9
- package/dist/layers.YsjMDe1Z.js +0 -8
- package/dist/layers._IMfh4Om.js +0 -1
- package/dist/layers.dBCFbDUQ.js +0 -5
- package/dist/layers.dsZSDggl.js +0 -1
- package/dist/layers.dzPD2Tq6.js +0 -8
- package/dist/layers.g6KGAlYG.js +0 -7
- package/dist/layers.gAwY5NlW.js +0 -6
- package/dist/layers.hJXmn9h9.js +0 -3
- package/dist/layers.hMr_bHrn.js +0 -1
- package/dist/layers.hweLqW3I.js +0 -261
- package/dist/layers.ifrGR0tH.js +0 -1
- package/dist/layers.l0OsrJxT.js +0 -9
- package/dist/layers.mcrEJ5IL.js +0 -1
- package/dist/layers.nesKhKqv.js +0 -9
- package/dist/layers.o8uxn2z6.js +0 -6
- package/dist/layers.tehvhFRL.js +0 -11
- package/dist/layers.yaVCGcoo.js +0 -7
package/dist/layers.CSFyrYzY.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.BSB9eX8_.js"),U=require("./layers.P0mMn9V6.js"),Ie=require("./layers.BLd2spTm.js");require("./layers.Dhs3Sikn.js");const Ae=require("./layers.CzZCiNn3.js"),Ce=require("./layers.B19hGmey.js"),ze=require("./layers.BIeVwYKL.js");function Re(e,r){for(var o=-1,c=e==null?0:e.length;++o<c&&r(e[o],o,e)!==!1;);return e}function xe(e){return u.isArrayLike(e)?u.arrayLikeKeys(e):u.baseKeys(e)}function Be(e,r){return e&&u.copyObject(r,xe(r),e)}function je(e,r){for(var o=-1,c=e==null?0:e.length,i=0,h=[];++o<c;){var l=e[o];r(l,o,e)&&(h[i++]=l)}return h}function Pe(){return[]}var Fe=Object.prototype,Ke=Fe.propertyIsEnumerable,le=Object.getOwnPropertySymbols,Le=le?function(e){return e==null?[]:(e=Object(e),je(le(e),function(r){return Ke.call(e,r)}))}:Pe;function Me(e,r){return u.copyObject(e,Le(e),r)}function Ue(e,r){for(var o=-1,c=r.length,i=e.length;++o<c;)e[i+o]=r[o];return e}function Ye(e,r,o){var c=r(e);return u.isArray(e)?c:Ue(c,o(e))}function We(e){return Ye(e,xe,Le)}var Ve=Object.prototype,Ge=Ve.hasOwnProperty;function qe(e){var r=e.length,o=new e.constructor(r);return r&&typeof e[0]=="string"&&Ge.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Xe(e,r){var o=e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var He=/\w*$/;function $e(e){var r=new e.constructor(e.source,He.exec(e));return r.lastIndex=e.lastIndex,r}var ce=u.Symbol?u.Symbol.prototype:void 0,ue=ce?ce.valueOf:void 0;function Ze(e){return ue?Object(ue.call(e)):{}}var Je="[object Boolean]",Qe="[object Date]",et="[object Map]",tt="[object Number]",st="[object RegExp]",rt="[object Set]",it="[object String]",nt="[object Symbol]",at="[object ArrayBuffer]",ot="[object DataView]",lt="[object Float32Array]",ct="[object Float64Array]",ut="[object Int8Array]",gt="[object Int16Array]",dt="[object Int32Array]",ht="[object Uint8Array]",pt="[object Uint8ClampedArray]",ft="[object Uint16Array]",bt="[object Uint32Array]";function St(e,r,o){var c=e.constructor;switch(r){case at:return u.cloneArrayBuffer(e);case Je:case Qe:return new c(+e);case ot:return Xe(e);case lt:case ct:case ut:case gt:case dt:case ht:case pt:case ft:case bt:return u.cloneTypedArray(e,o);case et:return new c;case tt:case it:return new c(e);case st:return $e(e);case rt:return new c;case nt:return Ze(e)}}var xt="[object Map]";function Lt(e){return u.isObjectLike(e)&&u.getTag(e)==xt}var ge=u.nodeUtil&&u.nodeUtil.isMap,yt=ge?u.baseUnary(ge):Lt,mt="[object Set]";function _t(e){return u.isObjectLike(e)&&u.getTag(e)==mt}var de=u.nodeUtil&&u.nodeUtil.isSet,Et=de?u.baseUnary(de):_t,wt=1,ye="[object Arguments]",vt="[object Array]",Dt="[object Boolean]",Tt="[object Date]",Nt="[object Error]",me="[object Function]",Ot="[object GeneratorFunction]",kt="[object Map]",It="[object Number]",_e="[object Object]",At="[object RegExp]",Ct="[object Set]",zt="[object String]",Rt="[object Symbol]",Bt="[object WeakMap]",jt="[object ArrayBuffer]",Pt="[object DataView]",Ft="[object Float32Array]",Kt="[object Float64Array]",Mt="[object Int8Array]",Ut="[object Int16Array]",Yt="[object Int32Array]",Wt="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",qt="[object Uint32Array]",y={};y[ye]=y[vt]=y[jt]=y[Pt]=y[Dt]=y[Tt]=y[Ft]=y[Kt]=y[Mt]=y[Ut]=y[Yt]=y[kt]=y[It]=y[_e]=y[At]=y[Ct]=y[zt]=y[Rt]=y[Wt]=y[Vt]=y[Gt]=y[qt]=!0;y[Nt]=y[me]=y[Bt]=!1;function Z(e,r,o,c,i,h){var l,b=r&wt;if(l!==void 0)return l;if(!u.isObject(e))return e;var S=u.isArray(e);if(S)return l=qe(e),u.copyArray(e,l);var f=u.getTag(e),x=f==me||f==Ot;if(u.isBuffer(e))return u.cloneBuffer(e,b);if(f==_e||f==ye||x&&!i)return l=x?{}:u.initCloneObject(e),Me(e,Be(l,e));if(!y[f])return i?e:{};l=St(e,f,b),h||(h=new u.Stack);var w=h.get(e);if(w)return w;h.set(e,l),Et(e)?e.forEach(function(_){l.add(Z(_,r,o,_,e,h))}):yt(e)&&e.forEach(function(_,L){l.set(L,Z(_,r,o,L,e,h))});var k=We,D=S?void 0:k(e);return Re(D||e,function(_,L){D&&(L=_,_=e[L]),u.assignValue(l,L,Z(_,r,o,L,e,h))}),l}var Xt=4;function Ht(e){return Z(e,Xt)}var he,pe,se=(function(){var e=function(N,g,s,n){for(s=s||{},n=N.length;n--;s[N[n]]=g);return s},r=[1,7],o=[1,13],c=[1,14],i=[1,15],h=[1,19],l=[1,16],b=[1,17],S=[1,18],f=[8,30],x=[8,21,28,29,30,31,32,40,44,47],w=[1,23],k=[1,24],D=[8,15,16,21,28,29,30,31,32,40,44,47],_=[8,15,16,21,27,28,29,30,31,32,40,44,47],L=[1,49],m={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(g,s,n,d,p,t,E){var a=t.length-1;switch(p){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[a-1]),d.setHierarchy(t[a-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:d.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const B=parseInt(t[a]),Y=d.generateId();this.$={id:Y,type:"space",label:"",width:B,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const F=d.edgeStrToEdgeData(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",directions:t[a].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[a].id,label:t[a].label,type:d.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:d.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:d.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),d.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const z=d.generateId();this.$={id:z,type:"composite",label:"",children:t[a-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:r,28:o,29:c,31:i,32:h,40:l,44:b,47:S}),e(x,[2,16],{14:22,15:w,16:k}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(D,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:h},{11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(_,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:h},{32:[2,14]},{17:[1,36]},e(D,[2,24]),{11:37,13:4,14:22,15:w,16:k,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(_,[2,30]),{18:[1,43]},{18:[1,44]},e(D,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:L},{15:[1,50]},e(x,[2,27]),e(_,[2,33]),{39:[1,51]},{34:52,35:L,39:[2,31]},{32:[2,15]},e(_,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(g,s){if(s.recoverable)this.trace(g);else{var n=new Error(g);throw n.hash=s,n}},parse:function(g){var s=this,n=[0],d=[],p=[null],t=[],E=this.table,a="",B=0,Y=0,F=2,z=1,Ne=t.slice.call(arguments,1),T=Object.create(this.lexer),K={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(K.yy[J]=this.yy[J]);T.setInput(g,K.yy),K.yy.lexer=T,K.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Q=T.yylloc;t.push(Q);var Oe=T.options&&T.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(){var P;return P=d.pop()||T.lex()||z,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=s.symbols_[P]||P),P}for(var I,M,C,ee,W={},X,j,oe,H;;){if(M=n[n.length-1],this.defaultActions[M]?C=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=ke()),C=E[M]&&E[M][I]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(X in E[M])this.terminals_[X]&&X>F&&H.push("'"+this.terminals_[X]+"'");T.showPosition?te="Parse error on line "+(B+1)+`:
|
|
2
|
-
`+T.showPosition()+`
|
|
3
|
-
Expecting `+H.join(", ")+", got '"+(this.terminals_[I]||I)+"'":te="Parse error on line "+(B+1)+": Unexpected "+(I==z?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(te,{text:T.match,token:this.terminals_[I]||I,line:T.yylineno,loc:Q,expected:H})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(C[0]){case 1:n.push(I),p.push(T.yytext),t.push(T.yylloc),n.push(C[1]),I=null,Y=T.yyleng,a=T.yytext,B=T.yylineno,Q=T.yylloc;break;case 2:if(j=this.productions_[C[1]][1],W.$=p[p.length-j],W._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Oe&&(W._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(W,[a,Y,B,K.yy,C[1],p,t].concat(Ne)),typeof ee<"u")return ee;j&&(n=n.slice(0,-1*j*2),p=p.slice(0,-1*j),t=t.slice(0,-1*j)),n.push(this.productions_[C[1]][0]),p.push(W.$),t.push(W._$),oe=E[n[n.length-2]][n[n.length-1]],n.push(oe);break;case 3:return!0}}return!0}},R=(function(){var N={EOF:1,parseError:function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},setInput:function(g,s){return this.yy=s||this.yy||{},this._input=g,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var s=g.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},unput:function(g){var s=g.length,n=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(g){this.unput(this.match.slice(g))},pastInput:function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var g=this.pastInput(),s=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
|
|
5
|
-
`+s+"^"},test_match:function(g,s){var n,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=g[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(g[0].length),this.matched+=g[0],n=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var t in p)this[t]=p[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,s,n,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),t=0;t<p.length;t++)if(n=this._input.match(this.rules[p[t]]),n&&(!s||n[0].length>s[0].length)){if(s=n,d=t,this.options.backtrack_lexer){if(g=this.test_match(n,p[t]),g!==!1)return g;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(g=this.test_match(s,p[d]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,n,d,p){switch(d){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",n.yytext);break;case 5:s.getLogger().debug("_",n.yytext);break;case 6:return 5;case 7:return n.yytext=-1,28;case 8:return n.yytext=n.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",n.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",n.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",n.yytext),"STR";case 15:return n.yytext=n.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",n.yytext),21;case 16:return n.yytext="1",s.getLogger().debug("COLUMNS (LEX)",n.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",n.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",n.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",n.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",n.yytext),"DIR";case 87:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",n.yytext),"DIR";case 88:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",n.yytext),"DIR";case 89:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",n.yytext),"DIR";case 90:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",n.yytext),"DIR";case 91:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",n.yytext),"DIR";case 92:return n.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",n.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",n.yytext),n.yytext=n.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return N})();m.lexer=R;function O(){this.yy={}}return O.prototype=m,m.Parser=O,new O})();se.parser=se;const $t=se;let A={},ie=[],V={};const fe="color",be="fill",Zt="bgFill",Ee=",",Jt=u.getConfig();let G={};const Qt=e=>u.common$1.sanitizeText(e,Jt),es=function(e,r=""){G[e]===void 0&&(G[e]={id:e,styles:[],textStyles:[]});const o=G[e];r!=null&&r.split(Ee).forEach(c=>{const i=c.replace(/([^;]*);/,"$1").trim();if(c.match(fe)){const l=i.replace(be,Zt).replace(fe,be);o.textStyles.push(l)}o.styles.push(i)})},ts=function(e,r=""){const o=A[e];r!=null&&(o.styles=r.split(Ee))},ss=function(e,r){e.split(",").forEach(function(o){let c=A[o];if(c===void 0){const i=o.trim();A[i]={id:i,type:"na",children:[]},c=A[i]}c.classes||(c.classes=[]),c.classes.push(r)})},we=(e,r)=>{const o=e.flat(),c=[];for(const i of o){if(i.label&&(i.label=Qt(i.label)),i.type==="classDef"){es(i.id,i.css);continue}if(i.type==="applyClass"){ss(i.id,(i==null?void 0:i.styleClass)||"");continue}if(i.type==="applyStyles"){i!=null&&i.stylesStr&&ts(i.id,i==null?void 0:i.stylesStr);continue}if(i.type==="column-setting")r.columns=i.columns||-1;else if(i.type==="edge")V[i.id]?V[i.id]++:V[i.id]=1,i.id=V[i.id]+"-"+i.id,ie.push(i);else{i.label||(i.type==="composite"?i.label="":i.label=i.id);const h=!A[i.id];if(h?A[i.id]=i:(i.type!=="na"&&(A[i.id].type=i.type),i.label!==i.id&&(A[i.id].label=i.label)),i.children&&we(i.children,i),i.type==="space"){const l=i.width||1;for(let b=0;b<l;b++){const S=Ht(i);S.id=S.id+"-"+b,A[S.id]=S,c.push(S)}}else h&&c.push(i)}}r.children=c};let ne=[],q={id:"root",type:"composite",children:[],columns:-1};const rs=()=>{u.log$1.debug("Clear called"),u.clear(),q={id:"root",type:"composite",children:[],columns:-1},A={root:q},ne=[],G={},ie=[],V={}};function is(e){switch(u.log$1.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return u.log$1.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function ns(e){switch(u.log$1.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function as(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let Se=0;const os=()=>(Se++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Se),ls=e=>{q.children=e,we(e,q),ne=q.children},cs=e=>{const r=A[e];return r?r.columns?r.columns:r.children?r.children.length:-1:-1},us=()=>[...Object.values(A)],gs=()=>ne||[],ds=()=>ie,hs=e=>A[e],ps=e=>{A[e.id]=e},fs=()=>console,bs=function(){return G},Ss={getConfig:()=>u.getConfig$1().block,typeStr2Type:is,edgeTypeStr2Type:ns,edgeStrToEdgeData:as,getLogger:fs,getBlocksFlat:us,getBlocks:gs,getEdges:ds,setHierarchy:ls,getBlock:hs,setBlock:ps,getColumns:cs,getClasses:bs,clear:rs,generateId:os},xs=Ss,$=(e,r)=>{const o=Ae.channel,c=o(e,"r"),i=o(e,"g"),h=o(e,"b");return u.rgba(c,i,h,r)},Ls=e=>`.label {
|
|
7
|
-
font-family: ${e.fontFamily};
|
|
8
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
9
|
-
}
|
|
10
|
-
.cluster-label text {
|
|
11
|
-
fill: ${e.titleColor};
|
|
12
|
-
}
|
|
13
|
-
.cluster-label span,p {
|
|
14
|
-
color: ${e.titleColor};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.label text,span,p {
|
|
20
|
-
fill: ${e.nodeTextColor||e.textColor};
|
|
21
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.node rect,
|
|
25
|
-
.node circle,
|
|
26
|
-
.node ellipse,
|
|
27
|
-
.node polygon,
|
|
28
|
-
.node path {
|
|
29
|
-
fill: ${e.mainBkg};
|
|
30
|
-
stroke: ${e.nodeBorder};
|
|
31
|
-
stroke-width: 1px;
|
|
32
|
-
}
|
|
33
|
-
.flowchart-label text {
|
|
34
|
-
text-anchor: middle;
|
|
35
|
-
}
|
|
36
|
-
// .flowchart-label .text-outer-tspan {
|
|
37
|
-
// text-anchor: middle;
|
|
38
|
-
// }
|
|
39
|
-
// .flowchart-label .text-inner-tspan {
|
|
40
|
-
// text-anchor: start;
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
.node .label {
|
|
44
|
-
text-align: center;
|
|
45
|
-
}
|
|
46
|
-
.node.clickable {
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.arrowheadPath {
|
|
51
|
-
fill: ${e.arrowheadColor};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.edgePath .path {
|
|
55
|
-
stroke: ${e.lineColor};
|
|
56
|
-
stroke-width: 2.0px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.flowchart-link {
|
|
60
|
-
stroke: ${e.lineColor};
|
|
61
|
-
fill: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.edgeLabel {
|
|
65
|
-
background-color: ${e.edgeLabelBackground};
|
|
66
|
-
rect {
|
|
67
|
-
opacity: 0.5;
|
|
68
|
-
background-color: ${e.edgeLabelBackground};
|
|
69
|
-
fill: ${e.edgeLabelBackground};
|
|
70
|
-
}
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* For html labels only */
|
|
75
|
-
.labelBkg {
|
|
76
|
-
background-color: ${$(e.edgeLabelBackground,.5)};
|
|
77
|
-
// background-color:
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.node .cluster {
|
|
81
|
-
// fill: ${$(e.mainBkg,.5)};
|
|
82
|
-
fill: ${$(e.clusterBkg,.5)};
|
|
83
|
-
stroke: ${$(e.clusterBorder,.2)};
|
|
84
|
-
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
85
|
-
stroke-width: 1px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.cluster text {
|
|
89
|
-
fill: ${e.titleColor};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.cluster span,p {
|
|
93
|
-
color: ${e.titleColor};
|
|
94
|
-
}
|
|
95
|
-
/* .cluster div {
|
|
96
|
-
color: ${e.titleColor};
|
|
97
|
-
} */
|
|
98
|
-
|
|
99
|
-
div.mermaidTooltip {
|
|
100
|
-
position: absolute;
|
|
101
|
-
text-align: center;
|
|
102
|
-
max-width: 200px;
|
|
103
|
-
padding: 2px;
|
|
104
|
-
font-family: ${e.fontFamily};
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
background: ${e.tertiaryColor};
|
|
107
|
-
border: 1px solid ${e.border2};
|
|
108
|
-
border-radius: 2px;
|
|
109
|
-
pointer-events: none;
|
|
110
|
-
z-index: 100;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.flowchartTitleText {
|
|
114
|
-
text-anchor: middle;
|
|
115
|
-
font-size: 18px;
|
|
116
|
-
fill: ${e.textColor};
|
|
117
|
-
}
|
|
118
|
-
`,ys=Ls;function ve(e,r,o=!1){var c,i,h;const l=e;let b="default";(((c=l==null?void 0:l.classes)==null?void 0:c.length)||0)>0&&(b=((l==null?void 0:l.classes)||[]).join(" ")),b=b+" flowchart-label";let S=0,f="",x;switch(l.type){case"round":S=5,f="rect";break;case"composite":S=0,f="composite",x=0;break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"block_arrow":f="block_arrow";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"rect_left_inv_arrow":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;case"doublecircle":f="doublecircle";break;default:f="rect"}const w=u.getStylesFromArray((l==null?void 0:l.styles)||[]),k=l.label,D=l.size||{width:0,height:0,x:0,y:0};return{labelStyle:w.labelStyle,shape:f,labelText:k,rx:S,ry:S,class:b,style:w.style,id:l.id,directions:l.directions,width:D.width,height:D.height,x:D.x,y:D.y,positioned:o,intersect:void 0,type:l.type,padding:x??(((h=(i=u.getConfig$1())==null?void 0:i.block)==null?void 0:h.padding)||0)}}async function ms(e,r,o){const c=ve(r,o,!1);if(c.type==="group")return;const i=await U.insertNode(e,c),h=i.node().getBBox(),l=o.getBlock(c.id);l.size={width:h.width,height:h.height,x:0,y:0,node:i},o.setBlock(l),i.remove()}async function _s(e,r,o){const c=ve(r,o,!0);o.getBlock(c.id).type!=="space"&&(await U.insertNode(e,c),r.intersect=c==null?void 0:c.intersect,U.positionNode(c))}async function ae(e,r,o,c){for(const i of r)await c(e,i,o),i.children&&await ae(e,i.children,o,c)}async function Es(e,r,o){await ae(e,r,o,ms)}async function ws(e,r,o){await ae(e,r,o,_s)}async function vs(e,r,o,c,i){const h=new Ie.Graph({multigraph:!0,compound:!0});h.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const l of o)l.size&&h.setNode(l.id,{width:l.size.width,height:l.size.height,intersect:l.intersect});for(const l of r)if(l.start&&l.end){const b=c.getBlock(l.start),S=c.getBlock(l.end);if(b!=null&&b.size&&(S!=null&&S.size)){const f=b.size,x=S.size,w=[{x:f.x,y:f.y},{x:f.x+(x.x-f.x)/2,y:f.y+(x.y-f.y)/2},{x:x.x,y:x.y}];await U.insertEdge(e,{v:l.start,w:l.end,name:l.id},{...l,arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart,points:w,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",h,i),l.label&&(await U.insertEdgeLabel(e,{...l,label:l.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart}),await U.positionEdgeLabel({...l,x:w[1].x,y:w[1].y},{originalPath:w}))}}}const v=((pe=(he=u.getConfig())==null?void 0:he.block)==null?void 0:pe.padding)||8;function Ds(e,r){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(r<0||!Number.isInteger(r))throw new Error("Position must be a non-negative integer."+r);if(e<0)return{px:r,py:0};if(e===1)return{px:0,py:r};const o=r%e,c=Math.floor(r/e);return{px:o,py:c}}const Ts=e=>{let r=0,o=0;for(const c of e.children){const{width:i,height:h,x:l,y:b}=c.size||{width:0,height:0,x:0,y:0};u.log$1.debug("getMaxChildSize abc95 child:",c.id,"width:",i,"height:",h,"x:",l,"y:",b,c.type),c.type!=="space"&&(i>r&&(r=i/(e.widthInColumns||1)),h>o&&(o=h))}return{width:r,height:o}};function re(e,r,o=0,c=0){var i,h,l,b,S,f,x,w,k,D,_;u.log$1.debug("setBlockSizes abc95 (start)",e.id,(i=e==null?void 0:e.size)==null?void 0:i.x,"block width =",e==null?void 0:e.size,"sieblingWidth",o),(h=e==null?void 0:e.size)!=null&&h.width||(e.size={width:o,height:c,x:0,y:0});let L=0,m=0;if(((l=e.children)==null?void 0:l.length)>0){for(const p of e.children)re(p,r);const R=Ts(e);L=R.width,m=R.height,u.log$1.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",L,m);for(const p of e.children)p.size&&(u.log$1.debug(`abc95 Setting size of children of ${e.id} id=${p.id} ${L} ${m} ${p.size}`),p.size.width=L*(p.widthInColumns||1)+v*((p.widthInColumns||1)-1),p.size.height=m,p.size.x=0,p.size.y=0,u.log$1.debug(`abc95 updating size of ${e.id} children child:${p.id} maxWidth:${L} maxHeight:${m}`));for(const p of e.children)re(p,r,L,m);const O=e.columns||-1;let N=0;for(const p of e.children)N+=p.widthInColumns||1;let g=e.children.length;O>0&&O<N&&(g=O),e.widthInColumns;const s=Math.ceil(N/g);let n=g*(L+v)+v,d=s*(m+v)+v;if(n<o){u.log$1.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${o} sieblingHeight ${c} width ${n}`),n=o,d=c;const p=(o-g*v-v)/g,t=(c-s*v-v)/s;u.log$1.debug("Size indata abc88",e.id,"childWidth",p,"maxWidth",L),u.log$1.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",m),u.log$1.debug("Size indata abc88 xSize",g,"padding",v);for(const E of e.children)E.size&&(E.size.width=p,E.size.height=t,E.size.x=0,E.size.y=0)}if(u.log$1.debug(`abc95 (finale calc) ${e.id} xSize ${g} ySize ${s} columns ${O}${e.children.length} width=${Math.max(n,((b=e.size)==null?void 0:b.width)||0)}`),n<(((S=e==null?void 0:e.size)==null?void 0:S.width)||0)){n=((f=e==null?void 0:e.size)==null?void 0:f.width)||0;const p=O>0?Math.min(e.children.length,O):e.children.length;if(p>0){const t=(n-p*v-v)/p;u.log$1.debug("abc95 (growing to fit) width",e.id,n,(x=e.size)==null?void 0:x.width,t);for(const E of e.children)E.size&&(E.size.width=t)}}e.size={width:n,height:d,x:0,y:0}}u.log$1.debug("setBlockSizes abc94 (done)",e.id,(w=e==null?void 0:e.size)==null?void 0:w.x,(k=e==null?void 0:e.size)==null?void 0:k.width,(D=e==null?void 0:e.size)==null?void 0:D.y,(_=e==null?void 0:e.size)==null?void 0:_.height)}function De(e,r){var o,c,i,h,l,b,S,f,x,w,k,D,_,L,m,R,O;u.log$1.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(o=e==null?void 0:e.size)==null?void 0:o.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(i=e==null?void 0:e.size)==null?void 0:i.width}`);const N=e.columns||-1;if(u.log$1.debug("layoutBlocks columns abc95",e.id,"=>",N,e),e.children&&e.children.length>0){const g=((l=(h=e==null?void 0:e.children[0])==null?void 0:h.size)==null?void 0:l.width)||0,s=e.children.length*g+(e.children.length-1)*v;u.log$1.debug("widthOfChildren 88",s,"posX");let n=0;u.log$1.debug("abc91 block?.size?.x",e.id,(b=e==null?void 0:e.size)==null?void 0:b.x);let d=(S=e==null?void 0:e.size)!=null&&S.x?((f=e==null?void 0:e.size)==null?void 0:f.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-v,p=0;for(const t of e.children){const E=e;if(!t.size)continue;const{width:a,height:B}=t.size,{px:Y,py:F}=Ds(N,n);if(F!=p&&(p=F,d=(w=e==null?void 0:e.size)!=null&&w.x?((k=e==null?void 0:e.size)==null?void 0:k.x)+(-((D=e==null?void 0:e.size)==null?void 0:D.width)/2||0):-v,u.log$1.debug("New row in layout for block",e.id," and child ",t.id,p)),u.log$1.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${n} (px, py) ${Y},${F} (${(_=E==null?void 0:E.size)==null?void 0:_.x},${(L=E==null?void 0:E.size)==null?void 0:L.y}) parent: ${E.id} width: ${a}${v}`),E.size){const z=a/2;t.size.x=d+v+z,u.log$1.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${d} new startingPosX${t.size.x} ${z} padding=${v} width=${a} halfWidth=${z} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${a*((t==null?void 0:t.widthInColumns)||1)/2}`),d=t.size.x+z,t.size.y=E.size.y-E.size.height/2+F*(B+v)+B/2+v,u.log$1.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${d}${v}${z}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${a*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&De(t),n+=(t==null?void 0:t.widthInColumns)||1,u.log$1.debug("abc88 columnsPos",t,n)}}u.log$1.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(m=e==null?void 0:e.size)==null?void 0:m.x} y: ${(R=e==null?void 0:e.size)==null?void 0:R.y} width: ${(O=e==null?void 0:e.size)==null?void 0:O.width}`)}function Te(e,{minX:r,minY:o,maxX:c,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:h,y:l,width:b,height:S}=e.size;h-b/2<r&&(r=h-b/2),l-S/2<o&&(o=l-S/2),h+b/2>c&&(c=h+b/2),l+S/2>i&&(i=l+S/2)}if(e.children)for(const h of e.children)({minX:r,minY:o,maxX:c,maxY:i}=Te(h,{minX:r,minY:o,maxX:c,maxY:i}));return{minX:r,minY:o,maxX:c,maxY:i}}function Ns(e){const r=e.getBlock("root");if(!r)return;re(r,e,0,0),De(r),u.log$1.debug("getBlocks",JSON.stringify(r,null,2));const{minX:o,minY:c,maxX:i,maxY:h}=Te(r),l=h-c,b=i-o;return{x:o,y:c,width:b,height:l}}const Os=function(e,r){return r.db.getClasses()},ks=async function(e,r,o,c){const{securityLevel:i,block:h}=u.getConfig$1(),l=c.db;let b;i==="sandbox"&&(b=u.select("#i"+r));const S=i==="sandbox"?u.select(b.nodes()[0].contentDocument.body):u.select("body"),f=i==="sandbox"?S.select(`[id="${r}"]`):u.select(`[id="${r}"]`),x=["point","circle","cross"];U.insertMarkers$1(f,x,c.type,r);const w=l.getBlocks(),k=l.getBlocksFlat(),D=l.getEdges(),_=f.insert("g").attr("class","block");await Es(_,w,l);const L=Ns(l);if(await ws(_,w,l),await vs(_,D,k,l,r),L){const m=L,R=Math.max(1,Math.round(.125*(m.width/m.height))),O=m.height+R+10,N=m.width+10,{useMaxWidth:g}=h;u.configureSvgSize(f,O,N,!!g),u.log$1.debug("Here Bounds",L,m),f.attr("viewBox",`${m.x-5} ${m.y-5} ${m.width+10} ${m.height+10}`)}Ce.ordinal(ze.schemeTableau10)},Is={draw:ks,getClasses:Os},As={parser:$t,db:xs,renderer:Is,styles:ys};exports.diagram=As;
|
package/dist/layers.Ce_CBSin.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.Dhs3Sikn.js");var e={paste:"Colar",pasteAsPlaintext:"Colar como texto sem formatação",pasteCharts:"Colar gráficos",selectAll:"Selecionar tudo",multiSelect:"Adicionar elemento à seleção",moveCanvas:"Mover tela",cut:"Recortar",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 a frente",sendToBack:"Enviar para o fundo",bringToFront:"Trazer para o primeiro plano",sendBackward:"Enviar para trás",delete:"Apagar",copyStyles:"Copiar os estilos",pasteStyles:"Colar os estilos",stroke:"Contorno",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:"Precisão do traço",opacity:"Opacidade",textAlign:"Alinhamento do texto",edges:"Arestas",sharp:"Pontudo",round:"Arredondado",arrowheads:"Pontas",arrowhead_none:"Nenhuma",arrowhead_arrow:"Flecha",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 fonte",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:"Hachura",zigzag:"Zigue-zague",crossHatch:"Hachura cruzada",thin:"Fino",bold:"Espesso",left:"Esquerda",center:"Centralizar",right:"Direita",extraBold:"Muito espesso",architect:"Arquiteto",artist:"Artista",cartoonist:"Cartunista",fileTitle:"Nome do arquivo",colorPicker:"Seletor de cores",canvasColors:"Usado na tela",canvasBackground:"Fundo da tela",drawingCanvas:"Tela de desenho",layers:"Camadas",actions:"Ações",language:"Idioma",liveCollaboration:"Colaboração ao vivo...",duplicateSelection:"Duplicar",untitled:"Sem título",name:"Nome",yourName:"Seu nome",madeWithExcalidraw:"Feito com Excalidraw",group:"Agrupar seleção",ungroup:"Desagrupar seleção",collaborators:"Colaboradores",showGrid:"Mostrar grade",addToLibrary:"Adicionar à biblioteca",removeFromLibrary:"Remover da biblioteca",libraryLoadingMessage:"Carregando biblioteca…",libraries:"Procurar bibliotecas",loadingScene:"Carregando cena…",align:"Alinhamento",alignTop:"Alinhar ao topo",alignBottom:"Alinhar embaixo",alignLeft:"Alinhar à esquerda",alignRight:"Alinhar à direita",centerVertically:"Centralizar verticalmente",centerHorizontally:"Centralizar horizontalmente",distributeHorizontally:"Distribuir horizontalmente",distributeVertically:"Distribuir verticalmente",flipHorizontal:"Inverter horizontalmente",flipVertical:"Inverter verticalmente",viewMode:"Modo de visualização",share:"Compartilhar",showStroke:"Exibir seletor de cores do traço",showBackground:"Exibir seletor de cores do fundo",toggleTheme:"Alternar tema",personalLib:"Biblioteca Pessoal",excalidrawLib:"Biblioteca do Excalidraw",decreaseFontSize:"Diminuir o tamanho da fonte",increaseFontSize:"Aumentar o tamanho da fonte",unbindText:"Desvincular texto",bindText:"Vincular texto ao contêiner",createContainerFromText:"Envolver texto em um contêiner",link:{edit:"Editar link",editEmbed:"",create:"Criar link",createEmbed:"",label:"Link",labelEmbed:"",empty:""},lineEditor:{edit:"Editar linha",exit:"Sair do editor de linha"},elementLock:{lock:"Bloquear",unlock:"Desbloquear",lockAll:"Bloquear tudo",unlockAll:"Desbloquear tudo"},statusPublished:"Publicado",sidebarLock:"Manter barra lateral aberta",selectAllElementsInFrame:"Selecionar todos os elementos no quadro",removeAllElementsFromFrame:"Remover todos os elementos do quadro",eyeDropper:"Escolher cor da tela",textToDiagram:"",prompt:""},a={noItems:"Nenhum item adicionado ainda...",hint_emptyLibrary:"Selecione um item na tela para adicioná-lo aqui, ou instale uma biblioteca do repositório público, abaixo.",hint_emptyPrivateLibrary:"Selecione um item na tela para adicioná-lo aqui."},o={clearReset:"Limpar o canvas e redefinir a cor de fundo",exportJSON:"Exportar arquivo",exportImage:"Exportar imagem...",export:"Salvar como...",copyToClipboard:"Copiar para o clipboard",save:"Salvar para o arquivo atual",saveAs:"Salvar como",load:"Abrir",getShareableLink:"Obter um link de compartilhamento",close:"Fechar",selectLanguage:"Selecionar idioma",scrollBackToContent:"Voltar para o conteúdo",zoomIn:"Aumentar zoom",zoomOut:"Diminuir zoom",resetZoom:"Redefinir zoom",menu:"Menu",done:"Concluído",edit:"Editar",undo:"Desfazer",redo:"Refazer",resetLibrary:"Redefinir biblioteca",createNewRoom:"Criar nova sala",fullScreen:"Tela cheia",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 tela. Você tem certeza?",couldNotCreateShareableLink:"Não foi possível criar um link de compartilhamento.",couldNotCreateShareableLinkTooBig:"Não foi possível criar um link compartilhável: a cena é muito grande",couldNotLoadInvalidFile:"Não foi possível carregar o arquivo inválido",importBackendFailed:"A importação do servidor falhou.",cannotExportEmptyCanvas:"Não é possível exportar um canvas vazio.",couldNotCopyToClipboard:"Não foi possível copiar para a área de transferência.",decryptFailed:"Não foi possível descriptografar 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:"Carregar um desenho externo substituirá o seu conteúdo existente. Deseja continuar?",collabStopOverridePrompt:`Ao interromper a sessão, você substituirá seu desenho anterior, armazenado localmente. Você tem certeza?
|
|
2
|
-
|
|
3
|
-
(Se você deseja manter seu desenho local, simplesmente feche a aba 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 certeza?",imageDoesNotContainScene:"Esta imagem parece não conter dados de cenas. Você ativou a incorporação da cena durante a exportação?",cannotRestoreFromImage:"Não foi possível restaurar a cena deste arquivo de imagem",invalidSceneUrl:"Não foi possível importar a cena da URL fornecida. Ela está incompleta ou não contém dados JSON válidos do Excalidraw.",resetLibrary:"Isto limpará a sua biblioteca. Você tem certeza?",removeItemsFromsLibrary:"Excluir {{count}} item(ns) da biblioteca?",invalidEncryptionKey:"A chave de encriptação deve ter 22 caracteres. A colaboração ao vivo está desabilitada.",collabOfflineWarning:`Sem conexão com a internet disponível.
|
|
4
|
-
Suas alterações não serão salvas!`},i={unsupportedFileType:"Tipo de arquivo não suportado.",imageInsertError:"Não foi possível inserir imagem. Tente novamente mais tarde...",fileTooBig:"O arquivo é 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 conectar-se ao servidor colaborativo. Por favor, recarregue a página e tente novamente.",importLibraryError:"Não foi possível carregar a biblioteca",collabSaveFailed:"Não foi possível salvar no banco de dados do servidor. Se os problemas persistirem, salve o arquivo localmente para garantir que não perca o seu trabalho.",collabSaveFailed_sizeExceeded:"Não foi possível salvar no banco de dados do servidor, a tela parece ser muito grande. Se os problemas persistirem, salve o arquivo localmente para garantir que não perca o seu trabalho.",imageToolNotSupported:"",brave_measure_text_error:{line1:"Parece que você está usando o navegador Brave com a configuração <bold>Bloquear Impressões Digitais</bold> no modo agressivo.",line2:"Isso pode acabar quebrando <bold>Elementos de Texto</bold> em seus desenhos.",line3:"Recomendamos fortemente desativar essa configuração. Você pode acessar o <link>passo a passo</link> sobre como fazer isso.",line4:"Se desativar essa configuração não corrigir a exibição de elementos de texto, por favor abra uma <issueLink>issue</issueLink> em nosso GitHub, ou mande uma mensagem em nosso <discordLink>Discord</discordLink>"},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 ativa a ferramenta selecionada após desenhar",penMode:"Modo caneta — impede o toque",link:"Adicionar/Atualizar link para uma forma selecionada",eraser:"Borracha",frame:"Ferramenta de quadro",magicframe:"",embeddable:"",laser:"",hand:"Mão (ferramenta de rolagem)",extraTools:"Mais ferramentas",mermaidToExcalidraw:"",magicSettings:""},s={canvasActions:"Ações da tela",selectedShapeActions:"Ações das formas selecionadas",shapes:"Formas"},n={canvasPanning:"Para mover a tela, segure a roda do mouse ou a barra de espaço enquanto arrasta ou use a ferramenta de mão",linearElement:"Clique para iniciar vários pontos, arraste para uma única linha",freeDraw:"Toque e arraste, solte quando terminar",text:"Dica: você também pode adicionar texto clicando duas vezes em qualquer lugar com a ferramenta de seleção",embeddable:"",text_selected:"Clique duplo ou tecle ENTER para editar o texto",text_editing:"Pressione Esc ou Ctrl/Cmd+ENTER para encerrar a edição",linearElementMulti:"Clique no último ponto ou pressione Escape ou Enter para terminar",lockAngle:"Você pode restringir o ângulo segurando o SHIFT",resize:`Você pode restringir proporções segurando SHIFT enquanto redimensiona,
|
|
5
|
-
segure ALT para redimensionar do centro`,resizeImage:`Você pode redimensionar livremente segurando SHIFT,
|
|
6
|
-
segure ALT para redimensionar a partir do centro`,rotate:"Você pode restringir os ângulos segurando SHIFT enquanto gira",lineEditor_info:"Pressione CtrlOuCmd e duplo-clique ou pressione CtrlOuCmd + Enter para editar pontos",lineEditor_pointSelected:`Pressione Delete para remover o(s) ponto(s),
|
|
7
|
-
Ctrl/Cmd+D para duplicar ou arraste para mover`,lineEditor_nothingSelected:"Selecione um ponto para editar (segure SHIFT para selecionar vários) ou segure Alt e clique para adicionar novos pontos",placeImage:"Clique para colocar a imagem, ou clique e arraste para definir manualmente o seu tamanho",publishLibrary:"Publicar sua própria biblioteca",bindTextToElement:"Pressione Enter para adicionar o texto",deepBoxSelect:"Segure Ctrl/Cmd para seleção profunda e para evitar arrastar",eraserRevert:"Segure a tecla Alt para inverter os elementos marcados para exclusão",firefox_clipboard_write:'Esse recurso pode ser ativado configurando a opção "dom.events.asyncClipboard.clipboardItem" como "true". Para alterar os sinalizadores do navegador no Firefox, visite a página "about:config".',disableSnapping:""},l={cannotShowPreview:"Não é possível mostrar pré-visualização",canvasTooBig:"A tela pode ser muito grande.",canvasTooBigTip:"Dica: tente aproximar um pouco os elementos mais distantes."},d={headingMain:"Foi encontrado um erro. Tente <button>recarregar a página.</button>",clearCanvasMessage:"Se recarregar a página não funcionar, tente <button>limpando a tela.</button>",clearCanvasCaveat:" Isso resultará em perda de trabalho ",trackedToSentry:"O erro com o identificador {{eventId}} foi rastreado no nosso sistema.",openIssueMessage:"Fomos muito cautelosos para não incluir suas informações de cena no erro. Se sua cena não for privada, por favor, considere seguir nosso <button>rastreador de bugs.</button> Por favor, inclua informações abaixo, copiando e colando para a issue do GitHub.",sceneContent:"Conteúdo da cena:"},c={desc_intro:"Você pode convidar pessoas para sua cena atual para colaborar com você.",desc_privacy:"Não se preocupe, a sessão usa criptografia de ponta a ponta; portanto, o que você desenhar permanecerá privado. Nem mesmo nosso servidor poderá ver o que você cria.",button_startSession:"Iniciar sessão",button_stopSession:"Parar sessão",desc_inProgressIntro:"A sessão de colaboração ao vivo está agora em andamento.",desc_shareLink:"Compartilhe este link com qualquer pessoa com quem você queira colaborar:",desc_exitSession:"Interrompendo a sessão você irá se desconectar da sala, mas você poderá continuar trabalhando com a cena localmente. Observe que isso não afetará outras pessoas, e elas ainda poderão colaborar em suas versões.",shareTitle:"Participe de uma sessão ao vivo de colaboração no Excalidraw"},m={title:"Erro"},x={disk_title:"Salvar no computador",disk_details:"Exportar os dados da cena para um arquivo que você poderá importar mais tarde.",disk_button:"Salvar em um arquivo",link_title:"Link compartilhável",link_details:"Exportar como link de apenas leitura.",link_button:"Exportar link",excalidrawplus_description:"Salvar a cena na sua área de trabalho Excalidraw+.",excalidrawplus_button:"Exportar",excalidrawplus_exportError:"Não é possível exportar para o Excalidraw+ neste momento..."},u={blog:"Leia o nosso blog",click:"clicar",deepSelect:"Seleção profunda",deepBoxSelect:"Use a seleção profunda dentro da caixa para previnir arrastar",curvedArrow:"Seta curva",curvedLine:"Linha curva",documentation:"Documentação",doubleClick:"clique duplo",drag:"arrastar",editor:"Editor",editLineArrowPoints:"Editar linha/ponta da seta",editText:"Editar texto / adicionar etiqueta",github:"Encontrou algum problema? Nos informe",howto:"Siga nossos guias",or:"ou",preventBinding:"Evitar fixação de seta",tools:"Ferramentas",shortcuts:"Atalhos de teclado",textFinish:"Encerrar edição (editor de texto)",textNewLine:"Adicionar nova linha (editor de texto)",title:"Ajudar",view:"Visualizar",zoomToFit:"Ampliar para encaixar todos os elementos",zoomToSelection:"Ampliar a seleção",toggleElementLock:"Bloquear/desbloquear seleção",movePageUpDown:"Mover a página para cima/baixo",movePageLeftRight:"Mover a página para esquerda/direita"},p={title:"Limpar a tela"},E={title:"Publicar biblioteca",itemName:"Nome do item",authorName:"Nome do autor",githubUsername:"Nome de usuário do GitHub",twitterUsername:"Nome de usuário do Twitter",libraryName:"Nome da Biblioteca",libraryDesc:"Descrição da biblioteca",website:"Site",placeholder:{authorName:"Seu nome ou nome de usuário",libraryName:"Nome da sua biblioteca",libraryDesc:"Descrição para ajudar as pessoas a entenderem o uso da sua da sua biblioteca",githubHandle:"Identificador do GitHub (opcional), para que você possa editar a biblioteca depois de enviar para revisão",twitterHandle:"Nome de usuário do Twitter (opcional), para que saibamos quem deve ser creditado se promovermos no Twitter",website:"Link para o seu site pessoal ou outro lugar (opcional)"},errors:{required:"Obrigatório",website:"Informe uma URL válida"},noteDescription:"Envie sua biblioteca para ser incluída no <link>repositório de biblioteca pública</link>para outras pessoas usarem em seus desenhos.",noteGuidelines:"A biblioteca precisa ser aprovada manualmente primeiro. Por favor leia o <link>orientações</link> antes de enviar. Você precisará de uma conta do GitHub para se comunicar e fazer alterações quando solicitado, mas não é estritamente necessário.",noteLicense:"Ao enviar, você concorda que a biblioteca será publicada sob a <link>Licença MIT, </link>o que, em suma, significa que qualquer pessoa pode utilizá-los sem restrições.",noteItems:"Cada item da biblioteca deve ter seu próprio nome para que seja filtrável. Os seguintes itens da biblioteca serão incluídos:",atleastOneLibItem:"Por favor, selecione pelo menos um item da biblioteca para começar",republishWarning:"Nota: alguns dos itens selecionados estão marcados como já publicado/enviado. Você só deve reenviar itens ao atualizar uma biblioteca existente ou submissão."},b={title:"Biblioteca enviada",content:"Obrigado {{authorName}}. Sua biblioteca foi enviada para análise. Você pode acompanhar o status<link>aqui</link>"},v={resetLibrary:"Redefinir biblioteca",removeItemsFromLib:"Remover itens selecionados da biblioteca"},g={header:"Exportar imagem",label:{withBackground:"Fundo",onlySelected:"Somente selecionados",darkMode:"Modo escuro",embedScene:"Incorporar cena",scale:"Escala",padding:"Margem interna"},tooltip:{embedScene:`Os dados da cena serão salvos no arquivo PNG/SVG exportado para que a cena possa ser restaurada a partir dele.
|
|
8
|
-
Isso aumentará o tamanho do arquivo exportado.`},title:{exportToPng:"Exportar como PNG",exportToSvg:"Exportar como SVG",copyPngToClipboard:"Copiar PNG para área de transferência"},button:{exportToPng:"PNG",exportToSvg:"SVG",copyPngToClipboard:"Copiar para a área de transferência"}},h={tooltip:"Seus desenhos são criptografados de ponta a ponta, então os servidores do Excalidraw nunca os verão.",link:"Publicação de blog com criptografia de ponta a ponta no Excalidraw"},f={angle:"Ângulo",element:"Elemento",elements:"Elementos",height:"Altura",scene:"Cena",selected:"Selecionado",storage:"Armazenamento",title:"Estatísticas para nerds",total:"Total",version:"Versão",versionCopy:"Clique para copiar",versionNotAvailable:"Versão não disponível",width:"Largura"},S={addedToLibrary:"Adicionado à biblioteca",copyStyles:"Estilos copiados.",copyToClipboard:"Copiado para área de transferência.",copyToClipboardAsPng:"{{exportSelection}} copiado para a área de transferência como PNG ({{exportColorScheme}})",fileSaved:"Arquivo salvo.",fileSavedToFilename:"Salvo em {filename}",canvas:"tela",selection:"seleção",pasteAsSingleElement:`Use {{shortcut}} para colar como um único elemento,
|
|
9
|
-
ou cole em um editor de texto já existente`,unableToEmbed:"",unrecognizedLinkFormat:""},A={transparent:"Transparente",black:"Preto",white:"Branco",red:"Vermelho",pink:"Rosa",grape:"Uva",violet:"Violeta",gray:"Cinza",blue:"Azul",cyan:"Ciano",teal:"Verde-azulado",green:"Verde",yellow:"Amarelo",orange:"Laranja",bronze:"Bronze"},C={app:{center_heading:"Todos os dados são salvos localmente no seu navegador.",center_heading_plus:"Você queria ir para o Excalidraw+ em vez disso?",menuHint:"Exportar, preferências, idiomas..."},defaults:{menuHint:"Exportar, preferências e mais...",center_heading:"Diagramas, Feito. Simples.",toolbarHint:"Escolha uma ferramenta e comece a desenhar!",helpHint:"Atalhos e ajuda"}},F={mostUsedCustomColors:"Cores personalizadas mais usadas",colors:"Cores",shades:"Tons",hexCode:"Código hexadecimal",noShades:"Sem tons disponíveis para essa cor"},q={action:{exportToImage:{title:"Exportar como imagem",button:"Exportar como imagem",description:"Exportar os dados da cena para um arquivo que você poderá importar mais tarde."},saveToDisk:{title:"Salvar no computador",button:"Salvar no computador",description:"Exportar os dados da cena para um arquivo que você poderá importar mais tarde."},excalidrawPlus:{title:"Excalidraw+",button:"Exportar para Excalidraw+",description:"Salvar a cena na sua área de trabalho Excalidraw+."}},modal:{loadFromFile:{title:"Carregar de arquivo",button:"Carregar de arquivo",description:"Carregar de um arquivo irá <bold> substituir o conteúdo existente</bold>.<br></br>Você pode salvar seu desenho primeiro usando uma das opções abaixo."},shareableLink:{title:"Carregar de um link",button:"Substituir meu conteúdo",description:"Carregar um desenho externo irá <bold> substituir seu conteúdo existente</bold>.<br></br>Você pode salvar seu desenho antes utilizando uma das opções abaixo."}}},y={title:"",button:"",description:"",syntax:"",preview:""},T={labels:e,library:a,buttons:o,alerts:r,errors:i,toolBar:t,headings:s,hints:n,canvasError:l,errorSplash:d,roomDialog:c,errorDialog:m,exportDialog:x,helpDialog:u,clearCanvasDialog:p,publishDialog:E,publishSuccessDialog:b,confirmDialog:v,imageExportDialog:g,encrypted:h,stats:f,toast:S,colors:A,welcomeScreen:C,colorPicker:F,overwriteConfirm:q,mermaid:y};exports.alerts=r;exports.buttons=o;exports.canvasError=l;exports.clearCanvasDialog=p;exports.colorPicker=F;exports.colors=A;exports.confirmDialog=v;exports.default=T;exports.encrypted=h;exports.errorDialog=m;exports.errorSplash=d;exports.errors=i;exports.exportDialog=x;exports.headings=s;exports.helpDialog=u;exports.hints=n;exports.imageExportDialog=g;exports.labels=e;exports.library=a;exports.mermaid=y;exports.overwriteConfirm=q;exports.publishDialog=E;exports.publishSuccessDialog=b;exports.roomDialog=c;exports.stats=f;exports.toast=S;exports.toolBar=t;exports.welcomeScreen=C;
|
package/dist/layers.CildyhOW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),i=require("react"),e=require("./layers.CFEmW02q.js"),S=require("./layers.Dhs3Sikn.js"),l=e.re("INSERT_EXCALIDRAW_COMMAND");function w(){const[n]=e.o(),[c,r]=i.useState(!1),[t,d]=i.useState(null),a=i.useRef(null);i.useEffect(()=>{if(!n.hasNodes([e.ExcalidrawNode]))throw new Error("ExcalidrawPlugin: ExcalidrawNode not registered on editor");return n.registerCommand(l,()=>{r(!0);const s=e.getCurrentElement();return d(s),!0},e.Ki)},[n]);const u=()=>{r(!1),a.current=!1},E=()=>{r(!1)},f=(s,N,x)=>{n.update(()=>{const o=e.$createExcalidrawNode();o.setData(JSON.stringify({appState:N,elements:s,files:x})),t&&t.getParent()&&(t==null||t.replace(o))}),r(!1)};return C.jsx(S.ExcalidrawModal,{initialElements:[],initialAppState:{},initialFiles:{},isShown:c,onDelete:E,onClose:u,onSave:f,closeOnClickOutside:!1,isEdited:a})}exports.INSERT_EXCALIDRAW_COMMAND=l;exports.default=w;
|
package/dist/layers.CjBfNqWg.js
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./layers.BSB9eX8_.js");var gt=(function(){var t=function(A,r,n,i){for(n=n||{},i=A.length;i--;n[A[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],k=[1,15],f=[1,16],b=[1,17],E=[1,18],R=[1,30],Y=[1,19],G=[1,20],U=[1,21],j=[1,22],M=[1,23],z=[1,25],H=[1,26],X=[1,27],K=[1,28],W=[1,29],J=[1,32],q=[1,33],Q=[1,34],Z=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,w){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var C=e[l],O=e[l-2].trim();if(e[l].match(":")){var et=e[l].split(":");C=et[0],O=[O,et[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:$},t(c,[2,16]),t(xt,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,64],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(c,[2,14]),t(c,[2,18]),t(xt,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,69],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],S=[null],e=[],w=this.table,l="",C=0,O=0,et=2,B=1,ft=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(L.yy[dt]=this.yy[dt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var yt=g.yylloc;e.push(yt);var Yt=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var D;return D=o.pop()||g.lex()||B,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,v,m,pt,N={},st,x,Dt,it;;){if(v=i[i.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((_===null||typeof _>"u")&&(_=Gt()),m=w[v]&&w[v][_]),typeof m>"u"||!m.length||!m[0]){var St="";it=[];for(st in w[v])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");g.showPosition?St="Parse error on line "+(C+1)+`:
|
|
2
|
-
`+g.showPosition()+`
|
|
3
|
-
Expecting `+it.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(C+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:g.match,token:this.terminals_[_]||_,line:g.yylineno,loc:yt,expected:it})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+_);switch(m[0]){case 1:i.push(_),S.push(g.yytext),e.push(g.yylloc),i.push(m[1]),_=null,O=g.yyleng,l=g.yytext,C=g.yylineno,yt=g.yylloc;break;case 2:if(x=this.productions_[m[1]][1],N.$=S[S.length-x],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Yt&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,C,L.yy,m[1],S,e].concat(ft)),typeof pt<"u")return pt;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[m[1]][0]),S.push(N.$),e.push(N._$),Dt=w[i[i.length-2]][i[i.length-1]],i.push(Dt);break;case 3:return!0}}return!0}},Vt=(function(){var A={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
-
`+n+"^"},test_match:function(r,n){var i,o,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(i=this._input.match(this.rules[S[e]]),i&&(!n||i[0].length>n[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,S[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,S[o]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,S){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return A})();ht.lexer=Vt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut})();gt.parser=gt;const Ut=gt,jt="LR",Mt="TB",at="state",Et="relation",zt="classDef",Ht="applyClass",ot="default",vt="divider",kt="[*]",It="start",Ot=kt,Nt="end",At="color",Ct="fill",Xt="bgFill",Kt=",";function Rt(){return{}}let $t=jt,lt=[],P=Rt();const wt=()=>({relations:[],states:{},documents:{}});let ct={root:wt()},T=ct.root,F=0,Lt=0;const Wt={LINE:0,DOTTED_LINE:1},Jt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),qt=t=>{u.log$1.info("Setting root doc",t),lt=t},Qt=()=>lt,nt=(t,s,a)=>{if(s.stmt===Et)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===at&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let d=[],y;for(y=0;y<s.doc.length;y++)if(s.doc[y].type===vt){const p=rt(s.doc[y]);p.doc=rt(d),h.push(p),d=[]}else d.push(s.doc[y]);if(h.length>0&&d.length>0){const p={stmt:at,id:u.generateId(),type:"divider",doc:rt(d)};h.push(rt(p)),s.doc=h}s.doc.forEach(p=>nt(s,p,!0))}},Zt=()=>(nt({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),te=t=>{let s;t.doc?s=t.doc:s=t,u.log$1.info(s),Bt(!0),u.log$1.info("Extract",s),s.forEach(a=>{switch(a.stmt){case at:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Et:Pt(a.state1,a.state2,a.description);break;case zt:Ft(a.id.trim(),a.classes);break;case Ht:bt(a.id.trim(),a.styleClass);break}})},I=function(t,s=ot,a=null,h=null,d=null,y=null,p=null,k=null){const f=t==null?void 0:t.trim();T.states[f]===void 0?(u.log$1.info("Adding state ",f,h),T.states[f]={id:f,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]}):(T.states[f].doc||(T.states[f].doc=a),T.states[f].type||(T.states[f].type=s)),h&&(u.log$1.info("Setting state description",f,h),typeof h=="string"&&mt(f,h.trim()),typeof h=="object"&&h.forEach(b=>mt(f,b.trim()))),d&&(T.states[f].note=d,T.states[f].note.text=u.common$1.sanitizeText(T.states[f].note.text,u.getConfig())),y&&(u.log$1.info("Setting state classes",f,y),(typeof y=="string"?[y]:y).forEach(E=>bt(f,E.trim()))),p&&(u.log$1.info("Setting state styles",f,p),(typeof p=="string"?[p]:p).forEach(E=>he(f,E.trim()))),k&&(u.log$1.info("Setting state styles",f,p),(typeof k=="string"?[k]:k).forEach(E=>ue(f,E.trim())))},Bt=function(t){ct={root:wt()},T=ct.root,F=0,P=Rt(),t||u.clear()},V=function(t){return T.states[t]},ee=function(){return T.states},se=function(){u.log$1.info("Documents = ",ct)},ie=function(){return T.relations};function Tt(t=""){let s=t;return t===kt&&(F++,s=`${It}${F}`),s}function _t(t="",s=ot){return t===kt?It:s}function re(t=""){let s=t;return t===Ot&&(F++,s=`${Nt}${F}`),s}function ne(t="",s=ot){return t===Ot?Nt:s}function ae(t,s,a){let h=Tt(t.id.trim()),d=_t(t.id.trim(),t.type),y=Tt(s.id.trim()),p=_t(s.id.trim(),s.type);I(h,d,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(y,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),T.relations.push({id1:h,id2:y,relationTitle:u.common$1.sanitizeText(a,u.getConfig())})}const Pt=function(t,s,a){if(typeof t=="object")ae(t,s,a);else{const h=Tt(t.trim()),d=_t(t),y=re(s.trim()),p=ne(s);I(h,d),I(y,p),T.relations.push({id1:h,id2:y,title:u.common$1.sanitizeText(a,u.getConfig())})}},mt=function(t,s){const a=T.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(u.common$1.sanitizeText(h,u.getConfig()))},le=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},ce=()=>(Lt++,"divider-id-"+Lt),Ft=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(Kt).forEach(h=>{const d=h.replace(/([^;]*);/,"$1").trim();if(h.match(At)){const p=d.replace(Ct,Xt).replace(At,Ct);a.textStyles.push(p)}a.styles.push(d)})},oe=function(){return P},bt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const d=a.trim();I(d),h=V(d)}h.classes.push(s)})},he=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},ue=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},fe=()=>$t,de=t=>{$t=t},ye=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),pe={getConfig:()=>u.getConfig().state,addState:I,clear:Bt,getState:V,getStates:ee,getRelations:ie,getClasses:oe,getDirection:fe,addRelation:Pt,getDividerId:ce,setDirection:de,cleanupLabel:le,lineType:Wt,relationType:Jt,logDocuments:se,getRootDoc:Qt,setRootDoc:qt,getRootDocV2:Zt,extract:te,trimColon:ye,getAccTitle:u.getAccTitle,setAccTitle:u.setAccTitle,getAccDescription:u.getAccDescription,setAccDescription:u.setAccDescription,addStyleClass:Ft,setCssClass:bt,addDescription:mt,setDiagramTitle:u.setDiagramTitle,getDiagramTitle:u.getDiagramTitle},Se=t=>`
|
|
7
|
-
defs #statediagram-barbEnd {
|
|
8
|
-
fill: ${t.transitionColor};
|
|
9
|
-
stroke: ${t.transitionColor};
|
|
10
|
-
}
|
|
11
|
-
g.stateGroup text {
|
|
12
|
-
fill: ${t.nodeBorder};
|
|
13
|
-
stroke: none;
|
|
14
|
-
font-size: 10px;
|
|
15
|
-
}
|
|
16
|
-
g.stateGroup text {
|
|
17
|
-
fill: ${t.textColor};
|
|
18
|
-
stroke: none;
|
|
19
|
-
font-size: 10px;
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
g.stateGroup .state-title {
|
|
23
|
-
font-weight: bolder;
|
|
24
|
-
fill: ${t.stateLabelColor};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
g.stateGroup rect {
|
|
28
|
-
fill: ${t.mainBkg};
|
|
29
|
-
stroke: ${t.nodeBorder};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
g.stateGroup line {
|
|
33
|
-
stroke: ${t.lineColor};
|
|
34
|
-
stroke-width: 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.transition {
|
|
38
|
-
stroke: ${t.transitionColor};
|
|
39
|
-
stroke-width: 1;
|
|
40
|
-
fill: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.stateGroup .composit {
|
|
44
|
-
fill: ${t.background};
|
|
45
|
-
border-bottom: 1px
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.stateGroup .alt-composit {
|
|
49
|
-
fill: #e0e0e0;
|
|
50
|
-
border-bottom: 1px
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.state-note {
|
|
54
|
-
stroke: ${t.noteBorderColor};
|
|
55
|
-
fill: ${t.noteBkgColor};
|
|
56
|
-
|
|
57
|
-
text {
|
|
58
|
-
fill: ${t.noteTextColor};
|
|
59
|
-
stroke: none;
|
|
60
|
-
font-size: 10px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.stateLabel .box {
|
|
65
|
-
stroke: none;
|
|
66
|
-
stroke-width: 0;
|
|
67
|
-
fill: ${t.mainBkg};
|
|
68
|
-
opacity: 0.5;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.edgeLabel .label rect {
|
|
72
|
-
fill: ${t.labelBackgroundColor};
|
|
73
|
-
opacity: 0.5;
|
|
74
|
-
}
|
|
75
|
-
.edgeLabel .label text {
|
|
76
|
-
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
77
|
-
}
|
|
78
|
-
.label div .edgeLabel {
|
|
79
|
-
color: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.stateLabel text {
|
|
83
|
-
fill: ${t.stateLabelColor};
|
|
84
|
-
font-size: 10px;
|
|
85
|
-
font-weight: bold;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.node circle.state-start {
|
|
89
|
-
fill: ${t.specialStateColor};
|
|
90
|
-
stroke: ${t.specialStateColor};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.node .fork-join {
|
|
94
|
-
fill: ${t.specialStateColor};
|
|
95
|
-
stroke: ${t.specialStateColor};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.node circle.state-end {
|
|
99
|
-
fill: ${t.innerEndBackground};
|
|
100
|
-
stroke: ${t.background};
|
|
101
|
-
stroke-width: 1.5
|
|
102
|
-
}
|
|
103
|
-
.end-state-inner {
|
|
104
|
-
fill: ${t.compositeBackground||t.background};
|
|
105
|
-
// stroke: ${t.background};
|
|
106
|
-
stroke-width: 1.5
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.node rect {
|
|
110
|
-
fill: ${t.stateBkg||t.mainBkg};
|
|
111
|
-
stroke: ${t.stateBorder||t.nodeBorder};
|
|
112
|
-
stroke-width: 1px;
|
|
113
|
-
}
|
|
114
|
-
.node polygon {
|
|
115
|
-
fill: ${t.mainBkg};
|
|
116
|
-
stroke: ${t.stateBorder||t.nodeBorder};;
|
|
117
|
-
stroke-width: 1px;
|
|
118
|
-
}
|
|
119
|
-
#statediagram-barbEnd {
|
|
120
|
-
fill: ${t.lineColor};
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.statediagram-cluster rect {
|
|
124
|
-
fill: ${t.compositeTitleBackground};
|
|
125
|
-
stroke: ${t.stateBorder||t.nodeBorder};
|
|
126
|
-
stroke-width: 1px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.cluster-label, .nodeLabel {
|
|
130
|
-
color: ${t.stateLabelColor};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.statediagram-cluster rect.outer {
|
|
134
|
-
rx: 5px;
|
|
135
|
-
ry: 5px;
|
|
136
|
-
}
|
|
137
|
-
.statediagram-state .divider {
|
|
138
|
-
stroke: ${t.stateBorder||t.nodeBorder};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.statediagram-state .title-state {
|
|
142
|
-
rx: 5px;
|
|
143
|
-
ry: 5px;
|
|
144
|
-
}
|
|
145
|
-
.statediagram-cluster.statediagram-cluster .inner {
|
|
146
|
-
fill: ${t.compositeBackground||t.background};
|
|
147
|
-
}
|
|
148
|
-
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
149
|
-
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.statediagram-cluster .inner {
|
|
153
|
-
rx:0;
|
|
154
|
-
ry:0;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.statediagram-state rect.basic {
|
|
158
|
-
rx: 5px;
|
|
159
|
-
ry: 5px;
|
|
160
|
-
}
|
|
161
|
-
.statediagram-state rect.divider {
|
|
162
|
-
stroke-dasharray: 10,10;
|
|
163
|
-
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.note-edge {
|
|
167
|
-
stroke-dasharray: 5;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.statediagram-note rect {
|
|
171
|
-
fill: ${t.noteBkgColor};
|
|
172
|
-
stroke: ${t.noteBorderColor};
|
|
173
|
-
stroke-width: 1px;
|
|
174
|
-
rx: 0;
|
|
175
|
-
ry: 0;
|
|
176
|
-
}
|
|
177
|
-
.statediagram-note rect {
|
|
178
|
-
fill: ${t.noteBkgColor};
|
|
179
|
-
stroke: ${t.noteBorderColor};
|
|
180
|
-
stroke-width: 1px;
|
|
181
|
-
rx: 0;
|
|
182
|
-
ry: 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.statediagram-note text {
|
|
186
|
-
fill: ${t.noteTextColor};
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.statediagram-note .nodeLabel {
|
|
190
|
-
color: ${t.noteTextColor};
|
|
191
|
-
}
|
|
192
|
-
.statediagram .edgeLabel {
|
|
193
|
-
color: red; // ${t.noteTextColor};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
#dependencyStart, #dependencyEnd {
|
|
197
|
-
fill: ${t.lineColor};
|
|
198
|
-
stroke: ${t.lineColor};
|
|
199
|
-
stroke-width: 1;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.statediagramTitleText {
|
|
203
|
-
text-anchor: middle;
|
|
204
|
-
font-size: 18px;
|
|
205
|
-
fill: ${t.textColor};
|
|
206
|
-
}
|
|
207
|
-
`,ge=Se;exports.DEFAULT_NESTED_DOC_DIR=Mt;exports.DEFAULT_STATE_TYPE=ot;exports.DIVIDER_TYPE=vt;exports.STMT_RELATION=Et;exports.STMT_STATE=at;exports.db=pe;exports.parser$1=Ut;exports.styles=ge;
|
package/dist/layers.Ct7y2KbU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("./layers.BSB9eX8_.js"),cn=require("./layers.CHZsXQcr.js");function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function C(n){let t,e,r;n.length!==2?(t=F,e=(a,c)=>F(n(a),c),r=(a,c)=>n(a)-c):(t=n===F||n===hn?n:ln,e=n,r=n);function i(a,c,o=0,s=a.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(a[h],c)<0?o=h+1:s=h}while(o<s)}return o}function f(a,c,o=0,s=a.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(a[h],c)<=0?o=h+1:s=h}while(o<s)}return o}function u(a,c,o=0,s=a.length){const h=i(a,c,o,s-1);return h>o&&r(a[h-1],c)>-r(a[h],c)?h-1:h}return{left:i,center:u,right:f}}function ln(){return 0}function mn(n){return n===null?NaN:+n}const sn=C(F),dn=sn.right;C(mn).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function E(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),u=f>=gn?10:f>=yn?5:f>=Mn?2:1;let a,c,o;return i<0?(o=Math.pow(10,-i)/u,a=Math.round(n*o),c=Math.round(t*o),a/o<n&&++a,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*u,a=Math.round(n/o),c=Math.round(t/o),a*o<n&&++a,c*o>t&&--c),c<a&&.5<=e&&e<2?E(n,t,e*2):[a,c,o]}function pn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,u]=r?E(t,n,e):E(n,t,e);if(!(f>=i))return[];const a=f-i+1,c=new Array(a);if(r)if(u<0)for(let o=0;o<a;++o)c[o]=(f-o)/-u;else for(let o=0;o<a;++o)c[o]=(f-o)*u;else if(u<0)for(let o=0;o<a;++o)c[o]=(i+o)/-u;else for(let o=0;o<a;++o)c[o]=(i+o)*u;return c}function I(n,t,e){return t=+t,n=+n,e=+e,E(n,t,e)[2]}function W(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?I(t,n,e):I(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function wn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function Nn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function kn(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),u;for(u=0;u<r;++u)i[u]=B(n[u],t[u]);for(;u<e;++u)f[u]=t[u];return function(a){for(u=0;u<r;++u)f[u]=i[u](a);return f}}function xn(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function An(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=B(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function B(n,t){var e=typeof t,r;return t==null||e==="boolean"?p.constant(t):(e==="number"?p.interpolateNumber:e==="string"?(r=p.color(t))?(t=r,p.interpolateRgb):p.interpolateString:t instanceof p.color?p.interpolateRgb:t instanceof Date?xn:Nn(t)?wn:Array.isArray(t)?kn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?An:p.interpolateNumber)(n,t)}function vn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function Sn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function q(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function S(n){return n=q(Math.abs(n)),n?n[1]:NaN}function bn(n,t){return function(e,r){for(var i=e.length,f=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),f.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return f.reverse().join(t)}}function jn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var Pn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=Pn.exec(n)))throw new Error("invalid format: "+n);var t;return new G({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=G.prototype;function G(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}G.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function zn(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var _;function Rn(n,t){var e=q(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=r.length;return f===u?r:f>u?r+new Array(f-u+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+q(n,Math.max(0,t+f-1))[0]}function Y(n,t){var e=q(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Z={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Y(n*100,t),r:Y,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $n(n){var t=n.grouping===void 0||n.thousands===void 0?H:bn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:jn(J.call(n.numerals,String)),u=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var m=h.fill,w=h.align,y=h.sign,b=h.symbol,x=h.zero,j=h.width,T=h.comma,N=h.precision,O=h.trim,d=h.type;d==="n"?(T=!0,d="g"):Z[d]||(N===void 0&&(N=12),O=!0,d="g"),(x||m==="0"&&w==="=")&&(x=!0,m="0",w="=");var un=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",an=b==="$"?r:/[%p]/.test(d)?u:"",V=Z[d],fn=/[defgprs%]/.test(d);N=N===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function X(l){var k=un,g=an,A,U,P;if(d==="c")g=V(l)+g,l="";else{l=+l;var z=l<0||1/l<0;if(l=isNaN(l)?c:V(Math.abs(l),N),O&&(l=zn(l)),z&&+l==0&&y!=="+"&&(z=!1),k=(z?y==="("?y:a:y==="-"||y==="("?"":y)+k,g=(d==="s"?K[8+_/3]:"")+g+(z&&y==="("?")":""),fn){for(A=-1,U=l.length;++A<U;)if(P=l.charCodeAt(A),48>P||P>57){g=(P===46?i+l.slice(A+1):l.slice(A))+g,l=l.slice(0,A);break}}}T&&!x&&(l=t(l,1/0));var R=k.length+l.length+g.length,M=R<j?new Array(j-R+1).join(m):"";switch(T&&x&&(l=t(M+l,M.length?j-g.length:1/0),M=""),w){case"<":l=k+l+g+M;break;case"=":l=k+M+l+g;break;case"^":l=M.slice(0,R=M.length>>1)+k+l+g+M.slice(R);break;default:l=M+k+l+g;break}return f(l)}return X.toString=function(){return h+""},X}function s(h,m){var w=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(S(m)/3)))*3,b=Math.pow(10,-y),x=K[8+y/3];return function(j){return w(b*j)+x}}return{format:o,formatPrefix:s}}var $,nn,tn;Fn({thousands:",",grouping:[3],currency:["$",""]});function Fn(n){return $=$n(n),nn=$.format,tn=$.formatPrefix,$}function En(n){return Math.max(0,-S(Math.abs(n)))}function qn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(S(t)/3)))*3-S(Math.abs(n)))}function Dn(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,S(t)-S(n))+1}function Tn(n){return function(){return n}}function In(n){return+n}var Q=[0,1];function v(n){return n}function L(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Tn(isNaN(t)?NaN:.5)}function Ln(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Cn(n,t,e){var r=n[0],i=n[1],f=t[0],u=t[1];return i<r?(r=L(i,r),f=e(u,f)):(r=L(r,i),f=e(f,u)),function(a){return f(r(a))}}function Bn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),f=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=L(n[u],n[u+1]),f[u]=e(t[u],t[u+1]);return function(a){var c=dn(n,a,1,r)-1;return f[c](i[c](a))}}function rn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Gn(){var n=Q,t=Q,e=B,r,i,f,u=v,a,c,o;function s(){var m=Math.min(n.length,t.length);return u!==v&&(u=Ln(n[0],n[m-1])),a=m>2?Bn:Cn,c=o=null,h}function h(m){return m==null||isNaN(m=+m)?f:(c||(c=a(n.map(r),t,e)))(r(u(m)))}return h.invert=function(m){return u(i((o||(o=a(t,n.map(r),p.interpolateNumber)))(m)))},h.domain=function(m){return arguments.length?(n=Array.from(m,In),s()):n.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),s()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),e=vn,s()},h.clamp=function(m){return arguments.length?(u=m?!0:v,s()):u!==v},h.interpolate=function(m){return arguments.length?(e=m,s()):e},h.unknown=function(m){return arguments.length?(f=m,h):f},function(m,w){return r=m,i=w,s()}}function en(){return Gn()(v,v)}function On(n,t,e,r){var i=W(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=qn(i,u))&&(r.precision=f),tn(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Dn(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=En(i))&&(r.precision=f-(r.type==="%")*2);break}}return nn(r)}function Vn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return On(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,u=r[i],a=r[f],c,o,s=10;for(a<u&&(o=u,u=a,a=o,o=i,i=f,f=o);s-- >0;){if(o=I(u,a,e),o===c)return r[i]=u,r[f]=a,t(r);if(o>0)u=Math.floor(u/o)*o,a=Math.ceil(a/o)*o;else if(o<0)u=Math.ceil(u*o)/o,a=Math.floor(a*o)/o;else break;c=o}return n},n}function on(){var n=en();return n.copy=function(){return rn(n,on())},cn.initRange.apply(n,arguments),Vn(n)}exports.bisector=C;exports.continuous=en;exports.copy=rn;exports.linear=on;exports.tickStep=W;
|
package/dist/layers.CtASemAs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.Dhs3Sikn.js");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:""}},S={tooltip:"",link:""},k={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:""},C={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:S,stats:k,toast:v,colors:F,welcomeScreen:w,colorPicker:E,overwriteConfirm:T,mermaid:_};exports.alerts=o;exports.buttons=r;exports.canvasError=s;exports.clearCanvasDialog=g;exports.colorPicker=E;exports.colors=F;exports.confirmDialog=x;exports.default=C;exports.encrypted=S;exports.errorDialog=c;exports.errorSplash=d;exports.errors=t;exports.exportDialog=m;exports.headings=l;exports.helpDialog=p;exports.hints=n;exports.imageExportDialog=h;exports.labels=e;exports.library=a;exports.mermaid=_;exports.overwriteConfirm=T;exports.publishDialog=b;exports.publishSuccessDialog=y;exports.roomDialog=u;exports.stats=k;exports.toast=v;exports.toolBar=i;exports.welcomeScreen=w;
|