@design-edito/tools 0.1.61 → 0.1.63

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 (564) hide show
  1. package/agnostic/arrays/index.js +5 -5
  2. package/agnostic/css/index.js +8 -8
  3. package/agnostic/html/hyper-json/cast/index.js +3 -3
  4. package/agnostic/html/hyper-json/index.js +4 -4
  5. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +3 -3
  6. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +3 -3
  7. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +3 -3
  8. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +3 -3
  9. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +3 -3
  10. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +3 -3
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +3 -3
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +3 -3
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +3 -3
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +3 -3
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +3 -3
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +3 -3
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +3 -3
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +3 -3
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +3 -3
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +3 -3
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +3 -3
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +3 -3
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +3 -3
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +3 -3
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +3 -3
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +3 -3
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +3 -3
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +3 -3
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +3 -3
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +3 -3
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +3 -3
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +3 -3
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +3 -3
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +3 -3
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +3 -3
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +3 -3
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +3 -3
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +3 -3
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +3 -3
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +3 -3
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +3 -3
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +3 -3
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +3 -3
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +3 -3
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +3 -3
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +3 -3
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +3 -3
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +3 -3
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +3 -3
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +3 -3
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +3 -3
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +3 -3
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +3 -3
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +3 -3
  55. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +3 -3
  56. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +3 -3
  57. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +3 -3
  58. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +3 -3
  59. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +3 -3
  60. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +3 -3
  61. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +3 -3
  62. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +3 -3
  63. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +3 -3
  64. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +3 -3
  65. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +3 -3
  66. package/agnostic/html/hyper-json/tree/index.js +3 -3
  67. package/agnostic/html/hyper-json/utils/index.js +3 -3
  68. package/agnostic/html/index.js +10 -10
  69. package/agnostic/misc/index.js +17 -17
  70. package/agnostic/misc/lorem-ipsum/index.js +8 -8
  71. package/agnostic/numbers/index.js +3 -3
  72. package/agnostic/objects/index.js +3 -3
  73. package/agnostic/strings/index.js +10 -10
  74. package/agnostic/time/index.js +4 -4
  75. package/chunks/{chunk-4OH2EX3D.js → chunk-2JKV6KXE.js} +1 -1
  76. package/chunks/{chunk-2OSLB3AC.js → chunk-4DNPGCIM.js} +3 -3
  77. package/chunks/{chunk-6A7GLDXD.js → chunk-4HLAM4RP.js} +3 -3
  78. package/chunks/{chunk-K6XEQOZU.js → chunk-6Y7RZ5WD.js} +4 -12
  79. package/chunks/{chunk-5UM7HYXS.js → chunk-7SZ3QPTM.js} +1 -1
  80. package/chunks/{chunk-344X5RHV.js → chunk-7WYDM5OX.js} +1 -1
  81. package/chunks/{chunk-NTZ7PTU3.js → chunk-EBVYO2TY.js} +4 -12
  82. package/chunks/{chunk-OOETQRTY.js → chunk-HGQGQLLC.js} +1 -1
  83. package/chunks/{chunk-RORBHBEN.js → chunk-I37MGRCT.js} +4 -4
  84. package/chunks/{chunk-5KEIMXTB.js → chunk-IH25CV3F.js} +1 -1
  85. package/chunks/{chunk-EHOZ6VCE.js → chunk-ISFXCV7D.js} +4 -4
  86. package/chunks/{chunk-4HPUOADZ.js → chunk-MZKZI6JL.js} +6 -6
  87. package/chunks/{chunk-BX6M7WBE.js → chunk-PDHAMES3.js} +1 -1
  88. package/chunks/{chunk-ITECXQUB.js → chunk-QPT6R6CL.js} +6 -6
  89. package/chunks/{chunk-ON4E4PLF.js → chunk-R7J7Q2UL.js} +2 -2
  90. package/chunks/{chunk-27HRTQ7Z.js → chunk-V4KSJHTU.js} +1 -1
  91. package/chunks/{chunk-XC2YGMNJ.js → chunk-YVEMIEOT.js} +1 -1
  92. package/node/@design-edito/index.js +3 -3
  93. package/node/@design-edito/thumbnails/index.js +7 -7
  94. package/node/@design-edito/thumbnails/layout/index.js +2 -2
  95. package/node/@google-cloud/index.js +4 -4
  96. package/node/@google-cloud/storage/file/index.js +7 -7
  97. package/node/@google-cloud/storage/index.js +4 -4
  98. package/node/cloud-storage/index.js +11 -11
  99. package/node/cloud-storage/operations/download/index.d.ts +2 -2
  100. package/node/cloud-storage/operations/download/index.js +2 -3
  101. package/node/cloud-storage/operations/index.js +5 -6
  102. package/node/cloud-storage/operations/upload/index.d.ts +1 -2
  103. package/node/cloud-storage/operations/upload/index.js +2 -3
  104. package/node/encryption/index.js +3 -3
  105. package/node/files/index.js +3 -3
  106. package/node/images/index.js +6 -6
  107. package/node/images/prepare/index.js +6 -6
  108. package/node/images/transform/area-composition/index.js +4 -4
  109. package/node/images/transform/index.js +5 -5
  110. package/package.json +1 -1
  111. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.d.ts +0 -4
  112. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.js +0 -21
  113. package/agnostic/html/hyper-json/transformers/append/index.d.ts +0 -2
  114. package/agnostic/html/hyper-json/transformers/append/index.js +0 -16
  115. package/agnostic/html/hyper-json/transformers/classList/index.d.ts +0 -2
  116. package/agnostic/html/hyper-json/transformers/classList/index.js +0 -16
  117. package/agnostic/html/hyper-json/transformers/index.d.ts +0 -4
  118. package/agnostic/html/hyper-json/transformers/index.js +0 -16
  119. package/agnostic/html/hyper-json/transformers/join/index.d.ts +0 -2
  120. package/agnostic/html/hyper-json/transformers/join/index.js +0 -16
  121. package/agnostic/html/hyper-json/transformers/length/index.d.ts +0 -2
  122. package/agnostic/html/hyper-json/transformers/length/index.js +0 -16
  123. package/agnostic/html/hyper-json/transformers/print/index.d.ts +0 -2
  124. package/agnostic/html/hyper-json/transformers/print/index.js +0 -16
  125. package/agnostic/html/hyper-json/transformers/push/index.d.ts +0 -2
  126. package/agnostic/html/hyper-json/transformers/push/index.js +0 -16
  127. package/agnostic/html/hyper-json/transformers/querySelector/index.d.ts +0 -2
  128. package/agnostic/html/hyper-json/transformers/querySelector/index.js +0 -16
  129. package/agnostic/html/hyper-json/transformers/ref/index.d.ts +0 -2
  130. package/agnostic/html/hyper-json/transformers/ref/index.js +0 -16
  131. package/agnostic/html/hyper-json/transformers/replace/index.d.ts +0 -2
  132. package/agnostic/html/hyper-json/transformers/replace/index.js +0 -16
  133. package/agnostic/html/hyper-json/transformers/split/index.d.ts +0 -2
  134. package/agnostic/html/hyper-json/transformers/split/index.js +0 -16
  135. package/agnostic/html/hyper-json/transformers/toArray/index.d.ts +0 -2
  136. package/agnostic/html/hyper-json/transformers/toArray/index.js +0 -16
  137. package/agnostic/html/hyper-json/transformers/toBoolean/index.d.ts +0 -2
  138. package/agnostic/html/hyper-json/transformers/toBoolean/index.js +0 -16
  139. package/agnostic/html/hyper-json/transformers/toElement/index.d.ts +0 -2
  140. package/agnostic/html/hyper-json/transformers/toElement/index.js +0 -16
  141. package/agnostic/html/hyper-json/transformers/toNodeList/index.d.ts +0 -2
  142. package/agnostic/html/hyper-json/transformers/toNodeList/index.js +0 -16
  143. package/agnostic/html/hyper-json/transformers/toNull/index.d.ts +0 -2
  144. package/agnostic/html/hyper-json/transformers/toNull/index.js +0 -16
  145. package/agnostic/html/hyper-json/transformers/toNumber/index.d.ts +0 -2
  146. package/agnostic/html/hyper-json/transformers/toNumber/index.js +0 -16
  147. package/agnostic/html/hyper-json/transformers/toRecord/index.d.ts +0 -2
  148. package/agnostic/html/hyper-json/transformers/toRecord/index.js +0 -16
  149. package/agnostic/html/hyper-json/transformers/toRef/index.d.ts +0 -2
  150. package/agnostic/html/hyper-json/transformers/toRef/index.js +0 -16
  151. package/agnostic/html/hyper-json/transformers/toString/index.d.ts +0 -2
  152. package/agnostic/html/hyper-json/transformers/toString/index.js +0 -16
  153. package/agnostic/html/hyper-json/transformers/toText/index.d.ts +0 -2
  154. package/agnostic/html/hyper-json/transformers/toText/index.js +0 -16
  155. package/agnostic/html/hyper-json/transformers/toTransformer/index.d.ts +0 -2
  156. package/agnostic/html/hyper-json/transformers/toTransformer/index.js +0 -16
  157. package/agnostic/html/hyper-json/transformers/transformSelected/index.d.ts +0 -2
  158. package/agnostic/html/hyper-json/transformers/transformSelected/index.js +0 -16
  159. package/agnostic/html/hyper-json/transformers/trim/index.d.ts +0 -2
  160. package/agnostic/html/hyper-json/transformers/trim/index.js +0 -16
  161. package/agnostic/objects/record-filter/index.d.ts +0 -1
  162. package/agnostic/objects/record-filter/index.js +0 -6
  163. package/chunks/chunk-2G5MFJ66.js +0 -2420
  164. package/chunks/chunk-2HU2AWWJ.js +0 -35
  165. package/chunks/chunk-2IV3O7FX.js +0 -27
  166. package/chunks/chunk-2KCKWG7R.js +0 -104
  167. package/chunks/chunk-2KT7AKRW.js +0 -17
  168. package/chunks/chunk-2U2J4P3O.js +0 -31
  169. package/chunks/chunk-2UJYUMTT.js +0 -37
  170. package/chunks/chunk-35W7XRC3.js +0 -173
  171. package/chunks/chunk-365LSZZ7.js +0 -37
  172. package/chunks/chunk-36CTYZYA.js +0 -28
  173. package/chunks/chunk-3C3MXKEW.js +0 -31
  174. package/chunks/chunk-3GTGE66Y.js +0 -32
  175. package/chunks/chunk-3N2LP2TN.js +0 -191
  176. package/chunks/chunk-3OMANUYH.js +0 -211
  177. package/chunks/chunk-3SSUHWUD.js +0 -56
  178. package/chunks/chunk-3TX6SJRO.js +0 -31
  179. package/chunks/chunk-3UAAYFXA.js +0 -56
  180. package/chunks/chunk-42ZKFWKF.js +0 -2369
  181. package/chunks/chunk-44XPTCIO.js +0 -49
  182. package/chunks/chunk-4FOK7DUZ.js +0 -35
  183. package/chunks/chunk-4LCL2RIC.js +0 -209
  184. package/chunks/chunk-4WOAFIVN.js +0 -31
  185. package/chunks/chunk-4WOYAD35.js +0 -31
  186. package/chunks/chunk-53MBV4TG.js +0 -6212
  187. package/chunks/chunk-55MT7BMY.js +0 -16
  188. package/chunks/chunk-57RPA6DU.js +0 -56
  189. package/chunks/chunk-57YCNOX7.js +0 -15
  190. package/chunks/chunk-5CYZ66VE.js +0 -31
  191. package/chunks/chunk-5E7N4BDI.js +0 -186
  192. package/chunks/chunk-5GI5G45R.js +0 -27
  193. package/chunks/chunk-5HWYTIYR.js +0 -211
  194. package/chunks/chunk-5JMTDJWX.js +0 -37
  195. package/chunks/chunk-5P7LHIDR.js +0 -37
  196. package/chunks/chunk-5QVKJGTN.js +0 -95
  197. package/chunks/chunk-5RSHXPTG.js +0 -21
  198. package/chunks/chunk-5VHXL242.js +0 -37
  199. package/chunks/chunk-5ZTW4PHE.js +0 -173
  200. package/chunks/chunk-64SYLWJ7.js +0 -37
  201. package/chunks/chunk-65YZMVWZ.js +0 -35
  202. package/chunks/chunk-66X6D4HF.js +0 -191
  203. package/chunks/chunk-6DA4S65P.js +0 -37
  204. package/chunks/chunk-6FRKSLBC.js +0 -2369
  205. package/chunks/chunk-6GZXU2Z3.js +0 -191
  206. package/chunks/chunk-6JRUZYTL.js +0 -211
  207. package/chunks/chunk-6KWNKTNI.js +0 -173
  208. package/chunks/chunk-6PNTQUTX.js +0 -20
  209. package/chunks/chunk-6Z6GDMOR.js +0 -28
  210. package/chunks/chunk-72NLUT3X.js +0 -29
  211. package/chunks/chunk-72U4TDEB.js +0 -127
  212. package/chunks/chunk-75DDEILC.js +0 -191
  213. package/chunks/chunk-7DNQ6RM2.js +0 -211
  214. package/chunks/chunk-7ICUR6QY.js +0 -31
  215. package/chunks/chunk-7K2EL46G.js +0 -2391
  216. package/chunks/chunk-7KHJKCA7.js +0 -2369
  217. package/chunks/chunk-7NO34XJI.js +0 -26
  218. package/chunks/chunk-7QIYI4CK.js +0 -209
  219. package/chunks/chunk-7VL2O6SQ.js +0 -211
  220. package/chunks/chunk-7VTVA56L.js +0 -37
  221. package/chunks/chunk-7W5LABV2.js +0 -37
  222. package/chunks/chunk-7YW5HL6N.js +0 -168
  223. package/chunks/chunk-A4FSJC46.js +0 -58
  224. package/chunks/chunk-AF2MI5O5.js +0 -29
  225. package/chunks/chunk-AM26FWT6.js +0 -31
  226. package/chunks/chunk-APRHU5KY.js +0 -31
  227. package/chunks/chunk-ARDAQZRR.js +0 -239
  228. package/chunks/chunk-AXMMBQRD.js +0 -191
  229. package/chunks/chunk-B446JIN3.js +0 -29
  230. package/chunks/chunk-BLAAWANI.js +0 -191
  231. package/chunks/chunk-BNNAZPI2.js +0 -191
  232. package/chunks/chunk-BPOJYE4X.js +0 -1108
  233. package/chunks/chunk-BQV4DOSE.js +0 -1108
  234. package/chunks/chunk-BV67SWXG.js +0 -20
  235. package/chunks/chunk-BVCWBTHQ.js +0 -35
  236. package/chunks/chunk-BW3XNPCJ.js +0 -191
  237. package/chunks/chunk-C2VF2MJV.js +0 -60
  238. package/chunks/chunk-C5753KUP.js +0 -127
  239. package/chunks/chunk-C5CIYEMD.js +0 -191
  240. package/chunks/chunk-C7SRAQMW.js +0 -29
  241. package/chunks/chunk-CAMYGA44.js +0 -22
  242. package/chunks/chunk-CB52KVOZ.js +0 -22
  243. package/chunks/chunk-CHUOCTRP.js +0 -26
  244. package/chunks/chunk-CIJQHLIW.js +0 -31
  245. package/chunks/chunk-CK73EBO5.js +0 -35
  246. package/chunks/chunk-CMKKX7WQ.js +0 -56
  247. package/chunks/chunk-CNPV4DFI.js +0 -20
  248. package/chunks/chunk-COLNKMBN.js +0 -35
  249. package/chunks/chunk-CQ3R7BEH.js +0 -173
  250. package/chunks/chunk-CQEDNACN.js +0 -28
  251. package/chunks/chunk-CRGU2EHQ.js +0 -31
  252. package/chunks/chunk-CRGUZBZX.js +0 -37
  253. package/chunks/chunk-CRZMH2K5.js +0 -2369
  254. package/chunks/chunk-CSYW7AAI.js +0 -191
  255. package/chunks/chunk-CWRRSS4V.js +0 -27
  256. package/chunks/chunk-D2JMITOU.js +0 -37
  257. package/chunks/chunk-D2NTUAFE.js +0 -4284
  258. package/chunks/chunk-D2V6SYYA.js +0 -191
  259. package/chunks/chunk-D5E2CIDK.js +0 -20
  260. package/chunks/chunk-D6VWX3D6.js +0 -186
  261. package/chunks/chunk-DCKTGQOX.js +0 -29
  262. package/chunks/chunk-DCSNQUVT.js +0 -56
  263. package/chunks/chunk-DHMARF6D.js +0 -62
  264. package/chunks/chunk-DHWHB53F.js +0 -191
  265. package/chunks/chunk-DLGA4UD5.js +0 -37
  266. package/chunks/chunk-DLSXW4NB.js +0 -2369
  267. package/chunks/chunk-DMR2WE3C.js +0 -62
  268. package/chunks/chunk-DZME4OQW.js +0 -2369
  269. package/chunks/chunk-E4FJHD5R.js +0 -67
  270. package/chunks/chunk-ECKOTCS4.js +0 -2369
  271. package/chunks/chunk-EEIJDUNV.js +0 -209
  272. package/chunks/chunk-EHVYR4OU.js +0 -56
  273. package/chunks/chunk-EI6W5HLB.js +0 -56
  274. package/chunks/chunk-EIU72AEZ.js +0 -31
  275. package/chunks/chunk-EJEG2LDE.js +0 -2427
  276. package/chunks/chunk-ERAFJXWH.js +0 -20
  277. package/chunks/chunk-ETRM76O3.js +0 -2369
  278. package/chunks/chunk-EUY4OBBI.js +0 -100
  279. package/chunks/chunk-EVOTJ7SU.js +0 -35
  280. package/chunks/chunk-EWM3VOPO.js +0 -191
  281. package/chunks/chunk-EX7FS6IR.js +0 -28
  282. package/chunks/chunk-F5DWWSOB.js +0 -31
  283. package/chunks/chunk-F5GXXF3A.js +0 -31
  284. package/chunks/chunk-FCU6IHKD.js +0 -15
  285. package/chunks/chunk-FDPPGRBY.js +0 -211
  286. package/chunks/chunk-FEFY3V6P.js +0 -31
  287. package/chunks/chunk-FG53JEP2.js +0 -31
  288. package/chunks/chunk-FHEUGVMU.js +0 -37
  289. package/chunks/chunk-FJTOFK3C.js +0 -203
  290. package/chunks/chunk-FOLCH72D.js +0 -211
  291. package/chunks/chunk-FONURDTX.js +0 -211
  292. package/chunks/chunk-FQD3VK47.js +0 -37
  293. package/chunks/chunk-FTIDPZZ5.js +0 -209
  294. package/chunks/chunk-FWZSMFVA.js +0 -211
  295. package/chunks/chunk-G3YL3WQJ.js +0 -56
  296. package/chunks/chunk-GARJTJ6V.js +0 -6
  297. package/chunks/chunk-GB4UQS6V.js +0 -35
  298. package/chunks/chunk-GBMHGF7P.js +0 -20
  299. package/chunks/chunk-GDFWDU4Q.js +0 -2369
  300. package/chunks/chunk-GGT2PUZH.js +0 -21
  301. package/chunks/chunk-GKG3UQH3.js +0 -191
  302. package/chunks/chunk-GL54CDM2.js +0 -20
  303. package/chunks/chunk-GNZY3ZTH.js +0 -14
  304. package/chunks/chunk-GP44TBRI.js +0 -39
  305. package/chunks/chunk-GPWFYPER.js +0 -211
  306. package/chunks/chunk-GQMFBT5T.js +0 -191
  307. package/chunks/chunk-GWXVHCAB.js +0 -31
  308. package/chunks/chunk-H7WUTMKQ.js +0 -31
  309. package/chunks/chunk-HDNYKGJM.js +0 -31
  310. package/chunks/chunk-HE6F5XJQ.js +0 -20
  311. package/chunks/chunk-HNB6B4FO.js +0 -37
  312. package/chunks/chunk-HP3OH2K7.js +0 -27
  313. package/chunks/chunk-HP722G2E.js +0 -211
  314. package/chunks/chunk-HQA7SCAD.js +0 -20
  315. package/chunks/chunk-HQACEDCF.js +0 -37
  316. package/chunks/chunk-HQGZVWBB.js +0 -56
  317. package/chunks/chunk-HTNLTDQT.js +0 -28
  318. package/chunks/chunk-I2ILSLBK.js +0 -32
  319. package/chunks/chunk-I4EBRCSJ.js +0 -20
  320. package/chunks/chunk-I66DPQN2.js +0 -31
  321. package/chunks/chunk-IECKIGM7.js +0 -2391
  322. package/chunks/chunk-IGHRNHVK.js +0 -16
  323. package/chunks/chunk-IJ7SOXLA.js +0 -107
  324. package/chunks/chunk-ILG6VQTL.js +0 -100
  325. package/chunks/chunk-IMR3ZNXR.js +0 -211
  326. package/chunks/chunk-IMZIWMCE.js +0 -191
  327. package/chunks/chunk-IOWZMFCU.js +0 -28
  328. package/chunks/chunk-IPON4W2H.js +0 -31
  329. package/chunks/chunk-IPOZQPNX.js +0 -37
  330. package/chunks/chunk-ISAIFQAY.js +0 -100
  331. package/chunks/chunk-IUFAHY2R.js +0 -38
  332. package/chunks/chunk-IYHWMMQE.js +0 -37
  333. package/chunks/chunk-J5A7YTMU.js +0 -56
  334. package/chunks/chunk-JBSS64SA.js +0 -6
  335. package/chunks/chunk-JIWZPVRS.js +0 -20
  336. package/chunks/chunk-JJ5ME3A2.js +0 -191
  337. package/chunks/chunk-JJK5733Z.js +0 -211
  338. package/chunks/chunk-JKWNIKHN.js +0 -37
  339. package/chunks/chunk-JNXO4QEM.js +0 -56
  340. package/chunks/chunk-JRXEHYIE.js +0 -37
  341. package/chunks/chunk-JRXTMXKV.js +0 -15967
  342. package/chunks/chunk-JSYVAPV6.js +0 -6
  343. package/chunks/chunk-JUIKU4XP.js +0 -191
  344. package/chunks/chunk-JWF5EKM2.js +0 -127
  345. package/chunks/chunk-JWKI6G6E.js +0 -102
  346. package/chunks/chunk-JXH3CLF4.js +0 -56
  347. package/chunks/chunk-JYW5L62E.js +0 -211
  348. package/chunks/chunk-KB4BPJBE.js +0 -2369
  349. package/chunks/chunk-KD627A47.js +0 -191
  350. package/chunks/chunk-KEYRP27F.js +0 -191
  351. package/chunks/chunk-KFW3ORPQ.js +0 -20
  352. package/chunks/chunk-KQZK54ZT.js +0 -2369
  353. package/chunks/chunk-KUIQRVIC.js +0 -100
  354. package/chunks/chunk-KYMCGWPM.js +0 -31
  355. package/chunks/chunk-L2L27BLX.js +0 -56
  356. package/chunks/chunk-L443MD77.js +0 -191
  357. package/chunks/chunk-L5JWJRZ7.js +0 -484
  358. package/chunks/chunk-LAA2DQDK.js +0 -31
  359. package/chunks/chunk-LATEK24U.js +0 -31
  360. package/chunks/chunk-LDLSU4OG.js +0 -191
  361. package/chunks/chunk-LLGU4W6F.js +0 -37
  362. package/chunks/chunk-LLSKBXT7.js +0 -14
  363. package/chunks/chunk-LOFELEU3.js +0 -1108
  364. package/chunks/chunk-LVXK54LL.js +0 -27
  365. package/chunks/chunk-LWWXPVXY.js +0 -25173
  366. package/chunks/chunk-LXPG32TV.js +0 -31
  367. package/chunks/chunk-M6WWIEQJ.js +0 -37
  368. package/chunks/chunk-M737IMZM.js +0 -37
  369. package/chunks/chunk-M7YNPJYY.js +0 -173
  370. package/chunks/chunk-MAP7OSVR.js +0 -37
  371. package/chunks/chunk-MBWRDYGE.js +0 -191
  372. package/chunks/chunk-MC5RLVK5.js +0 -4284
  373. package/chunks/chunk-MF56TTC5.js +0 -15
  374. package/chunks/chunk-MMNQZ2IM.js +0 -20
  375. package/chunks/chunk-MMPJODO2.js +0 -31
  376. package/chunks/chunk-MOA6JFUQ.js +0 -2369
  377. package/chunks/chunk-MQPY7A3O.js +0 -211
  378. package/chunks/chunk-MTT7TVR3.js +0 -127
  379. package/chunks/chunk-MUYZV5F3.js +0 -2369
  380. package/chunks/chunk-MUZGZ3ZF.js +0 -50
  381. package/chunks/chunk-MV7CCO4Y.js +0 -4430
  382. package/chunks/chunk-MW3KNVTG.js +0 -29
  383. package/chunks/chunk-MY4VMHSH.js +0 -191
  384. package/chunks/chunk-MZ2RAM5Y.js +0 -62
  385. package/chunks/chunk-MZSIKE3H.js +0 -211
  386. package/chunks/chunk-N2AOS7WW.js +0 -20
  387. package/chunks/chunk-N37FT2RW.js +0 -2391
  388. package/chunks/chunk-N4BZJOGW.js +0 -56
  389. package/chunks/chunk-N4LMP4UM.js +0 -31
  390. package/chunks/chunk-NGYJGQT3.js +0 -25002
  391. package/chunks/chunk-NHQVXC4Y.js +0 -2391
  392. package/chunks/chunk-NIOOIUSD.js +0 -104
  393. package/chunks/chunk-NLHFSJYR.js +0 -15
  394. package/chunks/chunk-NQ5ESZNO.js +0 -191
  395. package/chunks/chunk-NRRDPNOH.js +0 -100
  396. package/chunks/chunk-NWFX6TEY.js +0 -28
  397. package/chunks/chunk-O2WG3EMN.js +0 -2369
  398. package/chunks/chunk-O6NULFZI.js +0 -37
  399. package/chunks/chunk-OAQG5VAW.js +0 -211
  400. package/chunks/chunk-OJI6SN6F.js +0 -31
  401. package/chunks/chunk-OJXN5JW7.js +0 -37
  402. package/chunks/chunk-OVMNSJOW.js +0 -6
  403. package/chunks/chunk-P2H6PV4O.js +0 -26
  404. package/chunks/chunk-PEEPNNRS.js +0 -173
  405. package/chunks/chunk-PEOXR2Q6.js +0 -191
  406. package/chunks/chunk-PIIE3634.js +0 -37
  407. package/chunks/chunk-PJDZMLNG.js +0 -127
  408. package/chunks/chunk-PM7FWQYD.js +0 -20
  409. package/chunks/chunk-PMYUC6VD.js +0 -37
  410. package/chunks/chunk-PPHUIOHO.js +0 -28
  411. package/chunks/chunk-PPK2JEO6.js +0 -28
  412. package/chunks/chunk-PVHLWKA6.js +0 -31
  413. package/chunks/chunk-PYVUC6EN.js +0 -191
  414. package/chunks/chunk-Q7HA7IAA.js +0 -20
  415. package/chunks/chunk-QAJYFNPZ.js +0 -211
  416. package/chunks/chunk-QHGZBCFZ.js +0 -1108
  417. package/chunks/chunk-QI67BXO6.js +0 -2370
  418. package/chunks/chunk-QIXAGMCI.js +0 -211
  419. package/chunks/chunk-QLJBBAQ5.js +0 -37
  420. package/chunks/chunk-QMWX2A56.js +0 -56
  421. package/chunks/chunk-QPBY235R.js +0 -239
  422. package/chunks/chunk-QTTNO4T6.js +0 -37
  423. package/chunks/chunk-QUWGF5WZ.js +0 -191
  424. package/chunks/chunk-QZPBUDX2.js +0 -20
  425. package/chunks/chunk-R23B2MRN.js +0 -2405
  426. package/chunks/chunk-R57V5HA7.js +0 -211
  427. package/chunks/chunk-RDQJSWRC.js +0 -127
  428. package/chunks/chunk-REBANVPP.js +0 -104
  429. package/chunks/chunk-RHV7UOXD.js +0 -211
  430. package/chunks/chunk-RI37ZSKY.js +0 -2369
  431. package/chunks/chunk-ROJZUEYL.js +0 -37
  432. package/chunks/chunk-RRSHCFEP.js +0 -191
  433. package/chunks/chunk-RSMUYH5H.js +0 -31
  434. package/chunks/chunk-RTFKMYT7.js +0 -2369
  435. package/chunks/chunk-RVVJ4QD4.js +0 -173
  436. package/chunks/chunk-RWWYR54P.js +0 -31
  437. package/chunks/chunk-RX3BKRJU.js +0 -2407
  438. package/chunks/chunk-S7MJLTCR.js +0 -211
  439. package/chunks/chunk-SA2IY5LN.js +0 -35
  440. package/chunks/chunk-SBAY4ZKE.js +0 -211
  441. package/chunks/chunk-SEB7TFUB.js +0 -20
  442. package/chunks/chunk-SFYYQPAK.js +0 -37
  443. package/chunks/chunk-SJLH36CH.js +0 -26
  444. package/chunks/chunk-SJQNLCGS.js +0 -173
  445. package/chunks/chunk-SNITNUQ6.js +0 -20
  446. package/chunks/chunk-SOAU5CRO.js +0 -56
  447. package/chunks/chunk-SPMF4X5X.js +0 -31
  448. package/chunks/chunk-SR2YFPJZ.js +0 -2419
  449. package/chunks/chunk-SYD5FZEO.js +0 -20
  450. package/chunks/chunk-T5C73QJF.js +0 -56
  451. package/chunks/chunk-TAVCC26N.js +0 -37
  452. package/chunks/chunk-TEB7KZWB.js +0 -21
  453. package/chunks/chunk-TL3JMADI.js +0 -2391
  454. package/chunks/chunk-TLTLM47Y.js +0 -27
  455. package/chunks/chunk-TOZXS7ZY.js +0 -2369
  456. package/chunks/chunk-TSQVG7GA.js +0 -31
  457. package/chunks/chunk-TXOUGP37.js +0 -62
  458. package/chunks/chunk-TYJOCMG7.js +0 -37
  459. package/chunks/chunk-U32YPAPW.js +0 -2369
  460. package/chunks/chunk-U6W7BPH4.js +0 -2369
  461. package/chunks/chunk-U6YRINXJ.js +0 -22
  462. package/chunks/chunk-UBFLFJMH.js +0 -37
  463. package/chunks/chunk-UDY37VIJ.js +0 -22
  464. package/chunks/chunk-UFKH5WD2.js +0 -21
  465. package/chunks/chunk-UG36UPJK.js +0 -31
  466. package/chunks/chunk-UHH75BZP.js +0 -56
  467. package/chunks/chunk-UL6OZKRF.js +0 -20
  468. package/chunks/chunk-UMJX4S4M.js +0 -56
  469. package/chunks/chunk-UODICVLG.js +0 -173
  470. package/chunks/chunk-UT75PSLP.js +0 -20
  471. package/chunks/chunk-UXM54YBI.js +0 -68
  472. package/chunks/chunk-VDNIN3V5.js +0 -23
  473. package/chunks/chunk-VEKKX6Z5.js +0 -173
  474. package/chunks/chunk-VH4FK3TX.js +0 -31
  475. package/chunks/chunk-VHCD3Z4T.js +0 -20
  476. package/chunks/chunk-VHFMQI7Z.js +0 -20
  477. package/chunks/chunk-VKURVIRV.js +0 -28
  478. package/chunks/chunk-VLHSIIPO.js +0 -20
  479. package/chunks/chunk-VP3Y6EMX.js +0 -190
  480. package/chunks/chunk-VQEP2EQF.js +0 -100
  481. package/chunks/chunk-VV35APGM.js +0 -2369
  482. package/chunks/chunk-VV72XGJJ.js +0 -58
  483. package/chunks/chunk-VXSOUAUT.js +0 -100
  484. package/chunks/chunk-VZQ4WCBH.js +0 -2391
  485. package/chunks/chunk-W4OFHYWN.js +0 -1108
  486. package/chunks/chunk-W6BFU7Y5.js +0 -56
  487. package/chunks/chunk-W7YBGJ4H.js +0 -28
  488. package/chunks/chunk-WABWQCFE.js +0 -127
  489. package/chunks/chunk-WC2LQPQP.js +0 -26
  490. package/chunks/chunk-WDWDHE7I.js +0 -31
  491. package/chunks/chunk-WFED6NDN.js +0 -28
  492. package/chunks/chunk-WJMBLQRX.js +0 -29
  493. package/chunks/chunk-WKW34B3A.js +0 -2369
  494. package/chunks/chunk-WLHJM76F.js +0 -2369
  495. package/chunks/chunk-WNLP6R5Y.js +0 -191
  496. package/chunks/chunk-WO2R3QFK.js +0 -20
  497. package/chunks/chunk-WP7L5ZFP.js +0 -173
  498. package/chunks/chunk-WTAMA5WX.js +0 -37
  499. package/chunks/chunk-WTPUSGMJ.js +0 -104
  500. package/chunks/chunk-WXXW6YLW.js +0 -127
  501. package/chunks/chunk-WYY3N6PO.js +0 -2369
  502. package/chunks/chunk-WZC2HZ5W.js +0 -27
  503. package/chunks/chunk-X4XXZ44B.js +0 -37
  504. package/chunks/chunk-X5HMM3LD.js +0 -35
  505. package/chunks/chunk-XCBH6NLF.js +0 -42
  506. package/chunks/chunk-XDYRPW7Q.js +0 -37
  507. package/chunks/chunk-XDZD6C76.js +0 -37
  508. package/chunks/chunk-XETVQW6S.js +0 -56
  509. package/chunks/chunk-XGOWRHVM.js +0 -37
  510. package/chunks/chunk-XH6TZMNR.js +0 -211
  511. package/chunks/chunk-XI2XIH6L.js +0 -2391
  512. package/chunks/chunk-XK2PI5WI.js +0 -31
  513. package/chunks/chunk-XL7AQDAE.js +0 -31
  514. package/chunks/chunk-XPRBKRSB.js +0 -37
  515. package/chunks/chunk-XRUSQWPJ.js +0 -173
  516. package/chunks/chunk-XSOBXDGQ.js +0 -191
  517. package/chunks/chunk-XT6XKGKK.js +0 -20
  518. package/chunks/chunk-XWLQR4UY.js +0 -25
  519. package/chunks/chunk-XWU7O5KD.js +0 -211
  520. package/chunks/chunk-XXDQWJP3.js +0 -56
  521. package/chunks/chunk-YBYXIDGC.js +0 -20
  522. package/chunks/chunk-YCZQAM7E.js +0 -2407
  523. package/chunks/chunk-YDNQHZRS.js +0 -31
  524. package/chunks/chunk-YGJHHWBJ.js +0 -37
  525. package/chunks/chunk-YHT73ULP.js +0 -2369
  526. package/chunks/chunk-YKECGAIJ.js +0 -37
  527. package/chunks/chunk-YMNBUQVR.js +0 -2420
  528. package/chunks/chunk-YO5KOEJF.js +0 -27
  529. package/chunks/chunk-YRKWVEWA.js +0 -20
  530. package/chunks/chunk-YRSNU7IX.js +0 -49
  531. package/chunks/chunk-YTS4JME6.js +0 -2369
  532. package/chunks/chunk-YVHJ7TUJ.js +0 -211
  533. package/chunks/chunk-YVSS4IT2.js +0 -37
  534. package/chunks/chunk-YYE7TVB6.js +0 -2420
  535. package/chunks/chunk-YYYRFMNZ.js +0 -191
  536. package/chunks/chunk-YZDZQ7AZ.js +0 -37
  537. package/chunks/chunk-Z352MSRL.js +0 -127
  538. package/chunks/chunk-Z4SQDCFG.js +0 -37
  539. package/chunks/chunk-ZCPGE7H7.js +0 -64
  540. package/chunks/chunk-ZGYU6F7Q.js +0 -13
  541. package/chunks/chunk-ZLQUBC5B.js +0 -31
  542. package/chunks/chunk-ZNPRJEP5.js +0 -28
  543. package/chunks/chunk-ZS5OHINP.js +0 -31
  544. package/index.d.ts +0 -3
  545. package/node/encryption/buffer/index.d.ts +0 -56
  546. package/node/encryption/buffer/index.js +0 -16
  547. package/node/encryption/generate-key/index.d.ts +0 -16
  548. package/node/encryption/generate-key/index.js +0 -7
  549. package/node/encryption/uint8-array/index.d.ts +0 -57
  550. package/node/encryption/uint8-array/index.js +0 -15
  551. package/chunks/{chunk-3DJI3JTM.js → chunk-3CQON3DO.js} +9 -9
  552. package/chunks/{chunk-EZFHN4ST.js → chunk-6V7VQ32U.js} +6 -6
  553. package/chunks/{chunk-OPO25SDO.js → chunk-DW4ILX77.js} +3 -3
  554. package/chunks/{chunk-VKNWPV5T.js → chunk-FIVB3FON.js} +3 -3
  555. package/chunks/{chunk-4EFX53Y4.js → chunk-FVFYLT5T.js} +5 -5
  556. package/chunks/{chunk-222367I5.js → chunk-HUT6SDJH.js} +14 -14
  557. package/chunks/{chunk-22Q6VKLR.js → chunk-HZGGYNZ5.js} +11 -11
  558. package/chunks/{chunk-GBBM5DLR.js → chunk-JSKVNOTW.js} +3 -3
  559. package/chunks/{chunk-AE6L2HYA.js → chunk-K4Q2MG65.js} +3 -3
  560. package/chunks/{chunk-EDI5T3GL.js → chunk-KDTKA3SG.js} +6 -6
  561. package/chunks/{chunk-GPAZDWEQ.js → chunk-KTK3BMX2.js} +8 -8
  562. package/chunks/{chunk-EFLJJ5VF.js → chunk-VWLJ5IEE.js} +3 -3
  563. package/chunks/{chunk-44BKJR2T.js → chunk-X24BLY5H.js} +9 -9
  564. package/chunks/{chunk-KTB7NX4Q.js → chunk-XAZT2MME.js} +3 -3
@@ -1,209 +0,0 @@
1
- import {
2
- thumbnails_exports
3
- } from "./chunk-PPK2JEO6.js";
4
- import {
5
- require_lib
6
- } from "./chunk-53MBV4TG.js";
7
- import {
8
- __toESM
9
- } from "./chunk-XCBH6NLF.js";
10
-
11
- // src/node/images/transform/area-composition/index.ts
12
- var import_sharp = __toESM(require_lib(), 1);
13
- var DEFAULT_GENERATE_OPTIONS = {
14
- formats: ["jpeg"],
15
- nbOutputs: 1,
16
- imagePosition: "center",
17
- imageOccupation: 60,
18
- dimensions: { w: 300, h: 500 },
19
- palette: ["default"],
20
- maxPaletteDensity: 100,
21
- extractPaletteDensity: 8,
22
- lightenIntensity: 20,
23
- saturateIntensity: 20,
24
- colorFilterApply: "all",
25
- tileDensityA: { min: 1, max: 1 },
26
- tileDensityB: { min: 1, max: 1 },
27
- tileCoverage: 50,
28
- tileFormat: "default",
29
- tileXEasing: "none",
30
- tileYEasing: "none"
31
- };
32
- async function areaCompose(inputSharp, customOptions) {
33
- const options = getOptions(customOptions);
34
- const inputMetadata = await inputSharp.metadata();
35
- const initialDimensions = {
36
- w: inputMetadata.width || 0,
37
- h: inputMetadata.height || 0
38
- };
39
- const inputBufferData = await inputSharp.raw().toBuffer();
40
- const imagePalette = thumbnails_exports.Colors.extractPaletteFromImage(inputBufferData, initialDimensions, options);
41
- const composedPalette = composePalette(imagePalette, options.palette, options.maxPaletteDensity);
42
- inputSharp.png({ quality: 100 });
43
- const outputDimensions = {
44
- w: options.dimensions.w,
45
- h: options.dimensions.h
46
- };
47
- const resizeInputDimensions = getNewInputImageDimensions(outputDimensions, options.imageOccupation);
48
- const resizedInput = inputSharp.resize({
49
- width: resizeInputDimensions.w,
50
- height: resizeInputDimensions.h,
51
- fit: "contain",
52
- background: { r: 255, g: 255, b: 255, alpha: 0 }
53
- // Add a transparent background
54
- }).toFormat("png");
55
- const resizedInputPositions = getImagePositions(options.imagePosition, resizeInputDimensions, resizeInputDimensions, outputDimensions);
56
- const shapesLayout = thumbnails_exports.Layout.packAreasAndTiles(
57
- {
58
- ...resizedInputPositions,
59
- ...resizeInputDimensions
60
- },
61
- outputDimensions,
62
- options.tileCoverage,
63
- { A: options.tileDensityA, B: options.tileDensityB },
64
- { X: options.tileXEasing, Y: options.tileYEasing }
65
- );
66
- const sharpShapes = getSharpTilesInputs(shapesLayout, composedPalette);
67
- const sharpShapesForComposite = [];
68
- for await (const sharpShape of sharpShapes) {
69
- ;
70
- sharpShapesForComposite.push({
71
- input: await sharpShape.input.toFormat("png").toBuffer(),
72
- left: sharpShape.left,
73
- top: sharpShape.top
74
- });
75
- }
76
- const background = composedPalette[0] || [255, 255, 255];
77
- const outputSharp = await createSharpShape(outputDimensions, background).toFormat("webp");
78
- const composedSharp = outputSharp.composite([
79
- {
80
- input: await resizedInput.toFormat("webp").toBuffer(),
81
- /* Converting to png to handle alpha */
82
- left: Math.round(resizedInputPositions.x),
83
- top: Math.round(resizedInputPositions.y)
84
- },
85
- ...sharpShapesForComposite
86
- ]);
87
- return await composedSharp.flatten();
88
- }
89
- function getOptions(customOptions) {
90
- if (!customOptions) {
91
- return DEFAULT_GENERATE_OPTIONS;
92
- }
93
- ;
94
- const options = {
95
- ...DEFAULT_GENERATE_OPTIONS,
96
- ...customOptions
97
- };
98
- return options;
99
- }
100
- function getNewInputImageDimensions(formatDimensions, imageOccupation) {
101
- const placeRatio = imageOccupation / 100;
102
- return {
103
- w: Math.round(formatDimensions.w * placeRatio),
104
- h: Math.round(formatDimensions.h * placeRatio)
105
- };
106
- }
107
- function composePalette(palette, paletteOption, maxPaletteDensity) {
108
- let composedPalette = [];
109
- if (paletteOption.includes("default-lighten")) {
110
- composedPalette = [...composedPalette, ...palette.default.lighten];
111
- }
112
- if (paletteOption.includes("default-saturate")) {
113
- composedPalette = [...composedPalette, ...palette.default.saturate];
114
- }
115
- if (paletteOption.includes("complementary")) {
116
- composedPalette = [...composedPalette, ...palette.complementary.default];
117
- }
118
- if (paletteOption.includes("complementary-lighten")) {
119
- composedPalette = [...composedPalette, ...palette.complementary.lighten];
120
- }
121
- if (paletteOption.includes("complementary-saturate")) {
122
- composedPalette = [...composedPalette, ...palette.complementary.saturate];
123
- }
124
- if (paletteOption.includes("default") || !composedPalette.length) {
125
- composedPalette = [...composedPalette, ...palette.default.default];
126
- }
127
- const shuffledPalette = thumbnails_exports.Common.shuffleArray(composedPalette);
128
- const outputPalette = composedPalette.length > maxPaletteDensity ? shuffledPalette.splice(0, maxPaletteDensity) : shuffledPalette;
129
- return outputPalette;
130
- }
131
- function getImagePositions(position, resizedImageDimensions, containedImageDimensions, wrapperDimensions) {
132
- switch (position) {
133
- case "top-left":
134
- return thumbnails_exports.Layout.alignTopLeft(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
135
- case "top-center":
136
- return thumbnails_exports.Layout.alignTopCenter(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
137
- case "top-right":
138
- return thumbnails_exports.Layout.alignTopRight(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
139
- case "left-center":
140
- return thumbnails_exports.Layout.alignLeftCenter(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
141
- case "center":
142
- return thumbnails_exports.Layout.alignCenter(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
143
- case "right-center":
144
- return thumbnails_exports.Layout.alignRightCenter(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
145
- case "bottom-left":
146
- return thumbnails_exports.Layout.alignBottomLeft(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
147
- case "bottom-center":
148
- return thumbnails_exports.Layout.alignBottomCenter(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
149
- case "bottom-right":
150
- return thumbnails_exports.Layout.alignBottomRight(resizedImageDimensions, containedImageDimensions, wrapperDimensions);
151
- default:
152
- return { x: 0, y: 0 };
153
- }
154
- }
155
- function createSharpShape(dimensions, background) {
156
- return (0, import_sharp.default)(
157
- {
158
- create: getCreateSharpShape(dimensions, background)
159
- }
160
- );
161
- }
162
- function getCreateSharpShape(dimensions, background) {
163
- return {
164
- width: Math.round(dimensions.w),
165
- height: Math.round(dimensions.h),
166
- channels: 4,
167
- background: { r: background[0], g: background[1], b: background[2], alpha: 1 }
168
- };
169
- }
170
- function getSharpTilesInputs(tiles, palette) {
171
- let usedColorsIndexes = [];
172
- const paletteLength = palette.length;
173
- const getUnusedColorIndex = () => {
174
- const paletteIndex = thumbnails_exports.Common.randomInt(paletteLength);
175
- resetUnusedColorIndexesIfNeeded();
176
- if (usedColorsIndexes.includes(paletteIndex)) {
177
- return getUnusedColorIndex();
178
- }
179
- usedColorsIndexes.push(paletteIndex);
180
- return paletteIndex;
181
- };
182
- const resetUnusedColorIndexesIfNeeded = () => {
183
- if (usedColorsIndexes.length !== paletteLength) {
184
- return;
185
- }
186
- usedColorsIndexes = [];
187
- };
188
- return tiles.map((tile) => {
189
- const paletteIndex = getUnusedColorIndex();
190
- const color = palette[paletteIndex];
191
- if (!color) {
192
- return;
193
- }
194
- return {
195
- top: Math.round(tile.y),
196
- left: Math.round(tile.x),
197
- input: (0, import_sharp.default)(
198
- {
199
- create: getCreateSharpShape(tile, color)
200
- }
201
- )
202
- };
203
- }).filter((sharpShape) => sharpShape !== void 0);
204
- }
205
-
206
- export {
207
- areaCompose,
208
- getSharpTilesInputs
209
- };
@@ -1,211 +0,0 @@
1
- import {
2
- isArrayOf
3
- } from "./chunk-6RGDWX4A.js";
4
- import {
5
- RANDOM_PICK_ERR_SYMBOL,
6
- randomPick
7
- } from "./chunk-FCU6IHKD.js";
8
- import {
9
- make
10
- } from "./chunk-RLAZR3NL.js";
11
- import {
12
- findDuplicates
13
- } from "./chunk-YS6WMSWC.js";
14
- import {
15
- Random
16
- } from "./chunk-S32K7POB.js";
17
-
18
- // src/agnostic/arrays/index.tsx
19
- var Arrays;
20
- ((Arrays2) => {
21
- Arrays2.findDuplicates = findDuplicates;
22
- Arrays2.isArrayOf = isArrayOf;
23
- Arrays2.make = make;
24
- Arrays2.RANDOM_PICK_ERR_SYMBOL = RANDOM_PICK_ERR_SYMBOL;
25
- Arrays2.randomPick = randomPick;
26
- })(Arrays || (Arrays = {}));
27
-
28
- // src/agnostic/misc/lorem-ipsum/index.ts
29
- var LoremIpsum;
30
- ((LoremIpsum2) => {
31
- LoremIpsum2.words = [
32
- "a",
33
- "ac",
34
- "accumsan",
35
- "adipiscing",
36
- "aenean",
37
- "aliquam",
38
- "aliquet",
39
- "amet",
40
- "ante",
41
- "arcu",
42
- "at",
43
- "auctor",
44
- "augue",
45
- "bibendum",
46
- "blandit",
47
- "condimentum",
48
- "consectetur",
49
- "consequat",
50
- "convallis",
51
- "cras",
52
- "curabitur",
53
- "cursus",
54
- "dapibus",
55
- "diam",
56
- "dictum",
57
- "dictumst",
58
- "dignissim",
59
- "dolor",
60
- "donec",
61
- "dui",
62
- "duis",
63
- "efficitur",
64
- "egestas",
65
- "eget",
66
- "eleifend",
67
- "elementum",
68
- "elit",
69
- "enim",
70
- "erat",
71
- "eros",
72
- "est",
73
- "et",
74
- "eu",
75
- "euismod",
76
- "ex",
77
- "facilisis",
78
- "faucibus",
79
- "felis",
80
- "feugiat",
81
- "finibus",
82
- "fringilla",
83
- "fusce",
84
- "gravida",
85
- "habitasse",
86
- "hac",
87
- "hendrerit",
88
- "iaculis",
89
- "id",
90
- "imperdiet",
91
- "in",
92
- "integer",
93
- "interdum",
94
- "ipsum",
95
- "justo",
96
- "lacinia",
97
- "lacus",
98
- "laoreet",
99
- "lectus",
100
- "leo",
101
- "libero",
102
- "ligula",
103
- "lobortis",
104
- "lorem",
105
- "luctus",
106
- "maecenas",
107
- "magna",
108
- "malesuada",
109
- "massa",
110
- "mattis",
111
- "mauris",
112
- "maximus",
113
- "metus",
114
- "mi",
115
- "molestie",
116
- "mollis",
117
- "morbi",
118
- "nam",
119
- "nec",
120
- "neque",
121
- "nibh",
122
- "nisi",
123
- "nisl",
124
- "non",
125
- "nulla",
126
- "nullam",
127
- "nunc",
128
- "odio",
129
- "orci",
130
- "ornare",
131
- "pellentesque",
132
- "pharetra",
133
- "phasellus",
134
- "placerat",
135
- "platea",
136
- "porta",
137
- "porttitor",
138
- "posuere",
139
- "praesent",
140
- "pulvinar",
141
- "purus",
142
- "quam",
143
- "quis",
144
- "quisque",
145
- "risus",
146
- "rutrum",
147
- "sagittis",
148
- "sapien",
149
- "sed",
150
- "sem",
151
- "semper",
152
- "sit",
153
- "sodales",
154
- "sollicitudin",
155
- "suscipit",
156
- "suspendisse",
157
- "tellus",
158
- "tempor",
159
- "tempus",
160
- "tincidunt",
161
- "tortor",
162
- "tristique",
163
- "turpis",
164
- "ultrices",
165
- "ultricies",
166
- "urna",
167
- "ut",
168
- "vehicula",
169
- "vel",
170
- "velit",
171
- "venenatis",
172
- "vestibulum",
173
- "vitae",
174
- "vivamus",
175
- "viverra",
176
- "volutpat",
177
- "vulputate"
178
- ];
179
- LoremIpsum2.generateSentence = (wordCount) => {
180
- const resultArr = [];
181
- let currentWordCound = wordCount;
182
- for (let i = 0; i < currentWordCound; i++) {
183
- const picked = Arrays.randomPick(LoremIpsum2.words);
184
- if (typeof picked === "string") resultArr.push(picked);
185
- else {
186
- currentWordCound += 1;
187
- }
188
- }
189
- const [firstWord, ...otherWords] = resultArr;
190
- if (firstWord === void 0) return "";
191
- const capFirstLetter = firstWord?.charAt(0).toUpperCase();
192
- const restOfFirstWord = firstWord?.slice(1);
193
- const sentence = [
194
- `${capFirstLetter}${restOfFirstWord}`,
195
- ...otherWords
196
- ].join(" ");
197
- return `${sentence}.`;
198
- };
199
- LoremIpsum2.generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
200
- const sentences = [];
201
- for (let i = 0; i < sentencesCount; i++) {
202
- const length = Random.randomInt(maxSentenceLength, minSentenceLength) ?? 8;
203
- sentences.push((0, LoremIpsum2.generateSentence)(length));
204
- }
205
- return sentences;
206
- };
207
- })(LoremIpsum || (LoremIpsum = {}));
208
-
209
- export {
210
- LoremIpsum
211
- };
@@ -1,56 +0,0 @@
1
- import {
2
- upload
3
- } from "./chunk-KH5JTC2N.js";
4
- import {
5
- upload as upload2
6
- } from "./chunk-N5QAGJXV.js";
7
- import {
8
- upload as upload4
9
- } from "./chunk-AZLVQV5A.js";
10
- import {
11
- makeClient
12
- } from "./chunk-P3QFJTAE.js";
13
- import {
14
- s3IdentifierData
15
- } from "./chunk-CMWR77VW.js";
16
- import {
17
- upload as upload3
18
- } from "./chunk-AIESW26U.js";
19
- import {
20
- Outcome
21
- } from "./chunk-JMU5PDBD.js";
22
- import {
23
- __export
24
- } from "./chunk-WSFCRVEQ.js";
25
-
26
- // src/node/cloud-storage/operations/upload/index.ts
27
- var upload_exports = {};
28
- __export(upload_exports, {
29
- upload: () => upload5
30
- });
31
- import { Bucket } from "@google-cloud/storage";
32
- import { S3 } from "aws-sdk";
33
- import { Client as FtpClient } from "basic-ftp";
34
- import SftpClient from "ssh2-sftp-client";
35
- async function upload5(fileReadable, targetPath, endpointType, endpointIdentifier, credentials, client) {
36
- if (client === void 0) {
37
- const clientCreationOutcome = await makeClient(endpointType, endpointIdentifier, credentials);
38
- if (!clientCreationOutcome.success) return Outcome.makeFailure(clientCreationOutcome.error);
39
- client = clientCreationOutcome.payload;
40
- }
41
- if (endpointType === "gcs-bucket" /* GCS */ && client instanceof Bucket) return await upload(fileReadable, targetPath, client);
42
- if (endpointType === "s3-bucket" /* S3 */ && client instanceof S3) {
43
- const { bucketName } = s3IdentifierData(endpointIdentifier);
44
- if (bucketName === null) return Outcome.makeFailure("Invalid S3 bucket name");
45
- return await upload2(fileReadable, targetPath, bucketName, client);
46
- }
47
- if (endpointType === "ftp" /* FTP */ && client instanceof FtpClient) return await upload3(fileReadable, targetPath, client);
48
- if (endpointType === "ftps" /* FTPS */ && client instanceof FtpClient) return await upload3(fileReadable, targetPath, client);
49
- if (endpointType === "sftp" /* SFTP */ && client instanceof SftpClient) return await upload4(fileReadable, targetPath, client);
50
- return Outcome.makeFailure("Invalid endpoint or client type");
51
- }
52
-
53
- export {
54
- upload5 as upload,
55
- upload_exports
56
- };
@@ -1,6 +0,0 @@
1
- // src/node/images/exports/index.ts
2
- var exports_exports = {};
3
-
4
- export {
5
- exports_exports
6
- };
@@ -1,35 +0,0 @@
1
- import {
2
- register
3
- } from "./chunk-U6YRINXJ.js";
4
-
5
- // src/agnostic/html/selector-to-element/index.ts
6
- function selectorToElement(selector, documentObj) {
7
- const actualDocument = documentObj ?? window.document;
8
- if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "The optional second parameter expects a Document object");
9
- const tagRegexp = /^[A-Za-z]+/;
10
- const idRegexp = /#[A-Za-z]+[\w\-\:]*/;
11
- const classRegexp = /\.[A-Za-z]+[\w\-]*/;
12
- const attributeRegexp = /\[[A-Za-z]+[\w\-]*(="[\w\-]+")?\]/;
13
- const matchedTags = selector.match(tagRegexp) ?? [];
14
- const matchedIds = selector.match(idRegexp) ?? [];
15
- const matchedClasses = selector.match(classRegexp) ?? [];
16
- const matchedAttrs = selector.match(attributeRegexp) ?? [];
17
- const tag = matchedTags[matchedTags.length - 1] ?? "div";
18
- const id = matchedIds[matchedIds.length - 1] ?? null;
19
- const classes = matchedClasses.map((matchedClass) => matchedClass.replace(/^\./, ""));
20
- const attributes = matchedAttrs.map((matchedAttr) => matchedAttr.replace(/^\[/, "").replace(/\]$/, "").split("="));
21
- const element = actualDocument.createElement(tag);
22
- if (id !== null) {
23
- element.id = id;
24
- }
25
- element.classList.add(...classes);
26
- attributes.forEach(([name, value = ""]) => {
27
- if (name === void 0) return;
28
- element.setAttribute(name, value);
29
- });
30
- return element;
31
- }
32
-
33
- export {
34
- selectorToElement
35
- };
@@ -1,20 +0,0 @@
1
- // src/agnostic/html/replace-in-element/index.ts
2
- function replaceInElement(inputElement, replaceMap) {
3
- const outputElement = inputElement.cloneNode(true);
4
- const inputChildren = Array.from(inputElement.childNodes);
5
- inputChildren.forEach((inputChild) => {
6
- if (!(inputChild instanceof Element)) outputElement.appendChild(inputChild.cloneNode(true));
7
- const inputChildElement = inputChild;
8
- const replacedChildElement = replaceMap.get(inputChildElement);
9
- const deepReplacedChildElement = replaceInElement(
10
- replacedChildElement !== void 0 ? replacedChildElement : inputChildElement,
11
- replaceMap
12
- );
13
- outputElement.appendChild(deepReplacedChildElement.cloneNode(true));
14
- });
15
- return outputElement;
16
- }
17
-
18
- export {
19
- replaceInElement
20
- };