@layers-app/editor 0.7.47 → 0.7.49

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.
Files changed (251) hide show
  1. package/README.md +830 -830
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.d.ts +5 -5
  4. package/dist/index.js +4 -4
  5. package/dist/layers.2sxk2h9p.js +423 -0
  6. package/dist/layers.3fhqDXGQ.js +32 -0
  7. package/dist/layers.52famHy6.js +1 -0
  8. package/dist/layers.6LJL3iMX.js +960 -0
  9. package/dist/layers.6lVF0vjp.js +806 -0
  10. package/dist/layers.6vQhCrMO.js +42 -0
  11. package/dist/layers.7JqFgE4-.js +15 -0
  12. package/dist/layers.8jPh7nZ7.js +10 -0
  13. package/dist/layers.9YYn67yF.js +34 -0
  14. package/dist/layers.9o0Jdg-U.js +36 -0
  15. package/dist/layers.9pNaFvaX.js +1 -0
  16. package/dist/layers.B0L7owR9.js +1286 -0
  17. package/dist/layers.B124trWB.js +40 -0
  18. package/dist/layers.B19hGmey.js +1 -0
  19. package/dist/layers.B3D4g2HH.js +1 -0
  20. package/dist/layers.B4bJKqOt.js +1 -0
  21. package/dist/layers.B50R5EaK.js +41 -0
  22. package/dist/layers.B74E_Mhu.js +6 -0
  23. package/dist/layers.B7K7JjK6.js +1510 -0
  24. package/dist/layers.B7c71bAt.js +32 -0
  25. package/dist/layers.B96L1hG2.js +11 -0
  26. package/dist/layers.B9Rx2foX.js +805 -0
  27. package/dist/layers.BAtv1CM7.js +1 -0
  28. package/dist/layers.BB461pvX.js +1 -0
  29. package/dist/layers.BBix4GLX.js +76 -0
  30. package/dist/layers.BIeVwYKL.js +1 -0
  31. package/dist/layers.BJDrjORS.js +244 -0
  32. package/dist/layers.BKyEhTMV.js +41 -0
  33. package/dist/layers.BLUQsSE-.js +9 -0
  34. package/dist/layers.BLd2spTm.js +1 -0
  35. package/dist/layers.BNuBcDIb.js +35 -0
  36. package/dist/layers.BPHAY1-9.js +22 -0
  37. package/dist/layers.BQ2I5acy.js +9 -0
  38. package/dist/layers.BRWyWzwh.js +10 -0
  39. package/dist/layers.BS6VvqxC.js +40 -0
  40. package/dist/layers.BSTBZrFn.js +1 -0
  41. package/dist/layers.BTbPm8pR.js +39 -0
  42. package/dist/layers.BV-egvVp.js +8 -0
  43. package/dist/layers.BVr10oU3.js +9 -0
  44. package/dist/layers.BWw1mK7X.js +10 -0
  45. package/dist/layers.BXIUEFQw.js +37 -0
  46. package/dist/layers.BXS2uNb0.js +40 -0
  47. package/dist/layers.BaGJS1l7.js +40 -0
  48. package/dist/layers.BbCfEXyj.js +55 -0
  49. package/dist/layers.Bc8eVF2x.js +10 -0
  50. package/dist/layers.BdYtCOnE.js +11 -0
  51. package/dist/layers.Be6CBZHC.js +2 -0
  52. package/dist/layers.BeKf3u57.js +5 -0
  53. package/dist/layers.BgQO_ULY.js +207 -0
  54. package/dist/layers.BhDueLVc.js +40 -0
  55. package/dist/layers.BhDyoOpp.js +1089 -0
  56. package/dist/layers.BiakMAVz.js +36 -0
  57. package/dist/layers.BpilXLfW.js +6 -0
  58. package/dist/layers.Bpw9JnCv.js +52 -0
  59. package/dist/layers.Bq2f36dx.js +1 -0
  60. package/dist/layers.BsA7eoz8.js +2966 -0
  61. package/dist/layers.BsxmtGhi.js +4 -0
  62. package/dist/layers.BszXwlqm.js +1 -0
  63. package/dist/layers.Bt2v9ZR3.js +44 -0
  64. package/dist/layers.BtKGefaP.js +39 -0
  65. package/dist/layers.BtLFUN9L.js +33 -0
  66. package/dist/layers.BtTn3DWi.js +1 -0
  67. package/dist/layers.BtWDGtLj.js +160 -0
  68. package/dist/layers.Bw7qkQsX.js +8 -0
  69. package/dist/layers.BwxPrRZD.js +4 -0
  70. package/dist/layers.Bxcxrsy_.js +1583 -0
  71. package/dist/layers.C-XVPziT.js +1 -0
  72. package/dist/layers.C3E0dLDD.js +37 -0
  73. package/dist/layers.C3ctqQ_d.js +1225 -0
  74. package/dist/layers.C57RR3BP.js +5 -0
  75. package/dist/layers.C5TvEQpd.js +4 -0
  76. package/dist/layers.C5XJmJhy.js +794 -0
  77. package/dist/layers.C5XRUPsP.js +504 -0
  78. package/dist/layers.C6lFx_9o.js +32 -0
  79. package/dist/layers.C6vIa6gn.js +11 -0
  80. package/dist/layers.C8_lu5UH.js +23 -0
  81. package/dist/layers.CAXlMwAW.js +7 -0
  82. package/dist/layers.CBwlQeze.js +38 -0
  83. package/dist/layers.CCVxi5hB.js +1 -0
  84. package/dist/layers.CDVEdgbo.js +10 -0
  85. package/dist/layers.CEWorf-C.js +7 -0
  86. package/dist/layers.CFHq5644.js +10 -0
  87. package/dist/layers.CG7r3vnU.js +41 -0
  88. package/dist/layers.CGJlI-Xk.js +37 -0
  89. package/dist/layers.CHZsXQcr.js +1 -0
  90. package/dist/layers.CHh5bEfC.js +41 -0
  91. package/dist/layers.CI55as3L.js +205 -0
  92. package/dist/layers.CIleDfVS.js +21941 -0
  93. package/dist/layers.CImHWuWy.js +1 -0
  94. package/dist/layers.CJaUnfvI.js +122 -0
  95. package/dist/layers.CKmkJeNx.js +8 -0
  96. package/dist/layers.CLCDYoNw.js +40 -0
  97. package/dist/layers.CLLW_-MM.js +1 -0
  98. package/dist/{layers.Hq0pIRX3.js → layers.CLSq6d5G.js} +21 -21
  99. package/dist/layers.CPK-8aJ9.js +8 -0
  100. package/dist/layers.CQrT2kiR.js +4 -0
  101. package/dist/layers.CROEZPe3.js +1 -0
  102. package/dist/layers.CTizu7k3.js +1 -0
  103. package/dist/layers.CTtXyJIC.js +51 -0
  104. package/dist/layers.CUFmR0uO.js +2238 -0
  105. package/dist/layers.CUQCdPfS.js +1 -0
  106. package/dist/layers.CXwIo_E2.js +934 -0
  107. package/dist/layers.C_IvrzZ3.js +7 -0
  108. package/dist/layers.Cbh8488l.js +9 -0
  109. package/dist/layers.CeWHZgFl.js +223 -0
  110. package/dist/layers.ChByNJR4.js +1 -0
  111. package/dist/layers.CiayK_jX.js +7 -0
  112. package/dist/layers.CiloWOji.js +2 -0
  113. package/dist/layers.CivvhzLf.js +11 -0
  114. package/dist/layers.CjKkiQ-5.js +40 -0
  115. package/dist/layers.Cm1JRCTb.js +189 -0
  116. package/dist/layers.Cn0EJP31.js +1126 -0
  117. package/dist/layers.CoUMygdc.js +9 -0
  118. package/dist/layers.CqJ3U1Dv.js +1 -0
  119. package/dist/layers.CqVTtuYm.js +6 -0
  120. package/dist/layers.CrTPxY8M.js +40 -0
  121. package/dist/layers.CrhlCVRH.js +8 -0
  122. package/dist/layers.CvKfVfgR.js +41 -0
  123. package/dist/layers.Cw1UVYRF.js +39 -0
  124. package/dist/{layers.Cfvta__C.js → layers.Cw6AQ1zH.js} +1 -1
  125. package/dist/layers.Cw76BJN2.js +32 -0
  126. package/dist/layers.CxuRP1lw.js +6 -0
  127. package/dist/layers.Cyu04oeV.js +7 -0
  128. package/dist/layers.Cyzu9PKQ.js +1 -0
  129. package/dist/layers.CzYE0Ooc.js +42 -0
  130. package/dist/layers.D0zn4_Mx.js +1 -0
  131. package/dist/layers.D16HelAS.js +213 -0
  132. package/dist/layers.D1BZqHRU.js +38 -0
  133. package/dist/layers.D2PgPKOo.js +13 -0
  134. package/dist/layers.D4T8fTcj.js +1223 -0
  135. package/dist/layers.D5Kikhmz.js +295 -0
  136. package/dist/layers.D5vKDO3Z.js +1 -0
  137. package/dist/layers.D634RCv2.js +6 -0
  138. package/dist/layers.D6fxuXiV.js +39 -0
  139. package/dist/layers.D77Lwa5B.js +10 -0
  140. package/dist/layers.D7jGxypv.js +8 -0
  141. package/dist/layers.D9Aq-VH-.js +36 -0
  142. package/dist/layers.DAN-8W9x.js +48149 -0
  143. package/dist/layers.DB59_4ZT.js +118 -0
  144. package/dist/layers.DBKCfxsn.js +7 -0
  145. package/dist/layers.DC44PHoe.js +1 -0
  146. package/dist/layers.DDIKIPEl.js +425 -0
  147. package/dist/layers.DDNSbyH9.js +11 -0
  148. package/dist/layers.DE-1MOCW.js +6 -0
  149. package/dist/layers.DEJLOhUD.js +5 -0
  150. package/dist/layers.DF5Jf3M9.js +9 -0
  151. package/dist/layers.DFEtOzCz.js +37 -0
  152. package/dist/layers.DFiKSx4e.js +9 -0
  153. package/dist/layers.DGwBwWGl.js +373 -0
  154. package/dist/layers.DJtJoK2T.js +8 -0
  155. package/dist/layers.DJugFK-r.js +129 -0
  156. package/dist/layers.DJuxVMes.js +39 -0
  157. package/dist/layers.DLOvj2ew.js +70 -0
  158. package/dist/layers.DLmk4e9A.js +8 -0
  159. package/dist/layers.DLwuMfdd.js +84 -0
  160. package/dist/layers.DMRUFJsX.js +8 -0
  161. package/dist/layers.DMkBISW1.js +1 -0
  162. package/dist/layers.DN9HoVxI.js +18 -0
  163. package/dist/layers.DO0X6c0O.js +323 -0
  164. package/dist/layers.DOrgOHBr.js +1 -0
  165. package/dist/layers.DPlZKJgj.js +437 -0
  166. package/dist/layers.DQxhNW5R.js +9 -0
  167. package/dist/layers.DReq7_oC.js +296 -0
  168. package/dist/layers.DT9rsUtv.js +198 -0
  169. package/dist/layers.DU05EaWA.js +907 -0
  170. package/dist/layers.DUEmMZLx.js +41 -0
  171. package/dist/layers.DWAsYusl.js +116 -0
  172. package/dist/layers.DWYk3UK6.js +40 -0
  173. package/dist/layers.DWhMR9ZJ.js +139 -0
  174. package/dist/layers.DXS1j64l.js +271 -0
  175. package/dist/layers.DYURS4FP.js +84 -0
  176. package/dist/layers.D_RUDzWv.js +21620 -0
  177. package/dist/layers.DbVdGKld.js +1 -0
  178. package/dist/layers.DbaKVP5e.js +1 -0
  179. package/dist/layers.DcAdQwtK.js +7 -0
  180. package/dist/layers.DcMkjKaG.js +6 -0
  181. package/dist/layers.DgvrVyqi.js +96 -0
  182. package/dist/layers.Dhq37bku.js +10 -0
  183. package/dist/layers.DjUOC4st.js +16 -0
  184. package/dist/layers.DjkEwMtb.js +796 -0
  185. package/dist/layers.Dl8xQWMG.js +39 -0
  186. package/dist/layers.DlufDKX8.js +139 -0
  187. package/dist/layers.DnJXYiZP.js +40 -0
  188. package/dist/layers.DnXs_pNB.js +39 -0
  189. package/dist/layers.Do15drP1.js +3 -0
  190. package/dist/layers.DokfH0hd.js +39 -0
  191. package/dist/layers.DpNZa-jp.js +9 -0
  192. package/dist/layers.Dr3MCGOM.js +1088 -0
  193. package/dist/layers.DrQ8hvnX.js +5 -0
  194. package/dist/layers.DsptZoFe.js +42 -0
  195. package/dist/layers.DtD3skoW.js +1619 -0
  196. package/dist/layers.Dtms4fW5.js +5 -0
  197. package/dist/layers.Du0f9MLd.js +42 -0
  198. package/dist/layers.DuZA4Xas.js +32 -0
  199. package/dist/layers.Dwh8gx1i.js +1 -0
  200. package/dist/layers.DwizeusR.js +9 -0
  201. package/dist/layers.DxA6ocdw.js +70 -0
  202. package/dist/layers.Dy1naDTQ.js +14 -0
  203. package/dist/layers.DyL1tlRE.js +276 -0
  204. package/dist/layers.DyRolv1I.js +8 -0
  205. package/dist/layers.DzFqkluR.js +2482 -0
  206. package/dist/layers.DzSq4y89.js +14 -0
  207. package/dist/layers.Gsg2l9lj.js +1 -0
  208. package/dist/layers.H6NhhT0Z.js +35 -0
  209. package/dist/layers.JWCLFILJ.js +1 -0
  210. package/dist/{layers.BtvuN20E.js → layers.MmOx3Q5y.js} +10159 -9401
  211. package/dist/layers.NYVxQ2J0.js +38 -0
  212. package/dist/layers.Oz9AvXqT.js +772 -0
  213. package/dist/layers.R8mPlCA0.js +261 -0
  214. package/dist/layers.TMqEBNpX.js +1 -0
  215. package/dist/layers.Te010ICg.js +8583 -0
  216. package/dist/layers.VN0Yeq2V.js +1 -0
  217. package/dist/layers.WnvKMTKL.js +61 -0
  218. package/dist/layers.WxQ6m-UP.js +36 -0
  219. package/dist/layers.X0_Gx5lN.js +42 -0
  220. package/dist/layers.Y9FRICz5.js +10 -0
  221. package/dist/layers.ZGwk_KWb.js +7 -0
  222. package/dist/layers.b0h5ZBmD.js +61 -0
  223. package/dist/{layers.CsQlovyR.js → layers.b9B2NY7n.js} +1950 -2191
  224. package/dist/layers.blh6SXpL.js +8 -0
  225. package/dist/layers.d5j1lEFQ.js +2 -0
  226. package/dist/layers.eGX8dSo1.js +1 -0
  227. package/dist/layers.eIIS5NDC.js +1 -0
  228. package/dist/layers.fxqbBEns.js +35 -0
  229. package/dist/layers.hAT_4n_i.js +6 -0
  230. package/dist/layers.jPwVCOt0.js +39 -0
  231. package/dist/layers.jgfr1mFT.js +65 -0
  232. package/dist/layers.lCpg7dOn.js +21 -0
  233. package/dist/layers.lMAyLkuo.js +1 -0
  234. package/dist/layers.lX16IRwc.js +10 -0
  235. package/dist/layers.oFuJymzn.js +41 -0
  236. package/dist/layers.p872qi0O.js +1034 -0
  237. package/dist/layers.pHpJOB6N.js +1 -0
  238. package/dist/layers.pgbpWh46.js +84 -0
  239. package/dist/layers.pixPTfNv.js +33 -0
  240. package/dist/layers.rmoiicvu.js +41 -0
  241. package/dist/layers.rvTNl4lr.js +7 -0
  242. package/dist/layers.ssiSYLMt.js +32 -0
  243. package/dist/layers.xcmbrsYu.js +257 -0
  244. package/dist/layers.xtkyz0Y7.js +1268 -0
  245. package/package.json +2 -2
  246. package/dist/layers.B88sQYuh.js +0 -297
  247. package/dist/layers.BgMykHnn.js +0 -154
  248. package/dist/layers.Ct1ojjl3.js +0 -1
  249. package/dist/layers.JT_kEFH5.js +0 -129
  250. package/dist/layers.NW1lST7i.js +0 -1
  251. package/dist/layers.pwc3O6Es.js +0 -261
@@ -0,0 +1,7 @@
1
+ "use strict";const X=require("./layers.DJugFK-r.js"),T=require("./layers.DMkBISW1.js");function N(H,Y){for(var d=0;d<Y.length;d++){const I=Y[d];if(typeof I!="string"&&!Array.isArray(I)){for(const R in I)if(R!=="default"&&!(R in H)){const v=Object.getOwnPropertyDescriptor(I,R);v&&Object.defineProperty(H,R,v.get?v:{enumerable:!0,get:()=>I[R]})}}}return Object.freeze(Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}))}var W={exports:{}};/*!
2
+
3
+ pica
4
+ https://github.com/nodeca/pica
5
+
6
+ */var z;function Z(){return z||(z=1,(function(H,Y){(function(d){H.exports=d()})(function(){return(function(){function d(I,R,v){function o(a,t){if(!R[a]){if(!I[a]){var e=typeof T.commonjsRequire=="function"&&T.commonjsRequire;if(!t&&e)return e(a,!0);if(A)return A(a,!0);var i=new Error("Cannot find module '"+a+"'");throw i.code="MODULE_NOT_FOUND",i}var c=R[a]={exports:{}};I[a][0].call(c.exports,function(h){var u=I[a][1][h];return o(u||h)},c,c.exports,d,I,R,v)}return R[a].exports}for(var A=typeof T.commonjsRequire=="function"&&T.commonjsRequire,n=0;n<v.length;n++)o(v[n]);return o}return d})()({1:[function(d,I,R){var v=d("inherits"),o=d("multimath"),A=d("./mm_unsharp_mask"),n=d("./mm_resize");function a(t){var e=t||[],i={js:e.indexOf("js")>=0,wasm:e.indexOf("wasm")>=0};o.call(this,i),this.features={js:i.js,wasm:i.wasm&&this.has_wasm()},this.use(A),this.use(n)}v(a,o),a.prototype.resizeAndUnsharp=function(e,i){var c=this.resize(e,i);return e.unsharpAmount&&this.unsharp_mask(c,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),c},I.exports=a},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(d,I,R){function v(n){return n<0?0:n>255?255:n}function o(n,a,t,e,i,c){var h,u,_,p,m,w,B,y,E,G,b,F=0,D=0;for(E=0;E<e;E++){for(m=0,G=0;G<i;G++){for(w=c[m++],B=c[m++],y=F+w*4|0,h=u=_=p=0;B>0;B--)b=c[m++],p=p+b*n[y+3]|0,_=_+b*n[y+2]|0,u=u+b*n[y+1]|0,h=h+b*n[y]|0,y=y+4|0;a[D+3]=v(p+8192>>14),a[D+2]=v(_+8192>>14),a[D+1]=v(u+8192>>14),a[D]=v(h+8192>>14),D=D+e*4|0}D=(E+1)*4|0,F=(E+1)*t*4|0}}function A(n,a,t,e,i,c){var h,u,_,p,m,w,B,y,E,G,b,F=0,D=0;for(E=0;E<e;E++){for(m=0,G=0;G<i;G++){for(w=c[m++],B=c[m++],y=F+w*4|0,h=u=_=p=0;B>0;B--)b=c[m++],p=p+b*n[y+3]|0,_=_+b*n[y+2]|0,u=u+b*n[y+1]|0,h=h+b*n[y]|0,y=y+4|0;a[D+3]=v(p+8192>>14),a[D+2]=v(_+8192>>14),a[D+1]=v(u+8192>>14),a[D]=v(h+8192>>14),D=D+e*4|0}D=(E+1)*4|0,F=(E+1)*t*4|0}}I.exports={convolveHorizontally:o,convolveVertically:A}},{}],3:[function(d,I,R){I.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(d,I,R){I.exports={name:"resize",fn:d("./resize"),wasm_fn:d("./resize_wasm"),wasm_src:d("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(d,I,R){var v=d("./resize_filter_gen"),o=d("./convolve").convolveHorizontally,A=d("./convolve").convolveVertically;function n(a,t,e){for(var i=3,c=t*e*4|0;i<c;)a[i]=255,i=i+4|0}I.exports=function(t){var e=t.src,i=t.width,c=t.height,h=t.toWidth,u=t.toHeight,_=t.scaleX||t.toWidth/t.width,p=t.scaleY||t.toHeight/t.height,m=t.offsetX||0,w=t.offsetY||0,B=t.dest||new Uint8Array(h*u*4),y=typeof t.quality>"u"?3:t.quality,E=t.alpha||!1,G=v(y,i,h,_,m),b=v(y,c,u,p,w),F=new Uint8Array(h*c*4);return o(e,F,i,c,h,G),A(F,B,c,h,u,b),E||n(B,h,u),B}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(d,I,R){var v=d("./resize_filter_info"),o=14;function A(n){return Math.round(n*((1<<o)-1))}I.exports=function(a,t,e,i,c){var h=v[a].filter,u=1/i,_=Math.min(1,i),p=v[a].win/_,m,w,B,y,E,G,b,F,D,x,S,U,j,r,f,s,l,g=Math.floor((p+1)*2),M=new Int16Array((g+2)*e),C=0,Q=!M.subarray||!M.set;for(m=0;m<e;m++){for(w=(m+.5)*u+c,B=Math.max(0,Math.floor(w-p)),y=Math.min(t-1,Math.ceil(w+p)),E=y-B+1,G=new Float32Array(E),b=new Int16Array(E),F=0,D=B,x=0;D<=y;D++,x++)S=h((D+.5-w)*_),F+=S,G[x]=S;for(U=0,x=0;x<G.length;x++)j=G[x]/F,U+=j,b[x]=A(j);for(b[e>>1]+=A(1-U),r=0;r<b.length&&b[r]===0;)r++;if(r<b.length){for(f=b.length-1;f>0&&b[f]===0;)f--;if(s=B+r,l=f-r+1,M[C++]=s,M[C++]=l,!Q)M.set(b.subarray(r,f+1),C),C+=l;else for(x=r;x<=f;x++)M[C++]=b[x]}else M[C++]=0,M[C++]=0}return M}},{"./resize_filter_info":7}],7:[function(d,I,R){I.exports=[{win:.5,filter:function(o){return o>=-.5&&o<.5?1:0}},{win:1,filter:function(o){if(o<=-1||o>=1)return 0;if(o>-11920929e-14&&o<11920929e-14)return 1;var A=o*Math.PI;return Math.sin(A)/A*(.54+.46*Math.cos(A/1))}},{win:2,filter:function(o){if(o<=-2||o>=2)return 0;if(o>-11920929e-14&&o<11920929e-14)return 1;var A=o*Math.PI;return Math.sin(A)/A*Math.sin(A/2)/(A/2)}},{win:3,filter:function(o){if(o<=-3||o>=3)return 0;if(o>-11920929e-14&&o<11920929e-14)return 1;var A=o*Math.PI;return Math.sin(A)/A*Math.sin(A/3)/(A/3)}}]},{}],8:[function(d,I,R){var v=d("./resize_filter_gen");function o(t,e,i){for(var c=3,h=e*i*4|0;c<h;)t[c]=255,c=c+4|0}function A(t){return new Uint8Array(t.buffer,0,t.byteLength)}var n=!0;try{n=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1}catch{}function a(t,e,i){if(n){e.set(A(t),i);return}for(var c=i,h=0;h<t.length;h++){var u=t[h];e[c++]=u&255,e[c++]=u>>8&255}}I.exports=function(e){var i=e.src,c=e.width,h=e.height,u=e.toWidth,_=e.toHeight,p=e.scaleX||e.toWidth/e.width,m=e.scaleY||e.toHeight/e.height,w=e.offsetX||0,B=e.offsetY||0,y=e.dest||new Uint8Array(u*_*4),E=typeof e.quality>"u"?3:e.quality,G=e.alpha||!1,b=v(E,c,u,p,w),F=v(E,h,_,m,B),D=0,x=this.__align(D+Math.max(i.byteLength,y.byteLength)),S=this.__align(x+h*u*4),U=this.__align(S+b.byteLength),j=U+F.byteLength,r=this.__instance("resize",j),f=new Uint8Array(this.__memory.buffer),s=new Uint32Array(this.__memory.buffer),l=new Uint32Array(i.buffer);s.set(l),a(b,f,S),a(F,f,U);var g=r.exports.convolveHV||r.exports._convolveHV;g(S,U,x,c,h,u,_);var M=new Uint32Array(y.buffer);return M.set(new Uint32Array(this.__memory.buffer,0,_*u)),G||o(y,u,_),y}},{"./resize_filter_gen":6}],9:[function(d,I,R){I.exports={name:"unsharp_mask",fn:d("./unsharp_mask"),wasm_fn:d("./unsharp_mask_wasm"),wasm_src:d("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(d,I,R){var v=d("glur/mono16");function o(A,n,a){for(var t=n*a,e=new Uint16Array(t),i,c,h,u,_=0;_<t;_++)i=A[4*_],c=A[4*_+1],h=A[4*_+2],u=i>=c&&i>=h?i:c>=h&&c>=i?c:h,e[_]=u<<8;return e}I.exports=function(n,a,t,e,i,c){var h,u,_,p,m;if(!(e===0||i<.5)){i>2&&(i=2);var w=o(n,a,t),B=new Uint16Array(w);v(B,a,t,i);for(var y=e/100*4096+.5|0,E=c<<8,G=a*t,b=0;b<G;b++)h=w[b],p=h-B[b],Math.abs(p)>=E&&(u=h+(y*p+2048>>12),u=u>65280?65280:u,u=u<0?0:u,h=h!==0?h:1,_=(u<<12)/h|0,m=b*4,n[m]=n[m]*_+2048>>12,n[m+1]=n[m+1]*_+2048>>12,n[m+2]=n[m+2]*_+2048>>12)}}},{"glur/mono16":18}],11:[function(d,I,R){I.exports=function(o,A,n,a,t,e){if(!(a===0||t<.5)){t>2&&(t=2);var i=A*n,c=i*4,h=i*2,u=i*2,_=Math.max(A,n)*4,p=32,m=0,w=c,B=w+h,y=B+u,E=y+u,G=E+_,b=this.__instance("unsharp_mask",c+h+u*2+_+p,{exp:Math.exp}),F=new Uint32Array(o.buffer),D=new Uint32Array(this.__memory.buffer);D.set(F);var x=b.exports.hsv_v16||b.exports._hsv_v16;x(m,w,A,n),x=b.exports.blurMono16||b.exports._blurMono16,x(w,B,y,E,G,A,n,t),x=b.exports.unsharp||b.exports._unsharp,x(m,m,w,B,A,n,a,e),F.set(new Uint32Array(this.__memory.buffer,0,i))}}},{}],12:[function(d,I,R){I.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(d,I,R){var v=100;function o(A,n){this.create=A,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=n||2e3}o.prototype.acquire=function(){var A=this,n;return this.available.length!==0?n=this.available.pop():(n=this.create(),n.id=this.lastId++,n.release=function(){return A.release(n)}),this.acquired[n.id]=n,n},o.prototype.release=function(A){var n=this;delete this.acquired[A.id],A.lastUsed=Date.now(),this.available.push(A),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return n.gc()},v))},o.prototype.gc=function(){var A=this,n=Date.now();this.available=this.available.filter(function(a){return n-a.lastUsed>A.idle?(a.destroy(),!1):!0}),this.available.length!==0?this.timeoutId=setTimeout(function(){return A.gc()},v):this.timeoutId=0},I.exports=o},{}],14:[function(d,I,R){var v=2;I.exports=function(A,n,a,t,e,i){var c=a/A,h=t/n,u=(2*i+v+1)/e;if(u>.5)return[[a,t]];var _=Math.ceil(Math.log(Math.min(c,h))/Math.log(u));if(_<=1)return[[a,t]];for(var p=[],m=0;m<_;m++){var w=Math.round(Math.pow(Math.pow(A,_-m-1)*Math.pow(a,m+1),1/_)),B=Math.round(Math.pow(Math.pow(n,_-m-1)*Math.pow(t,m+1),1/_));p.push([w,B])}return p}},{}],15:[function(d,I,R){var v=1e-5;function o(n){var a=Math.round(n);return Math.abs(n-a)<v?a:Math.floor(n)}function A(n){var a=Math.round(n);return Math.abs(n-a)<v?a:Math.ceil(n)}I.exports=function(a){var t=a.toWidth/a.width,e=a.toHeight/a.height,i=o(a.srcTileSize*t)-2*a.destTileBorder,c=o(a.srcTileSize*e)-2*a.destTileBorder;if(i<1||c<1)throw new Error("Internal error in pica: target tile width/height is too small.");var h,u,_,p,m,w,B=[],y;for(p=0;p<a.toHeight;p+=c)for(_=0;_<a.toWidth;_+=i)h=_-a.destTileBorder,h<0&&(h=0),m=_+i+a.destTileBorder-h,h+m>=a.toWidth&&(m=a.toWidth-h),u=p-a.destTileBorder,u<0&&(u=0),w=p+c+a.destTileBorder-u,u+w>=a.toHeight&&(w=a.toHeight-u),y={toX:h,toY:u,toWidth:m,toHeight:w,toInnerX:_,toInnerY:p,toInnerWidth:i,toInnerHeight:c,offsetX:h/t-o(h/t),offsetY:u/e-o(u/e),scaleX:t,scaleY:e,x:o(h/t),y:o(u/e),width:A(m/t),height:A(w/e)},B.push(y);return B}},{}],16:[function(d,I,R){function v(o){return Object.prototype.toString.call(o)}I.exports.isCanvas=function(A){var n=v(A);return n==="[object HTMLCanvasElement]"||n==="[object OffscreenCanvas]"||n==="[object Canvas]"},I.exports.isImage=function(A){return v(A)==="[object HTMLImageElement]"},I.exports.isImageBitmap=function(A){return v(A)==="[object ImageBitmap]"},I.exports.limiter=function(A){var n=0,a=[];function t(){n<A&&a.length&&(n++,a.shift()())}return function(i){return new Promise(function(c,h){a.push(function(){i().then(function(u){c(u),n--,t()},function(u){h(u),n--,t()})}),t()})}},I.exports.cib_quality_name=function(A){switch(A){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},I.exports.cib_support=function(A){return Promise.resolve().then(function(){if(typeof createImageBitmap>"u")return!1;var n=A(100,100);return createImageBitmap(n,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(a){var t=a.width===10;return a.close(),n=null,t})}).catch(function(){return!1})},I.exports.worker_offscreen_canvas_support=function(){return new Promise(function(A,n){if(typeof OffscreenCanvas>"u"){A(!1);return}function a(i){if(typeof createImageBitmap>"u"){i.postMessage(!1);return}Promise.resolve().then(function(){var c=new OffscreenCanvas(10,10),h=c.getContext("2d");return h.rect(0,0,1,1),createImageBitmap(c,0,0,1,1)}).then(function(){return i.postMessage(!0)},function(){return i.postMessage(!1)})}var t=btoa("(".concat(a.toString(),")(self);")),e=new Worker("data:text/javascript;base64,".concat(t));e.onmessage=function(i){return A(i.data)},e.onerror=n}).then(function(A){return A},function(){return!1})},I.exports.can_use_canvas=function(A){var n=!1;try{var a=A(2,1),t=a.getContext("2d"),e=t.createImageData(2,1);e.data[0]=12,e.data[1]=23,e.data[2]=34,e.data[3]=255,e.data[4]=45,e.data[5]=56,e.data[6]=67,e.data[7]=255,t.putImageData(e,0,0),e=null,e=t.getImageData(0,0,2,1),e.data[0]===12&&e.data[1]===23&&e.data[2]===34&&e.data[3]===255&&e.data[4]===45&&e.data[5]===56&&e.data[6]===67&&e.data[7]===255&&(n=!0)}catch{}return n},I.exports.cib_can_use_region=function(){return new Promise(function(A){if(typeof createImageBitmap>"u"){A(!1);return}var n=new Image;n.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",n.onload=function(){createImageBitmap(n,0,0,n.width,n.height).then(function(a){a.width===n.width&&a.height===n.height?A(!0):A(!1)},function(){return A(!1)})},n.onerror=function(){return A(!1)}})}},{}],17:[function(d,I,R){I.exports=function(){var v=d("./mathlib"),o;onmessage=function(n){var a=n.data.opts;if(!a.src&&a.srcBitmap){var t=new OffscreenCanvas(a.width,a.height),e=t.getContext("2d",{alpha:!!a.alpha});e.drawImage(a.srcBitmap,0,0),a.src=e.getImageData(0,0,a.width,a.height).data,t.width=t.height=0,t=null,a.srcBitmap.close(),a.srcBitmap=null}o||(o=new v(n.data.features));var i=o.resizeAndUnsharp(a);postMessage({data:i},[i.buffer])}}},{"./mathlib":1}],18:[function(d,I,R){var v,o,A,n,a,t,e,i;function c(_){_<.5&&(_=.5);var p=Math.exp(.726*.726)/_,m=Math.exp(-p),w=Math.exp(-2*p),B=(1-m)*(1-m)/(1+2*p*m-w);return v=B,o=B*(p-1)*m,A=B*(p+1)*m,n=-B*w,a=2*m,t=-w,e=(v+o)/(1-a-t),i=(A+n)/(1-a-t),new Float32Array([v,o,A,n,a,t,e,i])}function h(_,p,m,w,B,y){var E,G,b,F,D,x,S,U,j,r,f,s,l,g;for(j=0;j<y;j++){for(x=j*B,S=j,U=0,E=_[x],D=E*w[6],F=D,f=w[0],s=w[1],l=w[4],g=w[5],r=0;r<B;r++)G=_[x],b=G*f+E*s+F*l+D*g,D=F,F=b,E=G,m[U]=F,U++,x++;for(x--,U--,S+=y*(B-1),E=_[x],D=E*w[7],F=D,G=E,f=w[2],s=w[3],r=B-1;r>=0;r--)b=G*f+E*s+F*l+D*g,D=F,F=b,E=G,G=_[x],p[S]=m[U]+F,x--,U--,S-=y}}function u(_,p,m,w){if(w){var B=new Uint16Array(_.length),y=new Float32Array(Math.max(p,m)),E=c(w);h(_,B,y,E,p,m),h(B,_,y,E,m,p)}}I.exports=u},{}],19:[function(d,I,R){typeof Object.create=="function"?I.exports=function(o,A){A&&(o.super_=A,o.prototype=Object.create(A.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:I.exports=function(o,A){if(A){o.super_=A;var n=function(){};n.prototype=A.prototype,o.prototype=new n,o.prototype.constructor=o}}},{}],20:[function(d,I,R){var v=d("object-assign"),o=d("./lib/base64decode"),A=d("./lib/wa_detect"),n={js:!0,wasm:!0};function a(t){if(!(this instanceof a))return new a(t);var e=v({},n,t||{});if(this.options=e,this.__cache={},this.__init_promise=null,this.__modules=e.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}a.prototype.has_wasm=A,a.prototype.use=function(t){return this.__modules[t.name]=t,this.options.wasm&&this.has_wasm()&&t.wasm_fn?this[t.name]=t.wasm_fn:this[t.name]=t.fn,this},a.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error(`mathlib: only "wasm" was enabled, but it's not supported`));var t=this;return this.__init_promise=Promise.all(Object.keys(t.__modules).map(function(e){var i=t.__modules[e];return!t.options.wasm||!t.has_wasm()||!i.wasm_fn||t.__wasm[e]?null:WebAssembly.compile(t.__base64decode(i.wasm_src)).then(function(c){t.__wasm[e]=c})})).then(function(){return t}),this.__init_promise},a.prototype.__base64decode=o,a.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/(64*1024))}),this.__memory;var i=this.__memory.buffer.byteLength;return i<e&&this.__memory.grow(Math.ceil((e-i)/(64*1024))),this.__memory},a.prototype.__instance=function(e,i,c){if(i&&this.__reallocate(i),!this.__wasm[e]){var h=this.__modules[e];this.__wasm[e]=new WebAssembly.Module(this.__base64decode(h.wasm_src))}if(!this.__cache[e]){var u={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[e]=new WebAssembly.Instance(this.__wasm[e],{env:v(u,c||{})})}return this.__cache[e]},a.prototype.__align=function(e,i){i=i||8;var c=e%i;return e+(c?i-c:0)},I.exports=a},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(d,I,R){var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";I.exports=function(A){for(var n=A.replace(/[\r\n=]/g,""),a=n.length,t=new Uint8Array(a*3>>2),e=0,i=0,c=0;c<a;c++)c%4===0&&c&&(t[i++]=e>>16&255,t[i++]=e>>8&255,t[i++]=e&255),e=e<<6|v.indexOf(n.charAt(c));var h=a%4*6;return h===0?(t[i++]=e>>16&255,t[i++]=e>>8&255,t[i++]=e&255):h===18?(t[i++]=e>>10&255,t[i++]=e>>2&255):h===12&&(t[i++]=e>>4&255),t}},{}],22:[function(d,I,R){var v;I.exports=function(){if(typeof v<"u"||(v=!1,typeof WebAssembly>"u"))return v;try{var A=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),n=new WebAssembly.Module(A),a=new WebAssembly.Instance(n,{});return a.exports.test(4)!==0&&(v=!0),v}catch{}return v}},{}],23:[function(d,I,R){var v=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;function n(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var c=Object.getOwnPropertyNames(e).map(function(u){return e[u]});if(c.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(u){h[u]=u}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}I.exports=a()?Object.assign:function(t,e){for(var i,c=n(t),h,u=1;u<arguments.length;u++){i=Object(arguments[u]);for(var _ in i)o.call(i,_)&&(c[_]=i[_]);if(v){h=v(i);for(var p=0;p<h.length;p++)A.call(i,h[p])&&(c[h[p]]=i[h[p]])}}return c}},{}],24:[function(d,I,R){var v=arguments[3],o=arguments[4],A=arguments[5],n=JSON.stringify;I.exports=function(a,t){for(var e,i=Object.keys(A),c=0,h=i.length;c<h;c++){var u=i[c],_=A[u].exports;if(_===a||_&&_.default===a){e=u;break}}if(!e){e=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var p={},c=0,h=i.length;c<h;c++){var u=i[c];p[u]=u}o[e]=["function(require,module,exports){"+a+"(self); }",p]}var m=Math.floor(Math.pow(16,8)*Math.random()).toString(16),w={};w[e]=e,o[m]=["function(require,module,exports){var f = require("+n(e)+");(f.default ? f.default : f)(self);}",w];var B={};y(m);function y(x){B[x]=!0;for(var S in o[x][1]){var U=o[x][1][S];B[U]||y(U)}}var E="("+v+")({"+Object.keys(B).map(function(x){return n(x)+":["+o[x][0]+","+n(o[x][1])+"]"}).join(",")+"},{},["+n(m)+"])",G=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([E],{type:"text/javascript"});if(t&&t.bare)return b;var F=G.createObjectURL(b),D=new Worker(F);return D.objectURL=F,D}},{}],"/index.js":[function(d,I,R){function v(r,f){return t(r)||a(r,f)||A(r,f)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(r,f){if(r){if(typeof r=="string")return n(r,f);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(r,f)}}function n(r,f){(f==null||f>r.length)&&(f=r.length);for(var s=0,l=new Array(f);s<f;s++)l[s]=r[s];return l}function a(r,f){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var l=[],g=!0,M=!1,C,Q;try{for(s=s.call(r);!(g=(C=s.next()).done)&&(l.push(C.value),!(f&&l.length===f));g=!0);}catch(k){M=!0,Q=k}finally{try{!g&&s.return!=null&&s.return()}finally{if(M)throw Q}}return l}}function t(r){if(Array.isArray(r))return r}var e=d("object-assign"),i=d("webworkify"),c=d("./lib/mathlib"),h=d("./lib/pool"),u=d("./lib/utils"),_=d("./lib/worker"),p=d("./lib/stepper"),m=d("./lib/tiler"),w={},B=!1;try{typeof navigator<"u"&&navigator.userAgent&&(B=navigator.userAgent.indexOf("Safari")>=0)}catch{}var y=1;typeof navigator<"u"&&(y=Math.min(navigator.hardwareConcurrency||1,4));var E={tile:1024,concurrency:y,features:["js","wasm","ww"],idle:2e3,createCanvas:function(f,s){var l=document.createElement("canvas");return l.width=f,l.height=s,l}},G={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},b=!1,F=!1,D=!1,x=!1,S=!1;function U(){return{value:i(_),destroy:function(){if(this.value.terminate(),typeof window<"u"){var f=window.URL||window.webkitURL||window.mozURL||window.msURL;f&&f.revokeObjectURL&&this.value.objectURL&&f.revokeObjectURL(this.value.objectURL)}}}}function j(r){if(!(this instanceof j))return new j(r);this.options=e({},E,r||{});var f="lk_".concat(this.options.concurrency);this.__limit=w[f]||u.limiter(this.options.concurrency),w[f]||(w[f]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}j.prototype.init=function(){var r=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),b=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?F=!0:this.debug("ImageBitmap does not support .close(), disabled"));var f=this.options.features.slice();if(f.indexOf("all")>=0&&(f=["cib","wasm","js","ww"]),this.__requested_features=f,this.__mathlib=new c(f),f.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var s=d("webworkify")(function(){});s.terminate(),this.features.ww=!0;var l="wp_".concat(JSON.stringify(this.options));w[l]?this.__workersPool=w[l]:(this.__workersPool=new h(U,this.options.idle),w[l]=this.__workersPool)}catch{}var g=this.__mathlib.init().then(function(k){e(r.features,k.features)}),M;F?M=u.cib_support(this.options.createCanvas).then(function(k){if(r.features.cib&&f.indexOf("cib")<0){r.debug("createImageBitmap() resize supported, but disabled by config");return}f.indexOf("cib")>=0&&(r.features.cib=k)}):M=Promise.resolve(!1),D=u.can_use_canvas(this.options.createCanvas);var C;F&&b&&f.indexOf("ww")!==-1?C=u.worker_offscreen_canvas_support():C=Promise.resolve(!1),C=C.then(function(k){x=k});var Q=u.cib_can_use_region().then(function(k){S=k});return this.__initPromise=Promise.all([g,M,C,Q]).then(function(){return r}),this.__initPromise},j.prototype.__invokeResize=function(r,f){var s=this;return f.__mathCache=f.__mathCache||{},Promise.resolve().then(function(){return s.features.ww?new Promise(function(l,g){var M=s.__workersPool.acquire();f.cancelToken&&f.cancelToken.catch(function(Q){return g(Q)}),M.value.onmessage=function(Q){M.release(),Q.data.err?g(Q.data.err):l(Q.data)};var C=[];r.src&&C.push(r.src.buffer),r.srcBitmap&&C.push(r.srcBitmap),M.value.postMessage({opts:r,features:s.__requested_features,preload:{wasm_nodule:s.__mathlib.__}},C)}):{data:s.__mathlib.resizeAndUnsharp(r,f.__mathCache)}})},j.prototype.__extractTileData=function(r,f,s,l,g){if(this.features.ww&&x&&(u.isCanvas(f)||S))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(l.srcImageBitmap||f,r.x,r.y,r.width,r.height).then(function(Q){return g.srcBitmap=Q,g});if(u.isCanvas(f))return l.srcCtx||(l.srcCtx=f.getContext("2d",{alpha:!!s.alpha})),this.debug("Get tile pixel data"),g.src=l.srcCtx.getImageData(r.x,r.y,r.width,r.height).data,g;this.debug("Draw tile imageBitmap/image to temporary canvas");var M=this.options.createCanvas(r.width,r.height),C=M.getContext("2d",{alpha:!!s.alpha});return C.globalCompositeOperation="copy",C.drawImage(l.srcImageBitmap||f,r.x,r.y,r.width,r.height,0,0,r.width,r.height),this.debug("Get tile pixel data"),g.src=C.getImageData(0,0,r.width,r.height).data,M.width=M.height=0,g},j.prototype.__landTileData=function(r,f,s){var l;if(this.debug("Convert raw rgba tile result to ImageData"),f.bitmap)return s.toCtx.drawImage(f.bitmap,r.toX,r.toY),null;if(b)l=new ImageData(new Uint8ClampedArray(f.data),r.toWidth,r.toHeight);else if(l=s.toCtx.createImageData(r.toWidth,r.toHeight),l.data.set)l.data.set(f.data);else for(var g=l.data.length-1;g>=0;g--)l.data[g]=f.data[g];return this.debug("Draw tile"),B?s.toCtx.putImageData(l,r.toX,r.toY,r.toInnerX-r.toX,r.toInnerY-r.toY,r.toInnerWidth+1e-5,r.toInnerHeight+1e-5):s.toCtx.putImageData(l,r.toX,r.toY,r.toInnerX-r.toX,r.toInnerY-r.toY,r.toInnerWidth,r.toInnerHeight),null},j.prototype.__tileAndResize=function(r,f,s){var l=this,g={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},M=function(Q){return l.__limit(function(){if(s.canceled)return s.cancelToken;var k={width:Q.width,height:Q.height,toWidth:Q.toWidth,toHeight:Q.toHeight,scaleX:Q.scaleX,scaleY:Q.scaleY,offsetX:Q.offsetX,offsetY:Q.offsetY,quality:s.quality,alpha:s.alpha,unsharpAmount:s.unsharpAmount,unsharpRadius:s.unsharpRadius,unsharpThreshold:s.unsharpThreshold};return l.debug("Invoke resize math"),Promise.resolve(k).then(function(O){return l.__extractTileData(Q,r,s,g,O)}).then(function(O){return l.debug("Invoke resize math"),l.__invokeResize(O,s)}).then(function(O){return s.canceled?s.cancelToken:(g.srcImageData=null,l.__landTileData(Q,O,g))})})};return Promise.resolve().then(function(){if(g.toCtx=f.getContext("2d",{alpha:!!s.alpha}),u.isCanvas(r))return null;if(u.isImageBitmap(r))return g.srcImageBitmap=r,g.isImageBitmapReused=!0,null;if(u.isImage(r))return F?(l.debug("Decode image via createImageBitmap"),createImageBitmap(r).then(function(C){g.srcImageBitmap=C}).catch(function(C){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(s.canceled)return s.cancelToken;l.debug("Calculate tiles");var C=m({width:s.width,height:s.height,srcTileSize:l.options.tile,toWidth:s.toWidth,toHeight:s.toHeight,destTileBorder:s.__destTileBorder}),Q=C.map(function(O){return M(O)});function k(O){O.srcImageBitmap&&(O.isImageBitmapReused||O.srcImageBitmap.close(),O.srcImageBitmap=null)}return l.debug("Process tiles"),Promise.all(Q).then(function(){return l.debug("Finished!"),k(g),f},function(O){throw k(g),O})})},j.prototype.__processStages=function(r,f,s,l){var g=this;if(l.canceled)return l.cancelToken;var M=r.shift(),C=v(M,2),Q=C[0],k=C[1],O=r.length===0;l=e({},l,{toWidth:Q,toHeight:k,quality:O?l.quality:Math.min(1,l.quality)});var P;return O||(P=this.options.createCanvas(Q,k)),this.__tileAndResize(f,O?s:P,l).then(function(){return O?s:(l.width=Q,l.height=k,g.__processStages(r,P,s,l))}).then(function(q){return P&&(P.width=P.height=0),q})},j.prototype.__resizeViaCreateImageBitmap=function(r,f,s){var l=this,g=f.getContext("2d",{alpha:!!s.alpha});return this.debug("Resize via createImageBitmap()"),createImageBitmap(r,{resizeWidth:s.toWidth,resizeHeight:s.toHeight,resizeQuality:u.cib_quality_name(s.quality)}).then(function(M){if(s.canceled)return s.cancelToken;if(!s.unsharpAmount)return g.drawImage(M,0,0),M.close(),g=null,l.debug("Finished!"),f;l.debug("Unsharp result");var C=l.options.createCanvas(s.toWidth,s.toHeight),Q=C.getContext("2d",{alpha:!!s.alpha});Q.drawImage(M,0,0),M.close();var k=Q.getImageData(0,0,s.toWidth,s.toHeight);return l.__mathlib.unsharp_mask(k.data,s.toWidth,s.toHeight,s.unsharpAmount,s.unsharpRadius,s.unsharpThreshold),g.putImageData(k,0,0),C.width=C.height=0,k=Q=C=g=null,l.debug("Finished!"),f})},j.prototype.resize=function(r,f,s){var l=this;this.debug("Start resize...");var g=e({},G);if(isNaN(s)?s&&(g=e(g,s)):g=e(g,{quality:s}),g.toWidth=f.width,g.toHeight=f.height,g.width=r.naturalWidth||r.width,g.height=r.naturalHeight||r.height,f.width===0||f.height===0)return Promise.reject(new Error("Invalid output size: ".concat(f.width,"x").concat(f.height)));g.unsharpRadius>2&&(g.unsharpRadius=2),g.canceled=!1,g.cancelToken&&(g.cancelToken=g.cancelToken.then(function(C){throw g.canceled=!0,C},function(C){throw g.canceled=!0,C}));var M=3;return g.__destTileBorder=Math.ceil(Math.max(M,2.5*g.unsharpRadius|0)),this.init().then(function(){if(g.canceled)return g.cancelToken;if(l.features.cib)return l.__resizeViaCreateImageBitmap(r,f,g);if(!D){var C=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw C.code="ERR_GET_IMAGE_DATA",C}var Q=p(g.width,g.height,g.toWidth,g.toHeight,l.options.tile,g.__destTileBorder);return l.__processStages(Q,r,f,g)})},j.prototype.resizeBuffer=function(r){var f=this,s=e({},G,r);return this.init().then(function(){return f.__mathlib.resizeAndUnsharp(s)})},j.prototype.toBlob=function(r,f,s){return f=f||"image/png",new Promise(function(l){if(r.toBlob){r.toBlob(function(k){return l(k)},f,s);return}if(r.convertToBlob){l(r.convertToBlob({type:f,quality:s}));return}for(var g=atob(r.toDataURL(f,s).split(",")[1]),M=g.length,C=new Uint8Array(M),Q=0;Q<M;Q++)C[Q]=g.charCodeAt(Q);l(new Blob([C],{type:f}))})},j.prototype.debug=function(){},I.exports=j},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")})})(W)),W.exports}var L=Z();const K=X.getDefaultExportFromCjs(L),$=N({__proto__:null,default:K},[L]);exports.pica=$;
@@ -0,0 +1 @@
1
+ "use strict";const ae=require("lodash-es"),w=require("./layers.BLd2spTm.js");function te(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const i=te(ae);class oe{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return j(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&j(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,ie)),a=a._prev;return"["+n.join(", ")+"]"}}function j(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ie(e,n){if(e!=="_next"&&e!=="_prev")return n}var de=i.constant(1);function fe(e,n){if(e.nodeCount()<=1)return[];var r=ce(e,n||de),a=ue(r.graph,r.buckets,r.zeroIdx);return i.flatten(i.map(a,function(t){return e.outEdges(t.v,t.w)}))}function ue(e,n,r){for(var a=[],t=n[n.length-1],d=n[0],o;e.nodeCount();){for(;o=d.dequeue();)x(e,n,r,o);for(;o=t.dequeue();)x(e,n,r,o);if(e.nodeCount()){for(var f=n.length-2;f>0;--f)if(o=n[f].dequeue(),o){a=a.concat(x(e,n,r,o,!0));break}}}return a}function x(e,n,r,a,t){var d=t?[]:void 0;return i.forEach(e.inEdges(a.v),function(o){var f=e.edge(o),u=e.node(o.v);t&&d.push({v:o.v,w:o.w}),u.out-=f,P(n,r,u)}),i.forEach(e.outEdges(a.v),function(o){var f=e.edge(o),u=o.w,c=e.node(u);c.in-=f,P(n,r,c)}),e.removeNode(a.v),d}function ce(e,n){var r=new w.Graph,a=0,t=0;i.forEach(e.nodes(),function(f){r.setNode(f,{v:f,in:0,out:0})}),i.forEach(e.edges(),function(f){var u=r.edge(f.v,f.w)||0,c=n(f),s=u+c;r.setEdge(f.v,f.w,s),t=Math.max(t,r.node(f.v).out+=c),a=Math.max(a,r.node(f.w).in+=c)});var d=i.range(t+a+3).map(function(){return new oe}),o=a+1;return i.forEach(r.nodes(),function(f){P(d,o,r.node(f))}),{graph:r,buckets:d,zeroIdx:o}}function P(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function se(e){var n=e.graph().acyclicer==="greedy"?fe(e,r(e)):he(e);i.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,i.uniqueId("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function he(e){var n=[],r={},a={};function t(d){Object.prototype.hasOwnProperty.call(a,d)||(a[d]=!0,r[d]=!0,i.forEach(e.outEdges(d),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):t(o.w)}),delete r[d])}return i.forEach(e.nodes(),t),n}function le(e){i.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function E(e,n,r,a){var t;do t=i.uniqueId(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function ve(e){var n=new w.Graph().setGraph(e.graph());return i.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),i.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function q(e){var n=new w.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return i.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),i.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function S(e,n){var r=e.x,a=e.y,t=n.x-r,d=n.y-a,o=e.width/2,f=e.height/2;if(!t&&!d)throw new Error("Not possible to find intersection inside of the rectangle");var u,c;return Math.abs(d)*o>Math.abs(t)*f?(d<0&&(f=-f),u=f*t/d,c=f):(t<0&&(o=-o),u=o,c=o*d/t),{x:r+u,y:a+c}}function k(e){var n=i.map(i.range(U(e)+1),function(){return[]});return i.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;i.isUndefined(t)||(n[t][a.order]=r)}),n}function pe(e){var n=i.min(i.map(e.nodes(),function(r){return e.node(r).rank}));i.forEach(e.nodes(),function(r){var a=e.node(r);i.has(a,"rank")&&(a.rank-=n)})}function me(e){var n=i.min(i.map(e.nodes(),function(d){return e.node(d).rank})),r=[];i.forEach(e.nodes(),function(d){var o=e.node(d).rank-n;r[o]||(r[o]=[]),r[o].push(d)});var a=0,t=e.graph().nodeRankFactor;i.forEach(r,function(d,o){i.isUndefined(d)&&o%t!==0?--a:a&&i.forEach(d,function(f){e.node(f).rank+=a})})}function M(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),E(e,"border",t,n)}function U(e){return i.max(i.map(e.nodes(),function(n){var r=e.node(n).rank;if(!i.isUndefined(r))return r}))}function we(e,n){var r={lhs:[],rhs:[]};return i.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function be(e,n){return n()}function Ee(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&i.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var d=t.minRank,o=t.maxRank+1;d<o;++d)V(e,"borderLeft","_bl",r,t,d),V(e,"borderRight","_br",r,t,d)}}i.forEach(e.children(),n)}function V(e,n,r,a,t,d){var o={width:0,height:0,rank:d,borderType:n},f=t[n][d-1],u=E(e,"border",o,r);t[n][d]=u,e.setParent(u,a),f&&e.setEdge(f,u,{weight:1})}function ye(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&W(e)}function ge(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&ke(e),(n==="lr"||n==="rl")&&(xe(e),W(e))}function W(e){i.forEach(e.nodes(),function(n){B(e.node(n))}),i.forEach(e.edges(),function(n){B(e.edge(n))})}function B(e){var n=e.width;e.width=e.height,e.height=n}function ke(e){i.forEach(e.nodes(),function(n){O(e.node(n))}),i.forEach(e.edges(),function(n){var r=e.edge(n);i.forEach(r.points,O),Object.prototype.hasOwnProperty.call(r,"y")&&O(r)})}function O(e){e.y=-e.y}function xe(e){i.forEach(e.nodes(),function(n){N(e.node(n))}),i.forEach(e.edges(),function(n){var r=e.edge(n);i.forEach(r.points,N),Object.prototype.hasOwnProperty.call(r,"x")&&N(r)})}function N(e){var n=e.x;e.x=e.y,e.y=n}function Oe(e){e.graph().dummyChains=[],i.forEach(e.edges(),function(n){Ne(e,n)})}function Ne(e,n){var r=n.v,a=e.node(r).rank,t=n.w,d=e.node(t).rank,o=n.name,f=e.edge(n),u=f.labelRank;if(d!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<d;++h,++a)f.points=[],c={width:0,height:0,edgeLabel:f,edgeObj:n,rank:a},s=E(e,"edge",c,"_d"),a===u&&(c.width=f.width,c.height=f.height,c.dummy="edge-label",c.labelpos=f.labelpos),e.setEdge(r,s,{weight:f.weight},o),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:f.weight},o)}}function Le(e){i.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function _(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var d=i.min(i.map(e.outEdges(a),function(o){return r(o.w)-e.edge(o).minlen}));return(d===Number.POSITIVE_INFINITY||d===void 0||d===null)&&(d=0),t.rank=d}i.forEach(e.sources(),r)}function g(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function $(e){var n=new w.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,d;Ie(n,e)<a;)t=Pe(n,e),d=n.hasNode(t.v)?g(e,t):-g(e,t),_e(n,e,d);return n}function Ie(e,n){function r(a){i.forEach(n.nodeEdges(a),function(t){var d=t.v,o=a===d?t.w:d;!e.hasNode(o)&&!g(n,t)&&(e.setNode(o,{}),e.setEdge(a,o,{}),r(o))})}return i.forEach(e.nodes(),r),e.nodeCount()}function Pe(e,n){return i.minBy(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return g(n,r)})}function _e(e,n,r){i.forEach(e.nodes(),function(a){n.node(a).rank+=r})}i.constant(1);i.constant(1);function Re(){}Re.prototype=new Error;function z(e,n,r){i.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],d={};return i.each(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);X(e,o,r==="post",d,a,t)}),t}function X(e,n,r,a,t,d){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||d.push(n),i.each(t(n),function(o){X(e,o,r,a,t,d)}),r&&d.push(n))}function Ce(e,n){return z(e,n,"post")}function Te(e,n){return z(e,n,"pre")}b.initLowLimValues=C;b.initCutValues=R;b.calcCutValue=H;b.leaveEdge=K;b.enterEdge=Q;b.exchangeEdges=Z;function b(e){e=ve(e),_(e);var n=$(e);C(n),R(n,e);for(var r,a;r=K(n);)a=Q(n,e,r),Z(n,e,r,a)}function R(e,n){var r=Ce(e,e.nodes());r=r.slice(0,r.length-1),i.forEach(r,function(a){je(e,n,a)})}function je(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=H(e,n,r)}function H(e,n,r){var a=e.node(r),t=a.parent,d=!0,o=n.edge(r,t),f=0;return o||(d=!1,o=n.edge(t,r)),f=o.weight,i.forEach(n.nodeEdges(r),function(u){var c=u.v===r,s=c?u.w:u.v;if(s!==t){var h=c===d,l=n.edge(u).weight;if(f+=h?l:-l,Me(e,r,s)){var v=e.edge(r,s).cutvalue;f+=h?-v:v}}}),f}function C(e,n){arguments.length<2&&(n=e.nodes()[0]),J(e,{},1,n)}function J(e,n,r,a,t){var d=r,o=e.node(a);return n[a]=!0,i.forEach(e.neighbors(a),function(f){Object.prototype.hasOwnProperty.call(n,f)||(r=J(e,n,r,f,a))}),o.low=d,o.lim=r++,t?o.parent=t:delete o.parent,r}function K(e){return i.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Q(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var d=e.node(a),o=e.node(t),f=d,u=!1;d.lim>o.lim&&(f=o,u=!0);var c=i.filter(n.edges(),function(s){return u===F(e,e.node(s.v),f)&&u!==F(e,e.node(s.w),f)});return i.minBy(c,function(s){return g(n,s)})}function Z(e,n,r,a){var t=r.v,d=r.w;e.removeEdge(t,d),e.setEdge(a.v,a.w,{}),C(e),R(e,n),Se(e,n)}function Se(e,n){var r=i.find(e.nodes(),function(t){return!n.node(t).parent}),a=Te(e,r);a=a.slice(1),i.forEach(a,function(t){var d=e.node(t).parent,o=n.edge(t,d),f=!1;o||(o=n.edge(d,t),f=!0),n.node(t).rank=n.node(d).rank+(f?o.minlen:-o.minlen)})}function Me(e,n,r){return e.hasEdge(n,r)}function F(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Ve(e){switch(e.graph().ranker){case"network-simplex":G(e);break;case"tight-tree":Fe(e);break;case"longest-path":Be(e);break;default:G(e)}}var Be=_;function Fe(e){_(e),$(e)}function G(e){b(e)}function Ge(e){var n=E(e,"root",{},"_root"),r=De(e),a=i.max(i.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,i.forEach(e.edges(),function(o){e.edge(o).minlen*=t});var d=Ae(e)+1;i.forEach(e.children(),function(o){ee(e,n,t,d,a,r,o)}),e.graph().nodeRankFactor=t}function ee(e,n,r,a,t,d,o){var f=e.children(o);if(!f.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var u=M(e,"_bt"),c=M(e,"_bb"),s=e.node(o);e.setParent(u,o),s.borderTop=u,e.setParent(c,o),s.borderBottom=c,i.forEach(f,function(h){ee(e,n,r,a,t,d,h);var l=e.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,m=l.borderTop?a:2*a,y=v!==p?1:t-d[o]+1;e.setEdge(u,v,{weight:m,minlen:y,nestingEdge:!0}),e.setEdge(p,c,{weight:m,minlen:y,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,u,{weight:0,minlen:t+d[o]})}function De(e){var n={};function r(a,t){var d=e.children(a);d&&d.length&&i.forEach(d,function(o){r(o,t+1)}),n[a]=t}return i.forEach(e.children(),function(a){r(a,1)}),n}function Ae(e){return i.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Ye(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,i.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function qe(e,n,r){var a={},t;i.forEach(r,function(d){for(var o=e.parent(d),f,u;o;){if(f=e.parent(o),f?(u=a[f],a[f]=o):(u=t,t=o),u&&u!==o){n.setEdge(u,o);return}o=f}})}function Ue(e,n,r){var a=We(e),t=new w.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(d){return e.node(d)});return i.forEach(e.nodes(),function(d){var o=e.node(d),f=e.parent(d);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(t.setNode(d),t.setParent(d,f||a),i.forEach(e[r](d),function(u){var c=u.v===d?u.w:u.v,s=t.edge(c,d),h=i.isUndefined(s)?0:s.weight;t.setEdge(c,d,{weight:e.edge(u).weight+h})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&t.setNode(d,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),t}function We(e){for(var n;e.hasNode(n=i.uniqueId("_root")););return n}function $e(e,n){for(var r=0,a=1;a<n.length;++a)r+=ze(e,n[a-1],n[a]);return r}function ze(e,n,r){for(var a=i.zipObject(r,i.map(r,function(c,s){return s})),t=i.flatten(i.map(n,function(c){return i.sortBy(i.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),d=1;d<r.length;)d<<=1;var o=2*d-1;d-=1;var f=i.map(new Array(o),function(){return 0}),u=0;return i.forEach(t.forEach(function(c){var s=c.pos+d;f[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=f[s+1]),s=s-1>>1,f[s]+=c.weight;u+=c.weight*h})),u}function Xe(e){var n={},r=i.filter(e.nodes(),function(f){return!e.children(f).length}),a=i.max(i.map(r,function(f){return e.node(f).rank})),t=i.map(i.range(a+1),function(){return[]});function d(f){if(!i.has(n,f)){n[f]=!0;var u=e.node(f);t[u.rank].push(f),i.forEach(e.successors(f),d)}}var o=i.sortBy(r,function(f){return e.node(f).rank});return i.forEach(o,d),t}function He(e,n){return i.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=i.reduce(a,function(d,o){var f=e.edge(o),u=e.node(o.v);return{sum:d.sum+f.weight*u.order,weight:d.weight+f.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function Je(e,n){var r={};i.forEach(e,function(t,d){var o=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:d};i.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)}),i.forEach(n.edges(),function(t){var d=r[t.v],o=r[t.w];!i.isUndefined(d)&&!i.isUndefined(o)&&(o.indegree++,d.out.push(r[t.w]))});var a=i.filter(r,function(t){return!t.indegree});return Ke(a)}function Ke(e){var n=[];function r(d){return function(o){o.merged||(i.isUndefined(o.barycenter)||i.isUndefined(d.barycenter)||o.barycenter>=d.barycenter)&&Qe(d,o)}}function a(d){return function(o){o.in.push(d),--o.indegree===0&&e.push(o)}}for(;e.length;){var t=e.pop();n.push(t),i.forEach(t.in.reverse(),r(t)),i.forEach(t.out,a(t))}return i.map(i.filter(n,function(d){return!d.merged}),function(d){return i.pick(d,["vs","i","barycenter","weight"])})}function Qe(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function Ze(e,n){var r=we(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=i.sortBy(r.rhs,function(s){return-s.i}),d=[],o=0,f=0,u=0;a.sort(en(!!n)),u=D(d,t,u),i.forEach(a,function(s){u+=s.vs.length,d.push(s.vs),o+=s.barycenter*s.weight,f+=s.weight,u=D(d,t,u)});var c={vs:i.flatten(d)};return f&&(c.barycenter=o/f,c.weight=f),c}function D(e,n,r){for(var a;n.length&&(a=i.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function en(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ne(e,n,r,a){var t=e.children(n),d=e.node(n),o=d?d.borderLeft:void 0,f=d?d.borderRight:void 0,u={};o&&(t=i.filter(t,function(p){return p!==o&&p!==f}));var c=He(e,t);i.forEach(c,function(p){if(e.children(p.v).length){var m=ne(e,p.v,r,a);u[p.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&rn(p,m)}});var s=Je(c,r);nn(s,u);var h=Ze(s,a);if(o&&(h.vs=i.flatten([o,h.vs,f]),e.predecessors(o).length)){var l=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(f)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function nn(e,n){i.forEach(e,function(r){r.vs=i.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function rn(e,n){i.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function an(e){var n=U(e),r=A(e,i.range(1,n+1),"inEdges"),a=A(e,i.range(n-1,-1,-1),"outEdges"),t=Xe(e);Y(e,t);for(var d=Number.POSITIVE_INFINITY,o,f=0,u=0;u<4;++f,++u){tn(f%2?r:a,f%4>=2),t=k(e);var c=$e(e,t);c<d&&(u=0,o=i.cloneDeep(t),d=c)}Y(e,o)}function A(e,n,r){return i.map(n,function(a){return Ue(e,a,r)})}function tn(e,n){var r=new w.Graph;i.forEach(e,function(a){var t=a.graph().root,d=ne(a,t,r,n);i.forEach(d.vs,function(o,f){a.node(o).order=f}),qe(a,r,d.vs)})}function Y(e,n){i.forEach(n,function(r){i.forEach(r,function(a,t){e.node(a).order=t})})}function on(e){var n=fn(e);i.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,d=dn(e,n,t.v,t.w),o=d.path,f=d.lca,u=0,c=o[u],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=o[u])!==f&&e.node(c).maxRank<a.rank;)u++;c===f&&(s=!1)}if(!s){for(;u<o.length-1&&e.node(c=o[u+1]).minRank<=a.rank;)u++;c=o[u]}e.setParent(r,c),r=e.successors(r)[0]}})}function dn(e,n,r,a){var t=[],d=[],o=Math.min(n[r].low,n[a].low),f=Math.max(n[r].lim,n[a].lim),u,c;u=r;do u=e.parent(u),t.push(u);while(u&&(n[u].low>o||f>n[u].lim));for(c=u,u=a;(u=e.parent(u))!==c;)d.push(u);return{path:t.concat(d.reverse()),lca:c}}function fn(e){var n={},r=0;function a(t){var d=r;i.forEach(e.children(t),a),n[t]={low:d,lim:r++}}return i.forEach(e.children(),a),n}function un(e,n){var r={};function a(t,d){var o=0,f=0,u=t.length,c=i.last(d);return i.forEach(d,function(s,h){var l=sn(e,s),v=l?e.node(l).order:u;(l||s===c)&&(i.forEach(d.slice(f,h+1),function(p){i.forEach(e.predecessors(p),function(m){var y=e.node(m),T=y.order;(T<o||v<T)&&!(y.dummy&&e.node(p).dummy)&&re(r,m,p)})}),f=h+1,o=v)}),d}return i.reduce(n,a),r}function cn(e,n){var r={};function a(d,o,f,u,c){var s;i.forEach(i.range(o,f),function(h){s=d[h],e.node(s).dummy&&i.forEach(e.predecessors(s),function(l){var v=e.node(l);v.dummy&&(v.order<u||v.order>c)&&re(r,l,s)})})}function t(d,o){var f=-1,u,c=0;return i.forEach(o,function(s,h){if(e.node(s).dummy==="border"){var l=e.predecessors(s);l.length&&(u=e.node(l[0]).order,a(o,c,h,f,u),c=h,f=u)}a(o,c,o.length,u,d.length)}),o}return i.reduce(n,t),r}function sn(e,n){if(e.node(n).dummy)return i.find(e.predecessors(n),function(r){return e.node(r).dummy})}function re(e,n,r){if(n>r){var a=n;n=r,r=a}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var t=e[n];Object.defineProperty(t,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function ln(e,n,r,a){var t={},d={},o={};return i.forEach(n,function(f){i.forEach(f,function(u,c){t[u]=u,d[u]=u,o[u]=c})}),i.forEach(n,function(f){var u=-1;i.forEach(f,function(c){var s=a(c);if(s.length){s=i.sortBy(s,function(m){return o[m]});for(var h=(s.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=s[l];d[c]===c&&u<o[p]&&!hn(r,c,p)&&(d[p]=c,d[c]=t[c]=t[p],u=o[p])}}})}),{root:t,align:d}}function vn(e,n,r,a,t){var d={},o=pn(e,n,r,t),f=t?"borderLeft":"borderRight";function u(h,l){for(var v=o.nodes(),p=v.pop(),m={};p;)m[p]?h(p):(m[p]=!0,v.push(p),v=v.concat(l(p))),p=v.pop()}function c(h){d[h]=o.inEdges(h).reduce(function(l,v){return Math.max(l,d[v.v]+o.edge(v))},0)}function s(h){var l=o.outEdges(h).reduce(function(p,m){return Math.min(p,d[m.w]-o.edge(m))},Number.POSITIVE_INFINITY),v=e.node(h);l!==Number.POSITIVE_INFINITY&&v.borderType!==f&&(d[h]=Math.max(d[h],l))}return u(c,o.predecessors.bind(o)),u(s,o.successors.bind(o)),i.forEach(a,function(h){d[h]=d[r[h]]}),d}function pn(e,n,r,a){var t=new w.Graph,d=e.graph(),o=yn(d.nodesep,d.edgesep,a);return i.forEach(n,function(f){var u;i.forEach(f,function(c){var s=r[c];if(t.setNode(s),u){var h=r[u],l=t.edge(h,s);t.setEdge(h,s,Math.max(o(e,c,u),l||0))}u=c})}),t}function mn(e,n){return i.minBy(i.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return i.forIn(r,function(d,o){var f=gn(e,o)/2;a=Math.max(d+f,a),t=Math.min(d-f,t)}),a-t})}function wn(e,n){var r=i.values(n),a=i.min(r),t=i.max(r);i.forEach(["u","d"],function(d){i.forEach(["l","r"],function(o){var f=d+o,u=e[f],c;if(u!==n){var s=i.values(u);c=o==="l"?a-i.min(s):t-i.max(s),c&&(e[f]=i.mapValues(u,function(h){return h+c}))}})})}function bn(e,n){return i.mapValues(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=i.sortBy(i.map(e,a));return(t[1]+t[2])/2})}function En(e){var n=k(e),r=i.merge(un(e,n),cn(e,n)),a={},t;i.forEach(["u","d"],function(o){t=o==="u"?n:i.values(n).reverse(),i.forEach(["l","r"],function(f){f==="r"&&(t=i.map(t,function(h){return i.values(h).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),c=ln(e,t,r,u),s=vn(e,t,c.root,c.align,f==="r");f==="r"&&(s=i.mapValues(s,function(h){return-h})),a[o+f]=s})});var d=mn(e,a);return wn(a,d),bn(a,e.graph().align)}function yn(e,n,r){return function(a,t,d){var o=a.node(t),f=a.node(d),u=0,c;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":c=-o.width/2;break;case"r":c=o.width/2;break}if(c&&(u+=r?c:-c),c=0,u+=(o.dummy?n:e)/2,u+=(f.dummy?n:e)/2,u+=f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":c=f.width/2;break;case"r":c=-f.width/2;break}return c&&(u+=r?c:-c),c=0,u}}function gn(e,n){return e.node(n).width}function kn(e){e=q(e),xn(e),i.forOwn(En(e),function(n,r){e.node(r).x=n})}function xn(e){var n=k(e),r=e.graph().ranksep,a=0;i.forEach(n,function(t){var d=i.max(i.map(t,function(o){return e.node(o).height}));i.forEach(t,function(o){e.node(o).y=a+d/2}),a+=d+r})}function On(e,n){var r=be;r("layout",()=>{var a=r(" buildLayoutGraph",()=>Mn(e));r(" runLayout",()=>Nn(a,r)),r(" updateInputGraph",()=>Ln(e,a))})}function Nn(e,n){n(" makeSpaceForEdgeLabels",()=>Vn(e)),n(" removeSelfEdges",()=>Wn(e)),n(" acyclic",()=>se(e)),n(" nestingGraph.run",()=>Ge(e)),n(" rank",()=>Ve(q(e))),n(" injectEdgeLabelProxies",()=>Bn(e)),n(" removeEmptyRanks",()=>me(e)),n(" nestingGraph.cleanup",()=>Ye(e)),n(" normalizeRanks",()=>pe(e)),n(" assignRankMinMax",()=>Fn(e)),n(" removeEdgeLabelProxies",()=>Gn(e)),n(" normalize.run",()=>Oe(e)),n(" parentDummyChains",()=>on(e)),n(" addBorderSegments",()=>Ee(e)),n(" order",()=>an(e)),n(" insertSelfEdges",()=>$n(e)),n(" adjustCoordinateSystem",()=>ye(e)),n(" position",()=>kn(e)),n(" positionSelfEdges",()=>zn(e)),n(" removeBorderNodes",()=>Un(e)),n(" normalize.undo",()=>Le(e)),n(" fixupEdgeLabelCoords",()=>Yn(e)),n(" undoCoordinateSystem",()=>ge(e)),n(" translateGraph",()=>Dn(e)),n(" assignNodeIntersects",()=>An(e)),n(" reversePoints",()=>qn(e)),n(" acyclic.undo",()=>le(e))}function Ln(e,n){i.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),i.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var In=["nodesep","edgesep","ranksep","marginx","marginy"],Pn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_n=["acyclicer","ranker","rankdir","align"],Rn=["width","height"],Cn={width:0,height:0},Tn=["minlen","weight","width","height","labeloffset"],jn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Sn=["labelpos"];function Mn(e){var n=new w.Graph({multigraph:!0,compound:!0}),r=I(e.graph());return n.setGraph(i.merge({},Pn,L(r,In),i.pick(r,_n))),i.forEach(e.nodes(),function(a){var t=I(e.node(a));n.setNode(a,i.defaults(L(t,Rn),Cn)),n.setParent(a,e.parent(a))}),i.forEach(e.edges(),function(a){var t=I(e.edge(a));n.setEdge(a,i.merge({},jn,L(t,Tn),i.pick(t,Sn)))}),n}function Vn(e){var n=e.graph();n.ranksep/=2,i.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function Bn(e){i.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),d={rank:(t.rank-a.rank)/2+a.rank,e:n};E(e,"edge-proxy",d,"_ep")}})}function Fn(e){var n=0;i.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=i.max(n,a.maxRank))}),e.graph().maxRank=n}function Gn(e){i.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Dn(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,d=e.graph(),o=d.marginx||0,f=d.marginy||0;function u(c){var s=c.x,h=c.y,l=c.width,v=c.height;n=Math.min(n,s-l/2),r=Math.max(r,s+l/2),a=Math.min(a,h-v/2),t=Math.max(t,h+v/2)}i.forEach(e.nodes(),function(c){u(e.node(c))}),i.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&u(s)}),n-=o,a-=f,i.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),i.forEach(e.edges(),function(c){var s=e.edge(c);i.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),d.width=r-n+o,d.height=t-a+f}function An(e){i.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),d,o;r.points?(d=r.points[0],o=r.points[r.points.length-1]):(r.points=[],d=t,o=a),r.points.unshift(S(a,d)),r.points.push(S(t,o))})}function Yn(e){i.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qn(e){i.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Un(e){i.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),d=e.node(i.last(r.borderLeft)),o=e.node(i.last(r.borderRight));r.width=Math.abs(o.x-d.x),r.height=Math.abs(t.y-a.y),r.x=d.x+r.width/2,r.y=a.y+r.height/2}}),i.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Wn(e){i.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function $n(e){var n=k(e);i.forEach(n,function(r){var a=0;i.forEach(r,function(t,d){var o=e.node(t);o.order=d+a,i.forEach(o.selfEdges,function(f){E(e,"selfedge",{width:f.label.width,height:f.label.height,rank:o.rank,order:d+ ++a,e:f.e,label:f.label},"_se")}),delete o.selfEdges})})}function zn(e){i.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,d=a.y,o=r.x-t,f=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*o/3,y:d-f},{x:t+5*o/6,y:d-f},{x:t+o,y:d},{x:t+5*o/6,y:d+f},{x:t+2*o/3,y:d+f}],r.label.x=r.x,r.label.y=r.y}})}function L(e,n){return i.mapValues(i.pick(e,n),Number)}function I(e){var n={};return i.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=On;
@@ -0,0 +1,42 @@
1
+ import "./layers.D_RUDzWv.js";
2
+ var e = { paste: "Incolla", pasteAsPlaintext: "Incolla come testo normale", pasteCharts: "Incolla grafici", selectAll: "Seleziona tutto", multiSelect: "Aggiungi elemento alla selezione", moveCanvas: "Sposta tela", cut: "Taglia", copy: "Copia", copyAsPng: "Copia negli appunti come PNG", copyAsSvg: "Copia negli appunti come SVG", copyText: "Copia negli appunti come testo", copySource: "Copia sorgente negli appunti", convertToCode: "Converti in codice", bringForward: "Porta avanti", sendToBack: "Manda in fondo", bringToFront: "Porta in cima", sendBackward: "Manda dietro", delete: "Elimina", copyStyles: "Copia stili", pasteStyles: "Incolla stili", stroke: "Tratto", background: "Sfondo", fill: "Riempimento", strokeWidth: "Spessore del tratto", strokeStyle: "Stile del tratto", strokeStyle_solid: "Pieno", strokeStyle_dashed: "Tratteggiato", strokeStyle_dotted: "Punteggiato", sloppiness: "Imprecisione", opacity: "Opacità", textAlign: "Allineamento del testo", edges: "Bordi", sharp: "Acuto", round: "Rotondo", arrowheads: "Punta della freccia", arrowhead_none: "Nessuno", arrowhead_arrow: "Freccia", arrowhead_bar: "Barra", arrowhead_circle: "Cerchio", arrowhead_circle_outline: "Cerchio (contorno)", arrowhead_triangle: "Triangolo", arrowhead_triangle_outline: "Triangolo (contorno)", arrowhead_diamond: "Diamante", arrowhead_diamond_outline: "Diamante (contorno)", fontSize: "Dimensione carattere", fontFamily: "Carattere", addWatermark: 'Aggiungi "Creato con Excalidraw"', handDrawn: "A mano libera", normal: "Normale", code: "Codice", small: "Piccolo", medium: "Medio", large: "Grande", veryLarge: "Molto grande", solid: "Pieno", hachure: "Tratteggio obliquo", zigzag: "Zig zag", crossHatch: "Tratteggio incrociato", thin: "Sottile", bold: "Grassetto", left: "Sinistra", center: "Centro", right: "Destra", extraBold: "Extra Grassetto", architect: "Architetto", artist: "Artista", cartoonist: "Fumettista", fileTitle: "Nome del file", colorPicker: "Selettore colore", canvasColors: "Usato su tela", canvasBackground: "Sfondo tela", drawingCanvas: "Area di disegno", layers: "Livelli", actions: "Azioni", language: "Lingua", liveCollaboration: "Collaborazione dal vivo...", duplicateSelection: "Duplica", untitled: "Senza titolo", name: "Nome", yourName: "Il vostro nome", madeWithExcalidraw: "Creato con Excalidraw", group: "Crea gruppo da selezione", ungroup: "Dividi gruppo da selezione", collaborators: "Collaboratori", showGrid: "Visualizza griglia", addToLibrary: "Aggiungi alla libreria", removeFromLibrary: "Rimuovi dalla libreria", libraryLoadingMessage: "Caricamento libreria…", libraries: "Sfoglia librerie", loadingScene: "Caricamento della scena…", align: "Allinea", alignTop: "Allinea in alto", alignBottom: "Allinea in basso", alignLeft: "Allinea a sinistra", alignRight: "Allinea a destra", centerVertically: "Centra Verticalmente", centerHorizontally: "Centra orizzontalmente", distributeHorizontally: "Distribuisci orizzontalmente", distributeVertically: "Distribuisci verticalmente", flipHorizontal: "Capovolgi orizzontalmente", flipVertical: "Capovolgi verticalmente", viewMode: "Modalità visualizzazione", share: "Condividi", showStroke: "Mostra selettore colore del tratto", showBackground: "Mostra selettore colore di sfondo", toggleTheme: "Cambia tema", personalLib: "Libreria Personale", excalidrawLib: "Libreria di Excalidraw", decreaseFontSize: "Riduci dimensione dei caratteri", increaseFontSize: "Aumenta la dimensione dei caratteri", unbindText: "Scollega testo", bindText: "Associa il testo al container", createContainerFromText: "Avvolgi il testo in un container", link: { edit: "Modifica link", editEmbed: "Modifica collegamento e incorpora", create: "Crea link", createEmbed: "Crea collegamento e incorpora", label: "Link", labelEmbed: "Collega & incorpora", empty: "Nessun collegamento impostato" }, lineEditor: { edit: "Modifica linea", exit: "Esci dall'editor di linea" }, elementLock: { lock: "Blocca", unlock: "Sblocca", lockAll: "Blocca tutto", unlockAll: "Sblocca tutto" }, statusPublished: "Pubblicato", sidebarLock: "Mantieni aperta la barra laterale", selectAllElementsInFrame: "Seleziona tutti gli elementi nel riquadro", removeAllElementsFromFrame: "Rimuovi tutti gli elementi dal riquadro", eyeDropper: "Scegli il colore della tela", textToDiagram: "Testo a diagramma", prompt: "Prompt" }, i = { noItems: "Nessun elemento ancora aggiunto...", hint_emptyLibrary: "Seleziona un elemento sulla tela per aggiungerlo qui, o installa una libreria dal repository pubblico qui sotto.", hint_emptyPrivateLibrary: "Seleziona un elemento sulla tela per aggiungerlo qui." }, a = { clearReset: "Svuota la tela", exportJSON: "Esporta su file", exportImage: "Esporta immagine...", export: "Salva in...", copyToClipboard: "Copia negli appunti", save: "Salva sul file corrente", saveAs: "Salva con nome", load: "Apri", getShareableLink: "Ottieni link condivisibile", close: "Chiudi", selectLanguage: "Seleziona lingua", scrollBackToContent: "Scorri indietro fino al contenuto", zoomIn: "Aumenta ingrandimento", zoomOut: "Riduci ingrandimento", resetZoom: "Ripristina ingrandimento", menu: "Menù", done: "Fatto", edit: "Modifica", undo: "Annulla", redo: "Ripeti", resetLibrary: "Ripristina libreria", createNewRoom: "Crea nuova stanza", fullScreen: "Schermo intero", darkMode: "Tema scuro", lightMode: "Tema chiaro", zenMode: "Modalità Zen", objectsSnapMode: "Aggancia agli oggetti", exitZenMode: "Uscire dalla modalità zen", cancel: "Annulla", clear: "Cancella", remove: "Rimuovi", embed: "Attiva/disattiva incorporamento", publishLibrary: "Pubblica", submit: "Invia", confirm: "Conferma", embeddableInteractionButton: "Clicca per interagire" }, o = { clearReset: "Questa azione cancellerà l'intera tela. Sei sicuro?", couldNotCreateShareableLink: "Non riesco a creare un link condivisibile.", couldNotCreateShareableLinkTooBig: "Impossibile creare il link condivisibile: la scena è troppo grande", couldNotLoadInvalidFile: "Impossibile caricare un file no valido", importBackendFailed: "Importazione dal server fallita.", cannotExportEmptyCanvas: "Non è possibile esportare una tela vuota.", couldNotCopyToClipboard: "Impossibile copiare negli appunti.", decryptFailed: "Impossibile decriptare i dati.", uploadedSecurly: "L'upload è stato protetto con la crittografia end-to-end, il che significa che il server Excalidraw e terze parti non possono leggere il contenuto.", loadSceneOverridePrompt: "Se carichi questo disegno esterno, sostituirà quello che hai. Vuoi continuare?", collabStopOverridePrompt: `Interrompere la sessione sovrascriverà il precedente disegno memorizzato localmente. Sei sicuro?
3
+
4
+ (Se vuoi mantenere il tuo disegno locale, chiudi semplicemente la scheda del browser.)`, errorAddingToLibrary: "Impossibile aggiungere l'elemento alla libreria", errorRemovingFromLibrary: "Impossibile rimuovere l'elemento dalla libreria", confirmAddLibrary: "Questo aggiungerà {{numShapes}} forma(e) alla tua libreria. Sei sicuro?", imageDoesNotContainScene: "Questa immagine pare non contenere alcuna scena. Avevi incluso la scena durante l'esportazione?", cannotRestoreFromImage: "Impossibile ripristinare la scena da questo file immagine", invalidSceneUrl: "Impossibile importare la scena dall'URL fornito. Potrebbe essere malformato o non contenere dati JSON Excalidraw validi.", resetLibrary: "Questa azione cancellerà l'intera libreria. Sei sicuro?", removeItemsFromsLibrary: "Eliminare {{count}} elementi dalla libreria?", invalidEncryptionKey: "La chiave di cifratura deve essere composta da 22 caratteri. La collaborazione live è disabilitata.", collabOfflineWarning: `Nessuna connessione internet disponibile.
5
+ Le tue modifiche non verranno salvate!` }, r = { unsupportedFileType: "Tipo di file non supportato.", imageInsertError: "Non è stato possibile inserire l'immagine. Riprova più tardi...", fileTooBig: "Il file è troppo grande. La dimensione massima consentita è {{maxSize}}.", svgImageInsertError: "Impossibile inserire l'immagine SVG. Il markup SVG non sembra corretto.", failedToFetchImage: "Impossibile recuperare l'immagine.", invalidSVGString: "SVG non valido.", cannotResolveCollabServer: "Impossibile connettersi al server di collab. Ricarica la pagina e riprova.", importLibraryError: "Impossibile caricare la libreria", collabSaveFailed: "Impossibile salvare nel database di backend. Se i problemi persistono, dovresti salvare il tuo file localmente per assicurarti di non perdere il tuo lavoro.", collabSaveFailed_sizeExceeded: "Impossibile salvare nel database di backend, la tela sembra essere troppo grande. Dovresti salvare il file localmente per assicurarti di non perdere il tuo lavoro.", imageToolNotSupported: "Le immagini sono disabilitate.", brave_measure_text_error: { line1: "Sembra che tu stia utilizzando il browser Brave con l'impostazione <bold>Blocco aggressivo delle impronte digitali</bold> abilitata.", line2: "Ciò potrebbe causare la rottura degli <bold>Elementi di testo</bold> nei tuoi disegni.", line3: "Consigliamo vivamente di disabilitare questa impostazione. Puoi seguire <link>questi passaggi</link> su come farlo.", line4: "Se la disattivazione di questa impostazione non risolve la visualizzazione degli elementi di testo, apri un <issueLink>problema</issueLink> sul nostro GitHub o scrivici su <discordLink>Discord</discordLink>" }, libraryElementTypeError: { embeddable: "Gli elementi incorporabili non possono essere aggiunti alla libreria.", iframe: "Gli elementi IFrame non possono essere aggiunti alla libreria.", image: "Il supporto per l'aggiunta d'immagini alla libreria verrà aggiunto a breve!" }, asyncPasteFailedOnRead: "Impossibile incollare (non è possibile leggere dagli appunti di sistema).", asyncPasteFailedOnParse: "Impossibile incollare.", copyToSystemClipboardFailed: "Impossibile copiare negli appunti." }, t = { selection: "Selezione", image: "Inserisci immagine", rectangle: "Rettangolo", diamond: "Rombo", ellipse: "Ellisse", arrow: "Freccia", line: "Linea", freedraw: "Disegno", text: "Testo", library: "Libreria", lock: "Mantieni lo strumento selezionato attivo dopo aver disegnato", penMode: "Modalità penna - previene il tocco", link: "Aggiungi/ aggiorna il link per una forma selezionata", eraser: "Gomma", frame: "Strumento riquadro", magicframe: "", embeddable: "Incorporamento Web", laser: "Puntatore laser", hand: "Mano (strumento di panoramica)", extraTools: "Altri strumenti", mermaidToExcalidraw: "", magicSettings: "Impostazioni di IA" }, l = { canvasActions: "Azioni sulla Tela", selectedShapeActions: "Impostazioni della forma selezionata", shapes: "Forme" }, n = { canvasPanning: "Per spostare la tela, tieni premuta la rotellina del mouse o la barra spaziatrice mentre trascini oppure usa lo strumento mano", linearElement: "Clicca per iniziare una linea in più punti, trascina per singola linea", freeDraw: "Clicca e trascina, rilascia quando avrai finito", text: "Suggerimento: puoi anche aggiungere del testo facendo doppio clic ovunque con lo strumento di selezione", embeddable: "Fare click e trascina per creare un incorporamento web", text_selected: "Fai doppio click o premi INVIO per modificare il testo", text_editing: "Premi ESC o CtrlOCmd+INVIO per completare le modifiche", linearElementMulti: "Clicca sull'ultimo punto o premi Esc o Invio per finire", lockAngle: "Puoi limitare l'angolo tenendo premuto SHIFT", resize: `Per vincolare le proporzioni, tieni premuto MAIUSC durante il ridimensionamento;
6
+ per ridimensionare dal centro, tieni premuto ALT`, resizeImage: `Puoi ridimensionare liberamente tenendo premuto SHIFT,
7
+ tieni premuto ALT per ridimensionare dal centro`, rotate: "Puoi mantenere gli angoli tenendo premuto SHIFT durante la rotazione", lineEditor_info: "Tieni premuto Ctrl o Cmd e doppio clic oppure premi Ctrl o Cmd + Invio per modificare i punti", lineEditor_pointSelected: `Premi Elimina per rimuovere il punto(i),
8
+ CtrlOCmd+D per duplicare o trascinare per spostare`, lineEditor_nothingSelected: `Seleziona un punto da modificare (tieni premuto MAIUSC per selezionare più punti),
9
+ oppure tieni premuto Alt e fai clic per aggiungere nuovi punti`, placeImage: "Fai click per posizionare l'immagine, o click e trascina per impostarne la dimensione manualmente", publishLibrary: "Pubblica la tua libreria", bindTextToElement: "Premi invio per aggiungere il testo", deepBoxSelect: "Tieni premuto CtrlOCmd per selezionare in profondità e per impedire il trascinamento", eraserRevert: "Tieni premuto Alt per ripristinare gli elementi contrassegnati per l'eliminazione", firefox_clipboard_write: 'Questa funzione può essere abilitata impostando il flag "dom.events.asyncClipboard.clipboardItem" su "true". Per modificare i flag del browser in Firefox, visitare la pagina "about:config".', disableSnapping: "Tieni premuto Ctrl o Cmd per disabilitare lo snap" }, s = { cannotShowPreview: "Impossibile visualizzare l'anteprima", canvasTooBig: "La tela potrebbe essere troppo grande.", canvasTooBigTip: "Suggerimento: prova a spostare gli elementi più lontani più vicini tra loro." }, c = { headingMain: "Si è verificato un errore. Provare <button>ricaricando la pagina.</button>", clearCanvasMessage: "Se ricaricare non funziona, prova <button>pulire la tela.</button>", clearCanvasCaveat: " Questo risulterà nella perdita del lavoro ", trackedToSentry: "L'errore con identificativo {{eventId}} è stato tracciato nel nostro sistema.", openIssueMessage: "Siamo stati molto cauti nel non includere informazioni della scena nell'errore. Se la tua scena non è privata, ti preghiamo di considerare la sua inclusione nel nostro <button>bug tracker.</button> Per favore includi le informazioni riportate qui sotto copiandole e incollandole nella issue di GitHub.", sceneContent: "Contenuto della scena:" }, d = { desc_intro: "Puoi invitare persone nella tua scena attuale per collaborare con te.", desc_privacy: "Non preoccuparti, la sessione utilizza la crittografia end-to-end, quindi qualsiasi cosa disegni rimarrà privata. Nemmeno il nostro server sarà in grado di vedere cosa hai creato.", button_startSession: "Avvia sessione", button_stopSession: "Termina sessione", desc_inProgressIntro: "La sessione di collaborazione è attualmente in corso.", desc_shareLink: "Condividi questo link con chiunque desideri collaborare:", desc_exitSession: "Interrompere la sessione scollegherà la tua stanza ma potrai continuare a lavorare con la scena, localmente. Tieni presente che questo non influirà sulle altre persone, e che saranno ancora in grado di collaborare alla loro versione.", shareTitle: "Partecipa a una sessione di collaborazione live su Excalidraw" }, p = { title: "Errore" }, u = { disk_title: "Salva su disco", disk_details: "Esporta i dati della scena su file, dal quale potrai importare in seguito.", disk_button: "Salva su file", link_title: "Link condivisibile", link_details: "Esporta come link di sola lettura.", link_button: "Esporta come Link", excalidrawplus_description: "Salva la scena nel tuo spazio di lavoro Excalidraw+.", excalidrawplus_button: "Esporta", excalidrawplus_exportError: "Non è stato possibile esportare su Excalidraw+ al questo momento..." }, m = { blog: "Leggi il nostro blog", click: "click", deepSelect: "Selezione profonda", deepBoxSelect: "Seleziona in profondità all'interno della casella e previene il trascinamento", curvedArrow: "Freccia curva", curvedLine: "Linea curva", documentation: "Documentazione", doubleClick: "doppio-click", drag: "trascina", editor: "Editor", editLineArrowPoints: "Modifica punti linea/freccia", editText: "Modifica testo / aggiungi etichetta", github: "Trovato un problema? Segnalalo", howto: "Segui le nostre guide", or: "oppure", preventBinding: "Impedisci legame della freccia", tools: "Stumenti", shortcuts: "Scorciatoie da tastiera", textFinish: "Completa la modifica (editor di testo)", textNewLine: "Aggiungi nuova riga (editor di testo)", title: "Guida", view: "Vista", zoomToFit: "Adatta zoom per mostrare tutti gli elementi", zoomToSelection: "Zoom alla selezione", toggleElementLock: "Blocca/sblocca selezione", movePageUpDown: "Sposta la pagina su/giù", movePageLeftRight: "Sposta la pagina a sinistra/destra" }, g = { title: "Svuota la tela" }, b = { title: "Pubblica la libreria", itemName: "Nome dell'elemento", authorName: "Nome dell'autore", githubUsername: "Nome utente di GitHub", twitterUsername: "Nome utente di Twitter", libraryName: "Nome della libreria", libraryDesc: "Descrizione della libreria", website: "Sito Web", placeholder: { authorName: "Il tuo nome o nome utente", libraryName: "Nome della tua libreria", libraryDesc: "Descrizione della tua libreria per aiutare le persone a comprenderne lo scopo", githubHandle: "Handle di GitHub (opzionale), così che tu possa modificare la libreria una volta inviata per la revisione", twitterHandle: "Nome utente di Twitter (opzionale), così che sappiamo chi accreditare promuovendo su Twitter", website: "Link al tuo sito web personale o altro (opzionale)" }, errors: { required: "Obbligatorio", website: "Inserisci un URL valido" }, noteDescription: "Invia la tua libreria da includere nella <link>repository della libreria pubblica</link>perché sia usata da altri nei loro disegni.", noteGuidelines: "La libreria dev'esser prima approvata manualmente. Sei pregato di leggere le <link>linee guida</link> prima di inviarla. Necessiterai di un profilo di GitHub per comunicare ed effettuare modifiche se richiesto, ma non è strettamente necessario.", noteLicense: "Inviando, acconsenti che la libreria sarà pubblicata sotto la <link>Licenza MIT, </link>che in breve significa che chiunque possa usarla senza restrizioni.", noteItems: "Ogni elemento della libreria deve avere il proprio nome, così che sia filtrabile. Gli elementi della seguente libreria saranno inclusi:", atleastOneLibItem: "Sei pregato di selezionare almeno un elemento della libreria per iniziare", republishWarning: "Nota: alcuni degli elementi selezionati sono contrassegnati come già pubblicati/presentati. È necessario reinviare gli elementi solo quando si aggiorna una libreria o una presentazione esistente." }, v = { title: "Libreria inviata", content: "Grazie {{authorName}}. La tua libreria è stata inviata per la revisione. Puoi monitorarne lo stato<link>qui</link>" }, S = { resetLibrary: "Ripristina la libreria", removeItemsFromLib: "Rimuovi gli elementi selezionati dalla libreria" }, h = { header: "Esporta immagine", label: { withBackground: "Sfondo", onlySelected: "Solo selezionato", darkMode: "Tema scuro", embedScene: "Includi scena", scale: "Scala", padding: "Rientro" }, tooltip: { embedScene: `I dati della scena saranno salvati nel file PNG/SVG esportato in modo che la scena possa essere ripristinata da esso.
10
+ Questo aumenterà la dimensione del file esportato.` }, title: { exportToPng: "Esporta come PNG", exportToSvg: "Esporta come SVG", copyPngToClipboard: "Copia PNG negli appunti" }, button: { exportToPng: "PNG", exportToSvg: "SVG", copyPngToClipboard: "Copia negli appunti" } }, z = { tooltip: "I tuoi disegni sono crittografati end-to-end in modo che i server di Excalidraw non li possano mai vedere.", link: "Articolo del blog sulla crittografia end-to-end di Excalidraw" }, x = { angle: "Angolo", element: "Elemento", elements: "Elementi", height: "Altezza", scene: "Scena", selected: "Selezionato", storage: "Memoria", title: "Statistiche per nerd", total: "Totale", version: "Versione", versionCopy: "Clicca per copiare", versionNotAvailable: "Versione non disponibile", width: "Larghezza" }, f = { addedToLibrary: "Aggiunto alla libreria", copyStyles: "Stili copiati.", copyToClipboard: "Copiato negli appunti.", copyToClipboardAsPng: `{{exportSelection}} copiato negli appunti come PNG
11
+ ({{exportColorScheme}})`, fileSaved: "File salvato.", fileSavedToFilename: "Salvato in {filename}", canvas: "tela", selection: "selezione", pasteAsSingleElement: `Usa {{shortcut}} per incollare come un singolo elemento,
12
+ o incollare in un editor di testo esistente`, unableToEmbed: "Incorporare questo url non è permesso. Crea una issue su GitHub per richiedere che l'url sia autorizzato", unrecognizedLinkFormat: "Il link che hai incorporato non corrisponde al formato previsto. Prova a incollare la stringa 'embed' fornita dal sito di origine" }, E = { transparent: "Trasparente", black: "Nero", white: "Bianco", red: "Rosso", pink: "Rosa", grape: "Uva", violet: "Viola", gray: "Grigio", blue: "Blu", cyan: "Ciano", teal: "Verde acqua", green: "Verde", yellow: "Giallo", orange: "Arancio", bronze: "Bronzo" }, C = { app: { center_heading: "Tutti i tuoi dati sono salvati localmente nel browser.", center_heading_plus: "Volevi invece andare su Excalidraw+?", menuHint: "Esporta, preferenze, lingue, ..." }, defaults: { menuHint: "Esporta, preferenze, e altro...", center_heading: "Diagrammi. Fatto. Semplice.", toolbarHint: "Scegli uno strumento & Inizia a disegnare!", helpHint: "Scorciatoie & aiuto" } }, k = { mostUsedCustomColors: "Colori personalizzati più utilizzati", colors: "Colori", shades: "Sfumature", hexCode: "Codice esadecimale", noShades: "Nessuna sfumatura disponibile per questo colore" }, I = { action: { exportToImage: { title: "Esporta come immagine", button: "Esporta come immagine", description: "Esporta i dati della scena come immagine, che potrai importare in seguito." }, saveToDisk: { title: "Salva su disco", button: "Salva su disco", description: "Esporta i dati della scena su file, che potrai importare in seguito." }, excalidrawPlus: { title: "Excalidraw+", button: "Esporta su Excalidraw+", description: "Salva la scena sul tuo spazio di lavoro Excalidraw+." } }, modal: { loadFromFile: { title: "Carica da file", button: "Carica da file", description: "Il caricamento da file sostituirà <bold>il contenuto esistente</bold>.<br></br>Puoi salvare il tuo disegno prima usando una delle opzioni qui sotto." }, shareableLink: { title: "Carica da link", button: "Sostituisci il mio contenuto", description: "Il caricamento da file sostituirà <bold>il contenuto esistente</bold>.<br></br>Puoi salvare il tuo disegno prima usando una delle opzioni qui sotto." } } }, y = { title: "", button: "Inserisci", description: "", syntax: "", preview: "Anteprima" }, w = { labels: e, library: i, buttons: a, alerts: o, errors: r, toolBar: t, headings: l, hints: n, canvasError: s, errorSplash: c, roomDialog: d, errorDialog: p, exportDialog: u, helpDialog: m, clearCanvasDialog: g, publishDialog: b, publishSuccessDialog: v, confirmDialog: S, imageExportDialog: h, encrypted: z, stats: x, toast: f, colors: E, welcomeScreen: C, colorPicker: k, overwriteConfirm: I, mermaid: y };
13
+ export {
14
+ o as alerts,
15
+ a as buttons,
16
+ s as canvasError,
17
+ g as clearCanvasDialog,
18
+ k as colorPicker,
19
+ E as colors,
20
+ S as confirmDialog,
21
+ w as default,
22
+ z as encrypted,
23
+ p as errorDialog,
24
+ c as errorSplash,
25
+ r as errors,
26
+ u as exportDialog,
27
+ l as headings,
28
+ m as helpDialog,
29
+ n as hints,
30
+ h as imageExportDialog,
31
+ e as labels,
32
+ i as library,
33
+ y as mermaid,
34
+ I as overwriteConfirm,
35
+ b as publishDialog,
36
+ v as publishSuccessDialog,
37
+ d as roomDialog,
38
+ x as stats,
39
+ f as toast,
40
+ t as toolBar,
41
+ C as welcomeScreen
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=async e=>{const i=await e.getFile();return i.handle=e,i};var r=async(e=[{}])=>{Array.isArray(e)||(e=[e]);const i=[];e.forEach((t,a)=>{i[a]={description:t.description||"",accept:{}},t.mimeTypes?t.mimeTypes.map(l=>{i[a].accept[l]=t.extensions||[]}):i[a].accept["*/*"]=t.extensions||[]});const s=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:i,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),c=await Promise.all(s.map(n));return e[0].multiple?c:c[0]};exports.default=r;
@@ -0,0 +1,213 @@
1
+ import { jsx as i, jsxs as R, Fragment as J } from "react/jsx-runtime";
2
+ import { useMemo as Y, useState as k, useRef as I, useCallback as E, useEffect as q } from "react";
3
+ import { useLexicalComposerContext as Q } from "@lexical/react/LexicalComposerContext";
4
+ import { useLexicalEditable as U } from "@lexical/react/useLexicalEditable";
5
+ import { useLexicalNodeSelection as X } from "@lexical/react/useLexicalNodeSelection";
6
+ import { mergeRegister as Z } from "@lexical/utils";
7
+ import { $setSelection as K, $getNodeByKey as p, CLICK_COMMAND as ee, COMMAND_PRIORITY_LOW as _, KEY_DELETE_COMMAND as te, KEY_BACKSPACE_COMMAND as ie } from "lexical";
8
+ import { R as ae, p as T, A as ne, h as se, i as y, j as oe } from "./layers.MmOx3Q5y.js";
9
+ import { p as le, C as re, E as ce } from "./layers.D5Kikhmz.js";
10
+ import { useTranslation as de } from "react-i18next";
11
+ import { Box as j, Tooltip as $, ActionIcon as B } from "@mantine/core";
12
+ import { IconEdit as me } from "@tabler/icons-react";
13
+ function fe({
14
+ imageContainerRef: a,
15
+ editor: l,
16
+ rootClassName: M = null,
17
+ width: S = "inherit",
18
+ height: g = "inherit",
19
+ nodeKey: e,
20
+ alignment: h,
21
+ setModalOpen: r,
22
+ previewSVG: C
23
+ }) {
24
+ const x = Y(() => C ?? "", [C]), [c, N] = k(!1), { t: d } = de(), O = (o, m) => {
25
+ l.update(() => {
26
+ K(null);
27
+ const u = p(e);
28
+ return y(u) && u.setWidthAndHeight(o, m), !0;
29
+ });
30
+ }, w = () => {
31
+ oe(l, e);
32
+ };
33
+ return /* @__PURE__ */ i(
34
+ ae,
35
+ {
36
+ editor: l,
37
+ isIcon: !1,
38
+ isEmbed: !0,
39
+ width: T(S),
40
+ height: T(g),
41
+ onResizeEnd: O,
42
+ alignment: h,
43
+ children: /* @__PURE__ */ R(j, { className: "media-wrapper excaildraw", children: [
44
+ /* @__PURE__ */ R("div", { className: "media-actions", children: [
45
+ /* @__PURE__ */ i($, { label: d("editor.link.edit"), children: /* @__PURE__ */ i(
46
+ B,
47
+ {
48
+ color: "gray",
49
+ "aria-label": "Settings",
50
+ className: "media-action",
51
+ variant: "default",
52
+ size: 24,
53
+ onClick: () => {
54
+ r(!0);
55
+ },
56
+ children: /* @__PURE__ */ i(me, { size: 14 })
57
+ }
58
+ ) }),
59
+ /* @__PURE__ */ i(
60
+ ne,
61
+ {
62
+ opened: c,
63
+ setOpened: N,
64
+ t: d,
65
+ editor: l,
66
+ nodeKey: e
67
+ }
68
+ ),
69
+ /* @__PURE__ */ i($, { label: d("editor.actions.delete"), children: /* @__PURE__ */ i(
70
+ B,
71
+ {
72
+ color: "gray",
73
+ "aria-label": "Settings",
74
+ className: "media-action",
75
+ variant: "default",
76
+ size: 24,
77
+ onClick: w,
78
+ children: /* @__PURE__ */ i(se, { name: "trash", size: "14" })
79
+ }
80
+ ) })
81
+ ] }),
82
+ /* @__PURE__ */ i(
83
+ j,
84
+ {
85
+ w: "100%",
86
+ ref: (o) => {
87
+ o && a && (a.current = o);
88
+ },
89
+ className: M ?? "",
90
+ dangerouslySetInnerHTML: { __html: x }
91
+ }
92
+ )
93
+ ] })
94
+ }
95
+ );
96
+ }
97
+ function be({
98
+ nodeKey: a,
99
+ data: l,
100
+ width: M,
101
+ height: S,
102
+ alignment: g
103
+ }) {
104
+ var L;
105
+ const [e] = Q(), h = U(), r = Y(() => le(l), [l]), C = ((L = r == null ? void 0 : r.elements) == null ? void 0 : L.length) === 0 && !r.previewSVG, [x, c] = k(
106
+ C && e.isEditable()
107
+ ), [N, d] = k(!1), O = I(null), w = I(null), o = I(null), [m, u, b] = X(a), A = E(
108
+ (t) => (m && (t.preventDefault(), e.update(() => {
109
+ const s = p(a);
110
+ s && s.remove();
111
+ })), !1),
112
+ [e, m, a]
113
+ );
114
+ q(() => {
115
+ if (!h) {
116
+ m && b();
117
+ return;
118
+ }
119
+ return Z(
120
+ e.registerCommand(
121
+ ee,
122
+ (t) => {
123
+ const s = w.current, f = t.target;
124
+ return s !== null && s.contains(f) ? (t.shiftKey || b(), u(!m), t.detail > 1 && c(!0), !0) : !1;
125
+ },
126
+ _
127
+ ),
128
+ e.registerCommand(
129
+ te,
130
+ A,
131
+ _
132
+ ),
133
+ e.registerCommand(
134
+ ie,
135
+ A,
136
+ _
137
+ )
138
+ );
139
+ }, [b, e, m, A, u, h]);
140
+ const F = E(() => (c(!1), e.update(() => {
141
+ const t = p(a);
142
+ t && t.remove();
143
+ })), [e, a]), G = (t, s, f, v) => e.update(() => {
144
+ const D = p(a);
145
+ y(D) && (t && t.length > 0 || Object.keys(f).length > 0 ? D.setData(
146
+ JSON.stringify({
147
+ appState: s,
148
+ elements: t,
149
+ files: f,
150
+ previewSVG: v
151
+ })
152
+ ) : D.remove());
153
+ }), { elements: n = [], files: H = {}, appState: P = {}, previewSVG: V } = r, z = E(() => {
154
+ c(!1), d(!1), o.current = !1, (n == null ? void 0 : n.length) === 0 && e.update(() => {
155
+ const t = p(a);
156
+ t && t.remove();
157
+ });
158
+ }, [e, a, n == null ? void 0 : n.length]), W = E(() => {
159
+ o.current ? d(!0) : z();
160
+ }, []);
161
+ return /* @__PURE__ */ R(J, { children: [
162
+ /* @__PURE__ */ i(
163
+ re,
164
+ {
165
+ isCloseModal: N,
166
+ confirmClose: z,
167
+ setCloseModalOpen: d
168
+ }
169
+ ),
170
+ /* @__PURE__ */ i(
171
+ ce,
172
+ {
173
+ initialElements: n,
174
+ isEdited: o,
175
+ initialFiles: H,
176
+ initialAppState: P,
177
+ isShown: x,
178
+ onDelete: F,
179
+ onClose: W,
180
+ onSave: (t, s, f, v) => {
181
+ G(t, s, f, v), c(!1);
182
+ },
183
+ closeOnClickOutside: !1
184
+ }
185
+ ),
186
+ (n == null ? void 0 : n.length) && /* @__PURE__ */ i(
187
+ "div",
188
+ {
189
+ style: {
190
+ display: "flex",
191
+ justifyContent: g
192
+ },
193
+ children: /* @__PURE__ */ i(
194
+ fe,
195
+ {
196
+ imageContainerRef: O,
197
+ className: "image",
198
+ width: M,
199
+ height: S,
200
+ editor: e,
201
+ nodeKey: a,
202
+ alignment: g,
203
+ setModalOpen: c,
204
+ previewSVG: V
205
+ }
206
+ )
207
+ }
208
+ )
209
+ ] });
210
+ }
211
+ export {
212
+ be as default
213
+ };
@@ -0,0 +1,38 @@
1
+ import "./layers.D_RUDzWv.js";
2
+ var u = { paste: "Ielīmēt", pasteAsPlaintext: "Ielīmēt kā vienkāršu tekstu", pasteCharts: "Ielīmēt grafikus", selectAll: "Atlasīt visu", multiSelect: "Pievienot elementu atlasei", moveCanvas: "Pārvietot tāfeli", cut: "Izgriezt", copy: "Kopēt", copyAsPng: "Kopēt starpliktuvē kā PNG", copyAsSvg: "Kopēt starpliktuvē kā SVG", copyText: "Kopēt starpliktuvē kā tekstu", copySource: "", convertToCode: "", bringForward: "Pārvietot vienu slāni augstāk", sendToBack: "Pārvietot uz zemāko slāni", bringToFront: "Pārvietot uz virsējo slāni", sendBackward: "Pārvietot par vienu slāni zemāk", delete: "Dzēst", copyStyles: "Kopēt stilus", pasteStyles: "Ielīmēt stilus", stroke: "Svītras krāsa", background: "Fona krāsa", fill: "Aizpildījums", strokeWidth: "Svītras platums", strokeStyle: "Svītras stils", strokeStyle_solid: "Vienlaidu", strokeStyle_dashed: "Raustīta līnija", strokeStyle_dotted: "Punktota līnija", sloppiness: "Precizitāte", opacity: "Necaurspīdīgums", textAlign: "Teksta līdzināšana", edges: "Malas", sharp: "Asas", round: "Apaļas", arrowheads: "Bultas", arrowhead_none: "Nekādas", arrowhead_arrow: "Bulta", arrowhead_bar: "Svītra", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Trijstūris", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Teksta lielums", fontFamily: "Fontu saime", addWatermark: 'Pievienot "Radīts ar Excalidraw"', handDrawn: "Rokraksts", normal: "Parasts", code: "Kods", small: "Mazs", medium: "Vidējs", large: "Liels", veryLarge: "Ļoti liels", solid: "Pilns", hachure: "Svītrots", zigzag: "Zigzaglīnija", crossHatch: "Šķērssvītrots", thin: "Šaurs", bold: "Trekns", left: "Pa kreisi", center: "Vidū", right: "Pa labi", extraBold: "Īpaši trekns", architect: "Arhitekts", artist: "Mākslinieks", cartoonist: "Karikatūrists", fileTitle: "Datnes nosaukums", colorPicker: "Krāsu atlasītājs", canvasColors: "Izmantots tāfelei", canvasBackground: "Ainas fons", drawingCanvas: "Tāfele", layers: "Slāņi", actions: "Darbības", language: "Valoda", liveCollaboration: "Sadarbība tiešsaistē...", duplicateSelection: "Izveidot kopiju", untitled: "Bez nosaukuma", name: "Vārds", yourName: "Jūsu vārds", madeWithExcalidraw: "Radīts ar Excalidraw", group: "Grupēt atlasīto", ungroup: "Atgrupēt atlasīto", collaborators: "Dalībnieki", showGrid: "Rādīt režģi", addToLibrary: "Pievienot bibliotēkai", removeFromLibrary: "Izņemt no bibliotēkas", libraryLoadingMessage: "Ielādē bibliotēku…", libraries: "Apskatīt bibliotēkas", loadingScene: "Ielādē ainu…", align: "Līdzināt", alignTop: "Līdzināt augšpusē", alignBottom: "Līdzināt lejā", alignLeft: "Līdzināt pa kreisi", alignRight: "Līdzināt pa labi", centerVertically: "Centrēt vertikāli", centerHorizontally: "Centrēt horizontāli", distributeHorizontally: "Izdalīt horizontāli", distributeVertically: "Izdalīt vertikāli", flipHorizontal: "Apmest horizontāli", flipVertical: "Apmest vertikāli", viewMode: "Skata režīms", share: "Kopīgot", showStroke: "Rādīt svītras krāsas atlasītāju", showBackground: "Rādīt fona krāsas atlasītāju", toggleTheme: "Pārslēgt krāsu tēmu", personalLib: "Personīgā bibliotēka", excalidrawLib: "Excalidraw bibliotēka", decreaseFontSize: "Samazināt fonta izmēru", increaseFontSize: "Palielināt fonta izmēru", unbindText: "Atdalīt tekstu", bindText: "Piesaistīt tekstu figūrai", createContainerFromText: "Ietilpināt tekstu figurā", link: { edit: "Rediģēt saiti", editEmbed: "", create: "Izveidot saiti", createEmbed: "", label: "Saite", labelEmbed: "", empty: "" }, lineEditor: { edit: "Rediģēt līniju", exit: "Aizvērt līnijas redaktoru" }, elementLock: { lock: "Fiksēt", unlock: "Atbrīvot", lockAll: "Fiksēt visu", unlockAll: "Atbrīvot visu" }, statusPublished: "Publicēts", sidebarLock: "Paturēt atvērtu sānjoslu", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, a = { noItems: "Neviena vienība vēl nav pievienota...", hint_emptyLibrary: "Atlasiet objektu tāfelē, lai to šeit pievienotu, vai pievienojiet publisku bibliotēku zemāk.", hint_emptyPrivateLibrary: "Atlasiet objektu tāfelē, lai to šeit pievienotu." }, t = { clearReset: "Atiestatīt tāfeli", exportJSON: "Eksportēt kā failu", exportImage: "Eksportēt attēlu...", export: "Saglabāt uz...", copyToClipboard: "Kopēt starpliktuvē", save: "Saglabāt pašreizējo datni", saveAs: "Saglabāt kā", load: "Atvērt", getShareableLink: "Iegūt kopīgošanas saiti", close: "Aizvērt", selectLanguage: "Izvēlieties valodu", scrollBackToContent: "Atgriezties pie satura", zoomIn: "Tuvināt", zoomOut: "Tālināt", resetZoom: "Atiestatīt tuvinājumu", menu: "Izvēlne", done: "Gatavs", edit: "Rediģēt", undo: "Atsaukt", redo: "Atcelt atsaukšanu", resetLibrary: "Atiestatīt bibliotēku", createNewRoom: "Izveidot jaunu telpu", fullScreen: "Pilnekrāna režīms", darkMode: "Tumšais režīms", lightMode: "Gaišais režīms", zenMode: "Zen režīms", objectsSnapMode: "", exitZenMode: "Pamest Zen režīmu", cancel: "Atcelt", clear: "Notīrīt", remove: "Noņemt", embed: "", publishLibrary: "Publicēt", submit: "Iesniegt", confirm: "Apstiprināt", embeddableInteractionButton: "" }, e = { clearReset: "Šī funkcija notīrīs visu tāfeli. Vai turpināt?", couldNotCreateShareableLink: "Nevarēja izveidot kopīgojamo saiti.", couldNotCreateShareableLinkTooBig: "Nevarēja izveidot kopīgojamo saiti – aina ir par lielu", couldNotLoadInvalidFile: "Nevarēja ielādēt nederīgu datni", importBackendFailed: "Ielāde no krātuves neizdevās.", cannotExportEmptyCanvas: "Nevar eksportēt tukšu tāfeli.", couldNotCopyToClipboard: "Nevarēja nokopēt starpliktuvē.", decryptFailed: "Nevarēja atšifrēt datus.", uploadedSecurly: "Augšuplāde nodrošināta ar šifrēšanu no gala līdz galam, kas nozīmē, ka Excalidraw serveri un trešās puses nevar lasīt saturu.", loadSceneOverridePrompt: "Ārēja satura ielāde aizstās jūsu pašreizējo saturu. Vai vēlaties turpināt?", collabStopOverridePrompt: `Sesijas pārtraukšana pārrakstīs jūsu iepriekšējo zīmējumu, kas saglabāts jūsu pārlūkā. Vai turpināt?
3
+
4
+ (Ja vēlaties paturēt zīmējumu, kas saglabāts jūsu pārlūkā, vienkārši aizveriet pārlūka cilni.)`, errorAddingToLibrary: "Nevarēja pievienot vienumu bibliotēkai", errorRemovingFromLibrary: "Nevarēja izņemt vienumu no bibliotēkas", confirmAddLibrary: "Šī funkcija pievienos {{numShapes}} formu(-as) jūsu bibliotēkai. Vai turpināt?", imageDoesNotContainScene: "Šķiet, ka attēls nesatur ainas datus. Vai iespējojāt ainas iegulšanu, kad eksportējāt?", cannotRestoreFromImage: "Ainu nevarēja atgūt no attēla datnes", invalidSceneUrl: "Nevarēja importēt ainu no norādītā URL. Vai nu tas ir nederīgs, vai nesatur derīgus Excalidraw JSON datus.", resetLibrary: "Šī funkcija iztukšos bibliotēku. Vai turpināt?", removeItemsFromsLibrary: "Vai izņemt {{count}} vienumu(s) no bibliotēkas?", invalidEncryptionKey: "Šifrēšanas atslēgai jābūt 22 simbolus garai. Tiešsaistes sadarbība ir izslēgta.", collabOfflineWarning: `Nav pieejams interneta pieslēgums.
5
+ Jūsu izmaiņas netiks saglabātas!` }, i = { unsupportedFileType: "Neatbalstīts datnes veids.", imageInsertError: "Nevarēja ievietot attēlu. Mēģiniet vēlāk...", fileTooBig: "Datne ir par lielu. Lielākais atļautais izmērs ir {{maxSize}}.", svgImageInsertError: "Nevarēja ievietot SVG attēlu. Šķiet, ka SVG marķējums nav derīgs.", failedToFetchImage: "", invalidSVGString: "Nederīgs SVG.", cannotResolveCollabServer: "Nevarēja savienoties ar sadarbošanās serveri. Lūdzu, pārlādējiet lapu un mēģiniet vēlreiz.", importLibraryError: "Nevarēja ielādēt bibliotēku", collabSaveFailed: "Darbs nav saglabāts datubāzē. Ja problēma turpinās, saglabājiet datni lokālajā krātuvē, lai nodrošinātos pret darba pazaudēšanu.", collabSaveFailed_sizeExceeded: "Darbs nav saglabāts datubāzē, šķiet, ka tāfele ir pārāk liela. Saglabājiet datni lokālajā krātuvē, lai nodrošinātos pret darba pazaudēšanu.", imageToolNotSupported: "", brave_measure_text_error: { line1: "", line2: "", line3: "", line4: "" }, libraryElementTypeError: { embeddable: "", iframe: "", image: "" }, asyncPasteFailedOnRead: "", asyncPasteFailedOnParse: "", copyToSystemClipboardFailed: "" }, s = { selection: "Atlase", image: "Ievietot attēlu", rectangle: "Taisnstūris", diamond: "Rombs", ellipse: "Elipse", arrow: "Bulta", line: "Līnija", freedraw: "Zīmēt", text: "Teksts", library: "Bibliotēka", lock: "Paturēt izvēlēto rīku pēc darbības", penMode: "Pildspalvas režīms – novērst pieskaršanos", link: "Pievienot/rediģēt atlasītās figūras saiti", eraser: "Dzēšgumija", frame: "", magicframe: "", embeddable: "", laser: "", hand: "Roka (panoramēšanas rīks)", extraTools: "", mermaidToExcalidraw: "", magicSettings: "" }, r = { canvasActions: "Tāfeles darbības", selectedShapeActions: "Izvēlētās formas darbības", shapes: "Formas" }, o = { canvasPanning: "Lai bīdītu tāfeli, turiet nospiestu ritināšanas vai atstarpes taustiņu, vai izmanto rokas rīku", linearElement: "Klikšķiniet, lai sāktu zīmēt vairākus punktus; velciet, lai zīmētu līniju", freeDraw: "Spiediet un velciet; atlaidiet, kad pabeidzat", text: "Ieteikums: lai pievienotu tekstu, varat arī jebkur dubultklikšķināt ar atlases rīku", embeddable: "", text_selected: "Dubultklikšķiniet vai spiediet ievades taustiņu, lai rediģētu tekstu", text_editing: "Spiediet iziešanas taustiņu vai CtrlOrCmd+ENTER, lai beigtu rediģēt", linearElementMulti: "Klikšķiniet uz pēdējā punkta vai spiediet izejas vai ievades taustiņu, lai pabeigtu", lockAngle: "Varat ierobežot leņķi, turot nospiestu SHIFT", resize: `Kad maināt izmēru, varat ierobežot proporcijas, turot nospiestu SHIFT,
6
+ vai arī ALT, lai mainītu izmēru ap centru`, resizeImage: `Varat brīvi mainīt izmēru, turot nospiestu SHIFT;
7
+ turiet nospiestu ALT, lai mainītu izmēru ap centru`, rotate: "Rotējot varat ierobežot leņķi, turot nospiestu SHIFT", lineEditor_info: "Turiet CtrlOrCmd un dubultklikšķiniet, vai spiediet CtrlOrCmd + Enter, lai rediģētu punktus", lineEditor_pointSelected: "Spiediet dzēšanas taustiņu, lai noņemtu punktus, – CtrlOrCmd+D, lai to kopētu, vai velciet, lai pārvietotu", lineEditor_nothingSelected: `Atlasiet punktu, lai labotu (turiet nospiestu SHIFT, lai atlasītu vairākus),
8
+ vai turiet Alt un clikšķiniet, lai pievienotu jaunus punktus`, placeImage: "Klikšķiniet, lai novietotu attēlu, vai spiediet un velciet, lai iestatītu tā izmēru", publishLibrary: "Publicēt savu bibliotēku", bindTextToElement: "Spiediet ievades taustiņu, lai pievienotu tekstu", deepBoxSelect: "Turient nospiestu Ctrl vai Cmd, lai atlasītu dziļumā un lai nepieļautu objektu pavilkšanu", eraserRevert: "Turiet Alt, lai noņemtu elementus no dzēsšanas atlases", firefox_clipboard_write: 'Šis iestatījums var tikt ieslēgts ar "dom.events.asyncClipboard.clipboardItem" marķieri pārslēgtu uz "true". Lai mainītu pārlūka marķierus Firefox, apmeklē "about:config" lapu.', disableSnapping: "" }, l = { cannotShowPreview: "Nevar rādīt priekšskatījumu", canvasTooBig: "Iespējams, tāfele ir par lielu.", canvasTooBigTip: "Ieteikums: mēģiniet satuvināt pašus tālākos elementus." }, n = { headingMain: "Notikusi kļūda. Mēģiniet <button>pārlādēt lapu.</button>", clearCanvasMessage: "Ja pārlādēšana nestrādā, mēģiniet <button>notīrot tāfeli.</button>", clearCanvasCaveat: " Tas novedīs pie darba zaudēšanas ", trackedToSentry: "Kļūda ar kodu {{eventId}} tika noteikta mūsu sistēmā.", openIssueMessage: "Mēs uzmanījāmies, lai neiekļautu jūsu ainas informāciju šajā kļūdā. Ja jūsu aina nav privāta, lūdzu ziņojiet par šo kļūdu mūsu <button>kļūdu uzskaitē.</button> Lūdzu, miniet sekojošo informāciju to kopējot un ielīmējot jūsu ziņojumā platformā GitHub.", sceneContent: "Ainas saturs:" }, d = { desc_intro: "Varat ielūgt cilvēkus pašreizējajā ainā, lai sadarbotos ar tiem.", desc_privacy: "Neuztraucieties, sesija izmanto šifrēšanu no gala līdz galam, tātad jūsu zīmējums paliks privāts. Pat mūsu serveri nevarēs redzēt, ar ko esat nācis klajā.", button_startSession: "Sākt sesiju", button_stopSession: "Beigt sesiju", desc_inProgressIntro: "Notiek tiešsaistes sadarbības sesija.", desc_shareLink: "Dalieties ar šo saiti ar jebkuru, ar ko vēlaties sadarboties:", desc_exitSession: "Sesijas beigšana jūs atvienos no sadarbošanās, bet jūs vēl joprojām varēsiet strādāt ar ainu savā datorā. Ievērojiet, ka šis neietekmēs citus dalībniekus, un viņi vēl joprojām varēs sadarboties savā ainas versijā.", shareTitle: "Pievienoties tiešsaistes sadarbībai programmā Excalidraw" }, k = { title: "Kļūda" }, m = { disk_title: "Saglabāt diskā", disk_details: "Eksportēt ainas datus datnē, ko vēlāk varēsiet importēt.", disk_button: "Saglabāt datnē", link_title: "Kopīgošanas saite", link_details: "Eksportēt kā tikai lasāmu saiti.", link_button: "Eksportēt kā saiti", excalidrawplus_description: "Saglabāt ainu savā Excalidraw+ darbvietā.", excalidrawplus_button: "Eksportēt", excalidrawplus_exportError: "Pašreiz nevarēja eksportēt uz Excalidraw+..." }, p = { blog: "Lasīt mūsu blogu", click: "klikšķis", deepSelect: "Atlasīt dziļumā", deepBoxSelect: "Atlasīt dziļumā kastes ietvaros, un nepieļaut pavilkšanu", curvedArrow: "Liekta bulta", curvedLine: "Liekta līnija", documentation: "Dokumentācija", doubleClick: "dubultklikšķis", drag: "vilkt", editor: "Redaktors", editLineArrowPoints: "Rediģēt līniju/bultu punktus", editText: "Rediģēt tekstu/pievienot birku", github: "Sastapāt kļūdu? Ziņot", howto: "Sekojiet mūsu instrukcijām", or: "vai", preventBinding: "Novērst bultu piesaistīšanos", tools: "Rīki", shortcuts: "Tastatūras saīsnes", textFinish: "Pabeigt rediģēšanu (teksta redaktorā)", textNewLine: "Nākamā rindiņa (teksta redaktorā)", title: "Palīdzība", view: "Skatīt", zoomToFit: "Iestatīt mērogu, kas iekļauj visus elementus", zoomToSelection: "Iestatīt mērogu, lai rādītu atlasi", toggleElementLock: "Fiksēt/atbrīvot atlasīto", movePageUpDown: "Pārvietot lapu augšup/lejup", movePageLeftRight: "Pārvietot lapu pa labi/kreisi" }, b = { title: "Notīrīt tāfeli" }, v = { title: "Publicēt bibliotēku", itemName: "Vienuma nosaukums", authorName: "Autora vārds", githubUsername: "GitHub lietotājvārds", twitterUsername: "Twitter lietotājvārds", libraryName: "Bibliotēkas nosaukums", libraryDesc: "Bibliotēkas apraksts", website: "Mājaslapa", placeholder: { authorName: "Jūsu vārds vai lietotājvārds", libraryName: "Jūsu bibliotēkas nosaukums", libraryDesc: "Bibliotēkas apraksts, kas palīdzēs citiem saprast tās pielietojumu", githubHandle: "GitHub lietotājvārds (neobligāts), lai jūs varētu rediģēt bibliotēku pēc tās iesniegšanas izskatīšanai", twitterHandle: "Twitter lietotājvārds (neobligāts), lai mēs varētu jūs pieminēt kā autoru, kad reklamēsim bibliotēku platformā Twitter", website: "Saikne uz jūsu personīgo mājaslapu vai kādu citu lapu (neobligāta)" }, errors: { required: "Obligāts", website: "Ievadiet derīgu URL" }, noteDescription: "Iesniegt savu bibliotēku iekļaušanai <link>publiskajā bibliotēku datubāzē</link>, lai citi to varētu izmantot savos zīmējumos.", noteGuidelines: "Šai bibliotēkai vispirms jātiek manuāli apstiprinātai. Lūdzu, izlasiet <link>norādījumus</link> pirms iesniegšanas. Jums vajadzēs GitHub kontu, lai sazinātos un veiktu izmaiņas, ja tādas būs pieprasītas, bet tas nav absolūti nepieciešams.", noteLicense: "Iesniedzot bibliotēku, jūs piekrītat tās publicēšanai saskaņā ar <link>MIT Licenci, </link>kas īsumā nozīmē, ka jebkurš to varēs izmantot bez ierobežojumiem.", noteItems: "Katram bibliotēkas vienumam jābūt savam nosaukumam, lai to varētu atrast filtrējot. Tiks iekļauti sekojošie bibliotēkas vienumi:", atleastOneLibItem: "Lūdzu, atlasiet vismaz vienu bibliotēkas vienumu, lai sāktu darbu", republishWarning: "Ievēro: daži no atzīmētajiem objektiem jau atzīmēti kā publicēti vai iesniegti publicēšanai. Tos vajadzētu atkārtoti iesniegt tikai tad, ja vēlies labot esošo bibliotēku." }, c = { title: "Bibliotēka iesniegta", content: "Paldies, {{authorName}}! Jūsu bibliotēka iesniegta izskatīšanai. Jūs varat izsekot iesnieguma statusam<link>šeit</link>" }, B = { resetLibrary: "Atiestatīt bibliotēku", removeItemsFromLib: "Noņemt atlasītos vienumus no bibliotēkas" }, g = { header: "", label: { withBackground: "", onlySelected: "", darkMode: "", embedScene: "", scale: "", padding: "" }, tooltip: { embedScene: "" }, title: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" }, button: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" } }, j = { tooltip: "Jūsu zīmējumi ir šifrēti no gala līdz galam; līdz ar to Excalidraw serveri tos nekad neredzēs.", link: "Ieraksts par šifrēšanu no gala līdz galam Excalidraw blogā" }, z = { angle: "Leņķis", element: "Elements", elements: "Elementi", height: "Augstums", scene: "Aina", selected: "Atlasīti", storage: "Krātuve", title: "Statistika entuziastiem", total: "Kopā", version: "Versija", versionCopy: "Klikšķiniet, lai nokopētu", versionNotAvailable: "Versija nav pieejama", width: "Platums" }, S = { addedToLibrary: "Pievienots bibliotēkai", copyStyles: "Nokopēja stilus.", copyToClipboard: "Nokopēja starpliktuvē.", copyToClipboardAsPng: "Nokopēja {{exportSelection}} starpliktuvē kā PNG ({{exportColorScheme}})", fileSaved: "Datne saglabāta.", fileSavedToFilename: "Saglabāts kā {filename}", canvas: "tāfeli", selection: "atlasi", pasteAsSingleElement: "Izmantojiet {{shortcut}}, lai ielīmētu kā jaunu elementu, vai ielīmētu esošā teksta lauciņā", unableToEmbed: "", unrecognizedLinkFormat: "" }, h = { transparent: "Caurspīdīgs", black: "", white: "", red: "", pink: "", grape: "", violet: "", gray: "", blue: "", cyan: "", teal: "", green: "", yellow: "", orange: "", bronze: "" }, y = { app: { center_heading: "Visi jūsu dati tiek glabāti uz vietas jūsu pārlūkā.", center_heading_plus: "Vai tā vietā vēlies doties uz Excalidraw+?", menuHint: "Eksportēšana, iestatījumi, valodas..." }, defaults: { menuHint: "Eksportēšana, iestatījumi un vēl...", center_heading: "Diagrammas. Izveidotas. Vienkārši.", toolbarHint: "Izvēlies rīku un sāc zīmēt!", helpHint: "Īsceļi un palīdzība" } }, T = { mostUsedCustomColors: "", colors: "", shades: "", hexCode: "", noShades: "" }, f = { action: { exportToImage: { title: "", button: "", description: "" }, saveToDisk: { title: "", button: "", description: "" }, excalidrawPlus: { title: "", button: "", description: "" } }, modal: { loadFromFile: { title: "", button: "", description: "" }, shareableLink: { title: "", button: "", description: "" } } }, E = { title: "", button: "", description: "", syntax: "", preview: "" }, C = { labels: u, library: a, buttons: t, alerts: e, errors: i, toolBar: s, headings: r, hints: o, canvasError: l, errorSplash: n, roomDialog: d, errorDialog: k, exportDialog: m, helpDialog: p, clearCanvasDialog: b, publishDialog: v, publishSuccessDialog: c, confirmDialog: B, imageExportDialog: g, encrypted: j, stats: z, toast: S, colors: h, welcomeScreen: y, colorPicker: T, overwriteConfirm: f, mermaid: E };
9
+ export {
10
+ e as alerts,
11
+ t as buttons,
12
+ l as canvasError,
13
+ b as clearCanvasDialog,
14
+ T as colorPicker,
15
+ h as colors,
16
+ B as confirmDialog,
17
+ C as default,
18
+ j as encrypted,
19
+ k as errorDialog,
20
+ n as errorSplash,
21
+ i as errors,
22
+ m as exportDialog,
23
+ r as headings,
24
+ p as helpDialog,
25
+ o as hints,
26
+ g as imageExportDialog,
27
+ u as labels,
28
+ a as library,
29
+ E as mermaid,
30
+ f as overwriteConfirm,
31
+ v as publishDialog,
32
+ c as publishSuccessDialog,
33
+ d as roomDialog,
34
+ z as stats,
35
+ S as toast,
36
+ s as toolBar,
37
+ y as welcomeScreen
38
+ };