@vc-shell/framework 1.1.46 → 1.1.47

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 (360) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/core/plugins/modularity/loader.ts +126 -97
  3. package/dist/assets/042c75b764bc78a7.svg +1 -0
  4. package/dist/assets/0ba156439a339f2a.svg +1 -0
  5. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  6. package/dist/assets/0f590f8a94577092.svg +1 -0
  7. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/157b8721e0600ea8.svg +1 -0
  11. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  12. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  13. package/dist/assets/1de63eb118636cce.svg +1 -0
  14. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  15. package/dist/assets/204eaf512fde2023.svg +1 -0
  16. package/dist/assets/2088983edf42e153.svg +1 -0
  17. package/dist/assets/208f810a9321a327.svg +1 -0
  18. package/dist/assets/21220a9d10e6c558.svg +1 -0
  19. package/dist/assets/220db345a102045d.woff2 +0 -0
  20. package/dist/assets/225da11d23968333.svg +1 -0
  21. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  22. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  23. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  24. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  25. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  26. package/dist/assets/2857c513073467da.svg +1 -0
  27. package/dist/assets/2b3be7889467d98f.woff +0 -0
  28. package/dist/assets/2d4e6190eec72737.svg +1 -0
  29. package/dist/assets/2eba973185078bc8.woff +0 -0
  30. package/dist/assets/327511cd4a7ba7f9.woff +0 -0
  31. package/dist/assets/334d3f6bc766c516.woff +0 -0
  32. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  33. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  34. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  35. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  36. package/dist/assets/41275bcb979cb650.svg +1 -0
  37. package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
  38. package/dist/assets/434f7982590e462f.woff +0 -0
  39. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  40. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  41. package/dist/assets/4e43c74354534fb3.svg +1 -0
  42. package/dist/assets/4fe75f5117100705.svg +1 -0
  43. package/dist/assets/52610491f372cb0c.woff2 +0 -0
  44. package/dist/assets/52e261a005074e1b.woff +0 -0
  45. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  46. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  47. package/dist/assets/5b3661be8be679d0.woff2 +0 -0
  48. package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
  49. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  50. package/dist/assets/617c4736236e199e.woff +0 -0
  51. package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
  52. package/dist/assets/67230f05dc94a265.svg +1 -0
  53. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  54. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  55. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  56. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  57. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  58. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  59. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  60. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  61. package/dist/assets/7d970675c69fca1d.woff +0 -0
  62. package/dist/assets/7eda727273fd98d3.svg +1 -0
  63. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  64. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  65. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  66. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  67. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  68. package/dist/assets/910b0d99b9e26568.svg +1 -0
  69. package/dist/assets/91eee1aa81f72683.woff +0 -0
  70. package/dist/assets/92508f8707159b51.svg +1 -0
  71. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  72. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  73. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  74. package/dist/assets/9d37314695c0b68d.woff +0 -0
  75. package/dist/assets/a18404194e3f9047.svg +1 -0
  76. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  77. package/dist/assets/a47034e65dbcc3d7.woff +0 -0
  78. package/dist/assets/a617e11804bbacb7.woff +0 -0
  79. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  80. package/dist/assets/abf88f301a0730f4.svg +1 -0
  81. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  82. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  83. package/dist/assets/b27767411c8427be.woff +0 -0
  84. package/dist/assets/b291dc35a17511f7.woff +0 -0
  85. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  86. package/dist/assets/b372390551ca2fa1.svg +1 -0
  87. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  88. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  89. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  90. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  91. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  92. package/dist/assets/bfbe205759295eca.woff2 +0 -0
  93. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  94. package/dist/assets/cb32840ce330103f.woff +0 -0
  95. package/dist/assets/d084bda16abe8a56.svg +1 -0
  96. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  97. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  98. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  99. package/dist/assets/d5a5b8630120073d.svg +1 -0
  100. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  101. package/dist/assets/d80b05788e407de7.woff2 +0 -0
  102. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  103. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  104. package/dist/assets/e38acaa1757232e0.svg +1 -0
  105. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  106. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  107. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  108. package/dist/assets/e72bb11356af94c7.svg +1 -0
  109. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  110. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  111. package/dist/assets/f09d89268e4c0317.svg +1 -0
  112. package/dist/assets/f276d55184e05a07.woff +0 -0
  113. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  114. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  115. package/dist/assets/fcb1c1ffb5640194.woff +0 -0
  116. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  117. package/dist/assets/fed13b0d59903483.svg +1 -0
  118. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  119. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  120. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  121. package/dist/framework.js +16544 -25878
  122. package/dist/index.css +1 -1
  123. package/dist/index.d.ts +5 -8
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  127. package/dist/vendor-boolbase-Bgn9I6iN.js +21 -0
  128. package/dist/vendor-cheerio-CleDsuQZ.js +1053 -0
  129. package/dist/vendor-cheerio-select-CVkYl3Z-.js +191 -0
  130. package/dist/vendor-css-select-CtIzVIiG.js +622 -0
  131. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  132. package/dist/vendor-cypress-signalr-mock-CdKwIhWw.js +769 -0
  133. package/dist/vendor-date-fns-CdFbeoHV.js +2989 -0
  134. package/dist/vendor-dom-serializer-CugO0RdN.js +213 -0
  135. package/dist/vendor-dom7-wvIUV9pT.js +529 -0
  136. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  137. package/dist/vendor-domhandler-CL40eeX9.js +311 -0
  138. package/dist/vendor-dompurify-eYFoHPwR.js +528 -0
  139. package/dist/vendor-domutils-D3Y2YQFR.js +386 -0
  140. package/dist/vendor-entities-v26HW8wW.js +363 -0
  141. package/dist/vendor-floating-ui-core-C9uEvi1M.js +349 -0
  142. package/dist/vendor-floating-ui-dom-CZkYGmv4.js +393 -0
  143. package/dist/vendor-floating-ui-utils-Bx3BTd6_.js +259 -0
  144. package/dist/vendor-floating-ui-vue-CLOiVYP7.js +107 -0
  145. package/dist/vendor-headlessui-vue-Dg0Llidi.js +961 -0
  146. package/dist/vendor-htmlparser2-CXL_uhMI.js +735 -0
  147. package/dist/vendor-iconify-vue-D4fihzvl.js +1205 -0
  148. package/dist/vendor-intlify-core-base-Bvt2vJFV.js +1129 -0
  149. package/dist/vendor-intlify-message-compiler-1VxNzq21.js +945 -0
  150. package/dist/vendor-intlify-shared-D7kiPMOG.js +130 -0
  151. package/dist/vendor-iso-639-1-dVGfSUIM.js +781 -0
  152. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  153. package/dist/vendor-linkifyjs-DTu7SY_Y.js +705 -0
  154. package/dist/vendor-lodash-es-CrYlgAi8.js +4816 -0
  155. package/dist/vendor-markdown-it-4AJoRTAg.js +2263 -0
  156. package/dist/vendor-markdown-it-task-lists-Byg1-ms9.js +69 -0
  157. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  158. package/dist/vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js +1105 -0
  159. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js +261 -0
  160. package/dist/vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js +1809 -0
  161. package/dist/vendor-microsoft-applicationinsights-common-CDVnJ6MR.js +1921 -0
  162. package/dist/vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js +4127 -0
  163. package/dist/vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js +1399 -0
  164. package/dist/vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js +572 -0
  165. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +43 -0
  166. package/dist/vendor-microsoft-applicationinsights-web-BRuQAzjU.js +487 -0
  167. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +147 -0
  168. package/dist/vendor-microsoft-signalr-qIrag5xx.js +1761 -0
  169. package/dist/vendor-moment-CwOqp704.js +2589 -0
  170. package/dist/vendor-nevware21-ts-async-FAyg3c9V.js +260 -0
  171. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +853 -0
  172. package/dist/vendor-nth-check-BE7AeBMg.js +45 -0
  173. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  174. package/dist/vendor-parse5-DqztJOGh.js +5747 -0
  175. package/dist/vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js +143 -0
  176. package/dist/vendor-popperjs-core-LGjf7Wza.js +905 -0
  177. package/dist/vendor-prettier-D8C9GG-0.js +4858 -0
  178. package/dist/vendor-prosemirror-commands-BqYcdumy.js +344 -0
  179. package/dist/vendor-prosemirror-dropcursor-zknUsW5x.js +86 -0
  180. package/dist/vendor-prosemirror-gapcursor-DjOZhP78.js +200 -0
  181. package/dist/vendor-prosemirror-history-l8l3CFac.js +248 -0
  182. package/dist/vendor-prosemirror-keymap-C17r08p-.js +62 -0
  183. package/dist/vendor-prosemirror-markdown-WJEDhc-w.js +650 -0
  184. package/dist/vendor-prosemirror-model-BN5TnJD_.js +2736 -0
  185. package/dist/vendor-prosemirror-schema-list-CR0gi7aY.js +87 -0
  186. package/dist/vendor-prosemirror-state-B0bFP8WI.js +821 -0
  187. package/dist/vendor-prosemirror-tables-B1txTKlC.js +1711 -0
  188. package/dist/vendor-prosemirror-transform-Bo7kNPme.js +1507 -0
  189. package/dist/vendor-prosemirror-view--C7TZvmQ.js +3746 -0
  190. package/dist/vendor-punycode-js-CNI-zL6U.js +133 -0
  191. package/dist/vendor-rope-sequence-sEGCUMi8.js +100 -0
  192. package/dist/vendor-semver-BoKYtkQw.js +1021 -0
  193. package/dist/vendor-ssr-window-D4k3p53c.js +133 -0
  194. package/dist/vendor-swiper-CMVLTGu0.js +2825 -0
  195. package/dist/vendor-tippy-js-BGdgwGX-.js +812 -0
  196. package/dist/vendor-tiptap-core-BRY37Sb2.js +2806 -0
  197. package/dist/vendor-tiptap-extension-blockquote-CPd5qv-9.js +43 -0
  198. package/dist/vendor-tiptap-extension-bold-B0GwBNks.js +71 -0
  199. package/dist/vendor-tiptap-extension-bubble-menu-B0sZZld7.js +128 -0
  200. package/dist/vendor-tiptap-extension-bullet-list-CQm4ReOu.js +53 -0
  201. package/dist/vendor-tiptap-extension-code-C8cy6bRj.js +51 -0
  202. package/dist/vendor-tiptap-extension-code-block-BqTchNEf.js +133 -0
  203. package/dist/vendor-tiptap-extension-document-Dka1Uu0g.js +9 -0
  204. package/dist/vendor-tiptap-extension-dropcursor-CFSh-BuE.js +20 -0
  205. package/dist/vendor-tiptap-extension-floating-menu-H8PB4zeI.js +99 -0
  206. package/dist/vendor-tiptap-extension-gapcursor-CzwfD_IT.js +24 -0
  207. package/dist/vendor-tiptap-extension-hard-break-Rm6aVcrK.js +55 -0
  208. package/dist/vendor-tiptap-extension-heading-CavI6u1v.js +54 -0
  209. package/dist/vendor-tiptap-extension-history-WEN1_74D.js +35 -0
  210. package/dist/vendor-tiptap-extension-horizontal-rule-DZkUEL6s.js +58 -0
  211. package/dist/vendor-tiptap-extension-image-B67_mxGM.js +64 -0
  212. package/dist/vendor-tiptap-extension-italic-BshxBFou.js +70 -0
  213. package/dist/vendor-tiptap-extension-link-CJAQIgui.js +262 -0
  214. package/dist/vendor-tiptap-extension-list-item-DF-iMpqO.js +33 -0
  215. package/dist/vendor-tiptap-extension-ordered-list-CN8MF-kN.js +71 -0
  216. package/dist/vendor-tiptap-extension-paragraph-DI577lM5.js +33 -0
  217. package/dist/vendor-tiptap-extension-placeholder-DwAtlfAF.js +52 -0
  218. package/dist/vendor-tiptap-extension-strike-CIty09KN.js +61 -0
  219. package/dist/vendor-tiptap-extension-table-C5nv-GUb.js +213 -0
  220. package/dist/vendor-tiptap-extension-table-cell-DXbBhJW3.js +40 -0
  221. package/dist/vendor-tiptap-extension-table-header-rtggsYXA.js +40 -0
  222. package/dist/vendor-tiptap-extension-table-row-67khjMDt.js +22 -0
  223. package/dist/vendor-tiptap-extension-text-D1OHb_a1.js +8 -0
  224. package/dist/vendor-tiptap-extension-underline-IqWixw3m.js +40 -0
  225. package/dist/vendor-tiptap-markdown-DVxB1hbO.js +825 -0
  226. package/dist/vendor-tiptap-starter-kit-CPH9gu2X.js +29 -0
  227. package/dist/vendor-tiptap-vue-3-CkBe4_xM.js +225 -0
  228. package/dist/vendor-truncate-html-Bx1HJzRq.js +145 -0
  229. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  230. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  231. package/dist/vendor-vee-validate-rules-DDeNM2Gc.js +314 -0
  232. package/dist/vendor-vue-currency-input-DxWnS-HB.js +315 -0
  233. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  234. package/dist/vendor-vue-i18n-DPtOLen3.js +1359 -0
  235. package/dist/vendor-vue3-application-insights-dAGGfA_M.js +69 -0
  236. package/dist/vendor-vue3-touch-events-8Pa3HHlV.js +169 -0
  237. package/dist/vendor-vuepic-vue-datepicker-DglsiNYa.js +4997 -0
  238. package/dist/vendor-vueuse-components-DtK_mxpP.js +219 -0
  239. package/dist/vendor-vueuse-core-cB-c7DzH.js +5129 -0
  240. package/dist/vendor-vueuse-shared-Dg7PMM0z.js +1169 -0
  241. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  242. package/dist/vendor-whatwg-fetch-l0sNRNKZ.js +1 -0
  243. package/package.json +5 -4
  244. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -1
  245. package/dist/vendor-boolbase-Cp9L0GAZ.js +0 -25
  246. package/dist/vendor-cheerio-HN9zIPZn.js +0 -3135
  247. package/dist/vendor-cheerio-select-5Ry0HvBq.js +0 -306
  248. package/dist/vendor-css-select-DRIZ9kfZ.js +0 -966
  249. package/dist/vendor-css-what-DuPJ1HEF.js +0 -448
  250. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +0 -778
  251. package/dist/vendor-date-fns-515YWkk-.js +0 -6724
  252. package/dist/vendor-dom-serializer-nQMsqjYW.js +0 -286
  253. package/dist/vendor-dom7-CJLPMwy5.js +0 -941
  254. package/dist/vendor-domelementtype-CjSzQey5.js +0 -53
  255. package/dist/vendor-domhandler-9z8cS16a.js +0 -484
  256. package/dist/vendor-dompurify-CRFzu7ib.js +0 -1336
  257. package/dist/vendor-domutils-Bc-Opz-v.js +0 -981
  258. package/dist/vendor-entities-Bfsx4xOQ.js +0 -636
  259. package/dist/vendor-floating-ui-core-wV8u8QP4.js +0 -511
  260. package/dist/vendor-floating-ui-dom-DDnRPs17.js +0 -706
  261. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +0 -296
  262. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +0 -167
  263. package/dist/vendor-fontsource-plus-jakarta-sans.css +0 -1
  264. package/dist/vendor-headlessui-vue-CY9FRgTb.js +0 -83
  265. package/dist/vendor-htmlparser2-B1dhFPOs.js +0 -1426
  266. package/dist/vendor-iconify-vue-DfRGgyNu.js +0 -1840
  267. package/dist/vendor-intlify-core-base-BuknsFQe.js +0 -1876
  268. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +0 -1508
  269. package/dist/vendor-intlify-shared-Cz4YRMuC.js +0 -241
  270. package/dist/vendor-iso-639-1-BJCk9DvE.js +0 -819
  271. package/dist/vendor-linkify-it-CKUf4vsc.js +0 -830
  272. package/dist/vendor-linkifyjs-BfyGgbCh.js +0 -1756
  273. package/dist/vendor-lodash-es-BySUOlwf.js +0 -18333
  274. package/dist/vendor-markdown-it-D-apazHa.js +0 -6000
  275. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +0 -131
  276. package/dist/vendor-mdurl-BNh2CCgT.js +0 -537
  277. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +0 -1275
  278. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +0 -591
  279. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +0 -2153
  280. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +0 -2470
  281. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +0 -6589
  282. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +0 -1510
  283. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +0 -761
  284. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +0 -70
  285. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +0 -667
  286. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +0 -520
  287. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +0 -3339
  288. package/dist/vendor-moment-Mki5YqAR.js +0 -5679
  289. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +0 -395
  290. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +0 -1160
  291. package/dist/vendor-nth-check-Bx8TxtJt.js +0 -157
  292. package/dist/vendor-orderedmap-dGG6uMFJ.js +0 -137
  293. package/dist/vendor-parse5-Bt2NhSzR.js +0 -8432
  294. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +0 -216
  295. package/dist/vendor-popperjs-core-Cr2byIky.js +0 -1790
  296. package/dist/vendor-prettier-B4PaeWRQ.js +0 -98
  297. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +0 -561
  298. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +0 -146
  299. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +0 -236
  300. package/dist/vendor-prosemirror-history-BDaJkvNx.js +0 -414
  301. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +0 -128
  302. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +0 -866
  303. package/dist/vendor-prosemirror-model-BZu3WVcD.js +0 -3463
  304. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +0 -158
  305. package/dist/vendor-prosemirror-state-BvL9Pxph.js +0 -1003
  306. package/dist/vendor-prosemirror-tables-17qAnviK.js +0 -2159
  307. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +0 -2156
  308. package/dist/vendor-prosemirror-view-CU2WTHT7.js +0 -5811
  309. package/dist/vendor-punycode-js-iAs5RxMf.js +0 -441
  310. package/dist/vendor-rope-sequence-BdXDKoGt.js +0 -207
  311. package/dist/vendor-semver-CVLMK-S4.js +0 -2702
  312. package/dist/vendor-ssr-window-s6OpKa3O.js +0 -150
  313. package/dist/vendor-swiper-CdiyNHVt.js +0 -5679
  314. package/dist/vendor-tippy-js-DWFe2TfK.js +0 -1647
  315. package/dist/vendor-tiptap-core-NfwGfaQk.js +0 -4910
  316. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +0 -57
  317. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +0 -97
  318. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +0 -218
  319. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +0 -73
  320. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +0 -221
  321. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +0 -75
  322. package/dist/vendor-tiptap-extension-document-DssuotYs.js +0 -13
  323. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +0 -26
  324. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +0 -165
  325. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +0 -30
  326. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +0 -68
  327. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +0 -77
  328. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +0 -48
  329. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +0 -92
  330. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +0 -76
  331. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +0 -96
  332. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +0 -414
  333. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +0 -37
  334. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +0 -97
  335. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +0 -39
  336. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +0 -66
  337. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +0 -79
  338. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +0 -47
  339. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +0 -47
  340. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +0 -26
  341. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +0 -354
  342. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +0 -12
  343. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +0 -50
  344. package/dist/vendor-tiptap-markdown-7-PCADTU.js +0 -1017
  345. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +0 -88
  346. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +0 -268
  347. package/dist/vendor-truncate-html-3qQY0Djo.js +0 -196
  348. package/dist/vendor-uc-micro-jjt6LQ65.js +0 -23
  349. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +0 -154
  350. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +0 -536
  351. package/dist/vendor-vue-currency-input-DGAkEFBO.js +0 -545
  352. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +0 -169
  353. package/dist/vendor-vue-i18n-Co752uk3.js +0 -1897
  354. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +0 -119
  355. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +0 -416
  356. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +0 -5019
  357. package/dist/vendor-vueuse-components-l1bL12mE.js +0 -339
  358. package/dist/vendor-vueuse-core-DGcJOmwG.js +0 -7743
  359. package/dist/vendor-vueuse-shared-_mOXsFuM.js +0 -1568
  360. package/dist/vendor-w3c-keyname-BOm2dtJm.js +0 -121
@@ -1,2702 +0,0 @@
1
- var re = {exports: {}};
2
-
3
- var constants;
4
- var hasRequiredConstants;
5
-
6
- function requireConstants () {
7
- if (hasRequiredConstants) return constants;
8
- hasRequiredConstants = 1;
9
-
10
- // Note: this is the semver.org version of the spec that it implements
11
- // Not necessarily the package version of this code.
12
- const SEMVER_SPEC_VERSION = '2.0.0';
13
-
14
- const MAX_LENGTH = 256;
15
- const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
16
- /* istanbul ignore next */ 9007199254740991;
17
-
18
- // Max safe segment length for coercion.
19
- const MAX_SAFE_COMPONENT_LENGTH = 16;
20
-
21
- // Max safe length for a build identifier. The max length minus 6 characters for
22
- // the shortest version with a build 0.0.0+BUILD.
23
- const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
24
-
25
- const RELEASE_TYPES = [
26
- 'major',
27
- 'premajor',
28
- 'minor',
29
- 'preminor',
30
- 'patch',
31
- 'prepatch',
32
- 'prerelease',
33
- ];
34
-
35
- constants = {
36
- MAX_LENGTH,
37
- MAX_SAFE_COMPONENT_LENGTH,
38
- MAX_SAFE_BUILD_LENGTH,
39
- MAX_SAFE_INTEGER,
40
- RELEASE_TYPES,
41
- SEMVER_SPEC_VERSION,
42
- FLAG_INCLUDE_PRERELEASE: 0b001,
43
- FLAG_LOOSE: 0b010,
44
- };
45
- return constants;
46
- }
47
-
48
- var debug_1;
49
- var hasRequiredDebug;
50
-
51
- function requireDebug () {
52
- if (hasRequiredDebug) return debug_1;
53
- hasRequiredDebug = 1;
54
-
55
- const debug = (
56
- typeof process === 'object' &&
57
- process.env &&
58
- process.env.NODE_DEBUG &&
59
- /\bsemver\b/i.test(process.env.NODE_DEBUG)
60
- ) ? (...args) => console.error('SEMVER', ...args)
61
- : () => {};
62
-
63
- debug_1 = debug;
64
- return debug_1;
65
- }
66
-
67
- var hasRequiredRe;
68
-
69
- function requireRe () {
70
- if (hasRequiredRe) return re.exports;
71
- hasRequiredRe = 1;
72
- (function (module, exports) {
73
-
74
- const {
75
- MAX_SAFE_COMPONENT_LENGTH,
76
- MAX_SAFE_BUILD_LENGTH,
77
- MAX_LENGTH,
78
- } = /*@__PURE__*/ requireConstants();
79
- const debug = /*@__PURE__*/ requireDebug();
80
- exports = module.exports = {};
81
-
82
- // The actual regexps go on exports.re
83
- const re = exports.re = [];
84
- const safeRe = exports.safeRe = [];
85
- const src = exports.src = [];
86
- const safeSrc = exports.safeSrc = [];
87
- const t = exports.t = {};
88
- let R = 0;
89
-
90
- const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
91
-
92
- // Replace some greedy regex tokens to prevent regex dos issues. These regex are
93
- // used internally via the safeRe object since all inputs in this library get
94
- // normalized first to trim and collapse all extra whitespace. The original
95
- // regexes are exported for userland consumption and lower level usage. A
96
- // future breaking change could export the safer regex only with a note that
97
- // all input should have extra whitespace removed.
98
- const safeRegexReplacements = [
99
- ['\\s', 1],
100
- ['\\d', MAX_LENGTH],
101
- [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
102
- ];
103
-
104
- const makeSafeRegex = (value) => {
105
- for (const [token, max] of safeRegexReplacements) {
106
- value = value
107
- .split(`${token}*`).join(`${token}{0,${max}}`)
108
- .split(`${token}+`).join(`${token}{1,${max}}`);
109
- }
110
- return value
111
- };
112
-
113
- const createToken = (name, value, isGlobal) => {
114
- const safe = makeSafeRegex(value);
115
- const index = R++;
116
- debug(name, index, value);
117
- t[name] = index;
118
- src[index] = value;
119
- safeSrc[index] = safe;
120
- re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
121
- safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined);
122
- };
123
-
124
- // The following Regular Expressions can be used for tokenizing,
125
- // validating, and parsing SemVer version strings.
126
-
127
- // ## Numeric Identifier
128
- // A single `0`, or a non-zero digit followed by zero or more digits.
129
-
130
- createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
131
- createToken('NUMERICIDENTIFIERLOOSE', '\\d+');
132
-
133
- // ## Non-numeric Identifier
134
- // Zero or more digits, followed by a letter or hyphen, and then zero or
135
- // more letters, digits, or hyphens.
136
-
137
- createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
138
-
139
- // ## Main Version
140
- // Three dot-separated numeric identifiers.
141
-
142
- createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
143
- `(${src[t.NUMERICIDENTIFIER]})\\.` +
144
- `(${src[t.NUMERICIDENTIFIER]})`);
145
-
146
- createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
147
- `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
148
- `(${src[t.NUMERICIDENTIFIERLOOSE]})`);
149
-
150
- // ## Pre-release Version Identifier
151
- // A numeric identifier, or a non-numeric identifier.
152
- // Non-numberic identifiers include numberic identifiers but can be longer.
153
- // Therefore non-numberic identifiers must go first.
154
-
155
- createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
156
- }|${src[t.NUMERICIDENTIFIER]})`);
157
-
158
- createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
159
- }|${src[t.NUMERICIDENTIFIERLOOSE]})`);
160
-
161
- // ## Pre-release Version
162
- // Hyphen, followed by one or more dot-separated pre-release version
163
- // identifiers.
164
-
165
- createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
166
- }(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
167
-
168
- createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
169
- }(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
170
-
171
- // ## Build Metadata Identifier
172
- // Any combination of digits, letters, or hyphens.
173
-
174
- createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`);
175
-
176
- // ## Build Metadata
177
- // Plus sign, followed by one or more period-separated build metadata
178
- // identifiers.
179
-
180
- createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
181
- }(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
182
-
183
- // ## Full Version String
184
- // A main version, followed optionally by a pre-release version and
185
- // build metadata.
186
-
187
- // Note that the only major, minor, patch, and pre-release sections of
188
- // the version string are capturing groups. The build metadata is not a
189
- // capturing group, because it should not ever be used in version
190
- // comparison.
191
-
192
- createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
193
- }${src[t.PRERELEASE]}?${
194
- src[t.BUILD]}?`);
195
-
196
- createToken('FULL', `^${src[t.FULLPLAIN]}$`);
197
-
198
- // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
199
- // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
200
- // common in the npm registry.
201
- createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
202
- }${src[t.PRERELEASELOOSE]}?${
203
- src[t.BUILD]}?`);
204
-
205
- createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`);
206
-
207
- createToken('GTLT', '((?:<|>)?=?)');
208
-
209
- // Something like "2.*" or "1.2.x".
210
- // Note that "x.x" is a valid xRange identifer, meaning "any version"
211
- // Only the first item is strictly required.
212
- createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
213
- createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
214
-
215
- createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
216
- `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
217
- `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
218
- `(?:${src[t.PRERELEASE]})?${
219
- src[t.BUILD]}?` +
220
- `)?)?`);
221
-
222
- createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
223
- `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
224
- `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
225
- `(?:${src[t.PRERELEASELOOSE]})?${
226
- src[t.BUILD]}?` +
227
- `)?)?`);
228
-
229
- createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
230
- createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
231
-
232
- // Coercion.
233
- // Extract anything that could conceivably be a part of a valid semver
234
- createToken('COERCEPLAIN', `${'(^|[^\\d])' +
235
- '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
236
- `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
237
- `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
238
- createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
239
- createToken('COERCEFULL', src[t.COERCEPLAIN] +
240
- `(?:${src[t.PRERELEASE]})?` +
241
- `(?:${src[t.BUILD]})?` +
242
- `(?:$|[^\\d])`);
243
- createToken('COERCERTL', src[t.COERCE], true);
244
- createToken('COERCERTLFULL', src[t.COERCEFULL], true);
245
-
246
- // Tilde ranges.
247
- // Meaning is "reasonably at or greater than"
248
- createToken('LONETILDE', '(?:~>?)');
249
-
250
- createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
251
- exports.tildeTrimReplace = '$1~';
252
-
253
- createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
254
- createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
255
-
256
- // Caret ranges.
257
- // Meaning is "at least and backwards compatible with"
258
- createToken('LONECARET', '(?:\\^)');
259
-
260
- createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true);
261
- exports.caretTrimReplace = '$1^';
262
-
263
- createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
264
- createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
265
-
266
- // A simple gt/lt/eq thing, or just "" to indicate "any version"
267
- createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
268
- createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
269
-
270
- // An expression to strip any whitespace between the gtlt and the thing
271
- // it modifies, so that `> 1.2.3` ==> `>1.2.3`
272
- createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
273
- }\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
274
- exports.comparatorTrimReplace = '$1$2$3';
275
-
276
- // Something like `1.2.3 - 1.2.4`
277
- // Note that these all use the loose form, because they'll be
278
- // checked against either the strict or loose comparator form
279
- // later.
280
- createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
281
- `\\s+-\\s+` +
282
- `(${src[t.XRANGEPLAIN]})` +
283
- `\\s*$`);
284
-
285
- createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
286
- `\\s+-\\s+` +
287
- `(${src[t.XRANGEPLAINLOOSE]})` +
288
- `\\s*$`);
289
-
290
- // Star ranges basically just allow anything at all.
291
- createToken('STAR', '(<|>)?=?\\s*\\*');
292
- // >=0.0.0 is like a star
293
- createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$');
294
- createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$');
295
- } (re, re.exports));
296
- return re.exports;
297
- }
298
-
299
- var parseOptions_1;
300
- var hasRequiredParseOptions;
301
-
302
- function requireParseOptions () {
303
- if (hasRequiredParseOptions) return parseOptions_1;
304
- hasRequiredParseOptions = 1;
305
-
306
- // parse out just the options we care about
307
- const looseOption = Object.freeze({ loose: true });
308
- const emptyOpts = Object.freeze({ });
309
- const parseOptions = options => {
310
- if (!options) {
311
- return emptyOpts
312
- }
313
-
314
- if (typeof options !== 'object') {
315
- return looseOption
316
- }
317
-
318
- return options
319
- };
320
- parseOptions_1 = parseOptions;
321
- return parseOptions_1;
322
- }
323
-
324
- var identifiers;
325
- var hasRequiredIdentifiers;
326
-
327
- function requireIdentifiers () {
328
- if (hasRequiredIdentifiers) return identifiers;
329
- hasRequiredIdentifiers = 1;
330
-
331
- const numeric = /^[0-9]+$/;
332
- const compareIdentifiers = (a, b) => {
333
- const anum = numeric.test(a);
334
- const bnum = numeric.test(b);
335
-
336
- if (anum && bnum) {
337
- a = +a;
338
- b = +b;
339
- }
340
-
341
- return a === b ? 0
342
- : (anum && !bnum) ? -1
343
- : (bnum && !anum) ? 1
344
- : a < b ? -1
345
- : 1
346
- };
347
-
348
- const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
349
-
350
- identifiers = {
351
- compareIdentifiers,
352
- rcompareIdentifiers,
353
- };
354
- return identifiers;
355
- }
356
-
357
- var semver$1;
358
- var hasRequiredSemver$1;
359
-
360
- function requireSemver$1 () {
361
- if (hasRequiredSemver$1) return semver$1;
362
- hasRequiredSemver$1 = 1;
363
-
364
- const debug = /*@__PURE__*/ requireDebug();
365
- const { MAX_LENGTH, MAX_SAFE_INTEGER } = /*@__PURE__*/ requireConstants();
366
- const { safeRe: re, t } = /*@__PURE__*/ requireRe();
367
-
368
- const parseOptions = /*@__PURE__*/ requireParseOptions();
369
- const { compareIdentifiers } = /*@__PURE__*/ requireIdentifiers();
370
- class SemVer {
371
- constructor (version, options) {
372
- options = parseOptions(options);
373
-
374
- if (version instanceof SemVer) {
375
- if (version.loose === !!options.loose &&
376
- version.includePrerelease === !!options.includePrerelease) {
377
- return version
378
- } else {
379
- version = version.version;
380
- }
381
- } else if (typeof version !== 'string') {
382
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)
383
- }
384
-
385
- if (version.length > MAX_LENGTH) {
386
- throw new TypeError(
387
- `version is longer than ${MAX_LENGTH} characters`
388
- )
389
- }
390
-
391
- debug('SemVer', version, options);
392
- this.options = options;
393
- this.loose = !!options.loose;
394
- // this isn't actually relevant for versions, but keep it so that we
395
- // don't run into trouble passing this.options around.
396
- this.includePrerelease = !!options.includePrerelease;
397
-
398
- const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
399
-
400
- if (!m) {
401
- throw new TypeError(`Invalid Version: ${version}`)
402
- }
403
-
404
- this.raw = version;
405
-
406
- // these are actually numbers
407
- this.major = +m[1];
408
- this.minor = +m[2];
409
- this.patch = +m[3];
410
-
411
- if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
412
- throw new TypeError('Invalid major version')
413
- }
414
-
415
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
416
- throw new TypeError('Invalid minor version')
417
- }
418
-
419
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
420
- throw new TypeError('Invalid patch version')
421
- }
422
-
423
- // numberify any prerelease numeric ids
424
- if (!m[4]) {
425
- this.prerelease = [];
426
- } else {
427
- this.prerelease = m[4].split('.').map((id) => {
428
- if (/^[0-9]+$/.test(id)) {
429
- const num = +id;
430
- if (num >= 0 && num < MAX_SAFE_INTEGER) {
431
- return num
432
- }
433
- }
434
- return id
435
- });
436
- }
437
-
438
- this.build = m[5] ? m[5].split('.') : [];
439
- this.format();
440
- }
441
-
442
- format () {
443
- this.version = `${this.major}.${this.minor}.${this.patch}`;
444
- if (this.prerelease.length) {
445
- this.version += `-${this.prerelease.join('.')}`;
446
- }
447
- return this.version
448
- }
449
-
450
- toString () {
451
- return this.version
452
- }
453
-
454
- compare (other) {
455
- debug('SemVer.compare', this.version, this.options, other);
456
- if (!(other instanceof SemVer)) {
457
- if (typeof other === 'string' && other === this.version) {
458
- return 0
459
- }
460
- other = new SemVer(other, this.options);
461
- }
462
-
463
- if (other.version === this.version) {
464
- return 0
465
- }
466
-
467
- return this.compareMain(other) || this.comparePre(other)
468
- }
469
-
470
- compareMain (other) {
471
- if (!(other instanceof SemVer)) {
472
- other = new SemVer(other, this.options);
473
- }
474
-
475
- return (
476
- compareIdentifiers(this.major, other.major) ||
477
- compareIdentifiers(this.minor, other.minor) ||
478
- compareIdentifiers(this.patch, other.patch)
479
- )
480
- }
481
-
482
- comparePre (other) {
483
- if (!(other instanceof SemVer)) {
484
- other = new SemVer(other, this.options);
485
- }
486
-
487
- // NOT having a prerelease is > having one
488
- if (this.prerelease.length && !other.prerelease.length) {
489
- return -1
490
- } else if (!this.prerelease.length && other.prerelease.length) {
491
- return 1
492
- } else if (!this.prerelease.length && !other.prerelease.length) {
493
- return 0
494
- }
495
-
496
- let i = 0;
497
- do {
498
- const a = this.prerelease[i];
499
- const b = other.prerelease[i];
500
- debug('prerelease compare', i, a, b);
501
- if (a === undefined && b === undefined) {
502
- return 0
503
- } else if (b === undefined) {
504
- return 1
505
- } else if (a === undefined) {
506
- return -1
507
- } else if (a === b) {
508
- continue
509
- } else {
510
- return compareIdentifiers(a, b)
511
- }
512
- } while (++i)
513
- }
514
-
515
- compareBuild (other) {
516
- if (!(other instanceof SemVer)) {
517
- other = new SemVer(other, this.options);
518
- }
519
-
520
- let i = 0;
521
- do {
522
- const a = this.build[i];
523
- const b = other.build[i];
524
- debug('build compare', i, a, b);
525
- if (a === undefined && b === undefined) {
526
- return 0
527
- } else if (b === undefined) {
528
- return 1
529
- } else if (a === undefined) {
530
- return -1
531
- } else if (a === b) {
532
- continue
533
- } else {
534
- return compareIdentifiers(a, b)
535
- }
536
- } while (++i)
537
- }
538
-
539
- // preminor will bump the version up to the next minor release, and immediately
540
- // down to pre-release. premajor and prepatch work the same way.
541
- inc (release, identifier, identifierBase) {
542
- if (release.startsWith('pre')) {
543
- if (!identifier && identifierBase === false) {
544
- throw new Error('invalid increment argument: identifier is empty')
545
- }
546
- // Avoid an invalid semver results
547
- if (identifier) {
548
- const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
549
- if (!match || match[1] !== identifier) {
550
- throw new Error(`invalid identifier: ${identifier}`)
551
- }
552
- }
553
- }
554
-
555
- switch (release) {
556
- case 'premajor':
557
- this.prerelease.length = 0;
558
- this.patch = 0;
559
- this.minor = 0;
560
- this.major++;
561
- this.inc('pre', identifier, identifierBase);
562
- break
563
- case 'preminor':
564
- this.prerelease.length = 0;
565
- this.patch = 0;
566
- this.minor++;
567
- this.inc('pre', identifier, identifierBase);
568
- break
569
- case 'prepatch':
570
- // If this is already a prerelease, it will bump to the next version
571
- // drop any prereleases that might already exist, since they are not
572
- // relevant at this point.
573
- this.prerelease.length = 0;
574
- this.inc('patch', identifier, identifierBase);
575
- this.inc('pre', identifier, identifierBase);
576
- break
577
- // If the input is a non-prerelease version, this acts the same as
578
- // prepatch.
579
- case 'prerelease':
580
- if (this.prerelease.length === 0) {
581
- this.inc('patch', identifier, identifierBase);
582
- }
583
- this.inc('pre', identifier, identifierBase);
584
- break
585
- case 'release':
586
- if (this.prerelease.length === 0) {
587
- throw new Error(`version ${this.raw} is not a prerelease`)
588
- }
589
- this.prerelease.length = 0;
590
- break
591
-
592
- case 'major':
593
- // If this is a pre-major version, bump up to the same major version.
594
- // Otherwise increment major.
595
- // 1.0.0-5 bumps to 1.0.0
596
- // 1.1.0 bumps to 2.0.0
597
- if (
598
- this.minor !== 0 ||
599
- this.patch !== 0 ||
600
- this.prerelease.length === 0
601
- ) {
602
- this.major++;
603
- }
604
- this.minor = 0;
605
- this.patch = 0;
606
- this.prerelease = [];
607
- break
608
- case 'minor':
609
- // If this is a pre-minor version, bump up to the same minor version.
610
- // Otherwise increment minor.
611
- // 1.2.0-5 bumps to 1.2.0
612
- // 1.2.1 bumps to 1.3.0
613
- if (this.patch !== 0 || this.prerelease.length === 0) {
614
- this.minor++;
615
- }
616
- this.patch = 0;
617
- this.prerelease = [];
618
- break
619
- case 'patch':
620
- // If this is not a pre-release version, it will increment the patch.
621
- // If it is a pre-release it will bump up to the same patch version.
622
- // 1.2.0-5 patches to 1.2.0
623
- // 1.2.0 patches to 1.2.1
624
- if (this.prerelease.length === 0) {
625
- this.patch++;
626
- }
627
- this.prerelease = [];
628
- break
629
- // This probably shouldn't be used publicly.
630
- // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
631
- case 'pre': {
632
- const base = Number(identifierBase) ? 1 : 0;
633
-
634
- if (this.prerelease.length === 0) {
635
- this.prerelease = [base];
636
- } else {
637
- let i = this.prerelease.length;
638
- while (--i >= 0) {
639
- if (typeof this.prerelease[i] === 'number') {
640
- this.prerelease[i]++;
641
- i = -2;
642
- }
643
- }
644
- if (i === -1) {
645
- // didn't increment anything
646
- if (identifier === this.prerelease.join('.') && identifierBase === false) {
647
- throw new Error('invalid increment argument: identifier already exists')
648
- }
649
- this.prerelease.push(base);
650
- }
651
- }
652
- if (identifier) {
653
- // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
654
- // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
655
- let prerelease = [identifier, base];
656
- if (identifierBase === false) {
657
- prerelease = [identifier];
658
- }
659
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
660
- if (isNaN(this.prerelease[1])) {
661
- this.prerelease = prerelease;
662
- }
663
- } else {
664
- this.prerelease = prerelease;
665
- }
666
- }
667
- break
668
- }
669
- default:
670
- throw new Error(`invalid increment argument: ${release}`)
671
- }
672
- this.raw = this.format();
673
- if (this.build.length) {
674
- this.raw += `+${this.build.join('.')}`;
675
- }
676
- return this
677
- }
678
- }
679
-
680
- semver$1 = SemVer;
681
- return semver$1;
682
- }
683
-
684
- var parse_1;
685
- var hasRequiredParse;
686
-
687
- function requireParse () {
688
- if (hasRequiredParse) return parse_1;
689
- hasRequiredParse = 1;
690
-
691
- const SemVer = /*@__PURE__*/ requireSemver$1();
692
- const parse = (version, options, throwErrors = false) => {
693
- if (version instanceof SemVer) {
694
- return version
695
- }
696
- try {
697
- return new SemVer(version, options)
698
- } catch (er) {
699
- if (!throwErrors) {
700
- return null
701
- }
702
- throw er
703
- }
704
- };
705
-
706
- parse_1 = parse;
707
- return parse_1;
708
- }
709
-
710
- var valid_1;
711
- var hasRequiredValid$1;
712
-
713
- function requireValid$1 () {
714
- if (hasRequiredValid$1) return valid_1;
715
- hasRequiredValid$1 = 1;
716
-
717
- const parse = /*@__PURE__*/ requireParse();
718
- const valid = (version, options) => {
719
- const v = parse(version, options);
720
- return v ? v.version : null
721
- };
722
- valid_1 = valid;
723
- return valid_1;
724
- }
725
-
726
- var clean_1;
727
- var hasRequiredClean;
728
-
729
- function requireClean () {
730
- if (hasRequiredClean) return clean_1;
731
- hasRequiredClean = 1;
732
-
733
- const parse = /*@__PURE__*/ requireParse();
734
- const clean = (version, options) => {
735
- const s = parse(version.trim().replace(/^[=v]+/, ''), options);
736
- return s ? s.version : null
737
- };
738
- clean_1 = clean;
739
- return clean_1;
740
- }
741
-
742
- var inc_1;
743
- var hasRequiredInc;
744
-
745
- function requireInc () {
746
- if (hasRequiredInc) return inc_1;
747
- hasRequiredInc = 1;
748
-
749
- const SemVer = /*@__PURE__*/ requireSemver$1();
750
-
751
- const inc = (version, release, options, identifier, identifierBase) => {
752
- if (typeof (options) === 'string') {
753
- identifierBase = identifier;
754
- identifier = options;
755
- options = undefined;
756
- }
757
-
758
- try {
759
- return new SemVer(
760
- version instanceof SemVer ? version.version : version,
761
- options
762
- ).inc(release, identifier, identifierBase).version
763
- } catch (er) {
764
- return null
765
- }
766
- };
767
- inc_1 = inc;
768
- return inc_1;
769
- }
770
-
771
- var diff_1;
772
- var hasRequiredDiff;
773
-
774
- function requireDiff () {
775
- if (hasRequiredDiff) return diff_1;
776
- hasRequiredDiff = 1;
777
-
778
- const parse = /*@__PURE__*/ requireParse();
779
-
780
- const diff = (version1, version2) => {
781
- const v1 = parse(version1, null, true);
782
- const v2 = parse(version2, null, true);
783
- const comparison = v1.compare(v2);
784
-
785
- if (comparison === 0) {
786
- return null
787
- }
788
-
789
- const v1Higher = comparison > 0;
790
- const highVersion = v1Higher ? v1 : v2;
791
- const lowVersion = v1Higher ? v2 : v1;
792
- const highHasPre = !!highVersion.prerelease.length;
793
- const lowHasPre = !!lowVersion.prerelease.length;
794
-
795
- if (lowHasPre && !highHasPre) {
796
- // Going from prerelease -> no prerelease requires some special casing
797
-
798
- // If the low version has only a major, then it will always be a major
799
- // Some examples:
800
- // 1.0.0-1 -> 1.0.0
801
- // 1.0.0-1 -> 1.1.1
802
- // 1.0.0-1 -> 2.0.0
803
- if (!lowVersion.patch && !lowVersion.minor) {
804
- return 'major'
805
- }
806
-
807
- // If the main part has no difference
808
- if (lowVersion.compareMain(highVersion) === 0) {
809
- if (lowVersion.minor && !lowVersion.patch) {
810
- return 'minor'
811
- }
812
- return 'patch'
813
- }
814
- }
815
-
816
- // add the `pre` prefix if we are going to a prerelease version
817
- const prefix = highHasPre ? 'pre' : '';
818
-
819
- if (v1.major !== v2.major) {
820
- return prefix + 'major'
821
- }
822
-
823
- if (v1.minor !== v2.minor) {
824
- return prefix + 'minor'
825
- }
826
-
827
- if (v1.patch !== v2.patch) {
828
- return prefix + 'patch'
829
- }
830
-
831
- // high and low are preleases
832
- return 'prerelease'
833
- };
834
-
835
- diff_1 = diff;
836
- return diff_1;
837
- }
838
-
839
- var major_1;
840
- var hasRequiredMajor;
841
-
842
- function requireMajor () {
843
- if (hasRequiredMajor) return major_1;
844
- hasRequiredMajor = 1;
845
-
846
- const SemVer = /*@__PURE__*/ requireSemver$1();
847
- const major = (a, loose) => new SemVer(a, loose).major;
848
- major_1 = major;
849
- return major_1;
850
- }
851
-
852
- var minor_1;
853
- var hasRequiredMinor;
854
-
855
- function requireMinor () {
856
- if (hasRequiredMinor) return minor_1;
857
- hasRequiredMinor = 1;
858
-
859
- const SemVer = /*@__PURE__*/ requireSemver$1();
860
- const minor = (a, loose) => new SemVer(a, loose).minor;
861
- minor_1 = minor;
862
- return minor_1;
863
- }
864
-
865
- var patch_1;
866
- var hasRequiredPatch;
867
-
868
- function requirePatch () {
869
- if (hasRequiredPatch) return patch_1;
870
- hasRequiredPatch = 1;
871
-
872
- const SemVer = /*@__PURE__*/ requireSemver$1();
873
- const patch = (a, loose) => new SemVer(a, loose).patch;
874
- patch_1 = patch;
875
- return patch_1;
876
- }
877
-
878
- var prerelease_1;
879
- var hasRequiredPrerelease;
880
-
881
- function requirePrerelease () {
882
- if (hasRequiredPrerelease) return prerelease_1;
883
- hasRequiredPrerelease = 1;
884
-
885
- const parse = /*@__PURE__*/ requireParse();
886
- const prerelease = (version, options) => {
887
- const parsed = parse(version, options);
888
- return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
889
- };
890
- prerelease_1 = prerelease;
891
- return prerelease_1;
892
- }
893
-
894
- var compare_1;
895
- var hasRequiredCompare;
896
-
897
- function requireCompare () {
898
- if (hasRequiredCompare) return compare_1;
899
- hasRequiredCompare = 1;
900
-
901
- const SemVer = /*@__PURE__*/ requireSemver$1();
902
- const compare = (a, b, loose) =>
903
- new SemVer(a, loose).compare(new SemVer(b, loose));
904
-
905
- compare_1 = compare;
906
- return compare_1;
907
- }
908
-
909
- var rcompare_1;
910
- var hasRequiredRcompare;
911
-
912
- function requireRcompare () {
913
- if (hasRequiredRcompare) return rcompare_1;
914
- hasRequiredRcompare = 1;
915
-
916
- const compare = /*@__PURE__*/ requireCompare();
917
- const rcompare = (a, b, loose) => compare(b, a, loose);
918
- rcompare_1 = rcompare;
919
- return rcompare_1;
920
- }
921
-
922
- var compareLoose_1;
923
- var hasRequiredCompareLoose;
924
-
925
- function requireCompareLoose () {
926
- if (hasRequiredCompareLoose) return compareLoose_1;
927
- hasRequiredCompareLoose = 1;
928
-
929
- const compare = /*@__PURE__*/ requireCompare();
930
- const compareLoose = (a, b) => compare(a, b, true);
931
- compareLoose_1 = compareLoose;
932
- return compareLoose_1;
933
- }
934
-
935
- var compareBuild_1;
936
- var hasRequiredCompareBuild;
937
-
938
- function requireCompareBuild () {
939
- if (hasRequiredCompareBuild) return compareBuild_1;
940
- hasRequiredCompareBuild = 1;
941
-
942
- const SemVer = /*@__PURE__*/ requireSemver$1();
943
- const compareBuild = (a, b, loose) => {
944
- const versionA = new SemVer(a, loose);
945
- const versionB = new SemVer(b, loose);
946
- return versionA.compare(versionB) || versionA.compareBuild(versionB)
947
- };
948
- compareBuild_1 = compareBuild;
949
- return compareBuild_1;
950
- }
951
-
952
- var sort_1;
953
- var hasRequiredSort;
954
-
955
- function requireSort () {
956
- if (hasRequiredSort) return sort_1;
957
- hasRequiredSort = 1;
958
-
959
- const compareBuild = /*@__PURE__*/ requireCompareBuild();
960
- const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
961
- sort_1 = sort;
962
- return sort_1;
963
- }
964
-
965
- var rsort_1;
966
- var hasRequiredRsort;
967
-
968
- function requireRsort () {
969
- if (hasRequiredRsort) return rsort_1;
970
- hasRequiredRsort = 1;
971
-
972
- const compareBuild = /*@__PURE__*/ requireCompareBuild();
973
- const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
974
- rsort_1 = rsort;
975
- return rsort_1;
976
- }
977
-
978
- var gt_1;
979
- var hasRequiredGt;
980
-
981
- function requireGt () {
982
- if (hasRequiredGt) return gt_1;
983
- hasRequiredGt = 1;
984
-
985
- const compare = /*@__PURE__*/ requireCompare();
986
- const gt = (a, b, loose) => compare(a, b, loose) > 0;
987
- gt_1 = gt;
988
- return gt_1;
989
- }
990
-
991
- var lt_1;
992
- var hasRequiredLt;
993
-
994
- function requireLt () {
995
- if (hasRequiredLt) return lt_1;
996
- hasRequiredLt = 1;
997
-
998
- const compare = /*@__PURE__*/ requireCompare();
999
- const lt = (a, b, loose) => compare(a, b, loose) < 0;
1000
- lt_1 = lt;
1001
- return lt_1;
1002
- }
1003
-
1004
- var eq_1;
1005
- var hasRequiredEq;
1006
-
1007
- function requireEq () {
1008
- if (hasRequiredEq) return eq_1;
1009
- hasRequiredEq = 1;
1010
-
1011
- const compare = /*@__PURE__*/ requireCompare();
1012
- const eq = (a, b, loose) => compare(a, b, loose) === 0;
1013
- eq_1 = eq;
1014
- return eq_1;
1015
- }
1016
-
1017
- var neq_1;
1018
- var hasRequiredNeq;
1019
-
1020
- function requireNeq () {
1021
- if (hasRequiredNeq) return neq_1;
1022
- hasRequiredNeq = 1;
1023
-
1024
- const compare = /*@__PURE__*/ requireCompare();
1025
- const neq = (a, b, loose) => compare(a, b, loose) !== 0;
1026
- neq_1 = neq;
1027
- return neq_1;
1028
- }
1029
-
1030
- var gte_1;
1031
- var hasRequiredGte;
1032
-
1033
- function requireGte () {
1034
- if (hasRequiredGte) return gte_1;
1035
- hasRequiredGte = 1;
1036
-
1037
- const compare = /*@__PURE__*/ requireCompare();
1038
- const gte = (a, b, loose) => compare(a, b, loose) >= 0;
1039
- gte_1 = gte;
1040
- return gte_1;
1041
- }
1042
-
1043
- var lte_1;
1044
- var hasRequiredLte;
1045
-
1046
- function requireLte () {
1047
- if (hasRequiredLte) return lte_1;
1048
- hasRequiredLte = 1;
1049
-
1050
- const compare = /*@__PURE__*/ requireCompare();
1051
- const lte = (a, b, loose) => compare(a, b, loose) <= 0;
1052
- lte_1 = lte;
1053
- return lte_1;
1054
- }
1055
-
1056
- var cmp_1;
1057
- var hasRequiredCmp;
1058
-
1059
- function requireCmp () {
1060
- if (hasRequiredCmp) return cmp_1;
1061
- hasRequiredCmp = 1;
1062
-
1063
- const eq = /*@__PURE__*/ requireEq();
1064
- const neq = /*@__PURE__*/ requireNeq();
1065
- const gt = /*@__PURE__*/ requireGt();
1066
- const gte = /*@__PURE__*/ requireGte();
1067
- const lt = /*@__PURE__*/ requireLt();
1068
- const lte = /*@__PURE__*/ requireLte();
1069
-
1070
- const cmp = (a, op, b, loose) => {
1071
- switch (op) {
1072
- case '===':
1073
- if (typeof a === 'object') {
1074
- a = a.version;
1075
- }
1076
- if (typeof b === 'object') {
1077
- b = b.version;
1078
- }
1079
- return a === b
1080
-
1081
- case '!==':
1082
- if (typeof a === 'object') {
1083
- a = a.version;
1084
- }
1085
- if (typeof b === 'object') {
1086
- b = b.version;
1087
- }
1088
- return a !== b
1089
-
1090
- case '':
1091
- case '=':
1092
- case '==':
1093
- return eq(a, b, loose)
1094
-
1095
- case '!=':
1096
- return neq(a, b, loose)
1097
-
1098
- case '>':
1099
- return gt(a, b, loose)
1100
-
1101
- case '>=':
1102
- return gte(a, b, loose)
1103
-
1104
- case '<':
1105
- return lt(a, b, loose)
1106
-
1107
- case '<=':
1108
- return lte(a, b, loose)
1109
-
1110
- default:
1111
- throw new TypeError(`Invalid operator: ${op}`)
1112
- }
1113
- };
1114
- cmp_1 = cmp;
1115
- return cmp_1;
1116
- }
1117
-
1118
- var coerce_1;
1119
- var hasRequiredCoerce;
1120
-
1121
- function requireCoerce () {
1122
- if (hasRequiredCoerce) return coerce_1;
1123
- hasRequiredCoerce = 1;
1124
-
1125
- const SemVer = /*@__PURE__*/ requireSemver$1();
1126
- const parse = /*@__PURE__*/ requireParse();
1127
- const { safeRe: re, t } = /*@__PURE__*/ requireRe();
1128
-
1129
- const coerce = (version, options) => {
1130
- if (version instanceof SemVer) {
1131
- return version
1132
- }
1133
-
1134
- if (typeof version === 'number') {
1135
- version = String(version);
1136
- }
1137
-
1138
- if (typeof version !== 'string') {
1139
- return null
1140
- }
1141
-
1142
- options = options || {};
1143
-
1144
- let match = null;
1145
- if (!options.rtl) {
1146
- match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
1147
- } else {
1148
- // Find the right-most coercible string that does not share
1149
- // a terminus with a more left-ward coercible string.
1150
- // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
1151
- // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'
1152
- //
1153
- // Walk through the string checking with a /g regexp
1154
- // Manually set the index so as to pick up overlapping matches.
1155
- // Stop when we get a match that ends at the string end, since no
1156
- // coercible string can be more right-ward without the same terminus.
1157
- const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
1158
- let next;
1159
- while ((next = coerceRtlRegex.exec(version)) &&
1160
- (!match || match.index + match[0].length !== version.length)
1161
- ) {
1162
- if (!match ||
1163
- next.index + next[0].length !== match.index + match[0].length) {
1164
- match = next;
1165
- }
1166
- coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
1167
- }
1168
- // leave it in a clean state
1169
- coerceRtlRegex.lastIndex = -1;
1170
- }
1171
-
1172
- if (match === null) {
1173
- return null
1174
- }
1175
-
1176
- const major = match[2];
1177
- const minor = match[3] || '0';
1178
- const patch = match[4] || '0';
1179
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '';
1180
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : '';
1181
-
1182
- return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)
1183
- };
1184
- coerce_1 = coerce;
1185
- return coerce_1;
1186
- }
1187
-
1188
- var lrucache;
1189
- var hasRequiredLrucache;
1190
-
1191
- function requireLrucache () {
1192
- if (hasRequiredLrucache) return lrucache;
1193
- hasRequiredLrucache = 1;
1194
-
1195
- class LRUCache {
1196
- constructor () {
1197
- this.max = 1000;
1198
- this.map = new Map();
1199
- }
1200
-
1201
- get (key) {
1202
- const value = this.map.get(key);
1203
- if (value === undefined) {
1204
- return undefined
1205
- } else {
1206
- // Remove the key from the map and add it to the end
1207
- this.map.delete(key);
1208
- this.map.set(key, value);
1209
- return value
1210
- }
1211
- }
1212
-
1213
- delete (key) {
1214
- return this.map.delete(key)
1215
- }
1216
-
1217
- set (key, value) {
1218
- const deleted = this.delete(key);
1219
-
1220
- if (!deleted && value !== undefined) {
1221
- // If cache is full, delete the least recently used item
1222
- if (this.map.size >= this.max) {
1223
- const firstKey = this.map.keys().next().value;
1224
- this.delete(firstKey);
1225
- }
1226
-
1227
- this.map.set(key, value);
1228
- }
1229
-
1230
- return this
1231
- }
1232
- }
1233
-
1234
- lrucache = LRUCache;
1235
- return lrucache;
1236
- }
1237
-
1238
- var range;
1239
- var hasRequiredRange;
1240
-
1241
- function requireRange () {
1242
- if (hasRequiredRange) return range;
1243
- hasRequiredRange = 1;
1244
-
1245
- const SPACE_CHARACTERS = /\s+/g;
1246
-
1247
- // hoisted class for cyclic dependency
1248
- class Range {
1249
- constructor (range, options) {
1250
- options = parseOptions(options);
1251
-
1252
- if (range instanceof Range) {
1253
- if (
1254
- range.loose === !!options.loose &&
1255
- range.includePrerelease === !!options.includePrerelease
1256
- ) {
1257
- return range
1258
- } else {
1259
- return new Range(range.raw, options)
1260
- }
1261
- }
1262
-
1263
- if (range instanceof Comparator) {
1264
- // just put it in the set and return
1265
- this.raw = range.value;
1266
- this.set = [[range]];
1267
- this.formatted = undefined;
1268
- return this
1269
- }
1270
-
1271
- this.options = options;
1272
- this.loose = !!options.loose;
1273
- this.includePrerelease = !!options.includePrerelease;
1274
-
1275
- // First reduce all whitespace as much as possible so we do not have to rely
1276
- // on potentially slow regexes like \s*. This is then stored and used for
1277
- // future error messages as well.
1278
- this.raw = range.trim().replace(SPACE_CHARACTERS, ' ');
1279
-
1280
- // First, split on ||
1281
- this.set = this.raw
1282
- .split('||')
1283
- // map the range to a 2d array of comparators
1284
- .map(r => this.parseRange(r.trim()))
1285
- // throw out any comparator lists that are empty
1286
- // this generally means that it was not a valid range, which is allowed
1287
- // in loose mode, but will still throw if the WHOLE range is invalid.
1288
- .filter(c => c.length);
1289
-
1290
- if (!this.set.length) {
1291
- throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
1292
- }
1293
-
1294
- // if we have any that are not the null set, throw out null sets.
1295
- if (this.set.length > 1) {
1296
- // keep the first one, in case they're all null sets
1297
- const first = this.set[0];
1298
- this.set = this.set.filter(c => !isNullSet(c[0]));
1299
- if (this.set.length === 0) {
1300
- this.set = [first];
1301
- } else if (this.set.length > 1) {
1302
- // if we have any that are *, then the range is just *
1303
- for (const c of this.set) {
1304
- if (c.length === 1 && isAny(c[0])) {
1305
- this.set = [c];
1306
- break
1307
- }
1308
- }
1309
- }
1310
- }
1311
-
1312
- this.formatted = undefined;
1313
- }
1314
-
1315
- get range () {
1316
- if (this.formatted === undefined) {
1317
- this.formatted = '';
1318
- for (let i = 0; i < this.set.length; i++) {
1319
- if (i > 0) {
1320
- this.formatted += '||';
1321
- }
1322
- const comps = this.set[i];
1323
- for (let k = 0; k < comps.length; k++) {
1324
- if (k > 0) {
1325
- this.formatted += ' ';
1326
- }
1327
- this.formatted += comps[k].toString().trim();
1328
- }
1329
- }
1330
- }
1331
- return this.formatted
1332
- }
1333
-
1334
- format () {
1335
- return this.range
1336
- }
1337
-
1338
- toString () {
1339
- return this.range
1340
- }
1341
-
1342
- parseRange (range) {
1343
- // memoize range parsing for performance.
1344
- // this is a very hot path, and fully deterministic.
1345
- const memoOpts =
1346
- (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |
1347
- (this.options.loose && FLAG_LOOSE);
1348
- const memoKey = memoOpts + ':' + range;
1349
- const cached = cache.get(memoKey);
1350
- if (cached) {
1351
- return cached
1352
- }
1353
-
1354
- const loose = this.options.loose;
1355
- // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
1356
- const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
1357
- range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
1358
- debug('hyphen replace', range);
1359
-
1360
- // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
1361
- range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
1362
- debug('comparator trim', range);
1363
-
1364
- // `~ 1.2.3` => `~1.2.3`
1365
- range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
1366
- debug('tilde trim', range);
1367
-
1368
- // `^ 1.2.3` => `^1.2.3`
1369
- range = range.replace(re[t.CARETTRIM], caretTrimReplace);
1370
- debug('caret trim', range);
1371
-
1372
- // At this point, the range is completely trimmed and
1373
- // ready to be split into comparators.
1374
-
1375
- let rangeList = range
1376
- .split(' ')
1377
- .map(comp => parseComparator(comp, this.options))
1378
- .join(' ')
1379
- .split(/\s+/)
1380
- // >=0.0.0 is equivalent to *
1381
- .map(comp => replaceGTE0(comp, this.options));
1382
-
1383
- if (loose) {
1384
- // in loose mode, throw out any that are not valid comparators
1385
- rangeList = rangeList.filter(comp => {
1386
- debug('loose invalid filter', comp, this.options);
1387
- return !!comp.match(re[t.COMPARATORLOOSE])
1388
- });
1389
- }
1390
- debug('range list', rangeList);
1391
-
1392
- // if any comparators are the null set, then replace with JUST null set
1393
- // if more than one comparator, remove any * comparators
1394
- // also, don't include the same comparator more than once
1395
- const rangeMap = new Map();
1396
- const comparators = rangeList.map(comp => new Comparator(comp, this.options));
1397
- for (const comp of comparators) {
1398
- if (isNullSet(comp)) {
1399
- return [comp]
1400
- }
1401
- rangeMap.set(comp.value, comp);
1402
- }
1403
- if (rangeMap.size > 1 && rangeMap.has('')) {
1404
- rangeMap.delete('');
1405
- }
1406
-
1407
- const result = [...rangeMap.values()];
1408
- cache.set(memoKey, result);
1409
- return result
1410
- }
1411
-
1412
- intersects (range, options) {
1413
- if (!(range instanceof Range)) {
1414
- throw new TypeError('a Range is required')
1415
- }
1416
-
1417
- return this.set.some((thisComparators) => {
1418
- return (
1419
- isSatisfiable(thisComparators, options) &&
1420
- range.set.some((rangeComparators) => {
1421
- return (
1422
- isSatisfiable(rangeComparators, options) &&
1423
- thisComparators.every((thisComparator) => {
1424
- return rangeComparators.every((rangeComparator) => {
1425
- return thisComparator.intersects(rangeComparator, options)
1426
- })
1427
- })
1428
- )
1429
- })
1430
- )
1431
- })
1432
- }
1433
-
1434
- // if ANY of the sets match ALL of its comparators, then pass
1435
- test (version) {
1436
- if (!version) {
1437
- return false
1438
- }
1439
-
1440
- if (typeof version === 'string') {
1441
- try {
1442
- version = new SemVer(version, this.options);
1443
- } catch (er) {
1444
- return false
1445
- }
1446
- }
1447
-
1448
- for (let i = 0; i < this.set.length; i++) {
1449
- if (testSet(this.set[i], version, this.options)) {
1450
- return true
1451
- }
1452
- }
1453
- return false
1454
- }
1455
- }
1456
-
1457
- range = Range;
1458
-
1459
- const LRU = /*@__PURE__*/ requireLrucache();
1460
- const cache = new LRU();
1461
-
1462
- const parseOptions = /*@__PURE__*/ requireParseOptions();
1463
- const Comparator = /*@__PURE__*/ requireComparator();
1464
- const debug = /*@__PURE__*/ requireDebug();
1465
- const SemVer = /*@__PURE__*/ requireSemver$1();
1466
- const {
1467
- safeRe: re,
1468
- t,
1469
- comparatorTrimReplace,
1470
- tildeTrimReplace,
1471
- caretTrimReplace,
1472
- } = /*@__PURE__*/ requireRe();
1473
- const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = /*@__PURE__*/ requireConstants();
1474
-
1475
- const isNullSet = c => c.value === '<0.0.0-0';
1476
- const isAny = c => c.value === '';
1477
-
1478
- // take a set of comparators and determine whether there
1479
- // exists a version which can satisfy it
1480
- const isSatisfiable = (comparators, options) => {
1481
- let result = true;
1482
- const remainingComparators = comparators.slice();
1483
- let testComparator = remainingComparators.pop();
1484
-
1485
- while (result && remainingComparators.length) {
1486
- result = remainingComparators.every((otherComparator) => {
1487
- return testComparator.intersects(otherComparator, options)
1488
- });
1489
-
1490
- testComparator = remainingComparators.pop();
1491
- }
1492
-
1493
- return result
1494
- };
1495
-
1496
- // comprised of xranges, tildes, stars, and gtlt's at this point.
1497
- // already replaced the hyphen ranges
1498
- // turn into a set of JUST comparators.
1499
- const parseComparator = (comp, options) => {
1500
- debug('comp', comp, options);
1501
- comp = replaceCarets(comp, options);
1502
- debug('caret', comp);
1503
- comp = replaceTildes(comp, options);
1504
- debug('tildes', comp);
1505
- comp = replaceXRanges(comp, options);
1506
- debug('xrange', comp);
1507
- comp = replaceStars(comp, options);
1508
- debug('stars', comp);
1509
- return comp
1510
- };
1511
-
1512
- const isX = id => !id || id.toLowerCase() === 'x' || id === '*';
1513
-
1514
- // ~, ~> --> * (any, kinda silly)
1515
- // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
1516
- // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
1517
- // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
1518
- // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
1519
- // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
1520
- // ~0.0.1 --> >=0.0.1 <0.1.0-0
1521
- const replaceTildes = (comp, options) => {
1522
- return comp
1523
- .trim()
1524
- .split(/\s+/)
1525
- .map((c) => replaceTilde(c, options))
1526
- .join(' ')
1527
- };
1528
-
1529
- const replaceTilde = (comp, options) => {
1530
- const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
1531
- return comp.replace(r, (_, M, m, p, pr) => {
1532
- debug('tilde', comp, _, M, m, p, pr);
1533
- let ret;
1534
-
1535
- if (isX(M)) {
1536
- ret = '';
1537
- } else if (isX(m)) {
1538
- ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
1539
- } else if (isX(p)) {
1540
- // ~1.2 == >=1.2.0 <1.3.0-0
1541
- ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
1542
- } else if (pr) {
1543
- debug('replaceTilde pr', pr);
1544
- ret = `>=${M}.${m}.${p}-${pr
1545
- } <${M}.${+m + 1}.0-0`;
1546
- } else {
1547
- // ~1.2.3 == >=1.2.3 <1.3.0-0
1548
- ret = `>=${M}.${m}.${p
1549
- } <${M}.${+m + 1}.0-0`;
1550
- }
1551
-
1552
- debug('tilde return', ret);
1553
- return ret
1554
- })
1555
- };
1556
-
1557
- // ^ --> * (any, kinda silly)
1558
- // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
1559
- // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
1560
- // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
1561
- // ^1.2.3 --> >=1.2.3 <2.0.0-0
1562
- // ^1.2.0 --> >=1.2.0 <2.0.0-0
1563
- // ^0.0.1 --> >=0.0.1 <0.0.2-0
1564
- // ^0.1.0 --> >=0.1.0 <0.2.0-0
1565
- const replaceCarets = (comp, options) => {
1566
- return comp
1567
- .trim()
1568
- .split(/\s+/)
1569
- .map((c) => replaceCaret(c, options))
1570
- .join(' ')
1571
- };
1572
-
1573
- const replaceCaret = (comp, options) => {
1574
- debug('caret', comp, options);
1575
- const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
1576
- const z = options.includePrerelease ? '-0' : '';
1577
- return comp.replace(r, (_, M, m, p, pr) => {
1578
- debug('caret', comp, _, M, m, p, pr);
1579
- let ret;
1580
-
1581
- if (isX(M)) {
1582
- ret = '';
1583
- } else if (isX(m)) {
1584
- ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
1585
- } else if (isX(p)) {
1586
- if (M === '0') {
1587
- ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
1588
- } else {
1589
- ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
1590
- }
1591
- } else if (pr) {
1592
- debug('replaceCaret pr', pr);
1593
- if (M === '0') {
1594
- if (m === '0') {
1595
- ret = `>=${M}.${m}.${p}-${pr
1596
- } <${M}.${m}.${+p + 1}-0`;
1597
- } else {
1598
- ret = `>=${M}.${m}.${p}-${pr
1599
- } <${M}.${+m + 1}.0-0`;
1600
- }
1601
- } else {
1602
- ret = `>=${M}.${m}.${p}-${pr
1603
- } <${+M + 1}.0.0-0`;
1604
- }
1605
- } else {
1606
- debug('no pr');
1607
- if (M === '0') {
1608
- if (m === '0') {
1609
- ret = `>=${M}.${m}.${p
1610
- }${z} <${M}.${m}.${+p + 1}-0`;
1611
- } else {
1612
- ret = `>=${M}.${m}.${p
1613
- }${z} <${M}.${+m + 1}.0-0`;
1614
- }
1615
- } else {
1616
- ret = `>=${M}.${m}.${p
1617
- } <${+M + 1}.0.0-0`;
1618
- }
1619
- }
1620
-
1621
- debug('caret return', ret);
1622
- return ret
1623
- })
1624
- };
1625
-
1626
- const replaceXRanges = (comp, options) => {
1627
- debug('replaceXRanges', comp, options);
1628
- return comp
1629
- .split(/\s+/)
1630
- .map((c) => replaceXRange(c, options))
1631
- .join(' ')
1632
- };
1633
-
1634
- const replaceXRange = (comp, options) => {
1635
- comp = comp.trim();
1636
- const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
1637
- return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
1638
- debug('xRange', comp, ret, gtlt, M, m, p, pr);
1639
- const xM = isX(M);
1640
- const xm = xM || isX(m);
1641
- const xp = xm || isX(p);
1642
- const anyX = xp;
1643
-
1644
- if (gtlt === '=' && anyX) {
1645
- gtlt = '';
1646
- }
1647
-
1648
- // if we're including prereleases in the match, then we need
1649
- // to fix this to -0, the lowest possible prerelease value
1650
- pr = options.includePrerelease ? '-0' : '';
1651
-
1652
- if (xM) {
1653
- if (gtlt === '>' || gtlt === '<') {
1654
- // nothing is allowed
1655
- ret = '<0.0.0-0';
1656
- } else {
1657
- // nothing is forbidden
1658
- ret = '*';
1659
- }
1660
- } else if (gtlt && anyX) {
1661
- // we know patch is an x, because we have any x at all.
1662
- // replace X with 0
1663
- if (xm) {
1664
- m = 0;
1665
- }
1666
- p = 0;
1667
-
1668
- if (gtlt === '>') {
1669
- // >1 => >=2.0.0
1670
- // >1.2 => >=1.3.0
1671
- gtlt = '>=';
1672
- if (xm) {
1673
- M = +M + 1;
1674
- m = 0;
1675
- p = 0;
1676
- } else {
1677
- m = +m + 1;
1678
- p = 0;
1679
- }
1680
- } else if (gtlt === '<=') {
1681
- // <=0.7.x is actually <0.8.0, since any 0.7.x should
1682
- // pass. Similarly, <=7.x is actually <8.0.0, etc.
1683
- gtlt = '<';
1684
- if (xm) {
1685
- M = +M + 1;
1686
- } else {
1687
- m = +m + 1;
1688
- }
1689
- }
1690
-
1691
- if (gtlt === '<') {
1692
- pr = '-0';
1693
- }
1694
-
1695
- ret = `${gtlt + M}.${m}.${p}${pr}`;
1696
- } else if (xm) {
1697
- ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
1698
- } else if (xp) {
1699
- ret = `>=${M}.${m}.0${pr
1700
- } <${M}.${+m + 1}.0-0`;
1701
- }
1702
-
1703
- debug('xRange return', ret);
1704
-
1705
- return ret
1706
- })
1707
- };
1708
-
1709
- // Because * is AND-ed with everything else in the comparator,
1710
- // and '' means "any version", just remove the *s entirely.
1711
- const replaceStars = (comp, options) => {
1712
- debug('replaceStars', comp, options);
1713
- // Looseness is ignored here. star is always as loose as it gets!
1714
- return comp
1715
- .trim()
1716
- .replace(re[t.STAR], '')
1717
- };
1718
-
1719
- const replaceGTE0 = (comp, options) => {
1720
- debug('replaceGTE0', comp, options);
1721
- return comp
1722
- .trim()
1723
- .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
1724
- };
1725
-
1726
- // This function is passed to string.replace(re[t.HYPHENRANGE])
1727
- // M, m, patch, prerelease, build
1728
- // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
1729
- // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
1730
- // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
1731
- // TODO build?
1732
- const hyphenReplace = incPr => ($0,
1733
- from, fM, fm, fp, fpr, fb,
1734
- to, tM, tm, tp, tpr) => {
1735
- if (isX(fM)) {
1736
- from = '';
1737
- } else if (isX(fm)) {
1738
- from = `>=${fM}.0.0${incPr ? '-0' : ''}`;
1739
- } else if (isX(fp)) {
1740
- from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`;
1741
- } else if (fpr) {
1742
- from = `>=${from}`;
1743
- } else {
1744
- from = `>=${from}${incPr ? '-0' : ''}`;
1745
- }
1746
-
1747
- if (isX(tM)) {
1748
- to = '';
1749
- } else if (isX(tm)) {
1750
- to = `<${+tM + 1}.0.0-0`;
1751
- } else if (isX(tp)) {
1752
- to = `<${tM}.${+tm + 1}.0-0`;
1753
- } else if (tpr) {
1754
- to = `<=${tM}.${tm}.${tp}-${tpr}`;
1755
- } else if (incPr) {
1756
- to = `<${tM}.${tm}.${+tp + 1}-0`;
1757
- } else {
1758
- to = `<=${to}`;
1759
- }
1760
-
1761
- return `${from} ${to}`.trim()
1762
- };
1763
-
1764
- const testSet = (set, version, options) => {
1765
- for (let i = 0; i < set.length; i++) {
1766
- if (!set[i].test(version)) {
1767
- return false
1768
- }
1769
- }
1770
-
1771
- if (version.prerelease.length && !options.includePrerelease) {
1772
- // Find the set of versions that are allowed to have prereleases
1773
- // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
1774
- // That should allow `1.2.3-pr.2` to pass.
1775
- // However, `1.2.4-alpha.notready` should NOT be allowed,
1776
- // even though it's within the range set by the comparators.
1777
- for (let i = 0; i < set.length; i++) {
1778
- debug(set[i].semver);
1779
- if (set[i].semver === Comparator.ANY) {
1780
- continue
1781
- }
1782
-
1783
- if (set[i].semver.prerelease.length > 0) {
1784
- const allowed = set[i].semver;
1785
- if (allowed.major === version.major &&
1786
- allowed.minor === version.minor &&
1787
- allowed.patch === version.patch) {
1788
- return true
1789
- }
1790
- }
1791
- }
1792
-
1793
- // Version has a -pre, but it's not one of the ones we like.
1794
- return false
1795
- }
1796
-
1797
- return true
1798
- };
1799
- return range;
1800
- }
1801
-
1802
- var comparator;
1803
- var hasRequiredComparator;
1804
-
1805
- function requireComparator () {
1806
- if (hasRequiredComparator) return comparator;
1807
- hasRequiredComparator = 1;
1808
-
1809
- const ANY = Symbol('SemVer ANY');
1810
- // hoisted class for cyclic dependency
1811
- class Comparator {
1812
- static get ANY () {
1813
- return ANY
1814
- }
1815
-
1816
- constructor (comp, options) {
1817
- options = parseOptions(options);
1818
-
1819
- if (comp instanceof Comparator) {
1820
- if (comp.loose === !!options.loose) {
1821
- return comp
1822
- } else {
1823
- comp = comp.value;
1824
- }
1825
- }
1826
-
1827
- comp = comp.trim().split(/\s+/).join(' ');
1828
- debug('comparator', comp, options);
1829
- this.options = options;
1830
- this.loose = !!options.loose;
1831
- this.parse(comp);
1832
-
1833
- if (this.semver === ANY) {
1834
- this.value = '';
1835
- } else {
1836
- this.value = this.operator + this.semver.version;
1837
- }
1838
-
1839
- debug('comp', this);
1840
- }
1841
-
1842
- parse (comp) {
1843
- const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
1844
- const m = comp.match(r);
1845
-
1846
- if (!m) {
1847
- throw new TypeError(`Invalid comparator: ${comp}`)
1848
- }
1849
-
1850
- this.operator = m[1] !== undefined ? m[1] : '';
1851
- if (this.operator === '=') {
1852
- this.operator = '';
1853
- }
1854
-
1855
- // if it literally is just '>' or '' then allow anything.
1856
- if (!m[2]) {
1857
- this.semver = ANY;
1858
- } else {
1859
- this.semver = new SemVer(m[2], this.options.loose);
1860
- }
1861
- }
1862
-
1863
- toString () {
1864
- return this.value
1865
- }
1866
-
1867
- test (version) {
1868
- debug('Comparator.test', version, this.options.loose);
1869
-
1870
- if (this.semver === ANY || version === ANY) {
1871
- return true
1872
- }
1873
-
1874
- if (typeof version === 'string') {
1875
- try {
1876
- version = new SemVer(version, this.options);
1877
- } catch (er) {
1878
- return false
1879
- }
1880
- }
1881
-
1882
- return cmp(version, this.operator, this.semver, this.options)
1883
- }
1884
-
1885
- intersects (comp, options) {
1886
- if (!(comp instanceof Comparator)) {
1887
- throw new TypeError('a Comparator is required')
1888
- }
1889
-
1890
- if (this.operator === '') {
1891
- if (this.value === '') {
1892
- return true
1893
- }
1894
- return new Range(comp.value, options).test(this.value)
1895
- } else if (comp.operator === '') {
1896
- if (comp.value === '') {
1897
- return true
1898
- }
1899
- return new Range(this.value, options).test(comp.semver)
1900
- }
1901
-
1902
- options = parseOptions(options);
1903
-
1904
- // Special cases where nothing can possibly be lower
1905
- if (options.includePrerelease &&
1906
- (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
1907
- return false
1908
- }
1909
- if (!options.includePrerelease &&
1910
- (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
1911
- return false
1912
- }
1913
-
1914
- // Same direction increasing (> or >=)
1915
- if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
1916
- return true
1917
- }
1918
- // Same direction decreasing (< or <=)
1919
- if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
1920
- return true
1921
- }
1922
- // same SemVer and both sides are inclusive (<= or >=)
1923
- if (
1924
- (this.semver.version === comp.semver.version) &&
1925
- this.operator.includes('=') && comp.operator.includes('=')) {
1926
- return true
1927
- }
1928
- // opposite directions less than
1929
- if (cmp(this.semver, '<', comp.semver, options) &&
1930
- this.operator.startsWith('>') && comp.operator.startsWith('<')) {
1931
- return true
1932
- }
1933
- // opposite directions greater than
1934
- if (cmp(this.semver, '>', comp.semver, options) &&
1935
- this.operator.startsWith('<') && comp.operator.startsWith('>')) {
1936
- return true
1937
- }
1938
- return false
1939
- }
1940
- }
1941
-
1942
- comparator = Comparator;
1943
-
1944
- const parseOptions = /*@__PURE__*/ requireParseOptions();
1945
- const { safeRe: re, t } = /*@__PURE__*/ requireRe();
1946
- const cmp = /*@__PURE__*/ requireCmp();
1947
- const debug = /*@__PURE__*/ requireDebug();
1948
- const SemVer = /*@__PURE__*/ requireSemver$1();
1949
- const Range = /*@__PURE__*/ requireRange();
1950
- return comparator;
1951
- }
1952
-
1953
- var satisfies_1;
1954
- var hasRequiredSatisfies;
1955
-
1956
- function requireSatisfies () {
1957
- if (hasRequiredSatisfies) return satisfies_1;
1958
- hasRequiredSatisfies = 1;
1959
-
1960
- const Range = /*@__PURE__*/ requireRange();
1961
- const satisfies = (version, range, options) => {
1962
- try {
1963
- range = new Range(range, options);
1964
- } catch (er) {
1965
- return false
1966
- }
1967
- return range.test(version)
1968
- };
1969
- satisfies_1 = satisfies;
1970
- return satisfies_1;
1971
- }
1972
-
1973
- var toComparators_1;
1974
- var hasRequiredToComparators;
1975
-
1976
- function requireToComparators () {
1977
- if (hasRequiredToComparators) return toComparators_1;
1978
- hasRequiredToComparators = 1;
1979
-
1980
- const Range = /*@__PURE__*/ requireRange();
1981
-
1982
- // Mostly just for testing and legacy API reasons
1983
- const toComparators = (range, options) =>
1984
- new Range(range, options).set
1985
- .map(comp => comp.map(c => c.value).join(' ').trim().split(' '));
1986
-
1987
- toComparators_1 = toComparators;
1988
- return toComparators_1;
1989
- }
1990
-
1991
- var maxSatisfying_1;
1992
- var hasRequiredMaxSatisfying;
1993
-
1994
- function requireMaxSatisfying () {
1995
- if (hasRequiredMaxSatisfying) return maxSatisfying_1;
1996
- hasRequiredMaxSatisfying = 1;
1997
-
1998
- const SemVer = /*@__PURE__*/ requireSemver$1();
1999
- const Range = /*@__PURE__*/ requireRange();
2000
-
2001
- const maxSatisfying = (versions, range, options) => {
2002
- let max = null;
2003
- let maxSV = null;
2004
- let rangeObj = null;
2005
- try {
2006
- rangeObj = new Range(range, options);
2007
- } catch (er) {
2008
- return null
2009
- }
2010
- versions.forEach((v) => {
2011
- if (rangeObj.test(v)) {
2012
- // satisfies(v, range, options)
2013
- if (!max || maxSV.compare(v) === -1) {
2014
- // compare(max, v, true)
2015
- max = v;
2016
- maxSV = new SemVer(max, options);
2017
- }
2018
- }
2019
- });
2020
- return max
2021
- };
2022
- maxSatisfying_1 = maxSatisfying;
2023
- return maxSatisfying_1;
2024
- }
2025
-
2026
- var minSatisfying_1;
2027
- var hasRequiredMinSatisfying;
2028
-
2029
- function requireMinSatisfying () {
2030
- if (hasRequiredMinSatisfying) return minSatisfying_1;
2031
- hasRequiredMinSatisfying = 1;
2032
-
2033
- const SemVer = /*@__PURE__*/ requireSemver$1();
2034
- const Range = /*@__PURE__*/ requireRange();
2035
- const minSatisfying = (versions, range, options) => {
2036
- let min = null;
2037
- let minSV = null;
2038
- let rangeObj = null;
2039
- try {
2040
- rangeObj = new Range(range, options);
2041
- } catch (er) {
2042
- return null
2043
- }
2044
- versions.forEach((v) => {
2045
- if (rangeObj.test(v)) {
2046
- // satisfies(v, range, options)
2047
- if (!min || minSV.compare(v) === 1) {
2048
- // compare(min, v, true)
2049
- min = v;
2050
- minSV = new SemVer(min, options);
2051
- }
2052
- }
2053
- });
2054
- return min
2055
- };
2056
- minSatisfying_1 = minSatisfying;
2057
- return minSatisfying_1;
2058
- }
2059
-
2060
- var minVersion_1;
2061
- var hasRequiredMinVersion;
2062
-
2063
- function requireMinVersion () {
2064
- if (hasRequiredMinVersion) return minVersion_1;
2065
- hasRequiredMinVersion = 1;
2066
-
2067
- const SemVer = /*@__PURE__*/ requireSemver$1();
2068
- const Range = /*@__PURE__*/ requireRange();
2069
- const gt = /*@__PURE__*/ requireGt();
2070
-
2071
- const minVersion = (range, loose) => {
2072
- range = new Range(range, loose);
2073
-
2074
- let minver = new SemVer('0.0.0');
2075
- if (range.test(minver)) {
2076
- return minver
2077
- }
2078
-
2079
- minver = new SemVer('0.0.0-0');
2080
- if (range.test(minver)) {
2081
- return minver
2082
- }
2083
-
2084
- minver = null;
2085
- for (let i = 0; i < range.set.length; ++i) {
2086
- const comparators = range.set[i];
2087
-
2088
- let setMin = null;
2089
- comparators.forEach((comparator) => {
2090
- // Clone to avoid manipulating the comparator's semver object.
2091
- const compver = new SemVer(comparator.semver.version);
2092
- switch (comparator.operator) {
2093
- case '>':
2094
- if (compver.prerelease.length === 0) {
2095
- compver.patch++;
2096
- } else {
2097
- compver.prerelease.push(0);
2098
- }
2099
- compver.raw = compver.format();
2100
- /* fallthrough */
2101
- case '':
2102
- case '>=':
2103
- if (!setMin || gt(compver, setMin)) {
2104
- setMin = compver;
2105
- }
2106
- break
2107
- case '<':
2108
- case '<=':
2109
- /* Ignore maximum versions */
2110
- break
2111
- /* istanbul ignore next */
2112
- default:
2113
- throw new Error(`Unexpected operation: ${comparator.operator}`)
2114
- }
2115
- });
2116
- if (setMin && (!minver || gt(minver, setMin))) {
2117
- minver = setMin;
2118
- }
2119
- }
2120
-
2121
- if (minver && range.test(minver)) {
2122
- return minver
2123
- }
2124
-
2125
- return null
2126
- };
2127
- minVersion_1 = minVersion;
2128
- return minVersion_1;
2129
- }
2130
-
2131
- var valid;
2132
- var hasRequiredValid;
2133
-
2134
- function requireValid () {
2135
- if (hasRequiredValid) return valid;
2136
- hasRequiredValid = 1;
2137
-
2138
- const Range = /*@__PURE__*/ requireRange();
2139
- const validRange = (range, options) => {
2140
- try {
2141
- // Return '*' instead of '' so that truthiness works.
2142
- // This will throw if it's invalid anyway
2143
- return new Range(range, options).range || '*'
2144
- } catch (er) {
2145
- return null
2146
- }
2147
- };
2148
- valid = validRange;
2149
- return valid;
2150
- }
2151
-
2152
- var outside_1;
2153
- var hasRequiredOutside;
2154
-
2155
- function requireOutside () {
2156
- if (hasRequiredOutside) return outside_1;
2157
- hasRequiredOutside = 1;
2158
-
2159
- const SemVer = /*@__PURE__*/ requireSemver$1();
2160
- const Comparator = /*@__PURE__*/ requireComparator();
2161
- const { ANY } = Comparator;
2162
- const Range = /*@__PURE__*/ requireRange();
2163
- const satisfies = /*@__PURE__*/ requireSatisfies();
2164
- const gt = /*@__PURE__*/ requireGt();
2165
- const lt = /*@__PURE__*/ requireLt();
2166
- const lte = /*@__PURE__*/ requireLte();
2167
- const gte = /*@__PURE__*/ requireGte();
2168
-
2169
- const outside = (version, range, hilo, options) => {
2170
- version = new SemVer(version, options);
2171
- range = new Range(range, options);
2172
-
2173
- let gtfn, ltefn, ltfn, comp, ecomp;
2174
- switch (hilo) {
2175
- case '>':
2176
- gtfn = gt;
2177
- ltefn = lte;
2178
- ltfn = lt;
2179
- comp = '>';
2180
- ecomp = '>=';
2181
- break
2182
- case '<':
2183
- gtfn = lt;
2184
- ltefn = gte;
2185
- ltfn = gt;
2186
- comp = '<';
2187
- ecomp = '<=';
2188
- break
2189
- default:
2190
- throw new TypeError('Must provide a hilo val of "<" or ">"')
2191
- }
2192
-
2193
- // If it satisfies the range it is not outside
2194
- if (satisfies(version, range, options)) {
2195
- return false
2196
- }
2197
-
2198
- // From now on, variable terms are as if we're in "gtr" mode.
2199
- // but note that everything is flipped for the "ltr" function.
2200
-
2201
- for (let i = 0; i < range.set.length; ++i) {
2202
- const comparators = range.set[i];
2203
-
2204
- let high = null;
2205
- let low = null;
2206
-
2207
- comparators.forEach((comparator) => {
2208
- if (comparator.semver === ANY) {
2209
- comparator = new Comparator('>=0.0.0');
2210
- }
2211
- high = high || comparator;
2212
- low = low || comparator;
2213
- if (gtfn(comparator.semver, high.semver, options)) {
2214
- high = comparator;
2215
- } else if (ltfn(comparator.semver, low.semver, options)) {
2216
- low = comparator;
2217
- }
2218
- });
2219
-
2220
- // If the edge version comparator has a operator then our version
2221
- // isn't outside it
2222
- if (high.operator === comp || high.operator === ecomp) {
2223
- return false
2224
- }
2225
-
2226
- // If the lowest version comparator has an operator and our version
2227
- // is less than it then it isn't higher than the range
2228
- if ((!low.operator || low.operator === comp) &&
2229
- ltefn(version, low.semver)) {
2230
- return false
2231
- } else if (low.operator === ecomp && ltfn(version, low.semver)) {
2232
- return false
2233
- }
2234
- }
2235
- return true
2236
- };
2237
-
2238
- outside_1 = outside;
2239
- return outside_1;
2240
- }
2241
-
2242
- var gtr_1;
2243
- var hasRequiredGtr;
2244
-
2245
- function requireGtr () {
2246
- if (hasRequiredGtr) return gtr_1;
2247
- hasRequiredGtr = 1;
2248
-
2249
- // Determine if version is greater than all the versions possible in the range.
2250
- const outside = /*@__PURE__*/ requireOutside();
2251
- const gtr = (version, range, options) => outside(version, range, '>', options);
2252
- gtr_1 = gtr;
2253
- return gtr_1;
2254
- }
2255
-
2256
- var ltr_1;
2257
- var hasRequiredLtr;
2258
-
2259
- function requireLtr () {
2260
- if (hasRequiredLtr) return ltr_1;
2261
- hasRequiredLtr = 1;
2262
-
2263
- const outside = /*@__PURE__*/ requireOutside();
2264
- // Determine if version is less than all the versions possible in the range
2265
- const ltr = (version, range, options) => outside(version, range, '<', options);
2266
- ltr_1 = ltr;
2267
- return ltr_1;
2268
- }
2269
-
2270
- var intersects_1;
2271
- var hasRequiredIntersects;
2272
-
2273
- function requireIntersects () {
2274
- if (hasRequiredIntersects) return intersects_1;
2275
- hasRequiredIntersects = 1;
2276
-
2277
- const Range = /*@__PURE__*/ requireRange();
2278
- const intersects = (r1, r2, options) => {
2279
- r1 = new Range(r1, options);
2280
- r2 = new Range(r2, options);
2281
- return r1.intersects(r2, options)
2282
- };
2283
- intersects_1 = intersects;
2284
- return intersects_1;
2285
- }
2286
-
2287
- var simplify;
2288
- var hasRequiredSimplify;
2289
-
2290
- function requireSimplify () {
2291
- if (hasRequiredSimplify) return simplify;
2292
- hasRequiredSimplify = 1;
2293
-
2294
- // given a set of versions and a range, create a "simplified" range
2295
- // that includes the same versions that the original range does
2296
- // If the original range is shorter than the simplified one, return that.
2297
- const satisfies = /*@__PURE__*/ requireSatisfies();
2298
- const compare = /*@__PURE__*/ requireCompare();
2299
- simplify = (versions, range, options) => {
2300
- const set = [];
2301
- let first = null;
2302
- let prev = null;
2303
- const v = versions.sort((a, b) => compare(a, b, options));
2304
- for (const version of v) {
2305
- const included = satisfies(version, range, options);
2306
- if (included) {
2307
- prev = version;
2308
- if (!first) {
2309
- first = version;
2310
- }
2311
- } else {
2312
- if (prev) {
2313
- set.push([first, prev]);
2314
- }
2315
- prev = null;
2316
- first = null;
2317
- }
2318
- }
2319
- if (first) {
2320
- set.push([first, null]);
2321
- }
2322
-
2323
- const ranges = [];
2324
- for (const [min, max] of set) {
2325
- if (min === max) {
2326
- ranges.push(min);
2327
- } else if (!max && min === v[0]) {
2328
- ranges.push('*');
2329
- } else if (!max) {
2330
- ranges.push(`>=${min}`);
2331
- } else if (min === v[0]) {
2332
- ranges.push(`<=${max}`);
2333
- } else {
2334
- ranges.push(`${min} - ${max}`);
2335
- }
2336
- }
2337
- const simplified = ranges.join(' || ');
2338
- const original = typeof range.raw === 'string' ? range.raw : String(range);
2339
- return simplified.length < original.length ? simplified : range
2340
- };
2341
- return simplify;
2342
- }
2343
-
2344
- var subset_1;
2345
- var hasRequiredSubset;
2346
-
2347
- function requireSubset () {
2348
- if (hasRequiredSubset) return subset_1;
2349
- hasRequiredSubset = 1;
2350
-
2351
- const Range = /*@__PURE__*/ requireRange();
2352
- const Comparator = /*@__PURE__*/ requireComparator();
2353
- const { ANY } = Comparator;
2354
- const satisfies = /*@__PURE__*/ requireSatisfies();
2355
- const compare = /*@__PURE__*/ requireCompare();
2356
-
2357
- // Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
2358
- // - Every simple range `r1, r2, ...` is a null set, OR
2359
- // - Every simple range `r1, r2, ...` which is not a null set is a subset of
2360
- // some `R1, R2, ...`
2361
- //
2362
- // Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
2363
- // - If c is only the ANY comparator
2364
- // - If C is only the ANY comparator, return true
2365
- // - Else if in prerelease mode, return false
2366
- // - else replace c with `[>=0.0.0]`
2367
- // - If C is only the ANY comparator
2368
- // - if in prerelease mode, return true
2369
- // - else replace C with `[>=0.0.0]`
2370
- // - Let EQ be the set of = comparators in c
2371
- // - If EQ is more than one, return true (null set)
2372
- // - Let GT be the highest > or >= comparator in c
2373
- // - Let LT be the lowest < or <= comparator in c
2374
- // - If GT and LT, and GT.semver > LT.semver, return true (null set)
2375
- // - If any C is a = range, and GT or LT are set, return false
2376
- // - If EQ
2377
- // - If GT, and EQ does not satisfy GT, return true (null set)
2378
- // - If LT, and EQ does not satisfy LT, return true (null set)
2379
- // - If EQ satisfies every C, return true
2380
- // - Else return false
2381
- // - If GT
2382
- // - If GT.semver is lower than any > or >= comp in C, return false
2383
- // - If GT is >=, and GT.semver does not satisfy every C, return false
2384
- // - If GT.semver has a prerelease, and not in prerelease mode
2385
- // - If no C has a prerelease and the GT.semver tuple, return false
2386
- // - If LT
2387
- // - If LT.semver is greater than any < or <= comp in C, return false
2388
- // - If LT is <=, and LT.semver does not satisfy every C, return false
2389
- // - If GT.semver has a prerelease, and not in prerelease mode
2390
- // - If no C has a prerelease and the LT.semver tuple, return false
2391
- // - Else return true
2392
-
2393
- const subset = (sub, dom, options = {}) => {
2394
- if (sub === dom) {
2395
- return true
2396
- }
2397
-
2398
- sub = new Range(sub, options);
2399
- dom = new Range(dom, options);
2400
- let sawNonNull = false;
2401
-
2402
- OUTER: for (const simpleSub of sub.set) {
2403
- for (const simpleDom of dom.set) {
2404
- const isSub = simpleSubset(simpleSub, simpleDom, options);
2405
- sawNonNull = sawNonNull || isSub !== null;
2406
- if (isSub) {
2407
- continue OUTER
2408
- }
2409
- }
2410
- // the null set is a subset of everything, but null simple ranges in
2411
- // a complex range should be ignored. so if we saw a non-null range,
2412
- // then we know this isn't a subset, but if EVERY simple range was null,
2413
- // then it is a subset.
2414
- if (sawNonNull) {
2415
- return false
2416
- }
2417
- }
2418
- return true
2419
- };
2420
-
2421
- const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')];
2422
- const minimumVersion = [new Comparator('>=0.0.0')];
2423
-
2424
- const simpleSubset = (sub, dom, options) => {
2425
- if (sub === dom) {
2426
- return true
2427
- }
2428
-
2429
- if (sub.length === 1 && sub[0].semver === ANY) {
2430
- if (dom.length === 1 && dom[0].semver === ANY) {
2431
- return true
2432
- } else if (options.includePrerelease) {
2433
- sub = minimumVersionWithPreRelease;
2434
- } else {
2435
- sub = minimumVersion;
2436
- }
2437
- }
2438
-
2439
- if (dom.length === 1 && dom[0].semver === ANY) {
2440
- if (options.includePrerelease) {
2441
- return true
2442
- } else {
2443
- dom = minimumVersion;
2444
- }
2445
- }
2446
-
2447
- const eqSet = new Set();
2448
- let gt, lt;
2449
- for (const c of sub) {
2450
- if (c.operator === '>' || c.operator === '>=') {
2451
- gt = higherGT(gt, c, options);
2452
- } else if (c.operator === '<' || c.operator === '<=') {
2453
- lt = lowerLT(lt, c, options);
2454
- } else {
2455
- eqSet.add(c.semver);
2456
- }
2457
- }
2458
-
2459
- if (eqSet.size > 1) {
2460
- return null
2461
- }
2462
-
2463
- let gtltComp;
2464
- if (gt && lt) {
2465
- gtltComp = compare(gt.semver, lt.semver, options);
2466
- if (gtltComp > 0) {
2467
- return null
2468
- } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
2469
- return null
2470
- }
2471
- }
2472
-
2473
- // will iterate one or zero times
2474
- for (const eq of eqSet) {
2475
- if (gt && !satisfies(eq, String(gt), options)) {
2476
- return null
2477
- }
2478
-
2479
- if (lt && !satisfies(eq, String(lt), options)) {
2480
- return null
2481
- }
2482
-
2483
- for (const c of dom) {
2484
- if (!satisfies(eq, String(c), options)) {
2485
- return false
2486
- }
2487
- }
2488
-
2489
- return true
2490
- }
2491
-
2492
- let higher, lower;
2493
- let hasDomLT, hasDomGT;
2494
- // if the subset has a prerelease, we need a comparator in the superset
2495
- // with the same tuple and a prerelease, or it's not a subset
2496
- let needDomLTPre = lt &&
2497
- !options.includePrerelease &&
2498
- lt.semver.prerelease.length ? lt.semver : false;
2499
- let needDomGTPre = gt &&
2500
- !options.includePrerelease &&
2501
- gt.semver.prerelease.length ? gt.semver : false;
2502
- // exception: <1.2.3-0 is the same as <1.2.3
2503
- if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
2504
- lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
2505
- needDomLTPre = false;
2506
- }
2507
-
2508
- for (const c of dom) {
2509
- hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=';
2510
- hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=';
2511
- if (gt) {
2512
- if (needDomGTPre) {
2513
- if (c.semver.prerelease && c.semver.prerelease.length &&
2514
- c.semver.major === needDomGTPre.major &&
2515
- c.semver.minor === needDomGTPre.minor &&
2516
- c.semver.patch === needDomGTPre.patch) {
2517
- needDomGTPre = false;
2518
- }
2519
- }
2520
- if (c.operator === '>' || c.operator === '>=') {
2521
- higher = higherGT(gt, c, options);
2522
- if (higher === c && higher !== gt) {
2523
- return false
2524
- }
2525
- } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
2526
- return false
2527
- }
2528
- }
2529
- if (lt) {
2530
- if (needDomLTPre) {
2531
- if (c.semver.prerelease && c.semver.prerelease.length &&
2532
- c.semver.major === needDomLTPre.major &&
2533
- c.semver.minor === needDomLTPre.minor &&
2534
- c.semver.patch === needDomLTPre.patch) {
2535
- needDomLTPre = false;
2536
- }
2537
- }
2538
- if (c.operator === '<' || c.operator === '<=') {
2539
- lower = lowerLT(lt, c, options);
2540
- if (lower === c && lower !== lt) {
2541
- return false
2542
- }
2543
- } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
2544
- return false
2545
- }
2546
- }
2547
- if (!c.operator && (lt || gt) && gtltComp !== 0) {
2548
- return false
2549
- }
2550
- }
2551
-
2552
- // if there was a < or >, and nothing in the dom, then must be false
2553
- // UNLESS it was limited by another range in the other direction.
2554
- // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
2555
- if (gt && hasDomLT && !lt && gtltComp !== 0) {
2556
- return false
2557
- }
2558
-
2559
- if (lt && hasDomGT && !gt && gtltComp !== 0) {
2560
- return false
2561
- }
2562
-
2563
- // we needed a prerelease range in a specific tuple, but didn't get one
2564
- // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
2565
- // because it includes prereleases in the 1.2.3 tuple
2566
- if (needDomGTPre || needDomLTPre) {
2567
- return false
2568
- }
2569
-
2570
- return true
2571
- };
2572
-
2573
- // >=1.2.3 is lower than >1.2.3
2574
- const higherGT = (a, b, options) => {
2575
- if (!a) {
2576
- return b
2577
- }
2578
- const comp = compare(a.semver, b.semver, options);
2579
- return comp > 0 ? a
2580
- : comp < 0 ? b
2581
- : b.operator === '>' && a.operator === '>=' ? b
2582
- : a
2583
- };
2584
-
2585
- // <=1.2.3 is higher than <1.2.3
2586
- const lowerLT = (a, b, options) => {
2587
- if (!a) {
2588
- return b
2589
- }
2590
- const comp = compare(a.semver, b.semver, options);
2591
- return comp < 0 ? a
2592
- : comp > 0 ? b
2593
- : b.operator === '<' && a.operator === '<=' ? b
2594
- : a
2595
- };
2596
-
2597
- subset_1 = subset;
2598
- return subset_1;
2599
- }
2600
-
2601
- var semver;
2602
- var hasRequiredSemver;
2603
-
2604
- function requireSemver () {
2605
- if (hasRequiredSemver) return semver;
2606
- hasRequiredSemver = 1;
2607
-
2608
- // just pre-load all the stuff that index.js lazily exports
2609
- const internalRe = /*@__PURE__*/ requireRe();
2610
- const constants = /*@__PURE__*/ requireConstants();
2611
- const SemVer = /*@__PURE__*/ requireSemver$1();
2612
- const identifiers = /*@__PURE__*/ requireIdentifiers();
2613
- const parse = /*@__PURE__*/ requireParse();
2614
- const valid = /*@__PURE__*/ requireValid$1();
2615
- const clean = /*@__PURE__*/ requireClean();
2616
- const inc = /*@__PURE__*/ requireInc();
2617
- const diff = /*@__PURE__*/ requireDiff();
2618
- const major = /*@__PURE__*/ requireMajor();
2619
- const minor = /*@__PURE__*/ requireMinor();
2620
- const patch = /*@__PURE__*/ requirePatch();
2621
- const prerelease = /*@__PURE__*/ requirePrerelease();
2622
- const compare = /*@__PURE__*/ requireCompare();
2623
- const rcompare = /*@__PURE__*/ requireRcompare();
2624
- const compareLoose = /*@__PURE__*/ requireCompareLoose();
2625
- const compareBuild = /*@__PURE__*/ requireCompareBuild();
2626
- const sort = /*@__PURE__*/ requireSort();
2627
- const rsort = /*@__PURE__*/ requireRsort();
2628
- const gt = /*@__PURE__*/ requireGt();
2629
- const lt = /*@__PURE__*/ requireLt();
2630
- const eq = /*@__PURE__*/ requireEq();
2631
- const neq = /*@__PURE__*/ requireNeq();
2632
- const gte = /*@__PURE__*/ requireGte();
2633
- const lte = /*@__PURE__*/ requireLte();
2634
- const cmp = /*@__PURE__*/ requireCmp();
2635
- const coerce = /*@__PURE__*/ requireCoerce();
2636
- const Comparator = /*@__PURE__*/ requireComparator();
2637
- const Range = /*@__PURE__*/ requireRange();
2638
- const satisfies = /*@__PURE__*/ requireSatisfies();
2639
- const toComparators = /*@__PURE__*/ requireToComparators();
2640
- const maxSatisfying = /*@__PURE__*/ requireMaxSatisfying();
2641
- const minSatisfying = /*@__PURE__*/ requireMinSatisfying();
2642
- const minVersion = /*@__PURE__*/ requireMinVersion();
2643
- const validRange = /*@__PURE__*/ requireValid();
2644
- const outside = /*@__PURE__*/ requireOutside();
2645
- const gtr = /*@__PURE__*/ requireGtr();
2646
- const ltr = /*@__PURE__*/ requireLtr();
2647
- const intersects = /*@__PURE__*/ requireIntersects();
2648
- const simplifyRange = /*@__PURE__*/ requireSimplify();
2649
- const subset = /*@__PURE__*/ requireSubset();
2650
- semver = {
2651
- parse,
2652
- valid,
2653
- clean,
2654
- inc,
2655
- diff,
2656
- major,
2657
- minor,
2658
- patch,
2659
- prerelease,
2660
- compare,
2661
- rcompare,
2662
- compareLoose,
2663
- compareBuild,
2664
- sort,
2665
- rsort,
2666
- gt,
2667
- lt,
2668
- eq,
2669
- neq,
2670
- gte,
2671
- lte,
2672
- cmp,
2673
- coerce,
2674
- Comparator,
2675
- Range,
2676
- satisfies,
2677
- toComparators,
2678
- maxSatisfying,
2679
- minSatisfying,
2680
- minVersion,
2681
- validRange,
2682
- outside,
2683
- gtr,
2684
- ltr,
2685
- intersects,
2686
- simplifyRange,
2687
- subset,
2688
- SemVer,
2689
- re: internalRe.re,
2690
- src: internalRe.src,
2691
- tokens: internalRe.t,
2692
- SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
2693
- RELEASE_TYPES: constants.RELEASE_TYPES,
2694
- compareIdentifiers: identifiers.compareIdentifiers,
2695
- rcompareIdentifiers: identifiers.rcompareIdentifiers,
2696
- };
2697
- return semver;
2698
- }
2699
-
2700
- var semverExports = /*@__PURE__*/ requireSemver();
2701
-
2702
- export { semverExports as s };