@webexatech/plugin-collection-transfer 0.0.0-stage → 0.1.2

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 (213) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +201 -0
  3. package/README.md +149 -2
  4. package/client-v2.d.ts +2 -0
  5. package/client-v2.js +1 -0
  6. package/client.d.ts +2 -0
  7. package/client.js +1 -0
  8. package/dist/client/949.3230de7f57066bc7.js +10 -0
  9. package/dist/client/SettingsPage.d.ts +3 -0
  10. package/dist/client/index.d.ts +1 -0
  11. package/dist/client/index.js +10 -0
  12. package/dist/client/plugin.d.ts +5 -0
  13. package/dist/client-v2/907.bed81d14270e80c6.js +10 -0
  14. package/dist/client-v2/CollectionTransferSettings.d.ts +21 -0
  15. package/dist/client-v2/SettingsPage.d.ts +4 -0
  16. package/dist/client-v2/index.d.ts +1 -0
  17. package/dist/client-v2/index.js +10 -0
  18. package/dist/client-v2/locale.d.ts +7 -0
  19. package/dist/client-v2/plugin.d.ts +7 -0
  20. package/dist/externalVersion.js +24 -0
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.js +48 -0
  23. package/dist/locale/en-US.json +70 -0
  24. package/dist/locale/zh-CN.json +70 -0
  25. package/dist/node_modules/archiver/LICENSE +22 -0
  26. package/dist/node_modules/archiver/index.js +68 -0
  27. package/dist/node_modules/archiver/lib/core.js +974 -0
  28. package/dist/node_modules/archiver/lib/error.js +40 -0
  29. package/dist/node_modules/archiver/lib/plugins/json.js +110 -0
  30. package/dist/node_modules/archiver/lib/plugins/tar.js +167 -0
  31. package/dist/node_modules/archiver/lib/plugins/zip.js +120 -0
  32. package/dist/node_modules/archiver/node_modules/async/all.js +119 -0
  33. package/dist/node_modules/archiver/node_modules/async/allLimit.js +46 -0
  34. package/dist/node_modules/archiver/node_modules/async/allSeries.js +45 -0
  35. package/dist/node_modules/archiver/node_modules/async/any.js +122 -0
  36. package/dist/node_modules/archiver/node_modules/async/anyLimit.js +47 -0
  37. package/dist/node_modules/archiver/node_modules/async/anySeries.js +46 -0
  38. package/dist/node_modules/archiver/node_modules/async/apply.js +11 -0
  39. package/dist/node_modules/archiver/node_modules/async/applyEach.js +57 -0
  40. package/dist/node_modules/archiver/node_modules/async/applyEachSeries.js +37 -0
  41. package/dist/node_modules/archiver/node_modules/async/asyncify.js +118 -0
  42. package/dist/node_modules/archiver/node_modules/async/auto.js +333 -0
  43. package/dist/node_modules/archiver/node_modules/async/autoInject.js +182 -0
  44. package/dist/node_modules/archiver/node_modules/async/bower.json +17 -0
  45. package/dist/node_modules/archiver/node_modules/async/cargo.js +63 -0
  46. package/dist/node_modules/archiver/node_modules/async/cargoQueue.js +71 -0
  47. package/dist/node_modules/archiver/node_modules/async/compose.js +55 -0
  48. package/dist/node_modules/archiver/node_modules/async/concat.js +115 -0
  49. package/dist/node_modules/archiver/node_modules/async/concatLimit.js +60 -0
  50. package/dist/node_modules/archiver/node_modules/async/concatSeries.js +41 -0
  51. package/dist/node_modules/archiver/node_modules/async/constant.js +14 -0
  52. package/dist/node_modules/archiver/node_modules/async/detect.js +96 -0
  53. package/dist/node_modules/archiver/node_modules/async/detectLimit.js +48 -0
  54. package/dist/node_modules/archiver/node_modules/async/detectSeries.js +47 -0
  55. package/dist/node_modules/archiver/node_modules/async/dir.js +43 -0
  56. package/dist/node_modules/archiver/node_modules/async/dist/async.js +6062 -0
  57. package/dist/node_modules/archiver/node_modules/async/dist/async.min.js +1 -0
  58. package/dist/node_modules/archiver/node_modules/async/doDuring.js +68 -0
  59. package/dist/node_modules/archiver/node_modules/async/doUntil.js +46 -0
  60. package/dist/node_modules/archiver/node_modules/async/doWhilst.js +68 -0
  61. package/dist/node_modules/archiver/node_modules/async/during.js +78 -0
  62. package/dist/node_modules/archiver/node_modules/async/each.js +129 -0
  63. package/dist/node_modules/archiver/node_modules/async/eachLimit.js +50 -0
  64. package/dist/node_modules/archiver/node_modules/async/eachOf.js +185 -0
  65. package/dist/node_modules/archiver/node_modules/async/eachOfLimit.js +47 -0
  66. package/dist/node_modules/archiver/node_modules/async/eachOfSeries.js +39 -0
  67. package/dist/node_modules/archiver/node_modules/async/eachSeries.js +44 -0
  68. package/dist/node_modules/archiver/node_modules/async/ensureAsync.js +67 -0
  69. package/dist/node_modules/archiver/node_modules/async/every.js +119 -0
  70. package/dist/node_modules/archiver/node_modules/async/everyLimit.js +46 -0
  71. package/dist/node_modules/archiver/node_modules/async/everySeries.js +45 -0
  72. package/dist/node_modules/archiver/node_modules/async/filter.js +93 -0
  73. package/dist/node_modules/archiver/node_modules/async/filterLimit.js +45 -0
  74. package/dist/node_modules/archiver/node_modules/async/filterSeries.js +43 -0
  75. package/dist/node_modules/archiver/node_modules/async/find.js +96 -0
  76. package/dist/node_modules/archiver/node_modules/async/findLimit.js +48 -0
  77. package/dist/node_modules/archiver/node_modules/async/findSeries.js +47 -0
  78. package/dist/node_modules/archiver/node_modules/async/flatMap.js +115 -0
  79. package/dist/node_modules/archiver/node_modules/async/flatMapLimit.js +60 -0
  80. package/dist/node_modules/archiver/node_modules/async/flatMapSeries.js +41 -0
  81. package/dist/node_modules/archiver/node_modules/async/foldl.js +153 -0
  82. package/dist/node_modules/archiver/node_modules/async/foldr.js +41 -0
  83. package/dist/node_modules/archiver/node_modules/async/forEach.js +129 -0
  84. package/dist/node_modules/archiver/node_modules/async/forEachLimit.js +50 -0
  85. package/dist/node_modules/archiver/node_modules/async/forEachOf.js +185 -0
  86. package/dist/node_modules/archiver/node_modules/async/forEachOfLimit.js +47 -0
  87. package/dist/node_modules/archiver/node_modules/async/forEachOfSeries.js +39 -0
  88. package/dist/node_modules/archiver/node_modules/async/forEachSeries.js +44 -0
  89. package/dist/node_modules/archiver/node_modules/async/forever.js +68 -0
  90. package/dist/node_modules/archiver/node_modules/async/groupBy.js +108 -0
  91. package/dist/node_modules/archiver/node_modules/async/groupByLimit.js +71 -0
  92. package/dist/node_modules/archiver/node_modules/async/groupBySeries.js +36 -0
  93. package/dist/node_modules/archiver/node_modules/async/index.js +588 -0
  94. package/dist/node_modules/archiver/node_modules/async/inject.js +153 -0
  95. package/dist/node_modules/archiver/node_modules/async/internal/DoublyLinkedList.js +92 -0
  96. package/dist/node_modules/archiver/node_modules/async/internal/Heap.js +120 -0
  97. package/dist/node_modules/archiver/node_modules/async/internal/applyEach.js +29 -0
  98. package/dist/node_modules/archiver/node_modules/async/internal/asyncEachOfLimit.js +75 -0
  99. package/dist/node_modules/archiver/node_modules/async/internal/awaitify.js +28 -0
  100. package/dist/node_modules/archiver/node_modules/async/internal/breakLoop.js +10 -0
  101. package/dist/node_modules/archiver/node_modules/async/internal/consoleFunc.js +31 -0
  102. package/dist/node_modules/archiver/node_modules/async/internal/createTester.js +40 -0
  103. package/dist/node_modules/archiver/node_modules/async/internal/eachOfLimit.js +90 -0
  104. package/dist/node_modules/archiver/node_modules/async/internal/filter.js +55 -0
  105. package/dist/node_modules/archiver/node_modules/async/internal/getIterator.js +11 -0
  106. package/dist/node_modules/archiver/node_modules/async/internal/initialParams.js +14 -0
  107. package/dist/node_modules/archiver/node_modules/async/internal/isArrayLike.js +10 -0
  108. package/dist/node_modules/archiver/node_modules/async/internal/iterator.js +57 -0
  109. package/dist/node_modules/archiver/node_modules/async/internal/map.js +30 -0
  110. package/dist/node_modules/archiver/node_modules/async/internal/once.js +17 -0
  111. package/dist/node_modules/archiver/node_modules/async/internal/onlyOnce.js +15 -0
  112. package/dist/node_modules/archiver/node_modules/async/internal/parallel.js +34 -0
  113. package/dist/node_modules/archiver/node_modules/async/internal/promiseCallback.js +23 -0
  114. package/dist/node_modules/archiver/node_modules/async/internal/queue.js +294 -0
  115. package/dist/node_modules/archiver/node_modules/async/internal/range.js +14 -0
  116. package/dist/node_modules/archiver/node_modules/async/internal/reject.js +26 -0
  117. package/dist/node_modules/archiver/node_modules/async/internal/setImmediate.js +34 -0
  118. package/dist/node_modules/archiver/node_modules/async/internal/withoutIndex.js +10 -0
  119. package/dist/node_modules/archiver/node_modules/async/internal/wrapAsync.js +34 -0
  120. package/dist/node_modules/archiver/node_modules/async/log.js +41 -0
  121. package/dist/node_modules/archiver/node_modules/async/map.js +142 -0
  122. package/dist/node_modules/archiver/node_modules/async/mapLimit.js +45 -0
  123. package/dist/node_modules/archiver/node_modules/async/mapSeries.js +44 -0
  124. package/dist/node_modules/archiver/node_modules/async/mapValues.js +152 -0
  125. package/dist/node_modules/archiver/node_modules/async/mapValuesLimit.js +61 -0
  126. package/dist/node_modules/archiver/node_modules/async/mapValuesSeries.js +37 -0
  127. package/dist/node_modules/archiver/node_modules/async/memoize.js +91 -0
  128. package/dist/node_modules/archiver/node_modules/async/nextTick.js +52 -0
  129. package/dist/node_modules/archiver/node_modules/async/package.json +75 -0
  130. package/dist/node_modules/archiver/node_modules/async/parallel.js +180 -0
  131. package/dist/node_modules/archiver/node_modules/async/parallelLimit.js +41 -0
  132. package/dist/node_modules/archiver/node_modules/async/priorityQueue.js +60 -0
  133. package/dist/node_modules/archiver/node_modules/async/queue.js +24 -0
  134. package/dist/node_modules/archiver/node_modules/async/race.js +67 -0
  135. package/dist/node_modules/archiver/node_modules/async/reduce.js +153 -0
  136. package/dist/node_modules/archiver/node_modules/async/reduceRight.js +41 -0
  137. package/dist/node_modules/archiver/node_modules/async/reflect.js +78 -0
  138. package/dist/node_modules/archiver/node_modules/async/reflectAll.js +93 -0
  139. package/dist/node_modules/archiver/node_modules/async/reject.js +87 -0
  140. package/dist/node_modules/archiver/node_modules/async/rejectLimit.js +45 -0
  141. package/dist/node_modules/archiver/node_modules/async/rejectSeries.js +43 -0
  142. package/dist/node_modules/archiver/node_modules/async/retry.js +159 -0
  143. package/dist/node_modules/archiver/node_modules/async/retryable.js +77 -0
  144. package/dist/node_modules/archiver/node_modules/async/select.js +93 -0
  145. package/dist/node_modules/archiver/node_modules/async/selectLimit.js +45 -0
  146. package/dist/node_modules/archiver/node_modules/async/selectSeries.js +43 -0
  147. package/dist/node_modules/archiver/node_modules/async/seq.js +79 -0
  148. package/dist/node_modules/archiver/node_modules/async/series.js +186 -0
  149. package/dist/node_modules/archiver/node_modules/async/setImmediate.js +45 -0
  150. package/dist/node_modules/archiver/node_modules/async/some.js +122 -0
  151. package/dist/node_modules/archiver/node_modules/async/someLimit.js +47 -0
  152. package/dist/node_modules/archiver/node_modules/async/someSeries.js +46 -0
  153. package/dist/node_modules/archiver/node_modules/async/sortBy.js +190 -0
  154. package/dist/node_modules/archiver/node_modules/async/timeout.js +89 -0
  155. package/dist/node_modules/archiver/node_modules/async/times.js +50 -0
  156. package/dist/node_modules/archiver/node_modules/async/timesLimit.js +43 -0
  157. package/dist/node_modules/archiver/node_modules/async/timesSeries.js +32 -0
  158. package/dist/node_modules/archiver/node_modules/async/transform.js +173 -0
  159. package/dist/node_modules/archiver/node_modules/async/tryEach.js +78 -0
  160. package/dist/node_modules/archiver/node_modules/async/unmemoize.js +25 -0
  161. package/dist/node_modules/archiver/node_modules/async/until.js +61 -0
  162. package/dist/node_modules/archiver/node_modules/async/waterfall.js +105 -0
  163. package/dist/node_modules/archiver/node_modules/async/whilst.js +78 -0
  164. package/dist/node_modules/archiver/node_modules/async/wrapSync.js +118 -0
  165. package/dist/node_modules/archiver/node_modules/readable-stream/errors-browser.js +127 -0
  166. package/dist/node_modules/archiver/node_modules/readable-stream/errors.js +116 -0
  167. package/dist/node_modules/archiver/node_modules/readable-stream/experimentalWarning.js +17 -0
  168. package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  169. package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  170. package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  171. package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  172. package/dist/node_modules/archiver/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  173. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  174. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  175. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  176. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  177. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  178. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  179. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  180. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  181. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  182. package/dist/node_modules/archiver/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  183. package/dist/node_modules/archiver/node_modules/readable-stream/package.json +68 -0
  184. package/dist/node_modules/archiver/node_modules/readable-stream/readable-browser.js +9 -0
  185. package/dist/node_modules/archiver/node_modules/readable-stream/readable.js +16 -0
  186. package/dist/node_modules/archiver/node_modules/tar-stream/extract.js +257 -0
  187. package/dist/node_modules/archiver/node_modules/tar-stream/headers.js +295 -0
  188. package/dist/node_modules/archiver/node_modules/tar-stream/index.js +2 -0
  189. package/dist/node_modules/archiver/node_modules/tar-stream/pack.js +255 -0
  190. package/dist/node_modules/archiver/node_modules/tar-stream/package.json +58 -0
  191. package/dist/node_modules/archiver/node_modules/tar-stream/sandbox.js +11 -0
  192. package/dist/node_modules/archiver/package.json +1 -0
  193. package/dist/node_modules/yauzl/LICENSE +21 -0
  194. package/dist/node_modules/yauzl/fd-slicer.js +314 -0
  195. package/dist/node_modules/yauzl/index.js +1 -0
  196. package/dist/node_modules/yauzl/package.json +1 -0
  197. package/dist/server/exporter.d.ts +42 -0
  198. package/dist/server/exporter.js +311 -0
  199. package/dist/server/field-value-writer.d.ts +9 -0
  200. package/dist/server/field-value-writer.js +107 -0
  201. package/dist/server/importer.d.ts +138 -0
  202. package/dist/server/importer.js +842 -0
  203. package/dist/server/index.d.ts +1 -0
  204. package/dist/server/index.js +42 -0
  205. package/dist/server/package-format.d.ts +50 -0
  206. package/dist/server/package-format.js +115 -0
  207. package/dist/server/plugin.d.ts +6 -0
  208. package/dist/server/plugin.js +61 -0
  209. package/dist/server/resourcer.d.ts +14 -0
  210. package/dist/server/resourcer.js +144 -0
  211. package/package.json +54 -4
  212. package/server.d.ts +2 -0
  213. package/server.js +1 -0
@@ -0,0 +1 @@
1
+ (()=>{var e={794:(e,r,t)=>{var n=t(300).Buffer;var i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){i=new Int32Array(i)}function ensureBuffer(e){if(n.isBuffer(e)){return e}var r=typeof n.alloc==="function"&&typeof n.from==="function";if(typeof e==="number"){return r?n.alloc(e):new n(e)}else if(typeof e==="string"){return r?n.from(e):new n(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var r=ensureBuffer(4);r.writeInt32BE(e,0);return r}function _crc32(e,r){e=ensureBuffer(e);if(n.isBuffer(r)){r=r.readUInt32BE(0)}var t=~~r^-1;for(var o=0;o<e.length;o++){t=i[(t^e[o])&255]^t>>>8}return t^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},833:e=>{e.exports=Pend;function Pend(){this.pending=0;this.max=Infinity;this.listeners=[];this.waiting=[];this.error=null}Pend.prototype.go=function(e){if(this.pending<this.max){pendGo(this,e)}else{this.waiting.push(e)}};Pend.prototype.wait=function(e){if(this.pending===0){e(this.error)}else{this.listeners.push(e)}};Pend.prototype.hold=function(){return pendHold(this)};function pendHold(e){e.pending+=1;var r=false;return onCb;function onCb(t){if(r)throw new Error("callback called twice");r=true;e.error=e.error||t;e.pending-=1;if(e.waiting.length>0&&e.pending<e.max){pendGo(e,e.waiting.shift())}else if(e.pending===0){var n=e.listeners;e.listeners=[];n.forEach(cbListener)}}function cbListener(r){r(e.error)}}function pendGo(e,r){r(pendHold(e))}},276:(e,r,t)=>{var n=t(147);var i=t(837);var o=t(955);var a=o.Readable;var s=o.Writable;var f=o.PassThrough;var l=t(833);var d=t(361).EventEmitter;r.createFromBuffer=createFromBuffer;r.createFromFd=createFromFd;r.BufferSlicer=BufferSlicer;r.FdSlicer=FdSlicer;i.inherits(FdSlicer,d);function FdSlicer(e,r){r=r||{};d.call(this);this.fd=e;this.pend=new l;this.pend.max=1;this.refCount=0;this.autoClose=!!r.autoClose}FdSlicer.prototype.read=function(e,r,t,i,o){var a=this;a.pend.go((function(s){n.read(a.fd,e,r,t,i,(function(e,r,t){s();o(e,r,t)}))}))};FdSlicer.prototype.write=function(e,r,t,i,o){var a=this;a.pend.go((function(s){n.write(a.fd,e,r,t,i,(function(e,r,t){s();o(e,r,t)}))}))};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){n.close(e.fd,onCloseDone)}function onCloseDone(r){if(r){e.emit("error",r)}else{e.emit("close")}}};i.inherits(ReadStream,a);function ReadStream(e,r){r=r||{};a.call(this,r);this.context=e;this.context.ref();this.start=r.start||0;this.endOffset=r.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var r=this;if(r.destroyed)return;var t=Math.min(r._readableState.highWaterMark,e);if(r.endOffset!=null){t=Math.min(t,r.endOffset-r.pos)}if(t<=0){r.destroyed=true;r.push(null);r.context.unref();return}r.context.pend.go((function(e){if(r.destroyed)return e();var i=Buffer.allocUnsafe(t);n.read(r.context.fd,i,0,t,r.pos,(function(t,n){if(t){r.destroy(t)}else if(n===0){r.destroyed=true;r.push(null);r.context.unref()}else{r.pos+=n;r.push(i.slice(0,n))}e()}))}))};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};i.inherits(WriteStream,s);function WriteStream(e,r){r=r||{};s.call(this,r);this.context=e;this.context.ref();this.start=r.start||0;this.endOffset=r.end==null?Infinity:+r.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,r,t){var i=this;if(i.destroyed)return;if(i.pos+e.length>i.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";i.destroy();t(o);return}i.context.pend.go((function(r){if(i.destroyed)return r();n.write(i.context.fd,e,0,e.length,i.pos,(function(e,n){if(e){i.destroy();r();t(e)}else{i.bytesWritten+=n;i.pos+=n;i.emit("progress");r();t()}}))}))};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};i.inherits(BufferSlicer,d);function BufferSlicer(e,r){d.call(this);r=r||{};this.refCount=0;this.buffer=e;this.maxChunkSize=r.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,r,t,n,i){if(!(0<=r&&r<=e.length))throw new RangeError("offset outside buffer: 0 <= "+r+" <= "+e.length);if(n<0)throw new RangeError("position is negative: "+n);if(r+t>e.length){t=e.length-r}if(n+t>this.buffer.length){t=this.buffer.length-n}if(t<=0){setImmediate((function(){i(null,0)}));return}this.buffer.copy(e,r,n,n+t);setImmediate((function(){i(null,t)}))};BufferSlicer.prototype.write=function(e,r,t,n,i){e.copy(this.buffer,n,r,r+t);setImmediate((function(){i(null,t,e)}))};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var r=new f(e);r.destroyed=false;r.start=e.start||0;r.endOffset=e.end;r.pos=r.endOffset||this.buffer.length;var t=this.buffer.slice(r.start,r.pos);var n=0;while(true){var i=n+this.maxChunkSize;if(i>=t.length){if(n<t.length){r.write(t.slice(n,t.length))}break}r.write(t.slice(n,i));n=i}r.end();r.destroy=function(){r.destroyed=true};return r};BufferSlicer.prototype.createWriteStream=function(e){var r=this;e=e||{};var t=new s(e);t.start=e.start||0;t.endOffset=e.end==null?this.buffer.length:+e.end;t.bytesWritten=0;t.pos=t.start;t.destroyed=false;t._write=function(e,n,i){if(t.destroyed)return;var o=t.pos+e.length;if(o>t.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG";t.destroyed=true;i(a);return}e.copy(r.buffer,t.pos,0,e.length);t.bytesWritten+=e.length;t.pos=o;t.emit("progress");i()};t.destroy=function(){t.destroyed=true};return t};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,r){return new BufferSlicer(e,r)}function createFromFd(e,r){return new FdSlicer(e,r)}},300:e=>{"use strict";e.exports=require("buffer")},361:e=>{"use strict";e.exports=require("events")},147:e=>{"use strict";e.exports=require("fs")},955:e=>{"use strict";e.exports=require("stream")},837:e=>{"use strict";e.exports=require("util")},796:e=>{"use strict";e.exports=require("zlib")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={exports:{}};var o=true;try{e[t](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t={};(()=>{var e=t;var r=__nccwpck_require__(147);var n=__nccwpck_require__(796);var i=__nccwpck_require__(276);var o=__nccwpck_require__(794);var a=__nccwpck_require__(837);var s=__nccwpck_require__(361).EventEmitter;var f=__nccwpck_require__(955).Transform;var l=__nccwpck_require__(955).PassThrough;var d=__nccwpck_require__(955).Writable;e.open=open;e.fromFd=fromFd;e.fromBuffer=fromBuffer;e.fromRandomAccessReader=fromRandomAccessReader;e.dosDateTimeToDate=dosDateTimeToDate;e.getFileNameLowLevel=getFileNameLowLevel;e.validateFileName=validateFileName;e.parseExtraFields=parseExtraFields;e.ZipFile=ZipFile;e.Entry=Entry;e.LocalFileHeader=LocalFileHeader;e.RandomAccessReader=RandomAccessReader;function open(e,t,n){if(typeof t==="function"){n=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=true;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(n==null)n=defaultCallback;r.open(e,"r",(function(e,i){if(e)return n(e);fromFd(i,t,(function(e,t){if(e)r.close(i,defaultCallback);n(e,t)}))}))}function fromFd(e,t,n){if(typeof t==="function"){n=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=false;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(n==null)n=defaultCallback;r.fstat(e,(function(r,o){if(r)return n(r);var a=i.createFromFd(e,{autoClose:true});fromRandomAccessReader(a,o.size,t,n)}))}function fromBuffer(e,r,t){if(typeof r==="function"){t=r;r=null}if(r==null)r={};r.autoClose=false;if(r.lazyEntries==null)r.lazyEntries=false;if(r.decodeStrings==null)r.decodeStrings=true;if(r.validateEntrySizes==null)r.validateEntrySizes=true;if(r.strictFileNames==null)r.strictFileNames=false;var n=i.createFromBuffer(e,{maxChunkSize:65536});fromRandomAccessReader(n,e.length,r,t)}function fromRandomAccessReader(e,r,t,n){if(typeof t==="function"){n=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=true;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;var i=!!t.decodeStrings;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(n==null)n=defaultCallback;if(typeof r!=="number")throw new Error("expected totalSize parameter to be a number");if(r>Number.MAX_SAFE_INTEGER){throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.")}e.ref();var o=22;var a=20;var s=65535;var f=Math.min(a+o+s,r);var l=c(f);var d=r-l.length;readAndAssertNoEof(e,l,0,f,d,(function(s){if(s)return n(s);for(var d=f-o;d>=0;d-=1){if(l.readUInt32LE(d)!==101010256)continue;var u=l.subarray(d);var p=u.readUInt16LE(4);var m=u.readUInt16LE(10);var h=u.readUInt32LE(16);var y=u.readUInt16LE(20);var E=u.length-o;if(y!==E){return n(new Error("Invalid comment length. Expected: "+E+". Found: "+y+". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK☺☻` in the comment?"))}var v=i?decodeBuffer(u.subarray(22),false):u.subarray(22);if(d-a>=0&&l.readUInt32LE(d-a)===117853008){var w=l.subarray(d-a,d-a+a);var g=readUInt64LE(w,8);var F=c(56);return readAndAssertNoEof(e,F,0,F.length,g,(function(o){if(o)return n(o);if(F.readUInt32LE(0)!==101075792){return n(new Error("invalid zip64 end of central directory record signature"))}p=F.readUInt32LE(16);if(p!==0){return n(new Error("multi-disk zip files are not supported: found disk number: "+p))}m=readUInt64LE(F,32);h=readUInt64LE(F,48);return n(null,new ZipFile(e,h,r,m,v,t.autoClose,t.lazyEntries,i,t.validateEntrySizes,t.strictFileNames))}))}if(p!==0){return n(new Error("multi-disk zip files are not supported: found disk number: "+p))}return n(null,new ZipFile(e,h,r,m,v,t.autoClose,t.lazyEntries,i,t.validateEntrySizes,t.strictFileNames))}n(new Error("End of central directory record signature not found. Either not a zip file, or file is truncated."))}))}a.inherits(ZipFile,s);function ZipFile(e,r,t,n,i,o,a,f,l,d){var u=this;s.call(u);u.reader=e;u.reader.on("error",(function(e){emitError(u,e)}));u.reader.once("close",(function(){u.emit("close")}));u.readEntryCursor=r;u.fileSize=t;u.entryCount=n;u.comment=i;u.entriesRead=0;u.autoClose=!!o;u.lazyEntries=!!a;u.decodeStrings=!!f;u.validateEntrySizes=!!l;u.strictFileNames=!!d;u.isOpen=true;u.emittedError=false;if(!u.lazyEntries)u._readEntry()}ZipFile.prototype.close=function(){if(!this.isOpen)return;this.isOpen=false;this.reader.unref()};function emitErrorAndAutoClose(e,r){if(e.autoClose)e.close();emitError(e,r)}function emitError(e,r){if(e.emittedError)return;e.emittedError=true;e.emit("error",r)}ZipFile.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ZipFile.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate((function(){if(e.autoClose)e.close();if(e.emittedError)return;e.emit("end")}));return}if(e.emittedError)return;var r=c(46);readAndAssertNoEof(e.reader,r,0,r.length,e.readEntryCursor,(function(t){if(t)return emitErrorAndAutoClose(e,t);if(e.emittedError)return;var n=new Entry;var i=r.readUInt32LE(0);if(i!==33639248)return emitErrorAndAutoClose(e,new Error("invalid central directory file header signature: 0x"+i.toString(16)));n.versionMadeBy=r.readUInt16LE(4);n.versionNeededToExtract=r.readUInt16LE(6);n.generalPurposeBitFlag=r.readUInt16LE(8);n.compressionMethod=r.readUInt16LE(10);n.lastModFileTime=r.readUInt16LE(12);n.lastModFileDate=r.readUInt16LE(14);n.crc32=r.readUInt32LE(16);n.compressedSize=r.readUInt32LE(20);n.uncompressedSize=r.readUInt32LE(24);n.fileNameLength=r.readUInt16LE(28);n.extraFieldLength=r.readUInt16LE(30);n.fileCommentLength=r.readUInt16LE(32);n.internalFileAttributes=r.readUInt16LE(36);n.externalFileAttributes=r.readUInt32LE(38);n.relativeOffsetOfLocalHeader=r.readUInt32LE(42);if(n.generalPurposeBitFlag&64)return emitErrorAndAutoClose(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46;r=c(n.fileNameLength+n.extraFieldLength+n.fileCommentLength);readAndAssertNoEof(e.reader,r,0,r.length,e.readEntryCursor,(function(t){if(t)return emitErrorAndAutoClose(e,t);if(e.emittedError)return;n.fileNameRaw=r.subarray(0,n.fileNameLength);var i=n.fileNameLength+n.extraFieldLength;n.extraFieldRaw=r.subarray(n.fileNameLength,i);n.fileCommentRaw=r.subarray(i,i+n.fileCommentLength);try{n.extraFields=parseExtraFields(n.extraFieldRaw)}catch(t){return emitErrorAndAutoClose(e,t)}if(e.decodeStrings){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileComment=decodeBuffer(n.fileCommentRaw,o);n.fileName=getFileNameLowLevel(n.generalPurposeBitFlag,n.fileNameRaw,n.extraFields,e.strictFileNames);var a=validateFileName(n.fileName);if(a!=null)return emitErrorAndAutoClose(e,new Error(a))}else{n.fileComment=n.fileCommentRaw;n.fileName=n.fileNameRaw}n.comment=n.fileComment;e.readEntryCursor+=r.length;e.entriesRead+=1;for(var s=0;s<n.extraFields.length;s++){var f=n.extraFields[s];if(f.id!==1)continue;var l=f.data;var d=0;if(n.uncompressedSize===4294967295){if(d+8>l.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include uncompressed size"))}n.uncompressedSize=readUInt64LE(l,d);d+=8}if(n.compressedSize===4294967295){if(d+8>l.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include compressed size"))}n.compressedSize=readUInt64LE(l,d);d+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(d+8>l.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include relative header offset"))}n.relativeOffsetOfLocalHeader=readUInt64LE(l,d);d+=8}break}if(e.validateEntrySizes&&n.compressionMethod===0){var u=n.uncompressedSize;if(n.isEncrypted()){u+=12}if(n.compressedSize!==u){var c="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return emitErrorAndAutoClose(e,new Error(c))}}e.emit("entry",n);if(!e.lazyEntries)e._readEntry()}))}))};ZipFile.prototype.openReadStream=function(e,r,t){var n=this;var i=0;var o=e.compressedSize;if(t==null){t=r;r=null}if(r==null){r={}}else{if(r.decodeFileData===false){if(r.decrypt!=null){throw new Error("cannot use options.decrypt when options.decodeFileData === false")}if(r.decompress!=null){throw new Error("cannot use options.decompress when options.decodeFileData === false")}}else{if(r.decrypt!=null){if(!e.isEncrypted()){throw new Error("options.decrypt can only be specified for encrypted entries. See also option decodeFileData.")}if(r.decrypt!==false)throw new Error("invalid options.decrypt value: "+r.decrypt);if(e.isCompressed()){if(r.decompress!==false)throw new Error("entry is encrypted and compressed, and options.decompress !== false. See also option decodeFileData.")}}if(r.decompress!=null){if(!e.isCompressed()){throw new Error("options.decompress can only be specified for compressed entries. See also option decodeFileData.")}if(!(r.decompress===false||r.decompress===true)){throw new Error("invalid options.decompress value: "+r.decompress)}s=r.decompress}}if(r.start!=null){i=r.start;if(i<0)throw new Error("options.start < 0");if(i>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(r.end!=null){o=r.end;if(o<0)throw new Error("options.end < 0");if(o>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(o<i)throw new Error("options.end < options.start")}}var a=r.decodeFileData===false||(e.compressionMethod===0||e.compressionMethod===8&&r.decompress===false)&&(!e.isEncrypted()||r.decrypt===false);if(r.start!=null||r.end!=null){if(!a)throw new Error("start/end range require options.decodeFileData === false for non-trivial encoded entries.")}if(!n.isOpen)return t(new Error("closed"));if(e.isEncrypted()&&!a){if(r.decrypt!==false)return t(new Error("entry is encrypted, and options.decodeFileData !== false"))}var s;if(a){s=false}else if(e.compressionMethod===8){s=r.decodeFileData!==true}else{return t(new Error("unsupported compression method: "+e.compressionMethod))}n.readLocalFileHeader(e,{minimal:true},(function(r,a){if(r)return t(r);n.openReadStreamLowLevel(a.fileDataStart,e.compressedSize,i,o,s,e.uncompressedSize,t)}))};ZipFile.prototype.openReadStreamLowLevel=function(e,r,t,i,o,a,s){var f=this;var l=e+r;var d=f.reader.createReadStream({start:e+t,end:e+i});var u=d;if(o){var c=false;var p=n.createInflateRaw();d.on("error",(function(e){setImmediate((function(){if(!c)p.emit("error",e)}))}));d.pipe(p);if(f.validateEntrySizes){u=new AssertByteCountStream(a);p.on("error",(function(e){setImmediate((function(){if(!c)u.emit("error",e)}))}));p.pipe(u)}else{u=p}installDestroyFn(u,(function(){c=true;if(p!==u)p.unpipe(u);d.unpipe(p);d.destroy()}))}s(null,u)};ZipFile.prototype.readLocalFileHeader=function(e,r,t){var n=this;if(t==null){t=r;r=null}if(r==null)r={};n.reader.ref();var i=c(30);readAndAssertNoEof(n.reader,i,0,i.length,e.relativeOffsetOfLocalHeader,(function(o){try{if(o)return t(o);var a=i.readUInt32LE(0);if(a!==67324752){return t(new Error("invalid local file header signature: 0x"+a.toString(16)))}var s=i.readUInt16LE(26);var f=i.readUInt16LE(28);var l=e.relativeOffsetOfLocalHeader+30+s+f;if(l+e.compressedSize>n.fileSize){return t(new Error("file data overflows file bounds: "+l+" + "+e.compressedSize+" > "+n.fileSize))}if(r.minimal){return t(null,{fileDataStart:l})}var d=new LocalFileHeader;d.fileDataStart=l;d.versionNeededToExtract=i.readUInt16LE(4);d.generalPurposeBitFlag=i.readUInt16LE(6);d.compressionMethod=i.readUInt16LE(8);d.lastModFileTime=i.readUInt16LE(10);d.lastModFileDate=i.readUInt16LE(12);d.crc32=i.readUInt32LE(14);d.compressedSize=i.readUInt32LE(18);d.uncompressedSize=i.readUInt32LE(22);d.fileNameLength=s;d.extraFieldLength=f;i=c(s+f);n.reader.ref();readAndAssertNoEof(n.reader,i,0,i.length,e.relativeOffsetOfLocalHeader+30,(function(e){try{if(e)return t(e);d.fileName=i.subarray(0,s);d.extraField=i.subarray(s);return t(null,d)}finally{n.reader.unref()}}))}finally{n.reader.unref()}}))};function Entry(){}Entry.prototype.getLastModDate=function(e){if(e==null)e={};if(!e.forceDosFormat){for(var r=0;r<this.extraFields.length;r++){var t=this.extraFields[r];if(t.id===21589){var n=t.data;if(n.length<5)continue;var i=n[0];var o=1;if(!(i&o))continue;var a=n.readInt32LE(1);return new Date(a*1e3)}else if(t.id===10){var n=t.data;if(n.length!==32)continue;if(n.readUInt16LE(4)!==1)continue;if(n.readUInt16LE(6)!==24)continue;var s=n.readUInt32LE(8)+4294967296*n.readInt32LE(12);var f=s/1e4-116444736e5;return new Date(f)}}}return dosDateTimeToDate(this.lastModFileDate,this.lastModFileTime,e.timezone)};Entry.prototype.canDecodeFileData=function(){return!this.isEncrypted()&&(this.compressionMethod===0||this.compressionMethod===8)};Entry.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Entry.prototype.isCompressed=function(){return this.compressionMethod===8};function LocalFileHeader(){}function dosDateTimeToDate(e,r,t){var n=e&31;var i=(e>>5&15)-1;var o=(e>>9&127)+1980;var a=0;var s=(r&31)*2;var f=r>>5&63;var l=r>>11&31;if(t==null||t==="local"){return new Date(o,i,n,l,f,s,a)}else if(t==="UTC"){return new Date(Date.UTC(o,i,n,l,f,s,a))}else{throw new Error("unrecognized options.timezone: "+options.timezone)}}function getFileNameLowLevel(e,r,t,n){var i=null;for(var a=0;a<t.length;a++){var s=t[a];if(s.id===28789){if(s.data.length<6){continue}if(s.data.readUInt8(0)!==1){continue}var f=s.data.readUInt32LE(1);if(o.unsigned(r)!==f){continue}i=decodeBuffer(s.data.subarray(5),true);break}}if(i==null){var l=(e&2048)!==0;i=decodeBuffer(r,l)}if(!n){i=i.replace(/\\/g,"/")}return i}function validateFileName(e){if(e.indexOf("\\")!==-1){return"invalid characters in fileName: "+e}if(/^[a-zA-Z]:/.test(e)||/^\//.test(e)){return"absolute path: "+e}if(e.split("/").indexOf("..")!==-1){return"invalid relative path: "+e}return null}function parseExtraFields(e){var r=[];var t=0;while(t<e.length-3){var n=e.readUInt16LE(t+0);var i=e.readUInt16LE(t+2);var o=t+4;var a=o+i;if(a>e.length)throw new Error("extra field length exceeds extra field buffer size");var s=e.subarray(o,a);r.push({id:n,data:s});t=a}return r}function readAndAssertNoEof(e,r,t,n,i,o){if(n===0){return setImmediate((function(){o(null,c(0))}))}e.read(r,t,n,i,(function(e,r){if(e)return o(e);if(r<n){return o(new Error("unexpected EOF"))}o()}))}a.inherits(AssertByteCountStream,f);function AssertByteCountStream(e){f.call(this);this.actualByteCount=0;this.expectedByteCount=e}AssertByteCountStream.prototype._transform=function(e,r,t){this.actualByteCount+=e.length;if(this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return t(new Error(n))}t(null,e)};AssertByteCountStream.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var r="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(r))}e()};a.inherits(RandomAccessReader,s);function RandomAccessReader(){s.call(this);this.refCount=0}RandomAccessReader.prototype.ref=function(){this.refCount+=1};RandomAccessReader.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(onCloseDone);function onCloseDone(r){if(r)return e.emit("error",r);e.emit("close")}};RandomAccessReader.prototype.createReadStream=function(e){if(e==null)e={};var r=e.start;var t=e.end;if(r===t){var n=new l;setImmediate((function(){n.end()}));return n}var i=this._readStreamForRange(r,t);var o=false;var a=new RefUnrefFilter(this);i.on("error",(function(e){setImmediate((function(){if(!o)a.emit("error",e)}))}));installDestroyFn(a,(function(){i.unpipe(a);a.unref();i.destroy()}));var s=new AssertByteCountStream(t-r);a.on("error",(function(e){setImmediate((function(){if(!o)s.emit("error",e)}))}));installDestroyFn(s,(function(){o=true;a.unpipe(s);a.destroy()}));return i.pipe(a).pipe(s)};RandomAccessReader.prototype._readStreamForRange=function(e,r){throw new Error("not implemented")};RandomAccessReader.prototype.read=function(e,r,t,n,i){var o=this.createReadStream({start:n,end:n+t});var a=new d;var s=0;a._write=function(t,n,i){t.copy(e,r+s,0,t.length);s+=t.length;i()};a.on("finish",i);o.on("error",(function(e){i(e)}));o.pipe(a)};RandomAccessReader.prototype.close=function(e){setImmediate(e)};a.inherits(RefUnrefFilter,l);function RefUnrefFilter(e){l.call(this);this.context=e;this.context.ref();this.unreffedYet=false}RefUnrefFilter.prototype._flush=function(e){this.unref();e()};RefUnrefFilter.prototype.unref=function(e){if(this.unreffedYet)return;this.unreffedYet=true;this.context.unref()};var u="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function decodeBuffer(e,r){if(r){return e.toString("utf8")}else{var t="";for(var n=0;n<e.length;n++){t+=u[e[n]]}return t}}function readUInt64LE(e,r){var t=e.readUInt32LE(r);var n=e.readUInt32LE(r+4);return n*4294967296+t}var c;if(typeof Buffer.allocUnsafe==="function"){c=function(e){return Buffer.allocUnsafe(e)}}else{c=function(e){return new Buffer(e)}}function installDestroyFn(e,r){if(typeof e.destroy==="function"){e._destroy=function(e,t){r();if(t!=null)t(e)}}else{e.destroy=r}}function defaultCallback(e){if(e)throw e}})();module.exports=t})();
@@ -0,0 +1 @@
1
+ {"name":"yauzl","version":"3.3.0","description":"yet another unzip library for node","engines":{"node":">=12"},"main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/thejoshwolfe/yauzl.git"},"keywords":["unzip","zip","stream","archive","file"],"author":"Josh Wolfe <thejoshwolfe@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/thejoshwolfe/yauzl/issues"},"homepage":"https://github.com/thejoshwolfe/yauzl","dependencies":{"buffer-crc32":"~0.2.3","pend":"~1.2.0"},"devDependencies":{"bl":"^6.0.11"},"files":["fd-slicer.js","index.js"],"_lastModified":"2026-11-22T13:16:02.566Z"}
@@ -0,0 +1,42 @@
1
+ import { Application } from '@nocobase/server';
2
+ import { Manifest } from './package-format';
3
+ export interface TransferableCollection {
4
+ name: string;
5
+ title: string;
6
+ template: string;
7
+ supported: boolean;
8
+ unsupportedReason?: string;
9
+ }
10
+ export interface ExportOptions {
11
+ collections: string[];
12
+ includeData: boolean;
13
+ }
14
+ export interface ExportResult {
15
+ filePath: string;
16
+ fileName: string;
17
+ manifest: Manifest;
18
+ }
19
+ /** Package names (or names) of the plugins enabled in this app, from the plugin manager. */
20
+ export declare function enabledPluginNames(app: Application): string[];
21
+ export declare class CollectionExporter {
22
+ private app;
23
+ constructor(app: Application);
24
+ private get db();
25
+ /** Collections a user may pick for export, with a flag for the ones the PoC cannot transfer. */
26
+ listCollections(): Promise<TransferableCollection[]>;
27
+ export(options: ExportOptions): Promise<ExportResult>;
28
+ private collectionRows;
29
+ private fieldRowsOf;
30
+ /**
31
+ * Expands the selection with the collections it cannot work without: user-defined through collections of
32
+ * belongsToMany fields become companions; auto-created through collections are listed separately because the
33
+ * belongsToMany hook recreates them on import.
34
+ */
35
+ private resolveSelection;
36
+ private buildPayloads;
37
+ private fieldPayload;
38
+ /** Adapted from plugin-backup-restore Dumper.dumpCollection: meta always, rows only when includeData. */
39
+ private dumpCollection;
40
+ private writeJson;
41
+ private zipDir;
42
+ }
@@ -0,0 +1,311 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var exporter_exports = {};
38
+ __export(exporter_exports, {
39
+ CollectionExporter: () => CollectionExporter,
40
+ enabledPluginNames: () => enabledPluginNames
41
+ });
42
+ module.exports = __toCommonJS(exporter_exports);
43
+ var import_archiver = __toESM(require("archiver"));
44
+ var import_crypto = __toESM(require("crypto"));
45
+ var import_fs = __toESM(require("fs"));
46
+ var import_promises = __toESM(require("fs/promises"));
47
+ var import_lodash = __toESM(require("lodash"));
48
+ var import_os = __toESM(require("os"));
49
+ var import_path = __toESM(require("path"));
50
+ var import_sequelize = require("sequelize");
51
+ var import_promises2 = require("stream/promises");
52
+ var import_field_value_writer = require("./field-value-writer");
53
+ var import_package_format = require("./package-format");
54
+ var import_package = __toESM(require("../../package.json"));
55
+ function unsupportedReason(row) {
56
+ const template = row.template || "general";
57
+ if (!import_package_format.SUPPORTED_TEMPLATES.includes(template)) {
58
+ return `template:${template}`;
59
+ }
60
+ if (!import_lodash.default.isEmpty(row.inherits)) {
61
+ return "inherits";
62
+ }
63
+ if (!(0, import_package_format.isValidName)(row.name)) {
64
+ return "name";
65
+ }
66
+ return void 0;
67
+ }
68
+ function isUserCollection(row) {
69
+ return !row.hidden && !row.isThrough && !import_package_format.MIRRORED_ORIGINS.includes(row.from);
70
+ }
71
+ function enabledPluginNames(app) {
72
+ const names = /* @__PURE__ */ new Set();
73
+ for (const plugin of app.pm.getPlugins().values()) {
74
+ if (!plugin.enabled) continue;
75
+ const options = plugin.options;
76
+ const name = options.packageName || options.name;
77
+ if (name) names.add(name);
78
+ }
79
+ return [...names].sort();
80
+ }
81
+ class CollectionExporter {
82
+ constructor(app) {
83
+ this.app = app;
84
+ }
85
+ get db() {
86
+ return this.app.db;
87
+ }
88
+ /** Collections a user may pick for export, with a flag for the ones the PoC cannot transfer. */
89
+ async listCollections() {
90
+ const rows = await this.collectionRows();
91
+ return rows.filter(isUserCollection).map((row) => {
92
+ const reason = unsupportedReason(row);
93
+ return {
94
+ name: row.name,
95
+ title: row.title || row.name,
96
+ template: row.template || "general",
97
+ supported: !reason,
98
+ unsupportedReason: reason
99
+ };
100
+ });
101
+ }
102
+ async export(options) {
103
+ const selected = import_lodash.default.uniq(options.collections || []);
104
+ if (!selected.length) {
105
+ throw new Error("No collections selected");
106
+ }
107
+ const rowsByName = import_lodash.default.keyBy(await this.collectionRows(), (row) => row.name);
108
+ for (const name of selected) {
109
+ const row = rowsByName[name];
110
+ if (!row || !isUserCollection(row)) {
111
+ throw new Error(`Collection "${name}" is not a user collection`);
112
+ }
113
+ const reason = unsupportedReason(row);
114
+ if (reason) {
115
+ throw new Error(`Collection "${name}" cannot be transferred (${reason})`);
116
+ }
117
+ }
118
+ const { collections, through, fieldRows } = await this.resolveSelection(selected, rowsByName);
119
+ const workDir = import_path.default.resolve(import_os.default.tmpdir(), `collection-transfer-${import_crypto.default.randomUUID()}`);
120
+ await import_promises.default.mkdir(import_path.default.join(workDir, "schema"), { recursive: true });
121
+ try {
122
+ const { collectionPayloads, associationPayloads, dependencies } = this.buildPayloads(
123
+ collections,
124
+ through,
125
+ rowsByName,
126
+ fieldRows
127
+ );
128
+ const manifest = {
129
+ formatVersion: import_package_format.FORMAT_VERSION,
130
+ pluginVersion: import_package.default.version,
131
+ sourceAppVersion: this.app.getPackageVersion(),
132
+ dialect: this.db.sequelize.getDialect(),
133
+ exportedAt: (/* @__PURE__ */ new Date()).toISOString(),
134
+ includeData: !!options.includeData,
135
+ selected,
136
+ collections,
137
+ through,
138
+ dependencies,
139
+ plugins: enabledPluginNames(this.app)
140
+ };
141
+ await this.writeJson(workDir, import_package_format.COLLECTIONS_FILE, collectionPayloads);
142
+ await this.writeJson(workDir, import_package_format.ASSOCIATIONS_FILE, associationPayloads);
143
+ await this.writeJson(workDir, import_package_format.THROUGH_FILE, through);
144
+ for (const name of [...collections, ...through]) {
145
+ await this.dumpCollection(workDir, name, manifest.includeData);
146
+ }
147
+ await this.writeJson(workDir, import_package_format.MANIFEST_FILE, manifest);
148
+ const fileName = `collections-${manifest.exportedAt.replace(/[:.]/g, "-")}.zip`;
149
+ const filePath = import_path.default.resolve(import_os.default.tmpdir(), `${import_crypto.default.randomUUID()}-${fileName}`);
150
+ await this.zipDir(workDir, filePath);
151
+ return { filePath, fileName, manifest };
152
+ } finally {
153
+ await import_promises.default.rm(workDir, { recursive: true, force: true });
154
+ }
155
+ }
156
+ async collectionRows() {
157
+ const models = await this.db.getRepository("collections").find({ sort: ["sort"] });
158
+ return models.map((model) => model.get());
159
+ }
160
+ async fieldRowsOf(collectionNames) {
161
+ if (!collectionNames.length) return [];
162
+ const models = await this.db.getRepository("fields").find({
163
+ filter: { collectionName: { $in: collectionNames } },
164
+ sort: ["sort"]
165
+ });
166
+ return models.map((model) => model.get());
167
+ }
168
+ /**
169
+ * Expands the selection with the collections it cannot work without: user-defined through collections of
170
+ * belongsToMany fields become companions; auto-created through collections are listed separately because the
171
+ * belongsToMany hook recreates them on import.
172
+ */
173
+ async resolveSelection(selected, rowsByName) {
174
+ const collections = [...selected];
175
+ const through = [];
176
+ let pending = [...selected];
177
+ const fieldRows = [];
178
+ while (pending.length) {
179
+ const rows = await this.fieldRowsOf(pending);
180
+ fieldRows.push(...rows);
181
+ pending = [];
182
+ for (const field of rows) {
183
+ if (field.type !== "belongsToMany" || !field.through) continue;
184
+ const throughName = field.through;
185
+ if (collections.includes(throughName) || through.includes(throughName)) continue;
186
+ const throughRow = rowsByName[throughName];
187
+ if (!throughRow) {
188
+ throw new Error(
189
+ `Through collection "${throughName}" of field "${field.collectionName}.${field.name}" not found`
190
+ );
191
+ }
192
+ if (throughRow.autoCreate) {
193
+ through.push(throughName);
194
+ } else {
195
+ const reason = unsupportedReason(throughRow);
196
+ if (reason) {
197
+ throw new Error(`Through collection "${throughName}" cannot be transferred (${reason})`);
198
+ }
199
+ collections.push(throughName);
200
+ pending.push(throughName);
201
+ }
202
+ }
203
+ }
204
+ return { collections, through, fieldRows };
205
+ }
206
+ buildPayloads(collections, through, rowsByName, fieldRows) {
207
+ const inPackage = /* @__PURE__ */ new Set([...collections, ...through]);
208
+ const fieldsByCollection = import_lodash.default.groupBy(fieldRows, (field) => field.collectionName);
209
+ const fieldsByKey = import_lodash.default.keyBy(fieldRows, (field) => field.key);
210
+ const collectionPayloads = collections.map((name) => {
211
+ const row = rowsByName[name];
212
+ const scalarFields = (fieldsByCollection[name] || []).filter((field) => !import_package_format.ASSOCIATION_TYPES.includes(field.type) && !field.isForeignKey).map((field) => this.fieldPayload(field));
213
+ return {
214
+ ...import_lodash.default.omit(row, import_package_format.COLLECTION_BOOKKEEPING_KEYS),
215
+ name,
216
+ fields: scalarFields
217
+ };
218
+ });
219
+ const associationPayloads = [];
220
+ const handledKeys = /* @__PURE__ */ new Set();
221
+ const dependencies = /* @__PURE__ */ new Set();
222
+ for (const name of collections) {
223
+ for (const field of fieldsByCollection[name] || []) {
224
+ if (!import_package_format.ASSOCIATION_TYPES.includes(field.type) || handledKeys.has(field.key)) continue;
225
+ handledKeys.add(field.key);
226
+ const target = field.target;
227
+ if (!inPackage.has(target)) {
228
+ dependencies.add(target);
229
+ }
230
+ const payload = {
231
+ ...this.fieldPayload(field),
232
+ collectionName: name,
233
+ target
234
+ };
235
+ const reverse = field.reverseKey ? fieldsByKey[field.reverseKey] : void 0;
236
+ if (reverse && !handledKeys.has(reverse.key)) {
237
+ handledKeys.add(reverse.key);
238
+ payload.reverseField = this.fieldPayload(reverse);
239
+ }
240
+ associationPayloads.push(payload);
241
+ }
242
+ }
243
+ return { collectionPayloads, associationPayloads, dependencies: [...dependencies].sort() };
244
+ }
245
+ fieldPayload(field) {
246
+ return import_lodash.default.omit(field, import_package_format.FIELD_BOOKKEEPING_KEYS);
247
+ }
248
+ /** Adapted from plugin-backup-restore Dumper.dumpCollection: meta always, rows only when includeData. */
249
+ async dumpCollection(workDir, name, includeData) {
250
+ const collection = this.db.getCollection(name);
251
+ if (!collection) {
252
+ throw new Error(`Collection "${name}" is not loaded`);
253
+ }
254
+ const dir = import_path.default.join(workDir, (0, import_package_format.dataDir)(name));
255
+ await import_promises.default.mkdir(dir, { recursive: true });
256
+ const rawAttributes = collection.model.getAttributes();
257
+ const columnToAttribute = /* @__PURE__ */ new Map();
258
+ for (const [attributeName, attribute] of Object.entries(rawAttributes)) {
259
+ columnToAttribute.set(attribute.field || attributeName, attributeName);
260
+ }
261
+ const columns = [...columnToAttribute.keys()];
262
+ const autoIncrementAttribute = Object.entries(rawAttributes).find(([, attribute]) => attribute.autoIncrement);
263
+ let count = 0;
264
+ if (includeData && columns.length) {
265
+ const stream = import_fs.default.createWriteStream(import_path.default.join(dir, "data"));
266
+ const rows = await this.db.sequelize.query(`SELECT * FROM ${collection.quotedTableName()}`, {
267
+ type: import_sequelize.QueryTypes.SELECT
268
+ });
269
+ for (const row of rows) {
270
+ const values = columns.map((column) => {
271
+ const field = collection.getField(columnToAttribute.get(column));
272
+ return field ? import_field_value_writer.FieldValueWriter.toDumpedValue(field, row[column]) : row[column];
273
+ });
274
+ stream.write(JSON.stringify(values) + "\n", "utf8");
275
+ }
276
+ stream.end();
277
+ await (0, import_promises2.finished)(stream);
278
+ count = rows.length;
279
+ }
280
+ const meta = {
281
+ name,
282
+ columns,
283
+ count,
284
+ autoIncrementColumn: autoIncrementAttribute ? autoIncrementAttribute[1].field || autoIncrementAttribute[0] : null
285
+ };
286
+ await import_promises.default.writeFile(import_path.default.join(dir, "meta"), JSON.stringify(meta), "utf8");
287
+ }
288
+ async writeJson(workDir, relativePath, value) {
289
+ await import_promises.default.writeFile(import_path.default.join(workDir, relativePath), JSON.stringify(value, null, 2), "utf8");
290
+ }
291
+ async zipDir(dir, filePath) {
292
+ const output = import_fs.default.createWriteStream(filePath);
293
+ const archive = (0, import_archiver.default)("zip", { zlib: { level: 9 } });
294
+ const closed = new Promise((resolve, reject) => {
295
+ output.on("close", () => resolve());
296
+ archive.on("warning", (err) => {
297
+ if (err.code !== "ENOENT") reject(err);
298
+ });
299
+ archive.on("error", reject);
300
+ });
301
+ archive.pipe(output);
302
+ archive.directory(dir, false);
303
+ await archive.finalize();
304
+ await closed;
305
+ }
306
+ }
307
+ // Annotate the CommonJS export names for ESM import in node:
308
+ 0 && (module.exports = {
309
+ CollectionExporter,
310
+ enabledPluginNames
311
+ });
@@ -0,0 +1,9 @@
1
+ import { Database, Field } from '@nocobase/database';
2
+ type WriterFunc = (val: unknown, database: Database) => unknown;
3
+ export declare class FieldValueWriter {
4
+ static writers: Map<string, WriterFunc>;
5
+ static write(field: Field, val: unknown, database: Database): any;
6
+ static toDumpedValue(field: Field, val: unknown): any;
7
+ static registerWriter(types: string | string[], writer: WriterFunc): void;
8
+ }
9
+ export {};
@@ -0,0 +1,107 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var field_value_writer_exports = {};
38
+ __export(field_value_writer_exports, {
39
+ FieldValueWriter: () => FieldValueWriter
40
+ });
41
+ module.exports = __toCommonJS(field_value_writer_exports);
42
+ var import_database = require("@nocobase/database");
43
+ var import_lodash = __toESM(require("lodash"));
44
+ const GEO_TYPES = ["point", "lineString", "circle", "polygon"];
45
+ class FieldValueWriter {
46
+ static writers = /* @__PURE__ */ new Map();
47
+ static write(field, val, database) {
48
+ if (val === null) return val;
49
+ if (GEO_TYPES.includes(field.type)) {
50
+ let result = import_lodash.default.isString(val) ? JSON.parse(val) : val;
51
+ const mockObj = {
52
+ setDataValue: (_name, newVal) => {
53
+ result = newVal;
54
+ }
55
+ };
56
+ field.options.set.call(mockObj, result);
57
+ return result;
58
+ }
59
+ const writer = FieldValueWriter.writers.get(field.typeToString());
60
+ return writer ? writer(val, database) : val;
61
+ }
62
+ static toDumpedValue(field, val) {
63
+ if (val === null) return val;
64
+ if (GEO_TYPES.includes(field.type)) {
65
+ return field.options.get.call({ getDataValue: () => val });
66
+ }
67
+ return val;
68
+ }
69
+ static registerWriter(types, writer) {
70
+ for (const type of import_lodash.default.castArray(types)) {
71
+ FieldValueWriter.writers.set(type, writer);
72
+ }
73
+ }
74
+ }
75
+ function isJSONObjectOrArrayString(str) {
76
+ if (typeof str !== "string") return false;
77
+ try {
78
+ const parsed = JSON.parse(str);
79
+ return typeof parsed === "object" && parsed !== null;
80
+ } catch (e) {
81
+ return false;
82
+ }
83
+ }
84
+ function formatInOffset(iso, offset) {
85
+ const match = /^([+-])(\d{2}):?(\d{2})$/.exec(offset);
86
+ const minutes = match ? (match[1] === "-" ? -1 : 1) * (Number(match[2]) * 60 + Number(match[3])) : 0;
87
+ return new Date(Date.parse(iso) + minutes * 6e4).toISOString().slice(0, 19).replace("T", " ");
88
+ }
89
+ function isIso8601(str) {
90
+ return /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(str);
91
+ }
92
+ FieldValueWriter.registerWriter(
93
+ [import_database.DataTypes.JSON.toString(), import_database.DataTypes.JSONB.toString()],
94
+ (val) => isJSONObjectOrArrayString(val) ? JSON.parse(val) : val
95
+ );
96
+ FieldValueWriter.registerWriter("DatetimeNoTzTypeMySQL", (val, database) => {
97
+ const timezone = database.options.rawTimezone || "+00:00";
98
+ if (typeof val === "string" && isIso8601(val)) {
99
+ return formatInOffset(val, timezone);
100
+ }
101
+ return val;
102
+ });
103
+ FieldValueWriter.registerWriter(import_database.DataTypes.BOOLEAN.toString(), (val) => Boolean(val));
104
+ // Annotate the CommonJS export names for ESM import in node:
105
+ 0 && (module.exports = {
106
+ FieldValueWriter
107
+ });