@design-edito/tools 0.1.51 → 0.1.53

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 (322) hide show
  1. package/agnostic/arrays/find-duplicates/index.js +1 -0
  2. package/agnostic/arrays/index.js +10 -9
  3. package/agnostic/arrays/is-array-of/index.js +1 -0
  4. package/agnostic/arrays/make/index.js +1 -0
  5. package/agnostic/arrays/random-pick/index.js +7 -6
  6. package/agnostic/arrays/shuffle/index.js +1 -0
  7. package/agnostic/booleans/index.js +1 -0
  8. package/agnostic/booleans/is-falsy/index.js +1 -0
  9. package/agnostic/css/bem/index.js +1 -0
  10. package/agnostic/css/generate-nice-color/index.js +1 -0
  11. package/agnostic/css/index.js +18 -17
  12. package/agnostic/css/is-valid-css-class-name/index.js +1 -0
  13. package/agnostic/css/styles-set/index.js +7 -6
  14. package/agnostic/errors/index.js +3 -2
  15. package/agnostic/errors/register/index.js +1 -0
  16. package/agnostic/errors/unknown-to-string/index.js +1 -0
  17. package/agnostic/html/get-node-ancestors/index.js +1 -0
  18. package/agnostic/html/get-position-inside-parent/index.js +1 -0
  19. package/agnostic/html/hyper-json/cast/index.js +3 -2
  20. package/agnostic/html/hyper-json/index.js +4 -3
  21. package/agnostic/html/hyper-json/method/index.js +1 -0
  22. package/agnostic/html/hyper-json/serialize/index.js +1 -0
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +3 -2
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +3 -2
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +3 -2
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +3 -2
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +3 -2
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +3 -2
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +3 -2
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +3 -2
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +3 -2
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +3 -2
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +3 -2
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +3 -2
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +3 -2
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +3 -2
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +3 -2
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +3 -2
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +3 -2
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +3 -2
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +3 -2
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +3 -2
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +3 -2
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +3 -2
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +3 -2
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +3 -2
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +3 -2
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +3 -2
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +3 -2
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +3 -2
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +3 -2
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +3 -2
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +3 -2
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +3 -2
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +3 -2
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +3 -2
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +3 -2
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +3 -2
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +3 -2
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +3 -2
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +3 -2
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +3 -2
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +3 -2
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +3 -2
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +3 -2
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +3 -2
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +3 -2
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +3 -2
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +3 -2
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +3 -2
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +3 -2
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +3 -2
  73. package/agnostic/html/hyper-json/smart-tags/index.js +1 -0
  74. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +1 -0
  75. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +1 -0
  76. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +3 -2
  77. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +3 -2
  78. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +3 -2
  79. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +3 -2
  80. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +3 -2
  81. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +3 -2
  82. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +1 -0
  83. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +3 -2
  84. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +3 -2
  85. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +3 -2
  86. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +3 -2
  87. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +3 -2
  88. package/agnostic/html/hyper-json/transformer/index.js +1 -0
  89. package/agnostic/html/hyper-json/tree/index.js +3 -2
  90. package/agnostic/html/hyper-json/types/index.js +1 -0
  91. package/agnostic/html/hyper-json/utils/index.js +3 -2
  92. package/agnostic/html/index.js +12 -11
  93. package/agnostic/html/insert-node/index.js +1 -0
  94. package/agnostic/html/placeholders/index.js +1 -0
  95. package/agnostic/html/replace-in-element/index.js +1 -0
  96. package/agnostic/html/sanitize/index.js +7 -6
  97. package/agnostic/html/selector-to-element/index.js +7 -6
  98. package/agnostic/html/string-to-nodes/index.js +8 -7
  99. package/agnostic/misc/assert/index.js +4 -3
  100. package/agnostic/misc/cast/index.js +1 -0
  101. package/agnostic/misc/crawler/index.js +1 -0
  102. package/agnostic/misc/crossenv/detect-runtime/index.js +1 -0
  103. package/agnostic/misc/crossenv/index.js +3 -2
  104. package/agnostic/misc/crossenv/types/index.js +1 -0
  105. package/agnostic/misc/crossenv/window/index.js +1 -0
  106. package/agnostic/misc/data-size/index.d.ts +14 -14
  107. package/agnostic/misc/data-size/index.js +2 -1
  108. package/agnostic/misc/elo/index.js +2 -0
  109. package/agnostic/misc/get-current-downlink/index.js +1 -0
  110. package/agnostic/misc/index.js +27 -26
  111. package/agnostic/misc/is-constructor-function/index.js +1 -0
  112. package/agnostic/misc/is-nullish/index.js +1 -0
  113. package/agnostic/misc/logs/index.js +1 -0
  114. package/agnostic/misc/logs/logger/index.js +1 -0
  115. package/agnostic/misc/logs/make-text-block/index.js +1 -0
  116. package/agnostic/misc/logs/styles/index.js +1 -0
  117. package/agnostic/misc/lorem-ipsum/index.js +14 -13
  118. package/agnostic/misc/outcome/index.js +1 -0
  119. package/agnostic/numbers/absolute-modulo/index.js +1 -0
  120. package/agnostic/numbers/clamp/index.js +1 -0
  121. package/agnostic/numbers/index.js +7 -6
  122. package/agnostic/numbers/interpolate/index.js +1 -0
  123. package/agnostic/numbers/responsive-harmonics/index.js +1 -0
  124. package/agnostic/numbers/round/index.js +1 -0
  125. package/agnostic/objects/deep-get-property/index.js +1 -0
  126. package/agnostic/objects/enums/index.js +1 -0
  127. package/agnostic/objects/enums/is-in-enum/index.js +1 -0
  128. package/agnostic/objects/flatten-getters/index.js +1 -0
  129. package/agnostic/objects/index.js +12 -11
  130. package/agnostic/objects/is-object/index.js +1 -0
  131. package/agnostic/objects/is-record/index.js +1 -0
  132. package/agnostic/objects/record-format/index.js +1 -0
  133. package/agnostic/objects/record-map/index.js +1 -0
  134. package/agnostic/objects/validation/index.js +1 -0
  135. package/agnostic/optim/index.js +1 -0
  136. package/agnostic/optim/memoize/index.js +1 -0
  137. package/agnostic/optim/throttle-debounce/index.js +1 -0
  138. package/agnostic/random/hex-char/index.js +1 -0
  139. package/agnostic/random/index.js +1 -0
  140. package/agnostic/random/random/index.js +1 -0
  141. package/agnostic/random/uuid/index.js +1 -0
  142. package/agnostic/regexps/index.js +2 -0
  143. package/agnostic/strings/char-codes/index.js +1 -0
  144. package/agnostic/strings/index.js +7 -6
  145. package/agnostic/strings/matches/index.js +1 -0
  146. package/agnostic/strings/normalize-indent/index.js +1 -0
  147. package/agnostic/strings/replace-all/index.js +1 -0
  148. package/agnostic/strings/to-alphanum/index.js +1 -0
  149. package/agnostic/strings/trim/index.js +1 -0
  150. package/agnostic/time/dates/format-date/index.js +1 -0
  151. package/agnostic/time/dates/index.js +1 -0
  152. package/agnostic/time/duration/index.js +1 -0
  153. package/agnostic/time/index.js +1 -0
  154. package/agnostic/time/timeout/index.js +1 -0
  155. package/agnostic/time/transitions/index.js +1 -0
  156. package/agnostic/time/wait/index.js +1 -0
  157. package/chunks/chunk-2KCKWG7R.js +104 -0
  158. package/chunks/chunk-2UJYUMTT.js +37 -0
  159. package/chunks/chunk-365LSZZ7.js +37 -0
  160. package/chunks/chunk-4FOK7DUZ.js +35 -0
  161. package/chunks/chunk-4LCL2RIC.js +209 -0
  162. package/chunks/chunk-4WOAFIVN.js +31 -0
  163. package/chunks/chunk-53MBV4TG.js +6212 -0
  164. package/chunks/chunk-57YCNOX7.js +15 -0
  165. package/chunks/chunk-5QVKJGTN.js +95 -0
  166. package/chunks/chunk-5ZTW4PHE.js +173 -0
  167. package/chunks/chunk-6GZXU2Z3.js +191 -0
  168. package/chunks/chunk-7QIYI4CK.js +209 -0
  169. package/chunks/chunk-AF2MI5O5.js +29 -0
  170. package/chunks/chunk-ARDAQZRR.js +239 -0
  171. package/chunks/chunk-BLAAWANI.js +191 -0
  172. package/chunks/chunk-BV67SWXG.js +20 -0
  173. package/chunks/chunk-CIJQHLIW.js +31 -0
  174. package/chunks/chunk-CRGU2EHQ.js +31 -0
  175. package/chunks/chunk-DHMARF6D.js +62 -0
  176. package/chunks/chunk-DHWHB53F.js +191 -0
  177. package/chunks/chunk-DMR2WE3C.js +62 -0
  178. package/chunks/chunk-DPBYDWV3.js +2369 -0
  179. package/chunks/chunk-ECKOTCS4.js +2369 -0
  180. package/chunks/chunk-EEIJDUNV.js +209 -0
  181. package/chunks/chunk-EIU72AEZ.js +31 -0
  182. package/chunks/chunk-F5GXXF3A.js +31 -0
  183. package/chunks/chunk-FG53JEP2.js +31 -0
  184. package/chunks/chunk-FTIDPZZ5.js +209 -0
  185. package/chunks/chunk-GARJTJ6V.js +6 -0
  186. package/chunks/chunk-GL54CDM2.js +20 -0
  187. package/chunks/chunk-GNZY3ZTH.js +14 -0
  188. package/chunks/chunk-GQMFBT5T.js +191 -0
  189. package/chunks/chunk-GWXVHCAB.js +31 -0
  190. package/chunks/chunk-I2ILSLBK.js +32 -0
  191. package/chunks/chunk-IGHRNHVK.js +16 -0
  192. package/chunks/chunk-IOWZMFCU.js +28 -0
  193. package/chunks/chunk-IPON4W2H.js +31 -0
  194. package/chunks/chunk-IUFAHY2R.js +38 -0
  195. package/chunks/chunk-JBSS64SA.js +6 -0
  196. package/chunks/chunk-JRXTMXKV.js +15967 -0
  197. package/chunks/chunk-KEYRP27F.js +191 -0
  198. package/chunks/chunk-KYMCGWPM.js +31 -0
  199. package/chunks/chunk-L5JWJRZ7.js +484 -0
  200. package/chunks/chunk-L7EUEQZP.js +0 -0
  201. package/chunks/chunk-LAA2DQDK.js +31 -0
  202. package/chunks/chunk-LATEK24U.js +31 -0
  203. package/chunks/chunk-LDLSU4OG.js +191 -0
  204. package/chunks/chunk-LWWXPVXY.js +25173 -0
  205. package/chunks/chunk-MMPJODO2.js +31 -0
  206. package/chunks/chunk-MY4VMHSH.js +191 -0
  207. package/chunks/chunk-MZ2RAM5Y.js +62 -0
  208. package/chunks/chunk-NGYJGQT3.js +25002 -0
  209. package/chunks/chunk-NIOOIUSD.js +104 -0
  210. package/chunks/chunk-NLHFSJYR.js +15 -0
  211. package/chunks/chunk-NQ5ESZNO.js +191 -0
  212. package/chunks/chunk-O6NULFZI.js +37 -0
  213. package/chunks/chunk-OVMNSJOW.js +6 -0
  214. package/chunks/chunk-PPK2JEO6.js +28 -0
  215. package/chunks/chunk-PVHLWKA6.js +31 -0
  216. package/chunks/chunk-QMWX2A56.js +56 -0
  217. package/chunks/chunk-QPBY235R.js +239 -0
  218. package/chunks/chunk-REBANVPP.js +104 -0
  219. package/chunks/chunk-RSMUYH5H.js +31 -0
  220. package/chunks/chunk-RTFKMYT7.js +2369 -0
  221. package/chunks/chunk-RVVJ4QD4.js +173 -0
  222. package/chunks/chunk-TSQVG7GA.js +31 -0
  223. package/chunks/chunk-TXOUGP37.js +62 -0
  224. package/chunks/chunk-UG36UPJK.js +31 -0
  225. package/chunks/chunk-UXM54YBI.js +68 -0
  226. package/chunks/chunk-VHFMQI7Z.js +20 -0
  227. package/chunks/chunk-VP3Y6EMX.js +190 -0
  228. package/chunks/chunk-WLHJM76F.js +2369 -0
  229. package/chunks/chunk-WNLP6R5Y.js +191 -0
  230. package/chunks/chunk-WQKFVIUF.js +37 -0
  231. package/chunks/chunk-WSFCRVEQ.js +9 -0
  232. package/chunks/chunk-WTPUSGMJ.js +104 -0
  233. package/chunks/chunk-XCBH6NLF.js +42 -0
  234. package/chunks/chunk-XETVQW6S.js +56 -0
  235. package/chunks/chunk-XT6XKGKK.js +20 -0
  236. package/chunks/chunk-YDNQHZRS.js +31 -0
  237. package/chunks/chunk-YHT73ULP.js +2369 -0
  238. package/chunks/chunk-YRSNU7IX.js +49 -0
  239. package/chunks/chunk-YVSS4IT2.js +37 -0
  240. package/chunks/chunk-YZDZQ7AZ.js +37 -0
  241. package/chunks/chunk-Z4SQDCFG.js +37 -0
  242. package/chunks/chunk-ZS5OHINP.js +31 -0
  243. package/components/Comp/index.js +2 -0
  244. package/node/@design-edito/index.d.ts +2 -0
  245. package/node/@design-edito/index.js +12 -0
  246. package/node/@design-edito/thumbnails/colors/index.d.ts +35 -0
  247. package/node/@design-edito/thumbnails/colors/index.js +29 -0
  248. package/node/@design-edito/thumbnails/common/index.d.ts +5 -0
  249. package/node/@design-edito/thumbnails/common/index.js +15 -0
  250. package/node/@design-edito/thumbnails/easings/index.d.ts +8 -0
  251. package/node/@design-edito/thumbnails/easings/index.js +21 -0
  252. package/node/@design-edito/thumbnails/index.d.ts +5 -0
  253. package/node/@design-edito/thumbnails/index.js +20 -0
  254. package/node/@design-edito/thumbnails/layout/index.d.ts +63 -0
  255. package/node/@design-edito/thumbnails/layout/index.js +31 -0
  256. package/node/@express/@multer/index.d.ts +22 -0
  257. package/node/@express/@multer/index.js +9 -0
  258. package/node/@express/index.d.ts +2 -0
  259. package/node/@express/index.js +9 -0
  260. package/node/@google-cloud/index.d.ts +2 -0
  261. package/node/@google-cloud/index.js +24 -0
  262. package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +18 -0
  263. package/node/@google-cloud/storage/bucket/get-metadata/index.js +9 -0
  264. package/node/@google-cloud/storage/bucket/index.d.ts +3 -0
  265. package/node/@google-cloud/storage/bucket/index.js +14 -0
  266. package/node/@google-cloud/storage/bucket/list/index.d.ts +17 -0
  267. package/node/@google-cloud/storage/bucket/list/index.js +9 -0
  268. package/node/@google-cloud/storage/file/copy/index.d.ts +21 -0
  269. package/node/@google-cloud/storage/file/copy/index.js +9 -0
  270. package/node/@google-cloud/storage/file/download/index.d.ts +20 -0
  271. package/node/@google-cloud/storage/file/download/index.js +9 -0
  272. package/node/@google-cloud/storage/file/erase/index.d.ts +20 -0
  273. package/node/@google-cloud/storage/file/erase/index.js +9 -0
  274. package/node/@google-cloud/storage/file/exists/index.d.ts +19 -0
  275. package/node/@google-cloud/storage/file/exists/index.js +9 -0
  276. package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +23 -0
  277. package/node/@google-cloud/storage/file/generate-signed-url/index.js +9 -0
  278. package/node/@google-cloud/storage/file/get-metadata/index.d.ts +22 -0
  279. package/node/@google-cloud/storage/file/get-metadata/index.js +9 -0
  280. package/node/@google-cloud/storage/file/get-permissions/index.d.ts +19 -0
  281. package/node/@google-cloud/storage/file/get-permissions/index.js +9 -0
  282. package/node/@google-cloud/storage/file/index.d.ts +12 -0
  283. package/node/@google-cloud/storage/file/index.js +50 -0
  284. package/node/@google-cloud/storage/file/move/index.d.ts +24 -0
  285. package/node/@google-cloud/storage/file/move/index.js +9 -0
  286. package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +26 -0
  287. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +12 -0
  288. package/node/@google-cloud/storage/file/update-metadata/index.d.ts +24 -0
  289. package/node/@google-cloud/storage/file/update-metadata/index.js +9 -0
  290. package/node/@google-cloud/storage/file/upload/index.d.ts +21 -0
  291. package/node/@google-cloud/storage/file/upload/index.js +9 -0
  292. package/node/@google-cloud/storage/index.d.ts +3 -0
  293. package/node/@google-cloud/storage/index.js +27 -0
  294. package/node/encryption/buffer/index.d.ts +55 -0
  295. package/node/encryption/buffer/index.js +16 -0
  296. package/node/encryption/generate-key/index.d.ts +16 -0
  297. package/node/encryption/generate-key/index.js +7 -0
  298. package/node/encryption/index.d.ts +5 -0
  299. package/node/encryption/index.js +29 -0
  300. package/node/encryption/uint8-array/index.d.ts +57 -0
  301. package/node/encryption/uint8-array/index.js +15 -0
  302. package/node/files/index.d.ts +4 -6
  303. package/node/files/index.js +7 -7
  304. package/node/files/is-in-directory/index.js +1 -0
  305. package/node/files/read-write/index.d.ts +1 -1
  306. package/node/files/read-write/index.js +1 -0
  307. package/node/files/subpaths/index.js +1 -0
  308. package/node/images/exports/index.d.ts +15 -0
  309. package/node/images/exports/index.js +11 -0
  310. package/node/images/index.d.ts +4 -0
  311. package/node/images/index.js +24 -0
  312. package/node/images/prepare/index.d.ts +17 -0
  313. package/node/images/prepare/index.js +22 -0
  314. package/node/images/transform/area-composition/index.d.ts +60 -0
  315. package/node/images/transform/area-composition/index.js +16 -0
  316. package/node/images/transform/index.d.ts +30 -0
  317. package/node/images/transform/index.js +17 -0
  318. package/node/index.d.ts +8 -6
  319. package/node/process/index.d.ts +5 -7
  320. package/node/process/index.js +11 -9
  321. package/node/process/on-exit/index.js +1 -0
  322. package/package.json +15 -2
@@ -0,0 +1,173 @@
1
+ import {
2
+ Random
3
+ } from "./chunk-S32K7POB.js";
4
+ import {
5
+ register
6
+ } from "./chunk-7NO34XJI.js";
7
+
8
+ // src/agnostic/css/styles-set/index.tsx
9
+ import { Component } from "react";
10
+ import { createRoot as reactCreateRoot } from "react-dom/client";
11
+ import { Fragment, jsx } from "react/jsx-runtime";
12
+ var StylesSet = class _StylesSet {
13
+ static defaultPrivateIDAttribute = "data-styleset-private-id";
14
+ static defaultPublicIDAttribute = "data-styleset-public-id";
15
+ tagsPrivateIDAttribute = _StylesSet.defaultPrivateIDAttribute;
16
+ tagsPublicIDAttribute = _StylesSet.defaultPublicIDAttribute;
17
+ _items = /* @__PURE__ */ new Map();
18
+ get items() {
19
+ const sortedItemsArray = Array.from(this._items).map(([privateId, item]) => {
20
+ const targetPosition = this.getTargetPosition(privateId) ?? 0;
21
+ return { targetPosition, privateId, item };
22
+ }).sort((a, b) => a.targetPosition - b.targetPosition).map(({ item, privateId }) => [privateId, item]);
23
+ const sortedItemsMap = new Map(sortedItemsArray);
24
+ return sortedItemsMap;
25
+ }
26
+ getTargetPosition(privateId) {
27
+ const orderedStyles = Array.from(this._items).map(([privateId2, data]) => ({ privateId: privateId2, data })).sort((a, b) => {
28
+ const aPos = a.data.position ?? 0;
29
+ const bPos = b.data.position ?? 0;
30
+ return aPos - bPos;
31
+ });
32
+ const foundIndex = orderedStyles.findIndex((item) => item.privateId === privateId);
33
+ return foundIndex === -1 ? null : foundIndex;
34
+ }
35
+ setTagsPrivateIDAttribute(str) {
36
+ this.tagsPrivateIDAttribute = str;
37
+ return this;
38
+ }
39
+ setTagsPublicIDAttribute(str) {
40
+ this.tagsPublicIDAttribute = str;
41
+ return this;
42
+ }
43
+ getById(id) {
44
+ const found = Array.from(this._items.values()).find((entry) => entry.id === id);
45
+ if (found === void 0) return void 0;
46
+ return found;
47
+ }
48
+ generateUniquePrivateId() {
49
+ const existingIds = Array.from(this._items.keys());
50
+ const generated = Random.randomHash(12);
51
+ if (existingIds.includes(generated)) return this.generateUniquePrivateId();
52
+ return generated;
53
+ }
54
+ _rendered = /* @__PURE__ */ new Map();
55
+ render(element) {
56
+ const root = reactCreateRoot(element);
57
+ const items = this.items;
58
+ root.render(/* @__PURE__ */ jsx(
59
+ StylesSetComp,
60
+ {
61
+ items,
62
+ privateIDAttribute: this.tagsPrivateIDAttribute,
63
+ publicIDAttribute: this.tagsPublicIDAttribute
64
+ }
65
+ ));
66
+ this._rendered.set(element, root);
67
+ return this;
68
+ }
69
+ unmount(element) {
70
+ if (!this._rendered.has(element)) return this;
71
+ const root = this._rendered.get(element);
72
+ if (root === void 0) return this;
73
+ root.unmount();
74
+ this._rendered.delete(element);
75
+ return this;
76
+ }
77
+ updateRendered() {
78
+ const { items } = this;
79
+ this._rendered.forEach((root) => root.render(/* @__PURE__ */ jsx(
80
+ StylesSetComp,
81
+ {
82
+ items,
83
+ privateIDAttribute: this.tagsPrivateIDAttribute,
84
+ publicIDAttribute: this.tagsPublicIDAttribute
85
+ }
86
+ )));
87
+ return this;
88
+ }
89
+ addItem(item, abortIfIdExists = true) {
90
+ const existing = Array.from(this._items.entries()).map(([privateId2, entry]) => ({ privateId: privateId2, entry })).find(({ entry }) => entry.id !== void 0 && entry.id === item.id);
91
+ if (existing !== void 0) {
92
+ if (abortIfIdExists) return this;
93
+ this._items.delete(existing.privateId);
94
+ }
95
+ const privateId = this.generateUniquePrivateId();
96
+ this._items.set(privateId, item);
97
+ this.updateRendered();
98
+ return this;
99
+ }
100
+ removeItem(idOrPosition) {
101
+ if (typeof idOrPosition === "string") {
102
+ const existing = Array.from(this._items.entries()).map(([privateId, entry]) => ({ privateId, entry })).find(({ entry }) => entry.id !== void 0 && entry.id === idOrPosition);
103
+ if (existing === void 0) return this;
104
+ this._items.delete(existing.privateId);
105
+ this.updateRendered();
106
+ return this;
107
+ }
108
+ const toRemove = Array.from(this._items).map(([privateId, entry]) => ({ privateId, entry })).at(idOrPosition);
109
+ if (toRemove === void 0) return this;
110
+ this._items.delete(toRemove.privateId);
111
+ this.updateRendered();
112
+ return this;
113
+ }
114
+ async getDomString(documentObj) {
115
+ const actualDocumentObj = documentObj ?? window.document;
116
+ if (actualDocumentObj === null) throw register.getError("no-window-document-on-runtime" /* NO_DOCUMENT */);
117
+ return new Promise((resolve) => {
118
+ const tempElt = actualDocumentObj.createElement("div");
119
+ const tempRoot = reactCreateRoot(tempElt);
120
+ const { items } = this;
121
+ const onRendered = () => {
122
+ resolve(tempElt.innerHTML);
123
+ tempRoot.unmount();
124
+ tempElt.remove();
125
+ };
126
+ tempRoot.render(/* @__PURE__ */ jsx(
127
+ StylesSetComp,
128
+ {
129
+ items,
130
+ privateIDAttribute: this.tagsPrivateIDAttribute,
131
+ publicIDAttribute: this.tagsPublicIDAttribute,
132
+ onRendered
133
+ }
134
+ ));
135
+ });
136
+ }
137
+ };
138
+ var StylesSetComp = class extends Component {
139
+ componentDidMount() {
140
+ const { props } = this;
141
+ const { onRendered } = props;
142
+ if (onRendered !== void 0) onRendered();
143
+ }
144
+ componentDidUpdate() {
145
+ const { props } = this;
146
+ const { onRendered } = props;
147
+ if (onRendered !== void 0) onRendered();
148
+ }
149
+ render() {
150
+ const { props } = this;
151
+ const items = props.items ?? /* @__PURE__ */ new Map();
152
+ const pidAttr = props.privateIDAttribute ?? StylesSet.defaultPrivateIDAttribute;
153
+ const idAttr = props.publicIDAttribute ?? StylesSet.defaultPublicIDAttribute;
154
+ return /* @__PURE__ */ jsx(Fragment, { children: Array.from(items).map(([privateId, itemData]) => {
155
+ const customAttributes = { [pidAttr]: privateId, [idAttr]: itemData.id };
156
+ if (itemData.type === "url") return /* @__PURE__ */ jsx(
157
+ "link",
158
+ {
159
+ onLoad: itemData.onLoad,
160
+ rel: "stylesheet",
161
+ href: itemData.content,
162
+ ...customAttributes
163
+ }
164
+ );
165
+ return /* @__PURE__ */ jsx("style", { ...customAttributes, children: itemData.content });
166
+ }) });
167
+ }
168
+ };
169
+
170
+ export {
171
+ StylesSet,
172
+ StylesSetComp
173
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ isArrayOf
3
+ } from "./chunk-6RGDWX4A.js";
4
+ import {
5
+ findDuplicates
6
+ } from "./chunk-YS6WMSWC.js";
7
+ import {
8
+ make
9
+ } from "./chunk-RLAZR3NL.js";
10
+ import {
11
+ randomPick,
12
+ randomPickMany
13
+ } from "./chunk-WJMBLQRX.js";
14
+ import {
15
+ shuffle
16
+ } from "./chunk-VJJIYJMY.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.randomPick = randomPick;
25
+ Arrays2.randomPickMany = randomPickMany;
26
+ Arrays2.shuffle = shuffle;
27
+ })(Arrays || (Arrays = {}));
28
+
29
+ export {
30
+ Arrays
31
+ };
@@ -0,0 +1,62 @@
1
+ import {
2
+ areaCompose
3
+ } from "./chunk-4LCL2RIC.js";
4
+ import {
5
+ require_lib
6
+ } from "./chunk-53MBV4TG.js";
7
+ import {
8
+ __export,
9
+ __toESM
10
+ } from "./chunk-XCBH6NLF.js";
11
+
12
+ // src/node/images/transform/index.ts
13
+ var transform_exports = {};
14
+ __export(transform_exports, {
15
+ isOperation: () => isOperation,
16
+ transformImage: () => transformImage
17
+ });
18
+ var import_sharp = __toESM(require_lib(), 1);
19
+ async function transformImage(imageBuffer, operations, maxDimensions) {
20
+ const imageSharp = (0, import_sharp.default)(imageBuffer);
21
+ let imageSharped = imageSharp;
22
+ for await (const operation of operations) {
23
+ if (isOperation(operation)) {
24
+ imageSharped = await applyOperation(imageSharped, operation, maxDimensions);
25
+ }
26
+ }
27
+ return await imageSharped.toBuffer();
28
+ }
29
+ function isOperation(operation) {
30
+ return true;
31
+ }
32
+ async function applyOperation(imageSharp, operation, maxDimensions) {
33
+ switch (operation.name) {
34
+ case "rotate":
35
+ return imageSharp.rotate(operation.params.angle);
36
+ case "resize":
37
+ return imageSharp.resize({
38
+ width: operation.params.width,
39
+ height: operation.params.height,
40
+ fit: operation.params.fit || "cover",
41
+ background: { r: 255, g: 255, b: 255, alpha: 0 }
42
+ });
43
+ /* Adds a transparent background (necessary for png) */
44
+ case "area-composition":
45
+ const composedImage = await areaCompose(imageSharp, {
46
+ ...operation.params,
47
+ dimensions: {
48
+ w: maxDimensions.width,
49
+ h: maxDimensions.height
50
+ }
51
+ });
52
+ return composedImage;
53
+ default:
54
+ return imageSharp;
55
+ }
56
+ }
57
+
58
+ export {
59
+ transformImage,
60
+ isOperation,
61
+ transform_exports
62
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ Outcome
3
+ } from "./chunk-JMU5PDBD.js";
4
+ import {
5
+ unknownToString
6
+ } from "./chunk-FENXVJYO.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-XCBH6NLF.js";
10
+
11
+ // src/node/@google-cloud/storage/file/update-metadata/index.ts
12
+ var update_metadata_exports = {};
13
+ __export(update_metadata_exports, {
14
+ updateFileMetadata: () => updateFileMetadata
15
+ });
16
+ async function updateFileMetadata(sourcePath, bucket, metadata, options) {
17
+ const { fileOptions, metadataOptions } = options ?? {};
18
+ try {
19
+ const file = bucket.file(sourcePath, fileOptions);
20
+ await file.setMetadata(metadata, metadataOptions);
21
+ return Outcome.makeSuccess(true);
22
+ } catch (err) {
23
+ const errStr = unknownToString(err);
24
+ return Outcome.makeFailure(errStr);
25
+ }
26
+ }
27
+
28
+ export {
29
+ updateFileMetadata,
30
+ update_metadata_exports
31
+ };
@@ -0,0 +1,68 @@
1
+ import {
2
+ __export
3
+ } from "./chunk-XCBH6NLF.js";
4
+
5
+ // src/node/@design-edito/thumbnails/easings/index.ts
6
+ var easings_exports = {};
7
+ __export(easings_exports, {
8
+ ease: () => ease,
9
+ easeInOutQuad: () => easeInOutQuad,
10
+ easeInOutSine: () => easeInOutSine,
11
+ easeInQuad: () => easeInQuad,
12
+ easeInSine: () => easeInSine,
13
+ easeOutQuad: () => easeOutQuad,
14
+ easeOutSine: () => easeOutSine,
15
+ linear: () => linear
16
+ });
17
+ function ease(t, name) {
18
+ switch (name) {
19
+ case "in-sine":
20
+ return easeInSine(t);
21
+ case "out-sine":
22
+ return easeOutSine(t);
23
+ case "in-out-sine":
24
+ return easeInOutSine(t);
25
+ case "in-quad":
26
+ return easeInQuad(t);
27
+ case "out-quad":
28
+ return easeOutQuad(t);
29
+ case "in-out-quad":
30
+ return easeInOutQuad(t);
31
+ case "linear":
32
+ default:
33
+ return linear(t);
34
+ }
35
+ }
36
+ function linear(t) {
37
+ return t;
38
+ }
39
+ function easeOutSine(t) {
40
+ return Math.sin(t * (Math.PI / 2));
41
+ }
42
+ function easeInSine(t) {
43
+ return -1 * Math.cos(t * (Math.PI / 2)) + 1;
44
+ }
45
+ function easeInOutSine(t) {
46
+ return -0.5 * (Math.cos(Math.PI * t) - 1);
47
+ }
48
+ function easeInQuad(t) {
49
+ return t * t;
50
+ }
51
+ function easeOutQuad(t) {
52
+ return t * (2 - t);
53
+ }
54
+ function easeInOutQuad(t) {
55
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
56
+ }
57
+
58
+ export {
59
+ ease,
60
+ linear,
61
+ easeOutSine,
62
+ easeInSine,
63
+ easeInOutSine,
64
+ easeInQuad,
65
+ easeOutQuad,
66
+ easeInOutQuad,
67
+ easings_exports
68
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ get_metadata_exports
3
+ } from "./chunk-AF2MI5O5.js";
4
+ import {
5
+ list_exports
6
+ } from "./chunk-KYMCGWPM.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-XCBH6NLF.js";
10
+
11
+ // src/node/@google-cloud/storage/bucket/index.ts
12
+ var bucket_exports = {};
13
+ __export(bucket_exports, {
14
+ GetMetadata: () => get_metadata_exports,
15
+ List: () => list_exports
16
+ });
17
+
18
+ export {
19
+ bucket_exports
20
+ };
@@ -0,0 +1,190 @@
1
+ import {
2
+ __commonJS,
3
+ __require
4
+ } from "./chunk-XCBH6NLF.js";
5
+
6
+ // node_modules/inherits/inherits_browser.js
7
+ var require_inherits_browser = __commonJS({
8
+ "node_modules/inherits/inherits_browser.js"(exports, module) {
9
+ if (typeof Object.create === "function") {
10
+ module.exports = function inherits(ctor, superCtor) {
11
+ if (superCtor) {
12
+ ctor.super_ = superCtor;
13
+ ctor.prototype = Object.create(superCtor.prototype, {
14
+ constructor: {
15
+ value: ctor,
16
+ enumerable: false,
17
+ writable: true,
18
+ configurable: true
19
+ }
20
+ });
21
+ }
22
+ };
23
+ } else {
24
+ module.exports = function inherits(ctor, superCtor) {
25
+ if (superCtor) {
26
+ ctor.super_ = superCtor;
27
+ var TempCtor = function() {
28
+ };
29
+ TempCtor.prototype = superCtor.prototype;
30
+ ctor.prototype = new TempCtor();
31
+ ctor.prototype.constructor = ctor;
32
+ }
33
+ };
34
+ }
35
+ }
36
+ });
37
+
38
+ // node_modules/inherits/inherits.js
39
+ var require_inherits = __commonJS({
40
+ "node_modules/inherits/inherits.js"(exports, module) {
41
+ try {
42
+ util = __require("util");
43
+ if (typeof util.inherits !== "function") throw "";
44
+ module.exports = util.inherits;
45
+ } catch (e) {
46
+ module.exports = require_inherits_browser();
47
+ }
48
+ var util;
49
+ }
50
+ });
51
+
52
+ // node_modules/process-nextick-args/index.js
53
+ var require_process_nextick_args = __commonJS({
54
+ "node_modules/process-nextick-args/index.js"(exports, module) {
55
+ "use strict";
56
+ if (typeof process === "undefined" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0) {
57
+ module.exports = { nextTick };
58
+ } else {
59
+ module.exports = process;
60
+ }
61
+ function nextTick(fn, arg1, arg2, arg3) {
62
+ if (typeof fn !== "function") {
63
+ throw new TypeError('"callback" argument must be a function');
64
+ }
65
+ var len = arguments.length;
66
+ var args, i;
67
+ switch (len) {
68
+ case 0:
69
+ case 1:
70
+ return process.nextTick(fn);
71
+ case 2:
72
+ return process.nextTick(function afterTickOne() {
73
+ fn.call(null, arg1);
74
+ });
75
+ case 3:
76
+ return process.nextTick(function afterTickTwo() {
77
+ fn.call(null, arg1, arg2);
78
+ });
79
+ case 4:
80
+ return process.nextTick(function afterTickThree() {
81
+ fn.call(null, arg1, arg2, arg3);
82
+ });
83
+ default:
84
+ args = new Array(len - 1);
85
+ i = 0;
86
+ while (i < args.length) {
87
+ args[i++] = arguments[i];
88
+ }
89
+ return process.nextTick(function afterTick() {
90
+ fn.apply(null, args);
91
+ });
92
+ }
93
+ }
94
+ }
95
+ });
96
+
97
+ // node_modules/isarray/index.js
98
+ var require_isarray = __commonJS({
99
+ "node_modules/isarray/index.js"(exports, module) {
100
+ var toString = {}.toString;
101
+ module.exports = Array.isArray || function(arr) {
102
+ return toString.call(arr) == "[object Array]";
103
+ };
104
+ }
105
+ });
106
+
107
+ // node_modules/core-util-is/lib/util.js
108
+ var require_util = __commonJS({
109
+ "node_modules/core-util-is/lib/util.js"(exports) {
110
+ function isArray(arg) {
111
+ if (Array.isArray) {
112
+ return Array.isArray(arg);
113
+ }
114
+ return objectToString(arg) === "[object Array]";
115
+ }
116
+ exports.isArray = isArray;
117
+ function isBoolean(arg) {
118
+ return typeof arg === "boolean";
119
+ }
120
+ exports.isBoolean = isBoolean;
121
+ function isNull(arg) {
122
+ return arg === null;
123
+ }
124
+ exports.isNull = isNull;
125
+ function isNullOrUndefined(arg) {
126
+ return arg == null;
127
+ }
128
+ exports.isNullOrUndefined = isNullOrUndefined;
129
+ function isNumber(arg) {
130
+ return typeof arg === "number";
131
+ }
132
+ exports.isNumber = isNumber;
133
+ function isString(arg) {
134
+ return typeof arg === "string";
135
+ }
136
+ exports.isString = isString;
137
+ function isSymbol(arg) {
138
+ return typeof arg === "symbol";
139
+ }
140
+ exports.isSymbol = isSymbol;
141
+ function isUndefined(arg) {
142
+ return arg === void 0;
143
+ }
144
+ exports.isUndefined = isUndefined;
145
+ function isRegExp(re) {
146
+ return objectToString(re) === "[object RegExp]";
147
+ }
148
+ exports.isRegExp = isRegExp;
149
+ function isObject(arg) {
150
+ return typeof arg === "object" && arg !== null;
151
+ }
152
+ exports.isObject = isObject;
153
+ function isDate(d) {
154
+ return objectToString(d) === "[object Date]";
155
+ }
156
+ exports.isDate = isDate;
157
+ function isError(e) {
158
+ return objectToString(e) === "[object Error]" || e instanceof Error;
159
+ }
160
+ exports.isError = isError;
161
+ function isFunction(arg) {
162
+ return typeof arg === "function";
163
+ }
164
+ exports.isFunction = isFunction;
165
+ function isPrimitive(arg) {
166
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
167
+ typeof arg === "undefined";
168
+ }
169
+ exports.isPrimitive = isPrimitive;
170
+ exports.isBuffer = __require("buffer").Buffer.isBuffer;
171
+ function objectToString(o) {
172
+ return Object.prototype.toString.call(o);
173
+ }
174
+ }
175
+ });
176
+
177
+ // node_modules/util-deprecate/node.js
178
+ var require_node = __commonJS({
179
+ "node_modules/util-deprecate/node.js"(exports, module) {
180
+ module.exports = __require("util").deprecate;
181
+ }
182
+ });
183
+
184
+ export {
185
+ require_process_nextick_args,
186
+ require_isarray,
187
+ require_util,
188
+ require_inherits,
189
+ require_node
190
+ };